From 8e2eee3453163bbc9904dd8bc5bf97a8f6197f73 Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Wed, 21 Jun 2023 15:12:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89JS=E6=95=B0=E6=8D=AE=E9=9B=86=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=8F=8F=E8=BF=B0=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsDataSet/OutputFieldDialog.vue | 12 +- .../jsDataSet/index.vue | 235 +++++++++--------- 2 files changed, 128 insertions(+), 119 deletions(-) diff --git a/data-room-ui/example/customDatasetComponents/jsDataSet/OutputFieldDialog.vue b/data-room-ui/example/customDatasetComponents/jsDataSet/OutputFieldDialog.vue index 32ff5ec1..6aa6ee89 100644 --- a/data-room-ui/example/customDatasetComponents/jsDataSet/OutputFieldDialog.vue +++ b/data-room-ui/example/customDatasetComponents/jsDataSet/OutputFieldDialog.vue @@ -11,7 +11,7 @@ >
{ + this.insideFieldList.forEach(key => { this.fieldDesc[key.fieldName] = key.fieldDesc }) + this.$emit('setFieldList', this.insideFieldList) } else { this.fieldDesc = null } diff --git a/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue b/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue index 553445ff..6b78b881 100644 --- a/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue +++ b/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue @@ -200,7 +200,7 @@
{} + default: () => { } }, isEdit: { type: Boolean, @@ -448,8 +449,10 @@ export default { } }, watch: { - 'dataForm.config.script' () { - this.passTest = false + 'dataForm.config.script' (val) { + if (!val) { + this.passTest = false + } } }, mounted () { @@ -599,6 +602,7 @@ export default { }, // 脚本执行 scriptExecute (isInit = false) { + console.log(isInit) if (this.dataForm.config.script) { const javascript = this.dataForm.config.script let scriptMethod = null @@ -635,7 +639,7 @@ export default { }) } - if (this.outputFieldList.length && this.fieldDesc) { + if (this.outputFieldList.length && this.fieldDesc && !isInit) { this.buildFieldDesc() } // 如果有数据,就通过测试 @@ -701,151 +705,152 @@ export default { } - +.bs-table-box { + padding: 0; + height: 100% !important; + margin-bottom: 0 !important; +} + +.tree-box { + padding: 0; +} +