|
|
@@ -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({
|