update:更新页面接口数据

This commit is contained in:
2021-09-23 14:53:10 +08:00
parent 4e80b23861
commit e0925115ed
9 changed files with 93 additions and 116 deletions

View File

@@ -38,32 +38,14 @@ export default {
mounted() {},
methods: {
onInit() {
mgop({
api: "mgop.kykj.houseexpropriat.getagreementinfop",
host: "https://mapi.zjzwfw.gov.cn/",
dataType: "JSON",
type: "POST",
data: {
ticket:
this.$route.params.ticket ||
window.sessionStorage.getItem("ticket"),
id: "C655515B-FD91-48F2-BD79-EAABAFB7077C"
},
appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: result => {
console.log("pdf.vue页面请求pdf文件:", result);
if (result.data && result.data.success == true) {
console.log("result.data.data:", result.data.data);
this.apidata = result.data.data;
this.pic_width = "100%";
this.pic_height = "100%";
this.isloading = false;
}
},
onFail: err => {
console.log("用户无数据,不展示");
}
});
const result = JSON.parse(JSON.stringify(this.$store.state.info));
if (result.data && result.data.success == true) {
console.log("result.data.data:", result.data.data);
this.apidata = result.data.data;
this.pic_width = "100%";
this.pic_height = "100%";
this.isloading = false;
}
},
saveImages() {
ZWJSBridge.onReady(() => {

View File

@@ -480,6 +480,12 @@ export default {
return {};
},
methods: {},
created() {
Notify({
message: "无附件",
duration: 3000
});
},
mounted() {
html2canvas(this.$refs.image).then(canvas => {
canvas.id = "mycanvas";