|
@@ -70,7 +70,7 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" class="text-center">
|
|
|
<el-button @click="formCancel">取 消</el-button>
|
|
|
- <el-button type="primary" @click="formSubmit('dialogForm')"
|
|
|
+ <el-button :disabled="isButton" type="primary" @click="formSubmit('dialogForm')"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
</div>
|
|
@@ -102,6 +102,7 @@ export default {
|
|
|
wdmc: [{ required: true, message: "请输入维度名称", trigger: "blur" }],
|
|
|
},
|
|
|
multipleSelection: [],
|
|
|
+ isButton: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -128,6 +129,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
addData() {
|
|
|
+ this.isButton = false;
|
|
|
this.title = "添加";
|
|
|
this.dialogForm = {
|
|
|
wdmc: "",
|
|
@@ -137,6 +139,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
editData(item) {
|
|
|
+ this.isButton = false;
|
|
|
this.title = "编辑信息";
|
|
|
this.isEdit = true;
|
|
|
this.dialogFormVisible = true;
|
|
@@ -147,6 +150,7 @@ export default {
|
|
|
formSubmit(formName) {
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ this.isButton = true;
|
|
|
let data = {
|
|
|
xdww_name: this.dialogForm.wdmc,
|
|
|
xdbs_jclx: "1",
|
|
@@ -158,6 +162,7 @@ export default {
|
|
|
message: "信息添加成功!",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ this.isButton = true;
|
|
|
this.dialogFormVisible = false;
|
|
|
this.getListData();
|
|
|
} else {
|
|
@@ -187,6 +192,9 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ else {
|
|
|
+ this.isButton = false
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
|