From 5d610e2ba0012f0f7e2e2d94ce1941241368b213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E6=98=8E=E6=85=A7?= <1191093413@qq.com> Date: Mon, 26 Feb 2024 14:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A9=E5=B1=95=E5=B1=9E=E6=80=A7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/companyservice/companyservice_prop/list.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jianshui-ui/src/views/system/companyservice/companyservice_prop/list.vue b/jianshui-ui/src/views/system/companyservice/companyservice_prop/list.vue index aaa4c01..d7a07df 100644 --- a/jianshui-ui/src/views/system/companyservice/companyservice_prop/list.vue +++ b/jianshui-ui/src/views/system/companyservice/companyservice_prop/list.vue @@ -157,6 +157,8 @@ export default { title: '', // 是否显示弹出层 open: false, + //修改标识 + updateFlag: false, // 查询参数 queryParams: { pageNum: 1, @@ -230,6 +232,7 @@ export default { handleAdd() { this.reset() this.open = true + this.updateFlag = false this.title = '添加企业扩展属性,包括大象key等' }, /** 修改按钮操作 */ @@ -237,6 +240,7 @@ export default { this.reset() this.form = row this.open = true + this.updateFlag = true this.title = '修改企业扩展属性,包括大象key等' // const companyid = row.companyid // const key = row.key @@ -251,7 +255,7 @@ export default { this.$refs['form'].validate(valid => { this.form.companyid = this.companyId if (valid) { - if (this.form.key != null) { + if (this.updateFlag) { updateProp(this.form).then(response => { this.$modal.msgSuccess('修改成功') this.open = false