|
@@ -91,7 +91,10 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" class="text-center">
|
|
|
<el-button @click="formCancel">取 消</el-button>
|
|
|
- <el-button type="primary" @click="formSubmit('dialogForm')"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :disabled="isButton"
|
|
|
+ @click="formSubmit('dialogForm')"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
</div>
|
|
@@ -134,6 +137,7 @@ export default {
|
|
|
"/xddy/dygl_xsczda_hzlx/import?issubmit=1&token=" +
|
|
|
token,
|
|
|
import_type_data: {},
|
|
|
+ isButton: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -158,6 +162,7 @@ export default {
|
|
|
},
|
|
|
addData() {
|
|
|
this.title = "添加";
|
|
|
+ this.isButton = false;
|
|
|
this.dialogForm = {
|
|
|
hzlx: "",
|
|
|
jf: "",
|
|
@@ -219,6 +224,7 @@ export default {
|
|
|
editData(item) {
|
|
|
this.title = "编辑类型";
|
|
|
this.isEdit = true;
|
|
|
+ this.isButton = false;
|
|
|
this.dialogFormVisible = true;
|
|
|
this.id = item.xdxh_id;
|
|
|
this.dialogForm.hzlx = item.xdxh_lxmc;
|
|
@@ -229,6 +235,7 @@ export default {
|
|
|
formSubmit(formName) {
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ this.isButton = true;
|
|
|
let data = {
|
|
|
xdxh_lxmc: this.dialogForm.hzlx,
|
|
|
xdxh_jf: this.dialogForm.jf,
|
|
@@ -241,6 +248,7 @@ export default {
|
|
|
message: "类型添加成功!",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ this.isButton = true;
|
|
|
this.dialogFormVisible = false;
|
|
|
this.getListData();
|
|
|
} else {
|
|
@@ -269,6 +277,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.isButton = false;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -286,7 +296,6 @@ export default {
|
|
|
this.multipleSelection.join(",");
|
|
|
window.open(link, "_blank");
|
|
|
console.log(link);
|
|
|
-
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|