|
@@ -155,8 +155,10 @@
|
|
|
:h-props="treeProps"
|
|
|
showCheckbox
|
|
|
@check="divisionTreeCheck"
|
|
|
+ :checkStrictly="true"
|
|
|
:defaultCheckedKeys="defaultCheckarrIds"
|
|
|
- :checkStrictly="true"/>
|
|
|
+
|
|
|
+ />
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -280,7 +282,9 @@ onMounted(() => {
|
|
|
listItemBaseData.value.detectionResult = info.detectionResult.toString()
|
|
|
}
|
|
|
if (info && info.projectPosition) {
|
|
|
+
|
|
|
defaultCheckarrIds.value = info.projectPosition.split(',')
|
|
|
+ console.log(defaultCheckarrIds.value,'defaultCheckarrIds.value');
|
|
|
defaultprojectPositionName.value=info?.projectPositionName
|
|
|
|
|
|
}
|
|
@@ -569,6 +573,7 @@ const checkrelationId = ref([])
|
|
|
const checkrelationString = ref([])
|
|
|
const ElTreeRef=ref(null)
|
|
|
const divisionTreeCheck = (data1,data2) => {
|
|
|
+ console.log(data2,'data2');
|
|
|
checkrelationId.value = data2?.checkedNodes
|
|
|
}
|
|
|
const seaElTreeProps = ref({
|
|
@@ -641,9 +646,10 @@ const linksRelateModalSave = async () => {
|
|
|
idarr.push(item.primaryKeyId)
|
|
|
})
|
|
|
checkrelationString.value = idarr.toString()
|
|
|
- if (checkrelationString.value.length > 0) {
|
|
|
+
|
|
|
+ console.log(checkrelationString.value,'checkrelationString.value');
|
|
|
listItemBaseData.value.projectPosition = checkrelationString.value
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
let infodata = await getpositiondata()
|
|
|
positiondata.value=infodata
|
|
@@ -652,7 +658,7 @@ const linksRelateModalSave = async () => {
|
|
|
window.$message?.success('操作成功')
|
|
|
linksRelateModal.value = false
|
|
|
}
|
|
|
-
|
|
|
+ linksRelateModal.value = false
|
|
|
|
|
|
|
|
|
|
|
@@ -964,7 +970,7 @@ const getrecordsamplegetData = async () => {
|
|
|
//获取关联工程部位key值
|
|
|
const getpositiondata = async () => {
|
|
|
const {error, code, data} = await dataApi.recordprojectPositiongetData({
|
|
|
- projectPositionIds: listItemBaseData.value.projectPosition,
|
|
|
+ projectPositionIds:checkrelationString.value,
|
|
|
nodePKeyId: routerQuery?.nodeId,
|
|
|
contractId: contractId.value
|
|
|
|