| | |
| | | import modal from "@/plugins/modal"; |
| | | import useUserStore from "@/store/modules/user"; |
| | | |
| | | const userStore = useUserStore();; |
| | | const userStore = useUserStore(); |
| | | const show = ref(false); |
| | | const factoryList = ref([]); |
| | | const factoryListTem = ref([]); |
| | |
| | | { |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "危险源管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "危险作业", |
| | | }, |
| | | ]); |
| | | // 协同办公功能数据 |
| | |
| | | url: "/pages/safeProduction/hazardSourceLedger/index", |
| | | }); |
| | | break; |
| | | case "危险作业": |
| | | uni.navigateTo({ |
| | | url: "/pages/cooperativeOffice/collaborativeApproval/index8", |
| | | }); |
| | | break; |
| | | default: |
| | | uni.showToast({ |
| | | title: `点击了${item.label}`, |
| | |
| | | factoryListTem.value = res.data; |
| | | res.data.forEach(item => { |
| | | factoryList.value[0].push(item.deptName); |
| | | }) |
| | | }); |
| | | } else { |
| | | // 如果res.data不是数组,设置为空数组 |
| | | factoryList.value = []; |