Browse Source

关联表单0.99

lwx_v8
liwenxuan 2 years ago
parent
commit
08a9ef01b2
  1. 19
      src/components/DesignForm/formControlAttr.vue
  2. 3
      src/widget/associatedforms/associatedFormsTinyace.vue

19
src/components/DesignForm/formControlAttr.vue

@ -2127,6 +2127,14 @@ watch(()=>store.activeKey, () => {
})
function addFillRole(){
controlData.value.control.fillRoles.push({
leftValue:'',
rightValue:'',
})
}
//liwenxuan20240403 associatedForms end
@ -3548,10 +3556,13 @@ const loadNextPage = () => {
<div style="margin-top: -10px;"><span style="color: grey;">当选择具体数据后将按如下规则给当前表单字段填充数据 </span></div>
<el-button style="font-size: large;margin-top: 3px;" type="primary" link append-to-body="true" modal="true" @click="addFillRole"> 添加规则</el-button>
<el-divider />
<div style="height:300px;border:1px solid white">
<template v-for="(item, index) in controlData.control.fillRoles" :key="index">
<AssociatedFormsFillRole v-model:left-value="controlData.control.fillRoles[index].leftValue" v-model:right-value="controlData.control.fillRoles[index].rightValue" :left-tree-source = "asfasfFieldTree[0].children" :right-tree-source = "associatedFormsCurrentFormFieldTree[0].children" ></AssociatedFormsFillRole>
</template>
<div style="height:300px;border:1px solid red;overflow-y:auto">
<template v-for="(item, index) in controlData.control.fillRoles" :key="index">
<AssociatedFormsFillRole v-model:left-value="controlData.control.fillRoles[index].leftValue" v-model:right-value="controlData.control.fillRoles[index].rightValue" :left-tree-source = "asfasfFieldTree[0].children" :right-tree-source = "associatedFormsCurrentFormFieldTree[0].children" ></AssociatedFormsFillRole>
</template>
</div>
</template>
<template #footer>

3
src/widget/associatedforms/associatedFormsTinyace.vue

@ -79,6 +79,9 @@ const tinymceReInit = ()=>{
let str:string = props.aftTextCopy
}
const focusEditor = ()=>{
console.log("1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111")
console.log("111111111111111111111111"+onlyNumber)
console.log(document.getElementById(onlyNumber))
document.getElementById(onlyNumber)?.focus()
}

Loading…
Cancel
Save