提交预约生成参数变更

main
xuechunyuan 3 years ago
parent 0d01381494
commit cb5269edf0
  1. 13
      src/views/examProject.vue

@ -112,21 +112,24 @@ export default {
confirm() { confirm() {
let param = this.proArr; let param = this.proArr;
if (this.GlobalConfig.appMode) { if (this.GlobalConfig.appMode) {
console.log(JSON.stringify(param)) // console.log(JSON.stringify(param))
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({data:param}), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { 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); let retData = JSON.parse(value);
if (retData.success && retData.code == 200 && retData.data.code == 200) { console.log('value2', retData);
if (retData.code == 200) {
this.isShow = true; this.isShow = true;
this.isSuccess = true this.isSuccess = true
} else { } else {
this.failTips = retData.data != undefined ? retData.data.msg : ''; this.failTips = retData.msg;
this.isShow = true; this.isShow = true;
this.isSuccess = false this.isSuccess = false
} }
}) })
} }
else { else {
postExam({data:param}).then(res => { postExam({ data: param }).then(res => {
console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
this.isShow = true; this.isShow = true;

Loading…
Cancel
Save