|
|
@@ -432,10 +432,15 @@ Page({
|
|
|
title: res.msg,
|
|
|
icon: "none"
|
|
|
});
|
|
|
- if (res.data.length == 0) return wx.showToast({
|
|
|
- title: '未查询到重复数据',
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
+ if (res.data.length == 0) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '未查询到重复数据',
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ this.getTags()
|
|
|
+ } else {
|
|
|
+ this.setTags();
|
|
|
+ }
|
|
|
this.setData({
|
|
|
repetitionList: res.data,
|
|
|
repetitionShow: true
|
|
|
@@ -475,25 +480,7 @@ Page({
|
|
|
}) => {
|
|
|
if (confirm) {
|
|
|
that.onRecover(true)
|
|
|
- /* let {
|
|
|
- datatag,
|
|
|
- systemtag
|
|
|
- } = this.selectComponent("#Tags").returnTags();
|
|
|
- if (!systemtag.some(v => v == '疑似重复')) {
|
|
|
- systemtag.push("疑似重复")
|
|
|
- _Http.basic({
|
|
|
- "id": 20220929090901,
|
|
|
- "content": {
|
|
|
- "ownertable": "sa_project",
|
|
|
- "ownerid": that.data.sa_projectid,
|
|
|
- datatag,
|
|
|
- systemtag
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("绑定疑似重复标签", res)
|
|
|
- if (res.msg == '成功') that.getTags();
|
|
|
- })
|
|
|
- } */
|
|
|
+ that.setTags();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -502,6 +489,30 @@ Page({
|
|
|
isRecover: false
|
|
|
})
|
|
|
},
|
|
|
+ /* setTags */
|
|
|
+ setTags() {
|
|
|
+ let {
|
|
|
+ datatag,
|
|
|
+ systemtag
|
|
|
+ } = this.selectComponent("#Tags").returnTags();
|
|
|
+ if (!systemtag.some(v => v == '疑似重复')) {
|
|
|
+ systemtag.push("疑似重复")
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20220929090901,
|
|
|
+ "content": {
|
|
|
+ "ownertable": "sa_project",
|
|
|
+ "ownerid": this.data.sa_projectid,
|
|
|
+ datatag,
|
|
|
+ systemtag
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("绑定疑似重复标签", res)
|
|
|
+ if (res.msg == '成功') this.getTags();
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.getTags();
|
|
|
+ }
|
|
|
+ },
|
|
|
/* 1提交报备,2报备审核,3报备驳回(退回) */
|
|
|
handleReport(type) {
|
|
|
_Http.basic({
|