From ece4a3fe2056c13c421fb43df60912fda4167c94 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 19 Jun 2024 08:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E9=A1=B9=E5=88=B6=E5=BA=A6=E5=BA=93?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BDbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lawsRegulations/components/editTextLibrary.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue b/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue index 0d047ad..757be5c 100644 --- a/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue +++ b/src/views/threeSystems/lawsRegulations/components/editTextLibrary.vue @@ -199,6 +199,8 @@ export default { { BUS_TEXT_LIBRARY_ID: this.e.BUS_TEXT_LIBRARY_ID } ).then((data) => { this.loading = false + if (!data.data.labels || data.data.labels.length === 0) data.data.labels = [''] + data.data.TYPE_INFO = data.data.TYPE this.form = data.data this.form.FILE = [] this.form.types = [] @@ -208,10 +210,7 @@ export default { if (!this.form.TYPES || this.form.TYPES.length === 0) this.form.TYPES = [''] if (!this.form.SPECIFICATION_TYPES || this.form.SPECIFICATION_TYPES.length === 0) this.form.SPECIFICATION_TYPES = [''] if (!this.form.CATEGORY_LIST || this.form.CATEGORY_LIST.length === 0) this.form.CATEGORY_LIST = [''] - if (!this.form.labels || this.form.labels.length === 0) this.form.labels = [''] this.remoteControl.keyOne = !(this.form.CATEGORY_LIST[0].CATEGORY_ID === '8051d985a2bc406a83ea9360b64182b2') - this.form.TYPE_INFO = this.form.TYPE - this.$set(this.form, 'TYPE_INFO', this.form.TYPE) }).catch((e) => { this.$message.error(e) this.loading = false