ZaiZai 1 年之前
父节点
当前提交
69aea34ebc
共有 1 个文件被更改,包括 40 次插入10 次删除
  1. 40 10
      pages/index/index.vue

+ 40 - 10
pages/index/index.vue

@@ -24,7 +24,10 @@
                         <text class="text">资料填报</text>
                     </view>
                 </view>
-                <view class="right-col-card-1" :class="isAnimation?'is-animation':''">
+                <view class="right-col-card-1"
+                      :class="isAnimation?'is-animation':''"
+                      @click="toNoAuth"
+                >
                     <view class="card-bg">
                         <text class="text">进度查询</text>
                     </view>
@@ -73,7 +76,10 @@
                         <text class="text">声像资料</text>
                     </view>
                 </view>
-                <view class="right-col-card-3" :class="isAnimation?'is-animation':''">
+                <view class="right-col-card-3"
+                      :class="isAnimation?'is-animation':''"
+                      @click="toNoAuth"
+                >
                     <view class="card-bg">
                         <view class="icon">
                             <text class="i-icon-park-outline-history-query"/>
@@ -81,7 +87,10 @@
                         <text class="text">资料查询</text>
                     </view>
                 </view>
-                <view class="right-col-card-4" :class="isAnimation?'is-animation':''">
+                <view class="right-col-card-4"
+                      :class="isAnimation?'is-animation':''"
+                      @click="toNoAuth"
+                >
                     <view class="card-bg">
                         <text class="text">工单消息</text>
                     </view>
@@ -93,7 +102,10 @@
         </template>
         <template v-else>
             <view class="hc-list-container">
-                <view class="hc-list-item shadow-sm" :class="isAnimation?'a-l':''" @click="isDataFill">
+                <view class="hc-list-item shadow-sm"
+                      :class="isAnimation?'a-l':''"
+                      @click="isDataFill"
+                >
                     <view class="icon bg-1">
                         <text class="i-solar-calendar-search-outline"/>
                     </view>
@@ -102,7 +114,10 @@
                         <view class="text">派发监理通知单及监理指令</view>
                     </view>
                 </view>
-                <view class="hc-list-item shadow-sm" :class="isAnimation?'a-r':''">
+                <view class="hc-list-item shadow-sm"
+                      :class="isAnimation?'a-r':''"
+                      @click="toNoAuth"
+                >
                     <view class="icon bg-2">
                         <text class="i-ic-outline-list-alt"/>
                     </view>
@@ -123,7 +138,10 @@
                         <view class="text">施工及监理日志填报</view>
                     </view>
                 </view>
-                <view class="hc-list-item shadow-sm" :class="isAnimation?'a-r':''">
+                <view class="hc-list-item shadow-sm"
+                      :class="isAnimation?'a-r':''"
+                      @click="toNoAuth"
+                >
                     <view class="icon bg-4">
                         <text class="i-fluent-form-48-regular"/>
                     </view>
@@ -144,7 +162,10 @@
                         <view class="text">拍照及上传影像资料</view>
                     </view>
                 </view>
-                <view class="hc-list-item shadow-sm" :class="isAnimation?'a-r':''">
+                <view class="hc-list-item shadow-sm"
+                      :class="isAnimation?'a-r':''"
+                      @click="toNoAuth"
+                >
                     <view class="icon bg-6">
                         <text class="i-icon-park-outline-history-query"/>
                     </view>
@@ -153,7 +174,10 @@
                         <view class="text">质检及试验报表资料查看</view>
                     </view>
                 </view>
-                <view class="hc-list-item shadow-sm" :class="isAnimation?'a-l':''">
+                <view class="hc-list-item shadow-sm"
+                      :class="isAnimation?'a-l':''"
+                      @click="toNoAuth"
+                >
                     <view class="icon bg-7">
                         <text class="i-solar-calendar-linear"/>
                     </view>
@@ -173,8 +197,8 @@
                 <text class="i-material-symbols-cancel-rounded"/>
             </view>
             <view class="hc-popover-container">
-                <view class="project-name">项目名称</view>
-                <view class="contrac-name">合同段名称</view>
+                <view class="project-name">{{projectInfo.projectName}}</view>
+                <view class="contrac-name">{{contractInfo.contractName}}</view>
                 <view class="tip-title">填报规则温馨提示</view>
                 <view class="tip-content-box">
                     <view class="tip-item">
@@ -212,6 +236,7 @@ import {ref, watch} from "vue";
 import {useAppStore} from "@/store";
 import {onShow, onHide} from '@dcloudio/uni-app'
 import mainApi from '~api/user/index';
+import {errorToast} from "@/utils/tools";
 
 //变量
 const store = useAppStore()
@@ -222,6 +247,8 @@ const hobby = [{text: '以后忽略此页面提示', value: 0}]
 //是否动画
 const isAnimation = ref(store.isAnimation)
 const msgCountData = ref(store.msgCountData)
+const projectInfo = ref(store.projectInfo)
+const contractInfo = ref(store.contractInfo)
 
 onShow(()=>{
     if(store.isAnimation) {
@@ -287,6 +314,9 @@ const toTaskPage = () => {
         url: '/pages/task/index'
     })
 }
+const toNoAuth = () => {
+  errorToast('此功能还在开发中')
+}
 </script>
 <style lang="scss">
 :deep(.home-nav-bar) {