|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="h-full">
|
|
|
- <hc-page-split v-if="wbsTypeTabKey === 'tree'">
|
|
|
+ <hc-page-split v-if="wbsTypeTabKey === 'tree'" ref="pageSplitRef">
|
|
|
<template #left>
|
|
|
<div class="left-box-container bg-white">
|
|
|
<div class="hc-project-box">
|
|
@@ -1505,17 +1505,32 @@ watch(
|
|
|
}
|
|
|
},
|
|
|
)
|
|
|
+const pageSplitRef = ref(null)
|
|
|
+
|
|
|
+watch(() => pageSplitRef.value?.leftPanelWidth, (newWidth) => {
|
|
|
+
|
|
|
+ // pageSplitRef.value?.setLeftWidth(newWidth)
|
|
|
+ setUserConfig(newWidth)
|
|
|
+
|
|
|
+})
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
console.log(projectInfo.value)
|
|
|
treeLoading.value = typeName === 'tree'
|
|
|
const treeWidth = useAppState.getTreeWidth
|
|
|
leftWidth.value = isNullES(treeWidth) || treeWidth <= 0 ? 440 : treeWidth
|
|
|
- console.log(contractInfo.value, 'contractInfo.value')
|
|
|
setContractType(contractInfo.value?.contractType)
|
|
|
getDictionaryApi()
|
|
|
getStandardTypeOptions()
|
|
|
getMajorDataTypeOptions()
|
|
|
+
|
|
|
+ setUserConfig( leftWidth.value)
|
|
|
+
|
|
|
+ nextTick(() => {
|
|
|
+ pageSplitRef.value?.setLeftWidth( leftWidth.value)
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
|
|
|
//身份按钮切换数据
|
|
@@ -3255,6 +3270,7 @@ const setUserConfig = async (data) => {
|
|
|
await useClick()
|
|
|
useAppState.setTreeWidth(data)
|
|
|
await userConfigSave({ treeWidth: data })
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//同步质检资料
|