|
@@ -570,6 +570,8 @@ const projectInfo = ref(useAppState.projectInfo)
|
|
|
const contractInfo = ref(useAppState.contractInfo)
|
|
|
const isCollapse = ref(useAppState.getCollapse)
|
|
|
const userInfo = ref(useAppState.getUserInfo)
|
|
|
+const leftWidth = ref(440)
|
|
|
+
|
|
|
//路由参数
|
|
|
const routerQuery = useRoutes?.query
|
|
|
// const typeName = routerQuery?.type || 'map'
|
|
@@ -634,6 +636,8 @@ watch(() => [
|
|
|
onMounted(() => {
|
|
|
console.log(projectInfo.value)
|
|
|
treeLoading.value = typeName === 'tree'
|
|
|
+ const treeWidth = useAppState.getTreeWidth
|
|
|
+ leftWidth.value = (isNullES(treeWidth) || treeWidth <= 0 ) ? 440 : treeWidth
|
|
|
setContractType(contractInfo.value?.contractType)
|
|
|
getDictionaryApi()
|
|
|
})
|
|
@@ -1934,7 +1938,6 @@ const copyPositionText = (val) => {
|
|
|
}
|
|
|
|
|
|
//左右拖动,改变树形结构宽度
|
|
|
-const leftWidth = ref(useAppState.getTreeWidth ?? 440)
|
|
|
const isMouseTree = ref(false)
|
|
|
const onmousedown = () => {
|
|
|
const leftNum = isCollapse.value ? 142 : 272
|
|
@@ -1958,6 +1961,7 @@ watch(() => leftWidth.value, (diffVal) => {
|
|
|
})
|
|
|
const setUserConfig = async (data) => {
|
|
|
await useClick()
|
|
|
+ useAppState.setTreeWidth(data)
|
|
|
await userConfigSave({ treeWidth: data })
|
|
|
}
|
|
|
|