|
|
|
|
@ -58,7 +58,7 @@ export default { |
|
|
|
|
isFinished: false, |
|
|
|
|
examArr: [], |
|
|
|
|
userInfo: null, |
|
|
|
|
loading:true, |
|
|
|
|
loading: true, |
|
|
|
|
systemTime: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'), |
|
|
|
|
setInterval: 0, |
|
|
|
|
interVal: null, |
|
|
|
|
@ -118,7 +118,9 @@ export default { |
|
|
|
|
}) |
|
|
|
|
try { |
|
|
|
|
if (this.GlobalConfig.appMode) { |
|
|
|
|
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdckwdyy", JSON.stringify({ createDept: "", cupCardNo: this.userInfo.papersnumber, current: this.current, size: this.size }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdckwdyy", JSON.stringify({ createDept: "", cupCardNo: this.Base64.encode(this.userInfo.papersnumber), current: this.current, size: this.size }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
@ -153,7 +155,7 @@ export default { |
|
|
|
|
// } |
|
|
|
|
this.examArr = [...this.examArr, ...list]; |
|
|
|
|
console.log(this.examArr) |
|
|
|
|
if(retData.data.records.length == 0 ) { |
|
|
|
|
if (retData.data.records.length == 0) { |
|
|
|
|
// console.log('ces') |
|
|
|
|
this.isFinished = true |
|
|
|
|
} else { |
|
|
|
|
@ -165,9 +167,10 @@ export default { |
|
|
|
|
}, err => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
myRecord("", this.userInfo.papersnumber, this.current, this.size).then(res => { |
|
|
|
|
myRecord("", this.Base64.encode(this.userInfo.papersnumber), this.current, this.size).then(res => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
let list = res.data.records; |
|
|
|
|
// if(res.data.pages > 1){ |
|
|
|
|
@ -366,7 +369,7 @@ export default { |
|
|
|
|
this.$toast('操作成功'); |
|
|
|
|
this.examArr.map(item => { |
|
|
|
|
let tmp = item.details.find(item1 => item1.id == row.id) |
|
|
|
|
if(tmp){ |
|
|
|
|
if (tmp) { |
|
|
|
|
tmp.apmStatus = 1; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
@ -389,11 +392,11 @@ export default { |
|
|
|
|
|
|
|
|
|
this.examArr.map(item => { |
|
|
|
|
let tmp = item.details.find(item1 => item1.id == row.id) |
|
|
|
|
if(tmp){ |
|
|
|
|
if (tmp) { |
|
|
|
|
tmp.apmStatus = 1 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.$toast.clear() |
|
|
|
|
this.$toast.clear() |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.current = 1; |
|
|
|
|
// this.examArr = []; |
|
|
|
|
|