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