|
|
@@ -65,6 +65,7 @@ Page({
|
|
|
}
|
|
|
}).then(res => {
|
|
|
console.log("标签", res)
|
|
|
+ if (res.data == '失败') return this.getTags1();
|
|
|
for (let key in res.data) {
|
|
|
let index = list.findIndex(v => v.sa_customersid == key);
|
|
|
list[index].tags = res.data[key]
|
|
|
@@ -74,6 +75,28 @@ Page({
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ /* 竞争对手标签 */
|
|
|
+ getTags1() {
|
|
|
+ let list = this.data.list,
|
|
|
+ ownerids = list.map(v => v.sa_competitorid);
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20221018102001,
|
|
|
+ "content": {
|
|
|
+ nocache: true,
|
|
|
+ "ownertable": "sa_competitor",
|
|
|
+ ownerids
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("标签1", res)
|
|
|
+ for (let key in res.data) {
|
|
|
+ let index = list.findIndex(v => v.sa_competitorid == key);
|
|
|
+ list[index].tags = res.data[key]
|
|
|
+ };
|
|
|
+ this.setData({
|
|
|
+ list
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
/* 删除项 */
|
|
|
deteleItem(id) {
|
|
|
this.setData({
|