From c4a2854e1ba133429ec9acb3e51db435503ddc74 Mon Sep 17 00:00:00 2001 From: 648540858 <456panlinlin> Date: 星期四, 28 四月 2022 17:58:47 +0800 Subject: [PATCH] 修复添加/修改节点页面的BUG --- web_src/src/components/dialog/catalogEdit.vue | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/web_src/src/components/dialog/catalogEdit.vue b/web_src/src/components/dialog/catalogEdit.vue index 93d8f8d..13cabfb 100644 --- a/web_src/src/components/dialog/catalogEdit.vue +++ b/web_src/src/components/dialog/catalogEdit.vue @@ -12,24 +12,21 @@ > <div id="shared" style="margin-top: 1rem;margin-right: 100px;"> <el-form ref="form" :rules="rules" :model="form" label-width="140px" > +<!-- <el-form-item >--> +<!-- 寤鸿鐨勭被鍨嬶細--> +<!-- <br/>--> +<!--   琛屾斂鍖哄垝锛堝彲閫�2浣�/4浣�/6浣�/8浣�/10浣嶆暟瀛楋紝渚嬪锛�130432锛岃〃绀烘渤鍖楃渷閭兏甯傚箍骞冲幙锛�--> +<!-- <br/>--> +<!--   涓氬姟鍒嗙粍锛堢11銆�12銆�13浣�215锛屼緥濡傦細34020000002150000001锛�--> +<!-- <br/>--> +<!--   铏氭嫙缁勭粐锛堢11銆�12銆�13浣�216锛屼緥濡傦細34020000002160000001锛�--> +<!-- </el-form-item>--> <el-form-item label="鑺傜偣缂栧彿" prop="id" > - <el-tooltip class="item" effect="dark" content="" placement="top-start"> - <div slot="content"> - 寤鸿鐨勭被鍨嬶細 - <br/> -   琛屾斂鍖哄垝锛堝彲閫�2浣�/4浣�/6浣�/8浣�/10浣嶆暟瀛楋紝渚嬪锛�130432锛岃〃绀烘渤鍖楃渷閭兏甯傚箍骞冲幙锛� - <br/> -   涓氬姟鍒嗙粍锛堢11銆�12銆�13浣�215锛屼緥濡傦細34020000002150000001锛� - <br/> -   铏氭嫙缁勭粐锛堢11銆�12銆�13浣�216锛屼緥濡傦細34020000002160000001锛� - </div> - <el-input v-model="form.id" :disabled="isEdit"></el-input> - </el-tooltip> + <el-input v-model="form.id" :disabled="isEdit" clearable></el-input> </el-form-item> <el-form-item label="鑺傜偣鍚嶇О" prop="name"> <el-input v-model="form.name" clearable></el-input> </el-form-item> - <el-form-item> <div style="float: right;"> @@ -65,13 +62,14 @@ }, rules: { name: [{ required: true, message: "璇疯緭鍏ュ悕绉�", trigger: "blur" }], - id: [{ required: true, message: "璇疯緭鍏d", trigger: "blur" }] + id: [{ required: true, message: "璇疯緭鍏D", trigger: "blur" }] }, }; }, methods: { openDialog: function (isEdit, id, name, parentId, callback) { console.log("parentId: " + parentId) + console.log(this.form) this.isEdit = isEdit; this.form.id = id; this.form.name = name; @@ -105,8 +103,14 @@ }); }, close: function () { + this.isEdit = false; + this.form.id = null; + this.form.name = null; + this.form.platformId = null; + this.form.parentId = null; + this.callback = null; this.showDialog = false; - this.$refs.form.resetFields(); + console.log(this.form) }, }, }; -- Gitblit v1.8.0