Browse Source

选择用户,orgRange设置

lwx_v27
liwenxuan 4 weeks ago
parent
commit
6c99718f74
  1. 2
      src/components/DesignForm/formControlPropertiNew.vue
  2. 104
      src/components/DesignForm/public/expand/rangedUserTree.vue

2
src/components/DesignForm/formControlPropertiNew.vue

@ -6047,7 +6047,7 @@ const formatTooltip = (val: number) => {
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="根据组织筛选" name="org"> <el-tab-pane label="根据组织筛选" name="org">
<div style="width:100%;display: flex;margin-top: 1px;justify-content: center;"> <div style="width:100%;display: flex;margin-top: 1px;justify-content: center;">
<TransferSelectUserRange :key="componentKey" :data="transferSelectUserRangeData" :selected-value="controlData.control.orgRange" @checked-id-list-changed="checkedIdListChangedIndex" @re-render-component="reRenderComponent" /> <TransferSelectUserRange v-if="userRangeDialogFlag" :key="componentKey" :data="transferSelectUserRangeData" :selected-value="controlData.control.orgRange" @checked-id-list-changed="checkedIdListChangedIndex" @re-render-component="reRenderComponent" />
</div> </div>
</el-tab-pane> </el-tab-pane>

104
src/components/DesignForm/public/expand/rangedUserTree.vue

@ -79,51 +79,6 @@ const keys = computed(()=>{
}) })
// 使
const treeData = {
"id": "102",
"label": "企管部",
"parentId": "309",
"children": [
{
"id": "284148167597887488",
"label": "荣潇亭",
"parentId": "102",
"children": null,
"value": "303086",
"treeAttrs": null,
"disabled": null,
"type": null
},
{
"id": "272",
"label": "企管",
"parentId": "102",
"children": [
{
"id": "284148287831805952",
"label": "吴可楠",
"parentId": "272",
"children": null,
"value": "303122",
"treeAttrs": null,
"disabled": null,
"type": null
}
],
"value": null,
"treeAttrs": null,
"disabled": null,
"type": null
}
],
"value": null,
"treeAttrs": null,
"disabled": null,
"type": null
};
const idList = ["284148167597887488", "284148287831805952"];
const resData = ref() const resData = ref()
@ -144,64 +99,9 @@ const checkorgAndManTree = (()=>{
/* const resData = computed(()=>{ onUnmounted(()=>{
if(props.orgAndManTree&&props.orgAndManTree.children&&props.orgAndManTree.children.length>0){ alert(1)
console.log(11111)
let arr = []
arr.push(modifyTreeData(props.orgAndManTree,keys.value))
return arr
}else{
return []
}
}) })
*/
const resultExample = [{
"id": "102",
"label": "企管部",
"parentId": "309",
"children": [
{
"id": "284148167597887488",
"label": "荣潇亭(303086)",
"parentId": "102",
"children": null,
"value": "303086",
"treeAttrs": null,
"disabled": null,
"type": null,
"number": "荣潇亭(303086)"
},
{
"id": "272",
"label": "企管",
"parentId": "102",
"children": [
{
"id": "284148287831805952",
"label": "吴可楠(303122)",
"parentId": "272",
"children": null,
"value": "303122",
"treeAttrs": null,
"disabled": null,
"type": null,
"number": "吴可楠(303122)"
}
],
"value": null,
"treeAttrs": null,
"disabled": null,
"type": null
}
],
"value": null,
"treeAttrs": null,
"disabled": null,
"type": null
}]

Loading…
Cancel
Save