zhaoxiaohai 2 years ago
parent
commit
93cf5d56d3
1 changed files with 34 additions and 33 deletions
  1. 34 33
      packageA/tags/modules/Yl-tags/index.js

+ 34 - 33
packageA/tags/modules/Yl-tags/index.js

@@ -1,38 +1,39 @@
 const _Http = getApp().globalData.http;
 Component({
-  properties: {
-    add: Boolean, //是否允许新增
-    ownertable: String,
-    ownerid: String
-  },
-  data: {
-    datatag: [],
-    systemtag: [],
-  },
-  methods: {
-    /* 获取标签 */
-    getTags() {
-      _Http.basic({
-        "id": 20220929085401,
-        "content": {
-          ownertable: this.data.ownertable,
-          ownerid: this.data.ownerid
-        }
-      }).then(res => {
-        console.log("标签列表", res)
-        if (res.msg != '成功') return wx.showToast({
-          title: res.data,
-          icon: "none"
-        });
-        this.setData({
-          ...res.data
-        })
-      })
+    properties: {
+        add: Boolean, //是否允许新增
+        ownertable: String,
+        ownerid: String
+    },
+    data: {
+        datatag: [],
+        systemtag: [],
     },
-    addTags() {
-      wx.navigateTo({
-        url: `/packageA/tags/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}`
-      })
+    methods: {
+        /* 获取标签 */
+        getTags() {
+            _Http.basic({
+                "id": 20220929085401,
+                "content": {
+                    nocache: true,
+                    ownertable: this.data.ownertable,
+                    ownerid: this.data.ownerid
+                }
+            }).then(res => {
+                console.log("标签列表", res)
+                if (res.msg != '成功') return wx.showToast({
+                    title: res.data,
+                    icon: "none"
+                });
+                this.setData({
+                    ...res.data
+                })
+            })
+        },
+        addTags() {
+            wx.navigateTo({
+                url: `/packageA/tags/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}`
+            })
+        }
     }
-  }
 })