|
@@ -1001,7 +1001,7 @@ const addingFormTreeLoadNode = async (node, resolve) => {
|
|
|
const addingFormTreeItem = ref({})
|
|
|
const addingFormTreeClick = async (data) => {
|
|
|
addingFormTreeItem.value = data
|
|
|
- const resData = await tabTypeLazyTree(data?.primaryKeyId)
|
|
|
+ const resData = await tabTypeLazyTree(data?.primaryKeyId,'', true)
|
|
|
console.log(resData)
|
|
|
dialogTableData.value = resData
|
|
|
}
|
|
@@ -1042,15 +1042,17 @@ const dialogTableSelection = (rows) => {
|
|
|
}
|
|
|
|
|
|
//获取数据
|
|
|
-const tabTypeLazyTree = async (parentId = '12345678910', titleName = '') => {
|
|
|
- let obj = {}
|
|
|
+const tabTypeLazyTree = async (parentId = '12345678910', titleName = '', search = false) => {
|
|
|
+ let obj = {}, searchObj = {}
|
|
|
if(parentId) obj.parentId = parentId
|
|
|
if(titleName) obj.titleName = titleName
|
|
|
+ if(search) searchObj = searchFormPage.value
|
|
|
//发起请求
|
|
|
const { data } = await divisionApi.tabTypeLazyTree({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
- ...obj
|
|
|
+ ...obj,
|
|
|
+ ...searchObj
|
|
|
})
|
|
|
const resData = getArrValue(data)
|
|
|
resData.forEach(item => {
|