|
|
|
@ -1267,40 +1267,18 @@ const getPropByPath = (obj: any, path: string, val: any) => { |
|
|
|
}; |
|
|
|
// 属性设置相关结束 |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
|
|
|
|
|
|
//关联表单数据填充时无法获取当前表单新增且保存的字段,只有关闭重启后方能获取----bug修改 |
|
|
|
//穿梭框编辑固定选项时,修改的节点无法立即预览到,需保存后退出重进才能预览到修改后的----bug修改 |
|
|
|
|
|
|
|
const showAssociatedFormsFillRole = ref(true) |
|
|
|
//关联表单数据填充时无法获取当前表单新增且保存的字段,只有关闭重启后方能获取----bug修改 |
|
|
|
//穿梭框编辑固定选项时,修改的节点无法立即预览到,需保存后退出重进才能预览到修改后的----bug修改 |
|
|
|
|
|
|
|
const saveRefreshFormControlAttr = () => { |
|
|
|
getAssociatedFormsCurrentFieldTree1() |
|
|
|
showAssociatedFormsFillRole.value = false; |
|
|
|
// 等待一个短时间的延迟,确保组件卸载完成 |
|
|
|
setTimeout(() => { |
|
|
|
showAssociatedFormsFillRole.value = true; |
|
|
|
}, 200); |
|
|
|
}; |
|
|
|
======= |
|
|
|
const showAssociatedFormsFillRole = ref(true); |
|
|
|
|
|
|
|
//关联表单数据填充时无法获取当前表单新增且保存的字段,只有关闭重启后方能获取----bug修改 |
|
|
|
const saveRefreshFormControlAttr = () => { |
|
|
|
//啊啊啊 |
|
|
|
|
|
|
|
//setTimeout(() => { |
|
|
|
>>>>>>> qin_v6 |
|
|
|
|
|
|
|
getAssociatedFormsCurrentFieldTree1(); |
|
|
|
|
|
|
|
showAssociatedFormsFillRole.value = false; |
|
|
|
// 等待一个短时间的延迟,确保组件卸载完成 |
|
|
|
setTimeout(() => { |
|
|
|
showAssociatedFormsFillRole.value = true; |
|
|
|
}, 200); |
|
|
|
//}, 13000); |
|
|
|
}; |
|
|
|
|
|
|
|
// 多选固定选项删除 |
|
|
|
@ -1691,8 +1669,6 @@ const isNotWriteWord = (val: any) => { |
|
|
|
// if(props.formField.includes(val.value)){ |
|
|
|
return true; |
|
|
|
// } |
|
|
|
} else if (val.label == "字段标识") { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
}; |
|
|
|
@ -2603,79 +2579,6 @@ function associatedFormsHideDialoghandle() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
|
|
|
|
|
|
function associatedFormsDataRangeDialoghandle(){ |
|
|
|
|
|
|
|
getAsfasfFieldTree().then(({ data }) => { |
|
|
|
|
|
|
|
if(data.id==="cfid为空"){ |
|
|
|
//alert("cfid为空") |
|
|
|
}else{ |
|
|
|
let resData = ref(data.children) |
|
|
|
let dataExceptChild = JSON.parse(JSON.stringify(data.children)) |
|
|
|
let dataOnlyChild = JSON.parse(JSON.stringify(data.children)) |
|
|
|
let dataOnlyChild1 = JSON.parse(JSON.stringify(data.children)) |
|
|
|
dataExceptChild = dataExceptChild.filter((obj: { type: string }) => obj.type!== 'table'); |
|
|
|
//console.log(dataExceptChild) |
|
|
|
dataExceptChild = removeFirstNumElements(dataExceptChild,8); |
|
|
|
dataOnlyChild = dataOnlyChild.filter((obj: { type: string }) => obj.type== 'table'); |
|
|
|
dataOnlyChild1 = dataOnlyChild1.filter((obj: { type: string }) => obj.type== 'table'); |
|
|
|
//console.log(dataOnlyChild1) |
|
|
|
dataOnlyChild1.forEach((element: any) => { |
|
|
|
element.children = removeFirstNumElements(element.children,6); |
|
|
|
}); |
|
|
|
/* console.log(dataOnlyChild1) |
|
|
|
console.log(dataOnlyChild) */ |
|
|
|
for(let m = 0;m<dataOnlyChild.length;m++){ |
|
|
|
dataOnlyChild[m].children = [] |
|
|
|
} |
|
|
|
let resDataExceptChild = ref(dataExceptChild) |
|
|
|
let resDataOnlyChild = ref(dataOnlyChild) |
|
|
|
let resDataOnlyChild1 = ref(dataOnlyChild1) |
|
|
|
//console.log(resDataOnlyChild1.value) |
|
|
|
//console.log(asfasfChildTableList.value) |
|
|
|
//console.log(resDataOnlyChild.value) |
|
|
|
let childTableCount = 0 |
|
|
|
for(let n = 0;n<resDataOnlyChild.value.length;n++){ |
|
|
|
//console.log(resDataOnlyChild.value[n]) |
|
|
|
resDataOnlyChild.value[n].disabled=false |
|
|
|
childTableCount = n; |
|
|
|
} |
|
|
|
//console.log(childTableCount) |
|
|
|
currentChildTableCount = childTableCount |
|
|
|
asfasfFieldTree.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
label: '关联的表单-'+data.label, |
|
|
|
children: [...resData.value], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
disabled:true, |
|
|
|
}] |
|
|
|
asfasfMasterFieldTree.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
label: '关联的表单-'+data.label, |
|
|
|
children: [...resDataExceptChild.value], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
disabled:true, |
|
|
|
}] |
|
|
|
asfasfChildTableList.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
label: '关联的表单-'+data.label, |
|
|
|
children: [...resDataOnlyChild.value], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
disabled:true, |
|
|
|
}] |
|
|
|
asfasfChildTableFields.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
label: '关联的表单-'+data.label, |
|
|
|
children: [...resDataOnlyChild1.value], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
disabled:true, |
|
|
|
}] |
|
|
|
} |
|
|
|
}); |
|
|
|
======= |
|
|
|
function associatedFormsDataRangeDialoghandle() { |
|
|
|
getAsfasfFieldTree().then(({ data }) => { |
|
|
|
if (data.id === "cfid为空") { |
|
|
|
@ -2688,7 +2591,7 @@ function associatedFormsDataRangeDialoghandle() { |
|
|
|
dataExceptChild = dataExceptChild.filter( |
|
|
|
(obj: { type: string }) => obj.type !== "table" |
|
|
|
); |
|
|
|
console.log(dataExceptChild); |
|
|
|
//console.log(dataExceptChild) |
|
|
|
dataExceptChild = removeFirstNumElements(dataExceptChild, 8); |
|
|
|
dataOnlyChild = dataOnlyChild.filter( |
|
|
|
(obj: { type: string }) => obj.type == "table" |
|
|
|
@ -2696,7 +2599,7 @@ function associatedFormsDataRangeDialoghandle() { |
|
|
|
dataOnlyChild1 = dataOnlyChild1.filter( |
|
|
|
(obj: { type: string }) => obj.type == "table" |
|
|
|
); |
|
|
|
console.log(dataOnlyChild1); |
|
|
|
//console.log(dataOnlyChild1) |
|
|
|
dataOnlyChild1.forEach((element: any) => { |
|
|
|
element.children = removeFirstNumElements(element.children, 6); |
|
|
|
}); |
|
|
|
@ -2708,16 +2611,16 @@ function associatedFormsDataRangeDialoghandle() { |
|
|
|
let resDataExceptChild = ref(dataExceptChild); |
|
|
|
let resDataOnlyChild = ref(dataOnlyChild); |
|
|
|
let resDataOnlyChild1 = ref(dataOnlyChild1); |
|
|
|
console.log(resDataOnlyChild1.value); |
|
|
|
//console.log(resDataOnlyChild1.value) |
|
|
|
//console.log(asfasfChildTableList.value) |
|
|
|
//console.log(resDataOnlyChild.value) |
|
|
|
let childTableCount = 0; |
|
|
|
for (let n = 0; n < resDataOnlyChild.value.length; n++) { |
|
|
|
console.log(resDataOnlyChild.value[n]); |
|
|
|
//console.log(resDataOnlyChild.value[n]) |
|
|
|
resDataOnlyChild.value[n].disabled = false; |
|
|
|
childTableCount = n; |
|
|
|
} |
|
|
|
console.log(childTableCount); |
|
|
|
//console.log(childTableCount) |
|
|
|
currentChildTableCount = childTableCount; |
|
|
|
asfasfFieldTree.value = [ |
|
|
|
{ |
|
|
|
@ -2757,7 +2660,6 @@ function associatedFormsDataRangeDialoghandle() { |
|
|
|
]; |
|
|
|
} |
|
|
|
}); |
|
|
|
>>>>>>> qin_v6 |
|
|
|
|
|
|
|
associatedFormsDataRangeDialogFlag.value = true; |
|
|
|
controlData.value.control.dataRangeConditionHtmlCopy = |
|
|
|
@ -3261,7 +3163,6 @@ const activeFormName = ref("0"); |
|
|
|
@ 功能: 判断是否是组件 |
|
|
|
*/ |
|
|
|
const cssIsShouw = (val: any) => { |
|
|
|
console.log("判断是否是组件", val); |
|
|
|
if (val.length && val.length > 0) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
@ -4617,30 +4518,6 @@ const radioChangeSet = (val: any) => { |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="associatedFormsChooseDialogFlag" class="glxxsztc" top="150px" :close-on-click-modal="false" title="选择关联表单" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
<template v-if="controlData.type=='associatedForms'"> |
|
|
|
<div style="display:flex;margin-bottom: 2px;margin-top:28px"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">请选择表单</span> |
|
|
|
<el-tree-select |
|
|
|
v-model="controlData.control.formid" |
|
|
|
style="width: 390px;" |
|
|
|
:data="customerFormTree[0].children" |
|
|
|
check-strictly |
|
|
|
:render-after-expand="false" |
|
|
|
filterable |
|
|
|
node-key="id" |
|
|
|
@change="formidChanged" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="handleDetermineAssociatedFormsChooseDialog"> |
|
|
|
确定 |
|
|
|
======= |
|
|
|
<el-divider content-position="left">表单整体布局</el-divider> |
|
|
|
<el-form-item label="组件尺寸" class="form_cont"> |
|
|
|
<el-radio-group v-model="formData.size"> |
|
|
|
@ -4729,7 +4606,6 @@ const radioChangeSet = (val: any) => { |
|
|
|
<QuestionFilled /> |
|
|
|
</el-icon> |
|
|
|
</el-tooltip> |
|
|
|
>>>>>>> qin_v6 |
|
|
|
</el-button> |
|
|
|
<el-button @click="editFormDict(state.tooltip.dict)"> |
|
|
|
设置数据字典 |
|
|
|
@ -5015,6 +4891,7 @@ const radioChangeSet = (val: any) => { |
|
|
|
check-strictly |
|
|
|
:render-after-expand="false" |
|
|
|
filterable |
|
|
|
node-key="id" |
|
|
|
@change="formidChanged" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
@ -5320,7 +5197,7 @@ const radioChangeSet = (val: any) => { |
|
|
|
:close-on-click-modal="false" |
|
|
|
:show-close="false" |
|
|
|
style="margin-top: 70px; min-height: 300px; max-height: 900px" |
|
|
|
width="50%" |
|
|
|
width="60%" |
|
|
|
> |
|
|
|
<template v-if="controlData.type == 'associatedForms'"> |
|
|
|
<el-button |
|
|
|
@ -5361,299 +5238,6 @@ const radioChangeSet = (val: any) => { |
|
|
|
</AssociatedFormsFillRole> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
<<<<<<< HEAD |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="associatedFormsHideDialogFlag" title="隐藏条件" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 500px" width="50%" > |
|
|
|
|
|
|
|
<template v-if="controlData.type=='associatedForms'"> |
|
|
|
<div class="common-layout"> |
|
|
|
<el-container> |
|
|
|
<el-aside width="300px" style="height:420px;border: 1px solid gainsboro;margin-right: 5px;"> |
|
|
|
<!-- <el-input |
|
|
|
v-show="fieldTreeSearchFlag" |
|
|
|
v-model="fieldTreeFilterText" |
|
|
|
style="width:98%;margin: 3px;" |
|
|
|
placeholder="搜索字段" |
|
|
|
class="filter-tree" |
|
|
|
/> --> |
|
|
|
<el-tree |
|
|
|
ref="fieldTreeRef" |
|
|
|
node-key="id" |
|
|
|
empty-text="请先保存当前表单" |
|
|
|
:data="associatedFormsCurrentFormFieldTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
@node-expand="handleFieldTreeExpand" |
|
|
|
@node-collapse="handleFieldTreeCollapse" |
|
|
|
|
|
|
|
@node-contextmenu="handleFieldTreeContextmenu" |
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
|
<!-- <el-input |
|
|
|
v-show="orgTreeSearchFlag" |
|
|
|
v-model="orgTreeFilterText" |
|
|
|
style="width:98%;margin: 3px;" |
|
|
|
placeholder="搜索字段" |
|
|
|
class="filter-tree" |
|
|
|
/> --> |
|
|
|
<el-tree |
|
|
|
ref="orgTreeRef" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
:data="orgAndManTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
@node-expand="handleOrgTreeExpand" |
|
|
|
@node-collapse="handleOrgTreeCollapse" |
|
|
|
|
|
|
|
@node-contextmenu="handleOrgTreeContextmenu" |
|
|
|
/> |
|
|
|
<!-- <el-input |
|
|
|
v-show="roleTreeSearchFlag" |
|
|
|
v-model="roleTreeFilterText" |
|
|
|
style="width:98%;margin: 3px;" |
|
|
|
placeholder="搜索字段" |
|
|
|
class="filter-tree" |
|
|
|
/> --> |
|
|
|
<el-tree |
|
|
|
ref="roleTreeRef" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
:data="roleTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
@node-expand="handleRoleTreeExpand" |
|
|
|
@node-collapse="handleRoleTreeCollapse" |
|
|
|
|
|
|
|
@node-contextmenu="handleRoleTreeContextmenu" |
|
|
|
/> |
|
|
|
</el-aside> |
|
|
|
<el-main style="border: 1px solid gainsboro; padding: 3px;" class="associatedFormsHideDialogMain"> |
|
|
|
<div style="border: 1px solid gainsboro; height: 7%; border-bottom: 0px; padding-top: 3px; padding-left: 5px; background-color: #E6F3FE;">当满足以下条件时此控件隐藏</div> |
|
|
|
<div id="associatedFormsHideEditArea" style="border: 1px solid gainsboro; height: 38%; border-bottom: 0px;"> |
|
|
|
<AssociatedFormsTinyace ref="aft" :aft-text="controlData.control.hideConditionHtml" :aft-text-copy = "controlData.control.hideConditionHtmlCopy" @text-change = "aftTextChanged" @gongshi-change = "aftGongshiChanged"></AssociatedFormsTinyace> |
|
|
|
<!-- <div style="border: 1px solid #4189EF;width:90px;height:26px;border-radius: 3px;padding:2px;text-align: center;cursor:pointer;float: right;margin-top: -32px;margin-right: 5px;z-index:99999999;position: relative;"> |
|
|
|
<span style="color: #4189EF;font:6px;margin-right: 5px;">fx</span>插入函数 |
|
|
|
</div> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div style="border: 1px solid gainsboro; height: 55%; padding-top: 20px;"> |
|
|
|
<ul> |
|
|
|
<li>请从左侧面板<span style="color: red">右击</span>选择字段或选项</li> |
|
|
|
<li>支持的符号:<span style="color: red">'==', '>=', '>', '<=', '<', '!='</span></li> |
|
|
|
<li>支持<span style="color: red">"包含,不包含,当前用户"</span>关键字,用于组织机构条件和角色条件</li> |
|
|
|
<li>参考举例:</li> |
|
|
|
<span style="margin-left: 14px;">年龄>10</span><br> |
|
|
|
<span style="margin-left: 14px;">企管部包含当前用户</span><br> |
|
|
|
<span style="margin-left: 14px;">绩效考核执行人包含当前用户</span><br> |
|
|
|
<span style="margin-left: 14px;">张三!=当前用户</span> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</el-main> |
|
|
|
</el-container> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button @click="asfhTextCancel">取消</el-button> |
|
|
|
<el-button type="primary" @click="handleDetermine"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 数据范围编辑弹窗 --> |
|
|
|
|
|
|
|
<el-dialog v-model="associatedFormsDataRangeDialogFlag" title="数据范围" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 500px" width="50%" > |
|
|
|
|
|
|
|
<template v-if="controlData.type=='associatedForms'"> |
|
|
|
<div class="common-layout"> |
|
|
|
<el-container> |
|
|
|
<el-aside width="300px" style="height:420px;border: 1px solid gainsboro;margin-right: 5px;"> |
|
|
|
|
|
|
|
|
|
|
|
<el-tree |
|
|
|
ref="fieldTreeRef" |
|
|
|
node-key="id" |
|
|
|
empty-text="选择关联的表单后展示" |
|
|
|
:data="asfasfFieldTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
@node-expand="handleFieldTreeExpand" |
|
|
|
@node-collapse="handleFieldTreeCollapse" |
|
|
|
@node-contextmenu="handleFieldTreeContextmenuRange" |
|
|
|
/> |
|
|
|
<!-- <el-input |
|
|
|
v-show="fieldTreeSearchFlag" |
|
|
|
v-model="fieldTreeFilterText" |
|
|
|
style="width:98%;margin: 3px;" |
|
|
|
placeholder="搜索字段" |
|
|
|
class="filter-tree" |
|
|
|
/> --> |
|
|
|
<el-tree |
|
|
|
ref="fieldTreeRef" |
|
|
|
node-key="id" |
|
|
|
empty-text="请先保存当前表单" |
|
|
|
:data="associatedFormsCurrentFormFieldTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
@node-expand="handleFieldTreeExpand" |
|
|
|
@node-collapse="handleFieldTreeCollapse" |
|
|
|
@node-contextmenu="handleFieldTreeContextmenuRange" |
|
|
|
/> |
|
|
|
<!-- <el-input |
|
|
|
v-show="orgTreeSearchFlag" |
|
|
|
v-model="orgTreeFilterText" |
|
|
|
style="width:98%;margin: 3px;" |
|
|
|
placeholder="搜索字段" |
|
|
|
class="filter-tree" |
|
|
|
/> --> |
|
|
|
<el-tree |
|
|
|
ref="orgTreeRef" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
:data="orgAndManTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
@node-expand="handleOrgTreeExpand" |
|
|
|
@node-collapse="handleOrgTreeCollapse" |
|
|
|
|
|
|
|
@node-contextmenu="handleOrgTreeContextmenuRange" |
|
|
|
/> |
|
|
|
<!-- <el-input |
|
|
|
v-show="roleTreeSearchFlag" |
|
|
|
v-model="roleTreeFilterText" |
|
|
|
style="width:98%;margin: 3px;" |
|
|
|
placeholder="搜索字段" |
|
|
|
class="filter-tree" |
|
|
|
/> --> |
|
|
|
<el-tree |
|
|
|
ref="roleTreeRef" |
|
|
|
style="max-width: 600px; border: 1px solid gainsboro; margin: 3px;" |
|
|
|
:data="roleTree" |
|
|
|
:props="treeDefaultProps" |
|
|
|
:filter-node-method="filterNode" |
|
|
|
@node-expand="handleRoleTreeExpand" |
|
|
|
@node-collapse="handleRoleTreeCollapse" |
|
|
|
|
|
|
|
@node-contextmenu="handleRoleTreeContextmenuRange" |
|
|
|
/> |
|
|
|
</el-aside> |
|
|
|
<el-main style="border: 1px solid gainsboro; padding: 3px;" class="associatedFormsHideDialogMain"> |
|
|
|
<div style="border: 1px solid gainsboro; height: 7%; border-bottom: 0px; padding-top: 3px; padding-left: 5px; background-color: #E6F3FE;">仅可选择符合以下条件的数据</div> |
|
|
|
<div id="associatedFormsHideEditArea" style="border: 1px solid gainsboro; height: 38%; border-bottom: 0px;"> |
|
|
|
<AssociatedFormsTinyaceRange ref="aftRange" :aft-text="controlData.control.dataRangeConditionHtml" :aft-text-copy = "controlData.control.dataRangeConditionHtmlCopy" @text-change = "aftTextChangedRange" @gongshi-change = "aftGongshiChangedRange"></AssociatedFormsTinyaceRange> |
|
|
|
<!-- <div style="border: 1px solid #4189EF;width:90px;height:26px;border-radius: 3px;padding:2px;text-align: center;cursor:pointer;float: right;margin-top: -32px;margin-right: 5px;z-index:99999999;position: relative;"> |
|
|
|
<span style="color: #4189EF;font:6px;margin-right: 5px;">fx</span>插入函数 |
|
|
|
</div> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div style="border: 1px solid gainsboro; height: 55%; padding-top: 20px;"> |
|
|
|
<ul> |
|
|
|
<li>请从左侧面板<span style="color: red">右击</span>选择字段或选项</li> |
|
|
|
<li>支持的符号:<span style="color: red">'==', '>=', '>', '<=', '<', '!='</span></li> |
|
|
|
<li>支持<span style="color: red">"包含,不包含,数据拥有者,数据所属部门"</span>关键字,用于组织机构条件,角色条件,==运算符和!=运算符</li> |
|
|
|
<li>参考举例:</li> |
|
|
|
<span style="margin-left: 14px;">年龄>10</span><br> |
|
|
|
<span style="margin-left: 14px;">企管部==数据所属部门</span><br> |
|
|
|
<span style="margin-left: 14px;">绩效考核执行人包含数据拥有者</span><br> |
|
|
|
<span style="margin-left: 14px;">生产部包含数据所属部门</span> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</el-main> |
|
|
|
</el-container> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button @click="asfhTextCancelRange">取消</el-button> |
|
|
|
<el-button type="primary" @click="handleDetermineRange"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 数据填充规则弹窗 --> |
|
|
|
<el-dialog v-model="associatedFormsFillRolesDialogFlag" title="数据填充规则" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 300px;max-height:900px" width="60%" > |
|
|
|
<template v-if="controlData.type=='associatedForms'"> |
|
|
|
<el-button style="font-size: large;margin-top: 10px;margin-bottom: 15px;" type="primary" link append-to-body="true" modal="true" @click="addFillRole">十 主表填充规则</el-button> |
|
|
|
<div style="max-height:230px;border:1px solid white;overflow-y:auto;"> |
|
|
|
<div style="background-color: #F0F0F0;padding: 12px;border-radius: 5px;padding-left:45px;padding-bottom: 10px;margin-right: 10px;"><!-- #F5F7FA #E6F3FE #F0F0F0 #F5F7FA--> |
|
|
|
<template v-for="(item, index) in controlData.control.fillRoles.master" :key="controlData.control.fillRoles.master[index].id"> |
|
|
|
<AssociatedFormsFillRole |
|
|
|
v-if="showAssociatedFormsFillRole" |
|
|
|
v-model:left-value="controlData.control.fillRoles.master[index].leftValue" |
|
|
|
v-model:right-value="controlData.control.fillRoles.master[index].rightValue" |
|
|
|
:left-tree-source = "asfasfMasterFieldTree" |
|
|
|
:right-tree-source = "associatedFormsCurrentFormFieldTree1" |
|
|
|
:current-key="controlData.control.fillRoles.master[index].id" |
|
|
|
@del-role = "delRole" |
|
|
|
@child-role-right-changed = "childRoleRightChanged" |
|
|
|
> |
|
|
|
</AssociatedFormsFillRole> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-popover |
|
|
|
v-if="currentChildTableCount>0" |
|
|
|
placement="right-start" |
|
|
|
title="" |
|
|
|
:width="200" |
|
|
|
trigger="hover" |
|
|
|
content="【关联表单子表字段】暂不支持填充至【当前表单主表字段】" |
|
|
|
> |
|
|
|
<template #reference> |
|
|
|
<el-button style="font-size: large;margin-top: 23px;margin-bottom: 15px;" type="primary" link append-to-body="true" modal="true" @click="addChildFillRole">十 子表填充规则</el-button> |
|
|
|
</template> |
|
|
|
</el-popover> |
|
|
|
<div v-if="currentChildTableCount>0" style="max-height: 330px;overflow-y:auto;padding-top: 7px;"> |
|
|
|
<template v-for="(item, index) in controlData.control.fillRoles.child" :key="controlData.control.fillRoles.child[index].id"> |
|
|
|
<AssociatedFormsChildFillRole |
|
|
|
v-model:selected-child-table="controlData.control.fillRoles.child[index].asfChildTableKey" |
|
|
|
v-model:filter-condition="controlData.control.fillRoles.child[index].filterCondition" |
|
|
|
v-model:child-roles = "controlData.control.fillRoles.child[index].childRoles" |
|
|
|
:child-table-list="asfasfChildTableList" |
|
|
|
:asfasf-field-tree="asfasfFieldTree" |
|
|
|
:tree-default-props="treeDefaultProps" |
|
|
|
:filter-node="filterNode" |
|
|
|
|
|
|
|
:org-and-man-tree="orgAndManTree" |
|
|
|
:handle-org-tree-contextmenu-range = "handleOrgTreeContextmenuRange" |
|
|
|
:role-tree="roleTree" |
|
|
|
:handle-role-tree-contextmenu-range="handleRoleTreeContextmenuRange" |
|
|
|
:associated-forms-current-form-field-tree= "associatedFormsCurrentFormFieldTree" |
|
|
|
:asfasf-child-table-fields = "asfasfChildTableFields" |
|
|
|
:current-key="controlData.control.fillRoles.child[index].id" |
|
|
|
:current-form-child-table-fields-for-fill-role = "currentFormChildTableFieldsForFillRole" |
|
|
|
@selected-or-del-child-role = "selectedOrDelChildRole" |
|
|
|
@child-role-right-changed = "childRoleRightChanged" |
|
|
|
@del-role = "delChildRole" |
|
|
|
> |
|
|
|
</AssociatedFormsChildFillRole> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<!-- <el-button @click="asfhTextCancelFillRoles">取消</el-button> --> |
|
|
|
<el-button type="primary" @click="handleDetermineFillRoles"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
======= |
|
|
|
</div> |
|
|
|
<el-popover |
|
|
|
v-if="currentChildTableCount > 0" |
|
|
|
@ -5673,7 +5257,6 @@ const radioChangeSet = (val: any) => { |
|
|
|
@click="addChildFillRole" |
|
|
|
>十 子表填充规则</el-button |
|
|
|
> |
|
|
|
>>>>>>> qin_v6 |
|
|
|
</template> |
|
|
|
</el-popover> |
|
|
|
<div |
|
|
|
|