|
|
|
|
@ -111,39 +111,49 @@ export default { |
|
|
|
|
|
|
|
|
|
confirm() { |
|
|
|
|
let param = this.proArr; |
|
|
|
|
if (this.GlobalConfig.appMode) { |
|
|
|
|
// console.log(JSON.stringify(param)) |
|
|
|
|
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
|
|
|
|
|
console.log('value', value); |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
console.log('value2', retData); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = true |
|
|
|
|
} else { |
|
|
|
|
this.failTips = retData.msg; |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = false |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
postExam({ data: param }).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = true |
|
|
|
|
} else { |
|
|
|
|
this.failTips = res.msg |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = false |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.$toast.loading({ |
|
|
|
|
message: '请求中', |
|
|
|
|
duration: 0, |
|
|
|
|
}) |
|
|
|
|
try { |
|
|
|
|
if (this.GlobalConfig.appMode) { |
|
|
|
|
// console.log(JSON.stringify(param)) |
|
|
|
|
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
console.log('value', value); |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
console.log('value2', retData); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = true |
|
|
|
|
} else { |
|
|
|
|
this.failTips = retData.msg; |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = false |
|
|
|
|
} |
|
|
|
|
}, err => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
postExam({ data: param }).then(res => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = true |
|
|
|
|
} else { |
|
|
|
|
this.failTips = res.msg |
|
|
|
|
this.isShow = true; |
|
|
|
|
this.isSuccess = false |
|
|
|
|
} |
|
|
|
|
}, err => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} catch (error) { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
} |
|
|
|
|
// if(this.proArr.length != 0){ |
|
|
|
|
// |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
clickFail() { |
|
|
|
|
|