|
@@ -93,7 +93,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="addTask">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="addTask" :disabled="addBtnDisable">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="提示" :visible.sync="dialogTippop" class="tip-dialog">
|
|
@@ -130,6 +130,7 @@
|
|
|
taskName:"",
|
|
|
dialogTaskName:false,
|
|
|
dialogTippop:false,
|
|
|
+ addBtnDisable:false,
|
|
|
pageLayout:config.pageLayout,
|
|
|
tips:'',
|
|
|
filter: {
|
|
@@ -217,7 +218,9 @@
|
|
|
this.warning("请输入任务名称");
|
|
|
return;
|
|
|
}
|
|
|
+ this.addBtnDisable=true;
|
|
|
api.addTask({missionName:this.taskName}).then((res)=>{
|
|
|
+ this.addBtnDisable=false;
|
|
|
if(res.data.code==="0"){
|
|
|
this.dialogTaskName = false;
|
|
|
this.toTaskList();
|