Kaynağa Gözat

报备中移除报备按钮

xiaohaizhao 2 yıl önce
ebeveyn
işleme
be6c0de332
2 değiştirilmiş dosya ile 14 ekleme ve 2 silme
  1. 13 1
      packageA/project/detail.js
  2. 1 1
      packageA/project/detail.wxml

+ 13 - 1
packageA/project/detail.js

@@ -390,7 +390,13 @@ Page({
                 icon: "none",
                 mask: true
             })
-            if (res.data != '失败') this.getDetail();
+            if (res.data != '失败') {
+                if (type != 1) {
+                    this.getDetail();
+                } else {
+                    this.getTags();
+                }
+            }
         })
     },
     //局部数据更新 tabs
@@ -472,6 +478,12 @@ Page({
     getGroup() {
         this.selectComponent("#Group").getList();
     },
+    /* tag更新列表 */
+    onGetList(e) {
+        if (e.detail.data.systemtag.includes('报备中')) this.setData({
+            tabbarList: this.data.tabbarList.filter(v => v.label != '提交报备')
+        })
+    },
     onUnload() {
         const page = getCurrentPages().find(v => v.__route__ == 'packageA/project/index');
         if (!page) return;

+ 1 - 1
packageA/project/detail.wxml

@@ -1,6 +1,6 @@
 <view class="header">
     <view class="title">{{detail.projectname}}</view>
-    <Yl-tags id="Tags" add ownertable='sa_project' ownerid='{{detail.sa_projectid}}' />
+    <Yl-tags id="Tags" add ownertable='sa_project' ownerid='{{detail.sa_projectid}}' bindonGetList='onGetList' />
 </view>
 <!-- 简介 -->
 <Yl_Detail list="{{briefs}}">