|
@@ -1078,8 +1078,10 @@ const addingFormTreeClick = async (data, node) => {
|
|
|
} else if (node?.level === 2) {
|
|
|
searchFormPage.value.total = 1
|
|
|
dialogTableData.value = [data]
|
|
|
+
|
|
|
nextTick(()=>{
|
|
|
dialogTableRef.value?.toggleRowSelection(data,true);
|
|
|
+
|
|
|
})
|
|
|
selectItems.value.push(data)
|
|
|
}
|
|
@@ -1239,12 +1241,16 @@ const addingFormSave = async () => {
|
|
|
addingFormLoading.value = true
|
|
|
const { primaryKeyId } = treeItemInfo.value
|
|
|
const ids = rowsToId(rows, 'primaryKeyId')
|
|
|
+ const arrids=ids.split(',')
|
|
|
+ let newStr = [...new Set(arrids)].join(',');
|
|
|
+ // console.log(newStr,'ids');
|
|
|
//发起请求
|
|
|
const { error, code } = await divisionApi.addWbsContractInfo({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
nodeId: primaryKeyId,
|
|
|
- primaryKeyIds: ids
|
|
|
+ primaryKeyIds: newStr
|
|
|
+ // primaryKeyIds: ids
|
|
|
})
|
|
|
//处理结果
|
|
|
addingFormLoading.value = false
|