|
@@ -522,66 +522,6 @@ const linksRelateModalClose = ()=>{
|
|
linksRelateModal.value = false
|
|
linksRelateModal.value = false
|
|
}
|
|
}
|
|
const processDataList = ref([])
|
|
const processDataList = ref([])
|
|
-// const linksRelateModalSave = ()=>{
|
|
|
|
-// console.log('baocun', processDataList.value )
|
|
|
|
-// console.log(defaultChecked.value, 'defaultChecked.value')
|
|
|
|
-// const keys = processElTree.value.treeRef.getCheckedKeys()
|
|
|
|
-// // const keys = defaultChecked.value
|
|
|
|
-// console.log(keys, 'keys')
|
|
|
|
-// let linkTabIds = processDataList.value
|
|
|
|
-// if (keys.length === 0) {
|
|
|
|
-// linkTabIds = []
|
|
|
|
-// }
|
|
|
|
-// //去出掉取消勾选的
|
|
|
|
-// for (let index = 0; index < keys.length; index++) {
|
|
|
|
-// linkTabIds = linkTabIds.filter((ele)=>{
|
|
|
|
-// if (ele.primaryKeyId === keys[index]) {
|
|
|
|
-// return ele
|
|
|
|
-// }
|
|
|
|
-// })
|
|
|
|
-// }
|
|
|
|
-// for (let index = 0; index < keys.length; index++) {
|
|
|
|
-// console.log(keys[index], 'keys[index]')
|
|
|
|
-// let node = processElTree.value.treeRef.getNode(keys[index])
|
|
|
|
-// console.log(node, 'NODE')
|
|
|
|
-// let pathArr = []
|
|
|
|
-// getKeys(node, pathArr)
|
|
|
|
-// TreeAutoExpandKeys.value = pathArr
|
|
|
|
-// linkTabIds.push({
|
|
|
|
-// inspectProject: node.data.title,
|
|
|
|
-// primaryKeyId: keys[index],
|
|
|
|
-// autoExpandKeys:TreeAutoExpandKeys.value,
|
|
|
|
-// isShowImage:0,
|
|
|
|
-// contractId:contractId.value,
|
|
|
|
-
|
|
|
|
-// })
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
-// //去除掉重复的
|
|
|
|
-// getNorepeatArr(linkTabIds)
|
|
|
|
-// console.log(linkTabIds, 'linkTabIds')
|
|
|
|
-// console.log(processDataList.value, 'processDataList.value')
|
|
|
|
-// linkTabIds.forEach((ele)=>{
|
|
|
|
-// processDataList.value.forEach((ele1)=>{
|
|
|
|
-// if (ele.primaryKeyId === ele1.primaryKeyId) {
|
|
|
|
-// ele.isShowImage = ele1.isShowImage
|
|
|
|
-// ele.inspectContent = ele1.inspectContent
|
|
|
|
-// ele.deductionStandard = ele1.deductionStandard
|
|
|
|
-// ele.inspectUserName = ele1.inspectUserName
|
|
|
|
-// ele.inspectPdfUrl = ele1.inspectPdfUrl
|
|
|
|
-// ele.autoExpandKeys = ele1.autoExpandKeys
|
|
|
|
-// ele.contractId = ele1.contractId
|
|
|
|
-
|
|
|
|
-// }
|
|
|
|
-// })
|
|
|
|
-// })
|
|
|
|
-// console.log(linkTabIds, 'linkTabIds1111')
|
|
|
|
-// processDataList.value = linkTabIds
|
|
|
|
-// linksRelateModal.value = false
|
|
|
|
-// addForm.value.list = linkTabIds
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-// }
|
|
|
|
|
|
|
|
//获取展开节点
|
|
//获取展开节点
|
|
const linksRelateModalSave = ()=>{
|
|
const linksRelateModalSave = ()=>{
|