|
@@ -1508,9 +1508,10 @@ watch(
|
|
const pageSplitRef = ref(null)
|
|
const pageSplitRef = ref(null)
|
|
|
|
|
|
watch(() => pageSplitRef.value?.leftPanelWidth, (newWidth) => {
|
|
watch(() => pageSplitRef.value?.leftPanelWidth, (newWidth) => {
|
|
-
|
|
|
|
- // pageSplitRef.value?.setLeftWidth(newWidth)
|
|
|
|
- setUserConfig(newWidth)
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ leftWidth.value = newWidth
|
|
|
|
+ setUserConfig(newWidth)
|
|
|
|
|
|
})
|
|
})
|
|
//渲染完成
|
|
//渲染完成
|
|
@@ -1518,18 +1519,20 @@ onMounted(() => {
|
|
console.log(projectInfo.value)
|
|
console.log(projectInfo.value)
|
|
treeLoading.value = typeName === 'tree'
|
|
treeLoading.value = typeName === 'tree'
|
|
const treeWidth = useAppState.getTreeWidth
|
|
const treeWidth = useAppState.getTreeWidth
|
|
|
|
+ console.log(treeWidth, 'treeWidth')
|
|
|
|
+
|
|
leftWidth.value = isNullES(treeWidth) || treeWidth <= 0 ? 440 : treeWidth
|
|
leftWidth.value = isNullES(treeWidth) || treeWidth <= 0 ? 440 : treeWidth
|
|
setContractType(contractInfo.value?.contractType)
|
|
setContractType(contractInfo.value?.contractType)
|
|
getDictionaryApi()
|
|
getDictionaryApi()
|
|
getStandardTypeOptions()
|
|
getStandardTypeOptions()
|
|
getMajorDataTypeOptions()
|
|
getMajorDataTypeOptions()
|
|
|
|
|
|
- setUserConfig( leftWidth.value)
|
|
|
|
|
|
|
|
- nextTick(() => {
|
|
|
|
- pageSplitRef.value?.setLeftWidth( leftWidth.value)
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ pageSplitRef.value?.setLeftWidth(leftWidth.value)
|
|
|
|
+ })
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
@@ -3267,9 +3270,13 @@ watch(
|
|
},
|
|
},
|
|
)
|
|
)
|
|
const setUserConfig = async (data) => {
|
|
const setUserConfig = async (data) => {
|
|
- await useClick()
|
|
|
|
- useAppState.setTreeWidth(data)
|
|
|
|
- await userConfigSave({ treeWidth: data })
|
|
|
|
|
|
+
|
|
|
|
+ if (data > 0) {
|
|
|
|
+ await useClick()
|
|
|
|
+ useAppState.setTreeWidth(data)
|
|
|
|
+ await userConfigSave({ treeWidth: data })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|