linwenxin 5 ماه پیش
والد
کامیت
dadbf75ded
1فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 11 1
      src/packageMine/pages/masterGroup/index.vue

+ 11 - 1
src/packageMine/pages/masterGroup/index.vue

@@ -48,7 +48,10 @@
                 <text>{{ item.createTime }}</text>
               </view>
               <view class="neironghengxin" v-if="tab"></view>
-              <view class="neironganniuqu" v-if="tab && ['WAIT'].includes(item.status)">
+              <view
+                class="neironganniuqu"
+                v-if="tab && ['WAIT'].includes(item.status) && item.masterWorkerId !== userInfo.workerNumber"
+              >
                 <u-button type="primary" text="确认" @click="queding(item, index)"></u-button>
               </view>
             </view>
@@ -66,6 +69,7 @@
 <script>
 import zjPageContainer from '@/components/zj-page-container/zj-page-container.vue'
 import zjPageFill from '@/components/zj-page-container/zj-page-fill.vue'
+import { getStorage } from '@/common/utils/storage.js'
 export default {
   components: {
     zjPageContainer,
@@ -83,12 +87,18 @@ export default {
     }
   },
   onLoad() {
+    console.log(getStorage('user'))
     this.tabQiehuan(this.tab)
     uni.$on('shuaxianliebiao', this.aaaa)
   },
   onUnload() {
     uni.$off('shuaxianliebiao', this.aaaa)
   },
+  computed: {
+    userInfo() {
+      return getStorage('user')
+    }
+  },
   methods: {
     aaaa() {
       this.tabQiehuan(this.tab, 2)