From c67d0c11a7c56afd51f401cd3402253d54099754 Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Thu, 16 Sep 2021 17:33:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0ticket=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/common/util/tools.js | 3 +++ FrontCode2/sunshine_levy/src/views/index.vue | 12 ++++++------ .../src/views/policyInfo/policyInfo.vue | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 FrontCode2/sunshine_levy/src/common/util/tools.js diff --git a/FrontCode2/sunshine_levy/src/common/util/tools.js b/FrontCode2/sunshine_levy/src/common/util/tools.js new file mode 100644 index 0000000..d06bd84 --- /dev/null +++ b/FrontCode2/sunshine_levy/src/common/util/tools.js @@ -0,0 +1,3 @@ +export function SetTicket(data) { + window.sessionStorage.setItem("ticket", data); +} \ No newline at end of file diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index 7801c5f..e7435b5 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -48,6 +48,7 @@ class="bigImg" /> +
@@ -279,6 +280,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() { @@ -295,6 +297,7 @@ export default { async created() { this.onInit(); console.log("this", this); + SetTicket("8a1188557bda7894017bed584f803119-ticket"); }, methods: { // 获取数据 @@ -306,7 +309,7 @@ export default { type: "POST", data: { // ticket: this.$route.query.ticket - ticket: "8a118a427bda7bed017bed084ec10622-ticket" + ticket: "8a1188557bda7894017bed584f803119-ticket" }, appKey: "es4b8zmz+2001833218+dehllx", onSuccess: data => { @@ -337,6 +340,7 @@ export default { params: { type: type, ticket: this.$route.query.ticket } }); }, + // 加载项目数统计信息 onLoadStatistic() { apis.projectStatistics().then(({ result }) => { this.statistics = result; @@ -348,11 +352,7 @@ export default { // name: "policyInfo", // params: { type: type, ticket: this.$route.query.ticket } // }); - window.location.replace( - "http://localhost:8080/#/policyInfo?id=" + - id + - "&ticket=8a118a427bda7bed017bed084ec10622-ticket" - ); + window.location.replace("http://localhost:8080/#/policyInfo?id=" + id); }, setZwUserAplus(Userid, userName) { // 设置用户信息埋点 diff --git a/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue b/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue index 2b97542..b01aa90 100644 --- a/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue +++ b/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue @@ -26,7 +26,7 @@ export default { dataType: "JSON", type: "POST", data: { - ticket: this.$route.query.ticket, + ticket: window.sessionStorage.getItem("ticket"), id: this.$route.query.id }, appKey: "es4b8zmz+2001833218+dehllx", From fa1bce7667bad58679af07a118591b2a59d5a922 Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Fri, 17 Sep 2021 10:47:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sunshine_levy/src/common/util/tools.js | 1 + FrontCode2/sunshine_levy/src/router/index.js | 6 +- FrontCode2/sunshine_levy/src/views/index.vue | 20 +- .../src/views/policyInfo/policyInfo.vue | 4 +- .../sunshine_levy/src/views/project/index.vue | 130 ++++++------- .../src/views/report/agreement.vue | 87 +++++---- .../src/views/report/evalute.vue | 174 ++++++++++++++++++ 7 files changed, 309 insertions(+), 113 deletions(-) create mode 100644 FrontCode2/sunshine_levy/src/views/report/evalute.vue diff --git a/FrontCode2/sunshine_levy/src/common/util/tools.js b/FrontCode2/sunshine_levy/src/common/util/tools.js index d06bd84..c1ad860 100644 --- a/FrontCode2/sunshine_levy/src/common/util/tools.js +++ b/FrontCode2/sunshine_levy/src/common/util/tools.js @@ -1,3 +1,4 @@ +// 设置ticket export function SetTicket(data) { window.sessionStorage.setItem("ticket", data); } \ No newline at end of file diff --git a/FrontCode2/sunshine_levy/src/router/index.js b/FrontCode2/sunshine_levy/src/router/index.js index 400f3d8..1b41091 100644 --- a/FrontCode2/sunshine_levy/src/router/index.js +++ b/FrontCode2/sunshine_levy/src/router/index.js @@ -26,10 +26,10 @@ export default new Router({ }, // 评估结果页面 { - path: "/report/compensate", - name: "reportCompensate", + path: "/report/evalute", + name: "evaluteResult", component: () => - import ("../views/report/compensate") + import ("../views/report/evalute") }, // 协议结果页面 { diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index e7435b5..42cc1d1 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -23,6 +23,7 @@ {{ data.idCard }}
+
{ @@ -337,7 +336,7 @@ export default { gotoProject(type) { this.$router.push({ name: "projectSelect", - params: { type: type, ticket: this.$route.query.ticket } + params: { type: type, ticket: this.ticket } }); }, // 加载项目数统计信息 @@ -348,11 +347,10 @@ export default { }, // 政策信息页面跳转 pageJump(id) { - // this.$router.push({ - // name: "policyInfo", - // params: { type: type, ticket: this.$route.query.ticket } - // }); - window.location.replace("http://localhost:8080/#/policyInfo?id=" + id); + this.$router.push({ + name: "policyInfo", + params: { ticket: this.ticket, id: id } + }); }, setZwUserAplus(Userid, userName) { // 设置用户信息埋点 diff --git a/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue b/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue index b01aa90..188e07c 100644 --- a/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue +++ b/FrontCode2/sunshine_levy/src/views/policyInfo/policyInfo.vue @@ -26,8 +26,8 @@ export default { dataType: "JSON", type: "POST", data: { - ticket: window.sessionStorage.getItem("ticket"), - id: this.$route.query.id + ticket: this.$route.params.ticket, + id: this.$route.params.id }, appKey: "es4b8zmz+2001833218+dehllx", onSuccess: data => { diff --git a/FrontCode2/sunshine_levy/src/views/project/index.vue b/FrontCode2/sunshine_levy/src/views/project/index.vue index 104114c..7381751 100644 --- a/FrontCode2/sunshine_levy/src/views/project/index.vue +++ b/FrontCode2/sunshine_levy/src/views/project/index.vue @@ -1,17 +1,24 @@ - \ No newline at end of file + diff --git a/FrontCode2/sunshine_levy/src/views/report/agreement.vue b/FrontCode2/sunshine_levy/src/views/report/agreement.vue index f254886..141be81 100644 --- a/FrontCode2/sunshine_levy/src/views/report/agreement.vue +++ b/FrontCode2/sunshine_levy/src/views/report/agreement.vue @@ -3,33 +3,39 @@
-
为您查询到{{ this.result }}条结果
-
+
+ 为您查询到{{ this.info.prjList[0].bcxyList.length }}条结果 +
+
评估报告编号: - {{ item.number }} + {{ info.prjList[0].fhpgList[0].assessmentNo }}
被征收人姓名: - {{ item.name }} + {{ info.userName }}
被征收人房屋地址: - {{ item.address }} + {{ item.houseAddress }}
评估总金额: - {{ item.money }} + {{ info.prjList[0].fhpgList[0].countValue }}
合计补偿金额: - {{ item.money }} + {{ item.summationShouldCompensateMoney }}
@@ -37,7 +43,7 @@
- 签订日期:{{ item.time }} + 签订日期:{{ item.date }}
@@ -45,35 +51,48 @@