Przeglądaj źródła

团队管理接口改ID

zhaoxiaohai 3 lat temu
rodzic
commit
2cec2fc1ae
2 zmienionych plików z 4 dodań i 6 usunięć
  1. 2 3
      pages/teams/addRole.js
  2. 2 3
      pages/teams/index.js

+ 2 - 3
pages/teams/addRole.js

@@ -128,10 +128,9 @@ Page({
                 if (s.confirm) {
                     console.log('删除')
                     _Http.basic({
-                        "classname": "sale.role.role",
-                        "method": "delete_role",
+                        id: '20221101132002',
                         "content": {
-                            "roleid": this.data.roleid
+                            "roleid": [this.data.roleid]
                         }
                     }).then(res => {
                         if (res.msg != '成功') return wx.showToast({

+ 2 - 3
pages/teams/index.js

@@ -41,8 +41,7 @@ Page({
         })
         if (this.data.content.pageNumber > this.data.content.pageTotal) return;
         _Http.basic({
-            "classname": this.data.butText == '账号' ? "sale.team.team" : "sale.role.role",
-            "method": this.data.butText == '账号' ? "query_teamList" : "query_roleList",
+            "id": this.data.butText == '账号' ? "20221107094704" : "20221109091404",
             "content": this.data.content
         }).then(res => {
             this.selectComponent('#ListBox').RefreshToComplete();
@@ -111,5 +110,5 @@ Page({
             })
         });
     },
-    onShareAppMessage(res) { }
+    onShareAppMessage(res) {}
 })