From 9e9435a15d12e364d0a910434de0568e11bb273c Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 03 八月 2023 17:08:05 +0800 Subject: [PATCH] 1、处理lastr","firstr","lastv","firstv"字段在数据创建时为整形问题。 2、处理属性分组设置了一个属性,且配置表单中不显示。那么页面的表单应该不显示此分组。 --- Source/UBCS-WEB/src/components/Master/MasterTree.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue index ce76a42..a127460 100644 --- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue +++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue @@ -81,15 +81,16 @@ const result = this.$route.query.id.substring(0, index); this.idData=result // console.log(this.$route) - console.log(this.idData) getTreeList({'conditionMap[id]':this.idData }).then(res=>{ - this.Treedata=res.data + this.Treedata=res.data; + const [firstProperty] = res.data; this.ModifyProperties(this.Treedata, 'text', 'label'); - this.codeClassifyOid=res.data[0].oid; - this.coderuleoid=res.data[0].attributes.coderuleoid; + this.codeClassifyOid=firstProperty.oid; + this.coderuleoid=firstProperty.attributes.coderuleoid; this.$emit("coderuleoid", this.coderuleoid ) + this.$emit('Treedata',this.Treedata) }).catch(res=>{ - console.log(res) + this.$message.error(res) }) }, @@ -116,7 +117,6 @@ this.tableDataArray=res.data.data; this.$emit('tableDataArray',this.tableDataArray) this.$emit('total',res.data.total) - console.log('table',this.tableDataArray) }) }, //琛ㄦ牸澶撮儴 @@ -137,7 +137,7 @@ } this.tableHeadDataFateher = res.data; this.templateOids = res.data.tableDefineVO.oid; - let List = res.data.tableDefineVO.cols[0]; + const [List] = res.data.tableDefineVO.cols; List.forEach(item => { let columnItem = { label: item.title, -- Gitblit v1.9.3