From 2b8e2a944d9763fabe246ec68b43bd1248e30e69 Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Fri, 30 Apr 2021 21:26:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=81=E7=A8=8B=E8=A1=A8=E5=8D=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95=E6=97=A0=E6=B3=95=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/tool/build/index.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/tool/build/index.vue b/ruoyi-ui/src/views/tool/build/index.vue index 07914bc..759797a 100644 --- a/ruoyi-ui/src/views/tool/build/index.vue +++ b/ruoyi-ui/src/views/tool/build/index.vue @@ -267,26 +267,27 @@ export default { }, mounted() { + const that = this; if (Array.isArray(drawingListInDB) && drawingListInDB.length > 0) { - this.drawingList = drawingListInDB + that.drawingList = drawingListInDB } else { - this.drawingList = drawingDefalut + that.drawingList = drawingDefalut } - this.activeFormItem(this.drawingList[0]) + this.activeFormItem(that.drawingList[0]) // // if (formConfInDB) { // // this.formConf = formConfInDB // // } - this.drawingList = []; - const formId = this.$route.query && this.$route.query.formId; + that.drawingList = []; + const formId = that.$route.query && that.$route.query.formId; if (formId) { getForm(formId).then(res =>{ - this.formConf = JSON.parse(res.data.formContent); - // this.drawingList = this.formConf.fields; - this.form = res.data; + that.formConf = JSON.parse(res.data.formContent); + that.drawingList = that.formConf.fields; + that.form = res.data; }) }else { if (formConfInDB) { - this.formConf = formConfInDB + that.formConf = formConfInDB } } loadBeautifier(btf => {