From cee2a40ab2136460fe6d840bcfc3d835feb8e02a Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期五, 26 八月 2022 14:50:00 +0800
Subject: [PATCH] Default Changelist

---
 src/views/specialWorkSystem/workTicket/workApply/components/space.vue |   30 ++++++++++++++++++++----------
 1 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/src/views/specialWorkSystem/workTicket/workApply/components/space.vue b/src/views/specialWorkSystem/workTicket/workApply/components/space.vue
index afe6404..0f7515c 100644
--- a/src/views/specialWorkSystem/workTicket/workApply/components/space.vue
+++ b/src/views/specialWorkSystem/workTicket/workApply/components/space.vue
@@ -57,14 +57,15 @@
 			<el-row>
 				<el-col :span="12">
 					<el-form-item label="受限空间所属单位" prop="workDetail.csDepId">
-						<el-select v-model="form.workDetail.csDepId">
-							<el-option
-									v-for="item in csDepList"
-									:key="item.value"
-									:label="item.label"
-									:value="item.value"
-							/>
-						</el-select>
+<!--						<el-select v-model="form.workDetail.csDepId">-->
+<!--							<el-option-->
+<!--									v-for="item in csDepList"-->
+<!--									:key="item.value"-->
+<!--									:label="item.label"-->
+<!--									:value="item.value"-->
+<!--							/>-->
+<!--						</el-select>-->
+						<el-cascader v-model="form.workDetail.csDepId" :options="departList" :props="casProps" :show-all-levels="false" @change="handleChange" />
 					</el-form-item>
 				</el-col>
 				<el-col :span="12">
@@ -121,12 +122,13 @@
 	interface stateType {
 		form: Object,
 		csDepList: Array<any>,
-		otherWorkList: Array<any>
+		otherWorkList: Array<any>,
+		casProps: {}
 	}
 	export default defineComponent({
 		name: 'spaceForm',
 		components: {},
-		props:['workerList'],
+		props:['workerList','departList'],
 		setup() {
 			const userInfo = useUserInfo()
 			const { userInfos } = storeToRefs(userInfo);
@@ -173,6 +175,14 @@
 						value: 6
 					}
 				],
+				casProps: {
+					emitPath: false,
+					value: 'depId',
+					label: 'depName',
+					multiple: false,
+					expandTrigger: 'hover',
+					checkStrictly: true
+				},
 				otherWorkList: [
 					{
 						label: '动火作业',

--
Gitblit v1.9.2