From 6c72f9b20a1c0ea679ee1e39c794183fda217456 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期一, 08 十二月 2025 10:55:01 +0800
Subject: [PATCH] 修改新增
---
src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue b/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
index 221fa09..361aab7 100644
--- a/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
+++ b/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
@@ -3,7 +3,7 @@
<el-dialog
v-model="dialogVisible"
:title="title"
- width="50%"
+ width="900px"
:before-close="handleClose"
:close-on-press-escape="false"
:close-on-click-modal="false"
@@ -11,7 +11,7 @@
<el-form :model="state.form" size="default" ref="busRef" :rules="state.rules" >
<el-row :gutter="24">
<el-col :span="24">
- <el-form-item label="企业名称:" prop="companyId" v-if="state.isAdmin">
+ <el-form-item label="单位名称:" prop="companyId" v-if="state.isAdmin">
<el-select v-model="state.form.companyId" placeholder="请选择" filterable clearable style="width: 100%" :disabled="title == '查看' || title == '编辑' || !state.isAdmin" @change="selectValueCom">
<el-option
v-for="item in state.companyList"
@@ -352,6 +352,9 @@
}
const getDeptList = async () => {
+ if(state.isAdmin && (state.form.companyId == 0 || state.form.companyId == null)){
+ return
+ }
const param = {
pageNum: 1,
pageSize: 999,
@@ -485,6 +488,7 @@
}
const selectValueCom = (val) => {
+ state.form.departId = null
state.form.qualityId = null
state.qualityList = []
state.form.qualityTargets = []
@@ -499,6 +503,7 @@
state.form.companyId = item.id
}
})
+ getDeptList()
getQualityList()
getPeopleList()
}
@@ -507,12 +512,12 @@
state.form.qualityId = null
state.qualityList = []
state.form.qualityTargets = []
- state.form.fictionId = null
- state.form.fictionName = ''
- state.form.checkId = null
- state.form.checkName = ''
- state.form.ratifyId = null
- state.form.ratifyName = ''
+ // state.form.fictionId = null
+ // state.form.fictionName = ''
+ // state.form.checkId = null
+ // state.form.checkName = ''
+ // state.form.ratifyId = null
+ // state.form.ratifyName = ''
await getQualityList()
}
const addObject = (val) => {
--
Gitblit v1.9.2