Commit e31a9d56 by 蒋勇

btn loadding status add

parent e8b23b87
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</el-input> </el-input>
<el-row style="text-align: right;margin-top: 20px;"> <el-row style="text-align: right;margin-top: 20px;">
<el-button type="warning" @click="cancelClick">取消</el-button> <el-button type="warning" @click="cancelClick">取消</el-button>
<el-button type="primary" @click="saveClick">保存</el-button> <el-button type="primary" @click="saveClick" :loading="isbtnRunning">保存</el-button>
</el-row> </el-row>
</el-dialog> </el-dialog>
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
], ],
currentRow:null, currentRow:null,
isbtnRunning:false,
} }
}, },
mounted: function() { mounted: function() {
...@@ -121,6 +122,7 @@ ...@@ -121,6 +122,7 @@
this.trackVisable=false; this.trackVisable=false;
}, },
saveClick(){ saveClick(){
this.isbtnRunning=true;
if(this.trackContent==""){ if(this.trackContent==""){
return; return;
} }
...@@ -134,6 +136,7 @@ ...@@ -134,6 +136,7 @@
self.currentRow.tracklog=d.data.tracklog; self.currentRow.tracklog=d.data.tracklog;
self.handlerTrackLog(self.currentRow); self.handlerTrackLog(self.currentRow);
self.trackContent=""; self.trackContent="";
self.isbtnRunning=false;
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment