|
@@ -41,8 +41,8 @@ export default defineComponent({
|
|
|
})
|
|
|
watch(() => props.modelValue, () => {
|
|
|
state.nodeConfig = props.modelValue
|
|
|
- },
|
|
|
- {immediate: true})
|
|
|
+ }/*,
|
|
|
+ {immediate: true}*/)
|
|
|
watch(processForm, (val) => {
|
|
|
// console.error(val, 'processForm change...', typeof val)
|
|
|
const { formStructure } = JSON.parse(val) // 表单设计字段
|
|
@@ -221,7 +221,7 @@ export default defineComponent({
|
|
|
<div class="branch-box">
|
|
|
<el-button class="add-branch" type="success" plain round onClick={addTerm}> 添加条件</el-button>
|
|
|
{
|
|
|
- state.nodeConfig.conditionNodes.map((item, index) => {
|
|
|
+ (state.nodeConfig.conditionNodes || []).map((item, index) => {
|
|
|
// const xx
|
|
|
const contentTxt = toText(state.nodeConfig, index) // todo...
|
|
|
const contentHtml = contentTxt ? <el-tooltip effect="dark" placement="top" v-slots={{content: () => <div v-html={contentTxt}/>}}>
|