|
|
|
@ -338,6 +338,7 @@
|
|
|
|
|
<OutputFieldDialog
|
|
|
|
|
ref="outputFieldDialog"
|
|
|
|
|
:output-field-list="outputFieldList"
|
|
|
|
|
@setFieldList="(list) => { outputFieldList = list }"
|
|
|
|
|
/>
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
<FieldFillDialog
|
|
|
|
@ -448,9 +449,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'dataForm.config.script' () {
|
|
|
|
|
'dataForm.config.script' (val) {
|
|
|
|
|
if (!val) {
|
|
|
|
|
this.passTest = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted () {
|
|
|
|
|
this.init()
|
|
|
|
@ -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()
|
|
|
|
|
}
|
|
|
|
|
// 如果有数据,就通过测试
|
|
|
|
@ -845,6 +849,7 @@ export default {
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tree-box {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|