gaoluyang
16 小时以前 ae6477e76d9f76e0097b4de22ff6f5cab677714d
src/pages/index.vue
@@ -1,24 +1,24 @@
<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>
@@ -196,8 +196,7 @@
  import modal from "@/plugins/modal";
  import useUserStore from "@/store/modules/user";
  const userStore = useUserStore();
  const factoryId = ref("");
  const userStore = useUserStore();;
  const show = ref(false);
  const factoryList = ref([]);
  const factoryListTem = ref([]);
@@ -278,88 +277,32 @@
  // 协同办公功能数据
  const collaborationItems = reactive([
    // {
    //   icon: "/static/images/icon/gongchuguanli@2x.png",
    //   label: "公出管理",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "请假管理",
    // },
    // {
    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
    //   label: "出差管理",
    // },
    {
      icon: "/static/images/icon/chuchaiguanli@2x.png",
      icon: "/static/images/icon/gongchuguanli@2x.png",
      label: "考勤管理",
    },
    {
      icon: "/static/images/icon/chuchaiguanli@2x.png",
      icon: "/static/images/icon/baoxiaoguanli.png",
      label: "财务管理",
    },
    // {
    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
    //   label: "报销管理",
    // },
    // {
    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
    //   label: "采购管理",
    // },
    // {
    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
    //   label: "报价管理",
    // },
    // {
    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
    //   label: "出库管理",
    // },
    {
      icon: "/static/images/icon/chuchaiguanli@2x.png",
      icon: "/static/images/icon/huiyiliebiao@2x.png",
      label: "会议管理",
    },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议设置",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议列表",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议申请",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议审批",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议发布",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议总结",
    // },
    // {
    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
    //   label: "会议看板",
    // },
    {
      icon: "/static/images/icon/qingjiaguanli@2x.png",
      icon: "/static/images/icon/tongzhigonggao@2x.png",
      label: "通知公告",
    },
    {
      icon: "/static/images/icon/qingjiaguanli@2x.png",
      icon: "/static/images/icon/zhishiku@2x.png",
      label: "知识库",
    },
    {
      icon: "/static/images/icon/qingjiaguanli@2x.png",
      icon: "/static/images/icon/yongyinguanli@2x.png",
      label: "用印管理",
    },
    {
      icon: "/static/images/icon/qingjiaguanli@2x.png",
      icon: "/static/images/icon/guizhangzhidu@2x.png",
      label: "规章制度",
    },
    // {
@@ -407,6 +350,10 @@
    //    icon: '/static/images/icon/shebeitaizhang@2x.png',
    //    label: '设备台账',
    // },
    {
      icon: "/static/images/icon/shbeibaoxiu@2x.png",
      label: "运行管理",
    },
    {
      icon: "/static/images/icon/shbeibaoxiu@2x.png",
      label: "设备报修",
@@ -649,6 +596,11 @@
          url: "/pages/equipmentManagement/ledger/index",
        });
        break;
      case "运行管理":
        uni.navigateTo({
          url: "/pages/equipmentManagement/runManagement/index",
        });
        break;
      case "设备报修":
        uni.navigateTo({
          url: "/pages/equipmentManagement/repair/index",
@@ -704,8 +656,7 @@
          factoryListTem.value = res.data;
          res.data.forEach(item => {
            factoryList.value[0].push(item.deptName);
          });
          factoryId.value = userStore.currentDeptId;
          })
        } else {
          // 如果res.data不是数组,设置为空数组
          factoryList.value = [];
@@ -808,7 +759,6 @@
    const loginForm = {
      username: userStore.name,
      password: uni.getStorageSync("remembered_password"),
      factoryId: factoryId,
    };
    modal.loading("刷新中,请耐心等待...");
    userStore