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 |   56 ++++++++++++++++++++++++--------------------------------
 1 files changed, 24 insertions(+), 32 deletions(-)

diff --git a/src/views/specialWorkSystem/workTicket/workApply/components/space.vue b/src/views/specialWorkSystem/workTicket/workApply/components/space.vue
index f93cd75..0f7515c 100644
--- a/src/views/specialWorkSystem/workTicket/workApply/components/space.vue
+++ b/src/views/specialWorkSystem/workTicket/workApply/components/space.vue
@@ -9,9 +9,9 @@
 						<el-select v-model="form.operatorUids" multiple>
 							<el-option
 									v-for="item in workerList"
-									:key="item.value"
-									:label="item.label"
-									:value="item.value"
+									:key="item.uid"
+									:label="item.username"
+									:value="item.uid"
 							/>
 						</el-select>
 					</el-form-item>
@@ -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">
@@ -120,13 +121,14 @@
 
 	interface stateType {
 		form: Object,
-		workerList: Array<any>,
 		csDepList: Array<any>,
-		otherWorkList: Array<any>
+		otherWorkList: Array<any>,
+		casProps: {}
 	}
 	export default defineComponent({
 		name: 'spaceForm',
 		components: {},
+		props:['workerList','departList'],
 		setup() {
 			const userInfo = useUserInfo()
 			const { userInfos } = storeToRefs(userInfo);
@@ -147,24 +149,6 @@
 					expStartTime: '',
 					expEndTime: ''
 				},
-				workerList:[
-					{
-						label: "张三",
-						value: 53
-					},
-					{
-						label: "李四",
-						value: 54
-					},
-					{
-						label: "测试一",
-						value: 55
-					},
-					{
-						label: "测试二",
-						value: 56
-					}
-				],
 				csDepList: [
 					{
 						label: "单位一",
@@ -191,6 +175,14 @@
 						value: 6
 					}
 				],
+				casProps: {
+					emitPath: false,
+					value: 'depId',
+					label: 'depName',
+					multiple: false,
+					expandTrigger: 'hover',
+					checkStrictly: true
+				},
 				otherWorkList: [
 					{
 						label: '动火作业',
@@ -298,7 +290,7 @@
 		.applyBtn{
 			width: 100%;
 			background: #fff;
-			height: 80px;
+			padding-top: 15px;
 			z-index: 5;
 			box-shadow: 0 -3px 8px rgba(150,150,150,.1);
 			display: flex;

--
Gitblit v1.9.2