update:更新刷新无内容bug

This commit is contained in:
2021-09-27 15:46:11 +08:00
parent e1091e9212
commit 6c21c8b36e
10 changed files with 156 additions and 51 deletions

View File

@@ -25,6 +25,7 @@
<script>
// import pdf from "vue-pdf";
import $ from "jquery";
import { mgop } from "@aligov/jssdk-mgop";
export default {
components: {},
data() {
@@ -53,14 +54,30 @@ export default {
},
methods: {
onInit() {
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;
}
mgop({
api: "mgop.kykj.houseexpropriat.getHouseEstimateInfoJzlr",
host: "https://mapi.zjzwfw.gov.cn/",
dataType: "JSON",
type: "POST",
data: {
ticket: window.sessionStorage.getItem("ticket"),
id: window.sessionStorage.getItem("fhpgId"),
type: window.sessionStorage.getItem("fhpgType")
},
appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => {
const result = data;
if (result.data && result.data.success == true) {
this.apidata = result.data.data;
this.pic_width = "100%";
this.pic_height = "100%";
this.isloading = false;
}
},
onFail: err => {
console.log("请求失败", err);
}
});
},
saveImages() {
ZWJSBridge.onReady(() => {