| | |
| | | <template> |
| | | <view class="content"> |
| | | <!-- <view class="header-section">--> |
| | | <!-- <view class="currentFactory">--> |
| | | <!-- <up-text type="primary"--> |
| | | <!-- :text="userStore.currentFactoryName"--> |
| | | <!-- @click="show = true"--> |
| | | <!-- size="18"--> |
| | | <!-- class="factoryName"--> |
| | | <!-- suffixIcon="arrow-right"--> |
| | | <!-- :iconStyle="iconStyle"></up-text>--> |
| | | <!-- </view>--> |
| | | <!-- <up-picker :show="show"--> |
| | | <!-- :columns="factoryList"--> |
| | | <!-- @confirm="changeFactory"--> |
| | | <!-- @cancel="show = false"></up-picker>--> |
| | | <!-- </view>--> |
| | | <!-- <view class="header-section">--> |
| | | <!-- <view class="currentFactory">--> |
| | | <!-- <up-text type="primary"--> |
| | | <!-- :text="userStore.currentFactoryName"--> |
| | | <!-- @click="show = true"--> |
| | | <!-- size="18"--> |
| | | <!-- class="factoryName"--> |
| | | <!-- suffixIcon="arrow-right"--> |
| | | <!-- :iconStyle="iconStyle"></up-text>--> |
| | | <!-- </view>--> |
| | | <!-- <up-picker :show="show"--> |
| | | <!-- :columns="factoryList"--> |
| | | <!-- @confirm="changeFactory"--> |
| | | <!-- @cancel="show = false"></up-picker>--> |
| | | <!-- </view>--> |
| | | <view class="hero-section"> |
| | | <view class="bg-img"> |
| | | <view class="hero-content"> |
| | | <!-- <text class="hero-title">åæ³°ä¼ä¸</text>--> |
| | | <!-- <text class="hero-title">åæ³°ä¼ä¸</text>--> |
| | | </view> |
| | | <view class="hero-wave"></view> |
| | | </view> |
| | |
| | | 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 = []; |