Jelajahi Sumber

跟进修改

xiaohaizhao 1 tahun lalu
induk
melakukan
98a2a87eff
2 mengubah file dengan 5 tambahan dan 6 penghapusan
  1. 4 4
      packageA/select/linkman/select.js
  2. 1 2
      pages/trace/insert.js

+ 4 - 4
packageA/select/linkman/select.js

@@ -5,7 +5,7 @@ Page({
         params: {}, //请求体
         result: [], //返回结果
         radio: false, //是否为单选
-        idname: "contactsid", //idkey
+        idname: "sys_phonebookid", //idkey
         showName: "name", //表单用 显示名称
     },
     onLoad(options) {
@@ -56,18 +56,18 @@ Page({
     },
     /* 获取列表标签 */
     getTags(list, pageNumber) {
-        let ownerids = list.map(v => v.contactsid);
+        let ownerids = list.map(v => v.sys_phonebookid);
         _Http.basic({
             "id": 20221018102001,
             "content": {
                 nocache: true,
-                "ownertable": "plm_unit",
+                "ownertable": "sys_phonebook",
                 ownerids
             }
         }).then(res => {
             console.log("标签", res)
             for (let key in res.data) {
-                let index = list.findIndex(v => v.contactsid == key);
+                let index = list.findIndex(v => v.sys_phonebookid == key);
                 list[index].tags = res.data[key]
             };
             this.setData({

+ 1 - 2
pages/trace/insert.js

@@ -63,7 +63,7 @@ Page({
       }
     } else {
       form[1].params = {
-        "id": "20221022165503",
+        "id": "20240531165504",
         "content": {
           "nacache": true,
           "pageNumber": 1,
@@ -72,7 +72,6 @@ Page({
           "total": null,
           "where": {
             "condition": "",
-            "workaddress": 0
           },
           "sys_enterpriseid": parems.ownerid1
         }