From 3b75798cc41993f9016610296907d2338545a345 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 16 八月 2024 15:43:01 +0800 Subject: [PATCH] Default Changelist --- src/views/newSpecialWorkSystem/workTicket/zysq/index.vue | 34 ++++++++++++++++++++++++++++------ 1 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/views/newSpecialWorkSystem/workTicket/zysq/index.vue b/src/views/newSpecialWorkSystem/workTicket/zysq/index.vue index 37b230b..19a277c 100644 --- a/src/views/newSpecialWorkSystem/workTicket/zysq/index.vue +++ b/src/views/newSpecialWorkSystem/workTicket/zysq/index.vue @@ -25,6 +25,9 @@ <el-tab-pane :lazy="true" label="盲板抽堵作业" name="plate"> <plate-form ref="plate" :lists="lists"></plate-form> </el-tab-pane> + <el-tab-pane :lazy="true" label="打开作业" name="open"> + <open-form ref="open" :lists="lists"></open-form> + </el-tab-pane> </el-tabs> <!-- <material-dialog ref="material"></material-dialog>--> <!-- <el-radio-group v-model="activeName" size="large" @change="(value)=>handleClick(value)">--> @@ -81,6 +84,7 @@ heightForm: defineAsyncComponent(() => import('/@/views/newSpecialWorkSystem/workTicket/zysq/components/height.vue')), powerForm: defineAsyncComponent(() => import('/@/views/newSpecialWorkSystem/workTicket/zysq/components/power.vue')), plateForm: defineAsyncComponent(() => import('/@/views/newSpecialWorkSystem/workTicket/zysq/components/plate.vue')), + openForm: defineAsyncComponent(() => import('/@/views/newSpecialWorkSystem/workTicket/zysq/components/open.vue')), }, setup() { const userInfo = useUserInfo() @@ -93,7 +97,8 @@ departList2: [], deviceList: [], otherWorks: [], - spList: [] + spList: [], + riskList: [] }, activeName: 'fire', allWorkers: [], @@ -110,6 +115,7 @@ const height = ref() const power = ref() const plate = ref() + const open = ref() const handleClick = (tab: TabsPaneContext, event: Event) => { state.loading = true @@ -139,11 +145,12 @@ // 页面载入时执行方法 onMounted(() => { - getAll(); - getAllDepartment(); - getAllDevice(); - getOtherWork(); + getAll() + getAllDepartment() + getAllDevice() + getOtherWork() spWorker() + getAllRisks() }); // 获取用户列表 @@ -203,7 +210,7 @@ // state.departmentList = JSON.parse(JSON.stringify(res.data.data)) // state.departmentList2 = state.departmentList[0].children[0].children.filter(i=>i.depId == 32 || i.depId == 48 || i.depId == 49 || i.depId == 50) state.lists.departList = JSON.parse(JSON.stringify(res.data.data)) - state.lists.departList2 = JSON.parse(JSON.stringify(res.data.data))[0].children[0].children.filter(i=>i.depId == 32 || i.depId == 48 || i.depId == 49 || i.depId == 50) + state.lists.departList2 = JSON.parse(JSON.stringify(res.data.data))[0].children[0].children.filter(i=>i.depId == 32 || i.depId == 48 || i.depId == 49 || i.depId == 50 || i.depId == 10 || i.depId == 41 || i.depId == 46 || i.depId == 47) } else { ElMessage({ type: 'warning', @@ -240,6 +247,20 @@ } }; + // 获取设备列表 + const getAllRisks = async ()=>{ + const res = await workApplyApi().getAllRiskIdentity() + if (res.data.code === '200') { + // state.allDevices = JSON.parse(JSON.stringify(res.data.data)) + state.lists.riskList = JSON.parse(JSON.stringify(res.data.data)) + } else { + ElMessage({ + type: 'warning', + message: res.data.msg + }); + } + }; + return { ...toRefs(state), fire, @@ -250,6 +271,7 @@ hoist, plate, power, + open, handleClick, getOtherWork }; -- Gitblit v1.9.2