From 7b8b1fb230ed3340ef220d199bf745dbea5c4aa7 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Tue, 23 Dec 2025 13:28:49 +0800
Subject: [PATCH] 修改新增
---
src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/index.vue | 39 +++++++++++++++++++++++++--------------
1 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/index.vue b/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/index.vue
index 563394d..75b2efa 100644
--- a/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/index.vue
+++ b/src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/qualityManual/index.vue
@@ -52,7 +52,7 @@
<div class="orgTreeBox" id="org-tree-container">
<vue3-tree-org
- :data="deptList"
+ :data="deptTree"
:horizontal="false"
:props="treeProps"
:toolBar="tools"
@@ -85,8 +85,8 @@
<el-form-item label="文件状态:" prop="fileStatus">
<el-input v-model.trim="dialogForm.fileStatus" placeholder="文件状态"></el-input>
</el-form-item>
- <el-form-item label="发布号:" prop="grantNum">
- <el-input v-model.trim="dialogForm.grantNum" placeholder="发布号"></el-input>
+ <el-form-item label="发放号:" prop="grantNum">
+ <el-input v-model.trim="dialogForm.grantNum" placeholder="发放号"></el-input>
</el-form-item>
<el-form-item label="编制:" prop="fictionName">
<el-select clearable v-model="dialogForm.fictionName" filterable placeholder="编制" style="width: 100%">
@@ -181,7 +181,7 @@
children: []
},
treeProps: {
- label: 'deptName'
+ label: 'label'
},
tools: {
scale: false, restore: false, expand: false, zoom: false, fullscreen: false
@@ -210,7 +210,12 @@
executionDate: ''
},
formRules: {},
- userList: []
+ userList: [],
+ deptTree: {
+ id: 0,
+ label: "",
+ children: []
+ }
});
const {
@@ -228,7 +233,8 @@
dialogVisible,
dialogForm,
formRules,
- userList
+ userList,
+ deptTree
} = toRefs(data);
const userInfo = ref()
const formRef = ref()
@@ -336,22 +342,26 @@
if (res.code == 200) {
data.originDeptList = JSON.parse(JSON.stringify(res.data))
data.deptList.deptName = val.companyName
+ data.deptTree.label = val.companyName
data.deptList.children = proxy.handleTree(res.data, "deptId")
} else {
ElMessage.warning(res.message)
}
}
+
const addFile = async () => {
if (data.queryParams.companyId) {
data.dialogForm.companyId = data.queryParams.companyId
const res = await getStandardQuality(data.queryParams)
if (res.code == 200) {
- const val = res.data.data[0]
- Object.keys(data.dialogForm).forEach(key => {
- if (key in val) {
- data.dialogForm[key] = val[key]
- }
- })
+ if(res.data.data && res.data.data.length>0){
+ const val = res.data.data[0]
+ Object.keys(data.dialogForm).forEach(key => {
+ if (key in val) {
+ data.dialogForm[key] = val[key]
+ }
+ })
+ }
} else {
ElMessage.warning(res.message)
}
@@ -387,6 +397,7 @@
loading.value = false
return Promise.reject(new Error('该企业暂无质量数据'))
}
+ data.deptTree.children = res.data.treeSelects || []
data.companyInfo.summaries = res.data.companySummaries ? res.data.companySummaries[0]?.companySummary : []
data.companyInfo.policies = res.data.companyQualityPolicies ? res.data.companyQualityPolicies[0]?.policy : []
const duties = transToTableData(res.data.sysFunctionalDistributions, data.originDeptList)
@@ -613,8 +624,8 @@
</script>
<style lang="scss">
.orgTreeBox {
- width: 700px;
- height: 700px;
+ width: 1200px;
+ height: 1200px;
position: absolute; /* 或 fixed */
left: -9999px; /* 移出可视区域 */
pointer-events: none; /* 禁止交互 */
--
Gitblit v1.9.2