From 6bdab9522524888d8bbac172b557a4401e1bb1b7 Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Mon, 9 Oct 2023 17:44:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=84=E4=BB=B6=E5=BA=93=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BB=84=E4=BB=B6=E3=80=81=E4=B8=9A=E5=8A=A1=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=B7=BB=E5=8A=A0=E5=88=86=E7=BB=84=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/ComponentList/EditForm.vue | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/data-room-ui/packages/ComponentList/EditForm.vue b/data-room-ui/packages/ComponentList/EditForm.vue index 192c3d43..5671c8b9 100644 --- a/data-room-ui/packages/ComponentList/EditForm.vue +++ b/data-room-ui/packages/ComponentList/EditForm.vue @@ -89,6 +89,40 @@ class="bs-el-input-number" /> + +
+ + + +
+
+ + + +
+
{ + this.$dataRoomAxios.get('/bigScreen/type/list/bizComponentCatalog').then((resp) => { + this.catalogList = resp + }) if (code) { this.$dataRoomAxios.get(`/bigScreen/bizComponent/info/${code}`).then((resp) => { this.$set(this, 'title', resp.name) @@ -301,6 +340,7 @@ export default { this.$set(this.dataForm, 'orderNum', nodeData.orderNum) this.$set(this.dataForm, 'type', resp.type) this.$set(this.dataForm, 'id', resp.id) + this.$set(this.dataForm, 'parentCode', resp.parentCode) }) } else { this.$set(this.dataForm, 'name', '') @@ -308,6 +348,7 @@ export default { this.$set(this.dataForm, 'type', parentCode) this.$set(this.dataForm, 'orderNum', 0) this.$set(this.dataForm, 'id', '') + this.$set(this.dataForm, 'parentCode', parentCode) } }) }, @@ -316,6 +357,9 @@ export default { const code = nodeData ? nodeData.code : '' this.formVisible = true this.$nextTick(() => { + this.$dataRoomAxios.get('/bigScreen/type/list/componentCatalog').then((resp) => { + this.catalogList = resp + }) if (code) { this.$dataRoomAxios.get(`/bigScreen/design/info/code/${code}`).then((resp) => { this.$set(this, 'title', resp.name) @@ -332,6 +376,7 @@ export default { this.$set(this.dataForm, 'orderNum', nodeData.orderNum) this.$set(this.dataForm, 'pageTemplateId', resp?.pageTemplateId) this.$set(this.dataForm, 'pageConfig', resp?.pageConfig) + this.$set(this.dataForm, 'parentCode', resp?.parentCode) const { w, h } = resp.pageConfig this.resolutionRatio.w = w this.resolutionRatio.h = h