Commit 2838f120 by 米嘉伟

案件信息卡取消请求

parent 11c2df41
......@@ -8,6 +8,7 @@
*/
import bzxxsh from '../netmgr/bzxxgl/bzxxsh'
import drFptx from '../netmgr/drFptx/drFptx'
import ajxxk from '../netmgr/xxk/ajxxk'
import xtfkgl from '../netmgr/xtfkgl/xtfkgl'
import cxyrd from '../netmgr/cxyrd/cxyrd'
import workstream from '../netmgr/workstream/workstream'
......@@ -15,6 +16,7 @@ import workstream from '../netmgr/workstream/workstream'
export default {
bzxxsh,
drFptx,
ajxxk,
xtfkgl,
cxyrd,
workstream
......
import addrType from '../../netmgr/NetAddressType'
const _path = {
getCaseBybarcode: addrType.api + '/org/case/barcode',
getCasePalmBybarcode: addrType.api + '/org/case/palm/barcode'
}
export default {
getCaseBybarcode (_parameter) {
return fHttp.postJson(
_path.getCaseBybarcode,
_parameter,
fHttp.closeLoad(fHttp.closeTip())
)
},
getCasePalmBybarcode (_parameter) {
return fHttp.postJson(
_path.getCasePalmBybarcode,
_parameter,
fHttp.closeLoad(fHttp.closeTip())
)
}
}
\ No newline at end of file
......@@ -263,6 +263,7 @@ export default {
this.ysajjbxx.id = val.id;
if (this.drawer == true) {
console.log('打开信息卡')
this.getfileinfo();
this.getCaseBybarcode();
}
......@@ -285,61 +286,88 @@ export default {
getCasePalmBybarcode () {
// 案件掌纹原图
let self = this;
this.$axios
.post(
"/api/org/case/palm/barcode",
{ barcode: this.ysajjbxx.ysxtAsjbh },
{ loading: false }
)
.then(response => {
console.log(response.data);
if (response.data.code == 0) { //请求成功 代码为0
console.log(response.data.ret.length, 'response.data.ret.length')
self.CasePlamNum = response.data.ret.length;
NetUtil.ajxxk.getCasePalmBybarcode({ barcode: this.ysajjbxx.ysxtAsjbh },).then(response => {
if (response.code == 0) { //请求成功 代码为0
self.CasePlamNum = response.ret.length;
if (self.CasePlamNum > 0) {
for (let i = 0; i <= response.data.ret.length; i++) {
for (let i = 0; i <= response.ret.length; i++) {
let arr = {
code: null,
img: null
};
arr.code = response.data.ret[i].seq;
arr.img = response.data.ret[i].image;
arr.code = response.ret[i].seq;
arr.img = response.ret[i].image;
self.CasePlamImg.push(arr);
}
// self.$forceUpdate()
console.log(self.CasePlamImg, "CasePlamImg");
}
// 去掉加载状态
self.casePlamLoading = false;
} else if (response.data.code == 4) {
} else if (response.code == 4) {
// 去掉加载状态
self.CasePlamNum = 0
self.casePlamLoading = false;
}
})
.catch(function (error) {
}).catch(function (error) {
//console.log(error);
});
// this.$axios
// .post(
// "/api/org/case/palm/barcode",
// { barcode: this.ysajjbxx.ysxtAsjbh },
// { loading: false }
// )
// .then(response => {
// console.log(response.data);
// if (response.data.code == 0) { //请求成功 代码为0
// console.log(response.data.ret.length, 'response.data.ret.length')
// self.CasePlamNum = response.data.ret.length;
// if (self.CasePlamNum > 0) {
// for (let i = 0; i <= response.data.ret.length; i++) {
// let arr = {
// code: null,
// img: null
// };
// arr.code = response.data.ret[i].seq;
// arr.img = response.data.ret[i].image;
// self.CasePlamImg.push(arr);
// }
// }
// // 去掉加载状态
// self.casePlamLoading = false;
// } else if (response.data.code == 4) {
// // 去掉加载状态
// self.CasePlamNum = 0
// self.casePlamLoading = false;
// }
// })
// .catch(function (error) {
// //console.log(error);
// });
},
getCaseBybarcode () {
// 案件原图
let self = this;
this.$axios
.post(
"api/org/case/barcode",
{ barcode: this.ysajjbxx.ysxtAsjbh },
{ loading: false }
)
.then(response => {
if (response.data.code == 0) { //请求成功 代码为0
self.CaseImgNum = response.data.ret.length;
NetUtil.ajxxk.getCaseBybarcode({ barcode: this.ysajjbxx.ysxtAsjbh },).then(response => {
console.log(response.ret, 'gaigaigai')
if (response.code == 0) { //请求成功 代码为0
self.CaseImgNum = response.ret.length;
if (self.CaseImgNum > 0) {
for (let i = 0; i <= response.data.ret.length; i++) {
for (let i = 0; i <= response.ret.length; i++) {
let arr = {
code: null,
img: null
};
arr.code = response.data.ret[i].seq;
arr.img = response.data.ret[i].image;
arr.code = response.ret[i].seq;
arr.img = response.ret[i].image;
self.CaseImg.push(arr);
}
// self.$forceUpdate()
......@@ -347,14 +375,46 @@ export default {
}
// 去掉加载状态
self.caseLoading = false;
} else if (response.data.code == 4) {
} else if (response.code == 4) {
// 去掉加载状态
self.CaseImgNum = 0
self.caseLoading = false;
}
})
.catch(function (error) {
}).catch(function (error) {
//console.log(error);
});
// this.$axios
// .post(
// "api/org/case/barcode",
// { barcode: this.ysajjbxx.ysxtAsjbh },
// { loading: false }
// )
// .then(response => {
// if (response.data.code == 0) { //请求成功 代码为0
// self.CaseImgNum = response.data.ret.length;
// if (self.CaseImgNum > 0) {
// for (let i = 0; i <= response.data.ret.length; i++) {
// let arr = {
// code: null,
// img: null
// };
// arr.code = response.data.ret[i].seq;
// arr.img = response.data.ret[i].image;
// self.CaseImg.push(arr);
// }
// // self.$forceUpdate()
// console.log(self.CaseImg, "CaseImg");
// }
// // 去掉加载状态
// self.caseLoading = false;
// } else if (response.data.code == 4) {
// // 去掉加载状态
// self.caseLoading = false;
// }
// })
// .catch(function (error) {
// //console.log(error);
// });
},
getfileinfo () {
// 获取发查询信息
......@@ -392,6 +452,7 @@ export default {
this.CasePlamImg = [];
this.casePlamLoading = true;
this.radio1 = 1;
fHttp.cancel()
},
closeDrawer () {
this.drawer = false;
......@@ -403,6 +464,7 @@ export default {
this.CasePlamImg = [];
this.casePlamLoading = true;
this.radio1 = 1;
fHttp.cancel()
}
}
};
......
......@@ -148,7 +148,7 @@ export default {
formTemplate: cjxxmb,
tpl: "1",
fr_cpt_url:
"http://192.168.128.119:8075/webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=1&unitcode=%27540000000000%27&sj=%272022-01%27#/report",
"http://192.168.128.106:8075/webroot/decision/view/report?viewlet=count%252Fcj.cpt&status=1&unitcode=%27540000000000%27&sj=%272022-01%27#/report",
};
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment