From fb67153f3df0c25863f388b199c5706f4ba801ea Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期一, 13 三月 2023 16:27:51 +0800
Subject: [PATCH] 作业申请新增设备

---
 src/views/specialWorkSystem/workTicket/zysq/components/fire.vue |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/views/specialWorkSystem/workTicket/zysq/components/fire.vue b/src/views/specialWorkSystem/workTicket/zysq/components/fire.vue
index 9af9738..66ecf67 100644
--- a/src/views/specialWorkSystem/workTicket/zysq/components/fire.vue
+++ b/src/views/specialWorkSystem/workTicket/zysq/components/fire.vue
@@ -74,6 +74,20 @@
 					</el-form-item>
 				</el-col>
 			</el-row>
+      <el-row>
+        <el-col :span="12">
+          <el-form-item label="关联设备" prop="cameraIds">
+            <el-select v-model="form.cameraIds" multiple>
+              <el-option
+                  v-for="item in deviceList"
+                  :key="item.id"
+                  :label="item.name"
+                  :value="item.id"
+              />
+            </el-select>
+          </el-form-item>
+        </el-col>
+      </el-row>
 				<el-divider border-style="dashed"/>
 			<el-row>
 				<el-col :span="12">
@@ -137,7 +151,7 @@
 		components: {
       materialDialog: defineAsyncComponent(() => import('/@/views/specialWorkSystem/workTicket/zysq/components/materialDialog.vue')),
     },
-		props:['workerList'],
+		props:['workerList','deviceList'],
 		setup(props: any, context: any) {
 			const userInfo = useUserInfo()
 			const { userInfos } = storeToRefs(userInfo);
@@ -151,6 +165,7 @@
 					workLocation: '',
           maBaseId: null,
 					hazardIdentification: '',
+          cameraIds: [],
 					workDetail:{
 						hotMethod: '',
 						otherSpecialWork: []
@@ -218,6 +233,7 @@
 				workContent: [{ required: true, message: '该内容不能为空', trigger: 'blur' }],
 				workLocation: [{ required: true, message: '该内容不能为空', trigger: 'blur' }],
 				hazardIdentification: [{ required: true, message: '该内容不能为空', trigger: 'blur' }],
+        cameraIds: [{ required: true, message: '该内容不能为空', trigger: 'blur' }],
 				workTimeLine: [{ required: true, message: '该内容不能为空', trigger: 'blur' }],
 				"workDetail.hotMethod": [{ required: true, message: '该内容不能为空', trigger: 'blur' }]
 			});

--
Gitblit v1.9.2