update:更新刷新无内容bug
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user