Commit 7d0d5f3c authored by “yiyousong”'s avatar “yiyousong”

perf: 修改帮办代办

parent 8080d959
......@@ -4,7 +4,7 @@
"homepage": "https://iczer.github.io/vue-antd-admin",
"private": true,
"scripts": {
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --mode production",
"beta": "vue-cli-service build --mode beta",
"test": "vue-cli-service build --mode test",
......
......@@ -9,7 +9,6 @@
<a-form-model
ref="form"
:model="form"
:rules="rules"
:label-col="{ span: 3 }"
:wrapper-col="{ span: 21 }"
>
......@@ -120,8 +119,8 @@ export default {
this.Visible = false;
},
// 保存
handleOk() {
this.$refs.form.validate(async (valid) => {
async handleOk() {
let valid = this.verifyField();
if (valid) {
let res;
if (this.type == 1) {
......@@ -140,13 +139,18 @@ export default {
this.$message.success("添加成功");
this.handleClose();
}
} else {
this.$message.warning("请完善表单");
}
});
},
// 重置
handleReset() {
this.$refs.form.resetFields();
},
// 校验
verifyField() {
return this.form.agentName && this.form.agentPhone && this.form.agentPost;
},
},
};
</script>
......
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