update:更新ticket获取方式
This commit is contained in:
@@ -287,6 +287,7 @@
|
|||||||
import "./home.css";
|
import "./home.css";
|
||||||
import { apis } from "@/common/apis";
|
import { apis } from "@/common/apis";
|
||||||
import { mgop } from "@aligov/jssdk-mgop";
|
import { mgop } from "@aligov/jssdk-mgop";
|
||||||
|
import { SetTicket } from "@/common/util//tools";
|
||||||
export default {
|
export default {
|
||||||
name: "home",
|
name: "home",
|
||||||
data() {
|
data() {
|
||||||
@@ -298,13 +299,14 @@ export default {
|
|||||||
totalCount: 0
|
totalCount: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ticket: "8a1188557bda7894017bf257a07e7ccb-ticket"
|
ticket: "8a1189377bdad67c017bf66039d76376-ticket"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
this.onInit();
|
this.onInit();
|
||||||
console.log("this", this);
|
console.log("this", this);
|
||||||
this.setLocationAplus();
|
this.setLocationAplus();
|
||||||
|
SetTicket(this.$route.query.ticket || this.ticket);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取数据
|
// 获取数据
|
||||||
@@ -315,9 +317,7 @@ export default {
|
|||||||
dataType: "JSON",
|
dataType: "JSON",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
ticket: this.$route.query.ticket
|
ticket: this.$route.query.ticket || this.ticket
|
||||||
? this.$route.query.ticket
|
|
||||||
: this.ticket
|
|
||||||
},
|
},
|
||||||
appKey: "es4b8zmz+2001833218+dehllx",
|
appKey: "es4b8zmz+2001833218+dehllx",
|
||||||
onSuccess: data => {
|
onSuccess: data => {
|
||||||
@@ -347,10 +347,8 @@ export default {
|
|||||||
name: "projectSelect",
|
name: "projectSelect",
|
||||||
params: {
|
params: {
|
||||||
type: type,
|
type: type,
|
||||||
ticket: this.$route.params.ticket
|
ticket: this.$route.query.ticket || this.ticket,
|
||||||
? this.$route.params.ticket
|
prjId: id || this.data.prjList[0].prjId
|
||||||
: this.ticket,
|
|
||||||
prjId: id ? id : this.data.prjList[0].prjId
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.js"></script>
|
<script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.js"></script>
|
||||||
<script>
|
<script>
|
||||||
import pdf from "vue-pdf";
|
import pdf from "vue-pdf";
|
||||||
import jquery from "jquery";
|
import $ from "jquery";
|
||||||
import html2canvas from "html2canvas";
|
import html2canvas from "html2canvas";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import request from "@/common/util";
|
import request from "@/common/util";
|
||||||
@@ -37,7 +37,7 @@ export default {
|
|||||||
url: "http://10.19.94.9:7099/api/agreement/info",
|
url: "http://10.19.94.9:7099/api/agreement/info",
|
||||||
method: "post",
|
method: "post",
|
||||||
data: {
|
data: {
|
||||||
ticket: "8a1188557bda7894017bf257a07e7ccb-ticket",
|
ticket: window.sessionStorage.getItem("ticket"),
|
||||||
id: "C655515B-FD91-48F2-BD79-EAABAFB7077C"
|
id: "C655515B-FD91-48F2-BD79-EAABAFB7077C"
|
||||||
},
|
},
|
||||||
headers: { "Content-Type": "application/json; charset=UTF-8" },
|
headers: { "Content-Type": "application/json; charset=UTF-8" },
|
||||||
@@ -49,7 +49,7 @@ export default {
|
|||||||
this.url = window.URL.createObjectURL(
|
this.url = window.URL.createObjectURL(
|
||||||
new Blob(binaryData, { type: "application/pdf" })
|
new Blob(binaryData, { type: "application/pdf" })
|
||||||
);
|
);
|
||||||
jquery("a").prop("href", this.url);
|
$("a").prop("href", this.url);
|
||||||
// if (pdfUrl) {
|
// if (pdfUrl) {
|
||||||
// this.handlePrint(pdfUrl);
|
// this.handlePrint(pdfUrl);
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="text">为您查询到{{ this.prjListLength }}条结果</div>
|
<div class="text">为您查询到{{ this.prjListLength }}条结果</div>
|
||||||
<div
|
<div
|
||||||
:key="index"
|
:key="index"
|
||||||
v-for="(item, index) in this.prjList.bcxyList"
|
v-for="(item, index) in this.prjList.fhpgList"
|
||||||
@click="pageJump()"
|
@click="pageJump()"
|
||||||
>
|
>
|
||||||
<el-card body-style="padding:10px">
|
<el-card body-style="padding:10px">
|
||||||
@@ -92,6 +92,7 @@ export default {
|
|||||||
const prjList = res.prjList.find((item, index) => {
|
const prjList = res.prjList.find((item, index) => {
|
||||||
return item.prjId == this.$route.params.prjId;
|
return item.prjId == this.$route.params.prjId;
|
||||||
});
|
});
|
||||||
|
console.log("find", prjList);
|
||||||
this.prjList = prjList;
|
this.prjList = prjList;
|
||||||
this.prjListLength = prjList.fhpgList.length;
|
this.prjListLength = prjList.fhpgList.length;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user