|
@@ -401,8 +401,10 @@
|
|
|
</body>
|
|
|
|
|
|
<script>
|
|
|
- let tid = {{ .T.tid }}
|
|
|
- let did = {{ .T.did }}
|
|
|
+ let tid = {{ .T.tid }} // 任务id
|
|
|
+ let did = {{ .T.did }} // 数据id
|
|
|
+ let pid = {{ .T.pid }} // 项目id
|
|
|
+ let coll = {{ .T.coll }} // 表名
|
|
|
var allCheckFields = {{ .T.fields }} //本次需标注的所有字段
|
|
|
var moreInfo = {{ .T.moreInfo }} // 更多关联信息
|
|
|
var otherInfo = {{ .T.otherInfo }} //公告关联信息
|
|
@@ -889,7 +891,7 @@
|
|
|
if (uin.select) {
|
|
|
changeStatus = uin.select === oNode.select
|
|
|
}
|
|
|
- uin.status = changeStatus ? 1 : 2
|
|
|
+ uin.status = changeStatus ? "1" : "2"
|
|
|
this.setStatus(uin, uin.status, two, one);
|
|
|
},
|
|
|
openLink(link) {
|
|
@@ -905,7 +907,7 @@
|
|
|
selectChange(uni, status, two, one) {
|
|
|
//状态更新
|
|
|
if (uni.status === '-1' || uni.status === '2') {
|
|
|
- status = 2
|
|
|
+ status = "2"
|
|
|
}
|
|
|
this.setStatus(uni, status, two, one)
|
|
|
},
|
|
@@ -916,7 +918,7 @@
|
|
|
if (nextid === "") {
|
|
|
showMsg("数据已经全部标注完")
|
|
|
} else {
|
|
|
- window.location.href = "/front/user/remark/detail?pid=" + {{ .T.pid }} + "&did=" + nextid + "&s_sourceinfo=" + {{ .T.s_sourceinfo }}
|
|
|
+ window.location.href = "/front/user/remark/list?pid="+pid+"&tid="+tid+"&s_sourceinfo="+coll
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -940,25 +942,25 @@
|
|
|
statusList[tempIndex] = Number(statusList[tempIndex]) + 1
|
|
|
}
|
|
|
if (statusList[1] > 0) {
|
|
|
- tempObj.obj.status = 1
|
|
|
+ tempObj.obj.status = "1"
|
|
|
}
|
|
|
if (statusList[4] > 0 || statusList[3] > 0 || statusList[2] > 0) {
|
|
|
- tempObj.obj.status = 2
|
|
|
+ tempObj.obj.status = "2"
|
|
|
}
|
|
|
if (statusList[4] === tempObj.list.length) {
|
|
|
- tempObj.obj.status = 4
|
|
|
+ tempObj.obj.status = "4"
|
|
|
if (tempObj.obj.title === "标的信息" || tempObj.obj.title === "多包信息" || tempObj.obj.title === "中标候选人信息") {
|
|
|
- tempObj.obj.status = 2
|
|
|
+ tempObj.obj.status = "2"
|
|
|
}
|
|
|
}
|
|
|
if (statusList[3] === tempObj.list.length) {
|
|
|
- tempObj.obj.status = 2
|
|
|
+ tempObj.obj.status = "2"
|
|
|
}
|
|
|
if (statusList[2] === tempObj.list.length) {
|
|
|
- tempObj.obj.status = 2
|
|
|
+ tempObj.obj.status = "2"
|
|
|
}
|
|
|
if (statusList[0] === tempObj.list.length) {
|
|
|
- tempObj.obj.status = -1
|
|
|
+ tempObj.obj.status = "-1"
|
|
|
}
|
|
|
if (!config.type) {
|
|
|
this.checkOneStatus({
|
|
@@ -1010,8 +1012,8 @@
|
|
|
one.content.splice(index, 1)
|
|
|
} else {
|
|
|
two.show = false
|
|
|
- two.status = 4
|
|
|
- this.saveDataTwo(two, 4, one)
|
|
|
+ two.status = "4"
|
|
|
+ this.saveDataTwo(two, "4", one)
|
|
|
}
|
|
|
this.checkOneStatus({
|
|
|
one: one,
|
|
@@ -1093,7 +1095,7 @@
|
|
|
//content: [],
|
|
|
show: true,
|
|
|
isnew: true,
|
|
|
- status: 2,
|
|
|
+ status: "2",
|
|
|
title: "标的物",
|
|
|
uInput: JSON.parse(JSON.stringify(pclfInput))
|
|
|
}
|
|
@@ -1103,7 +1105,7 @@
|
|
|
tempNode = {
|
|
|
//content: [],
|
|
|
show: true,
|
|
|
- status: 2,
|
|
|
+ status: "2",
|
|
|
isnew: true,
|
|
|
title: "子包",
|
|
|
uInput: JSON.parse(JSON.stringify(pfInput))
|
|
@@ -1114,7 +1116,7 @@
|
|
|
tempNode = {
|
|
|
//content: [],
|
|
|
show: true,
|
|
|
- status: 2,
|
|
|
+ status: "2",
|
|
|
isnew: true,
|
|
|
title: "候选人",
|
|
|
uInput: JSON.parse(JSON.stringify(wodfInput))
|
|
@@ -1122,7 +1124,7 @@
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
- // if (one.status >= 2) {
|
|
|
+ // if (one.status >= "2") {
|
|
|
// one.status = '2'
|
|
|
// }
|
|
|
one.content.push(tempNode)
|
|
@@ -1152,7 +1154,7 @@
|
|
|
status: "2",
|
|
|
title: '标段(包)中标金额'
|
|
|
})
|
|
|
- two.status = 2
|
|
|
+ two.status = "2"
|
|
|
this.checkOneStatus({
|
|
|
one: one,
|
|
|
two: two,
|
|
@@ -1183,11 +1185,11 @@
|
|
|
}
|
|
|
if (n === "1" && v.status === "-1") {
|
|
|
v.status = n
|
|
|
- } else if (n === -1) {
|
|
|
+ } else if (n === "-1") {
|
|
|
v.status = n
|
|
|
- } else if (n === 2) {
|
|
|
+ } else if (n === "2") {
|
|
|
v.status = n
|
|
|
- } else if (n === 4) {
|
|
|
+ } else if (n === "4") {
|
|
|
v.status = n
|
|
|
}
|
|
|
});
|
|
@@ -1213,7 +1215,7 @@
|
|
|
one.content.forEach(function (v) {
|
|
|
v.uInput.forEach(function (value) {
|
|
|
var key = value.key
|
|
|
- if (n === 1) {
|
|
|
+ if (n === "1") {
|
|
|
if (key === "bidendtime" || key === "bidopentime" || key === "project_startdate" || key === "project_completedate" ||
|
|
|
key === "publishtime" || key === "signaturedate") {
|
|
|
var val = value.input
|
|
@@ -1266,13 +1268,13 @@
|
|
|
console.log(allCheckFields)
|
|
|
this.editData.filter(function (one) {
|
|
|
if (one.title === "标的信息" || one.title === "多包信息" || one.title === "中标候选人信息") {
|
|
|
- if (allCheckFields[one.key] && one.status === -1) {
|
|
|
+ if (allCheckFields[one.key] && one.status === "-1") {
|
|
|
noTagKey.push(one.title);
|
|
|
}
|
|
|
} else {
|
|
|
one.content.filter(function (v) {
|
|
|
v.uInput.filter(function (u) {
|
|
|
- if (allCheckFields[u.key] && u.status === -1) {
|
|
|
+ if (allCheckFields[u.key] && u.status === "-1") {
|
|
|
noTagKey.push(u.title);
|
|
|
}
|
|
|
})
|
|
@@ -1377,6 +1379,10 @@
|
|
|
var d = JSON.stringify(this.editData);
|
|
|
console.log(d)
|
|
|
var _this = this
|
|
|
+ if (JSON.stringify(this.originData) === d) {
|
|
|
+ this.$alert("未做任何修改");
|
|
|
+ return;
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
url: "/front/data/mark",
|
|
|
method: "post",
|