bugfix
前端二次进入页面和二次回退问题解决
This commit is contained in:
@@ -170,6 +170,12 @@ namespace Ewide.NbzsZheliban.Service
|
|||||||
return await db.Ado.SqlQueryAsync<Bcxy>("select d.id,isnull(d.CollectDecisionNoHeadName,'')+isnull(d.No1,'')+'-'+isnull(d.No2,'')+(case when (d.No3 is null or d.No3 = '') then '' else ('-'+d.No3) end ) XyNo,d.SwitchProductionWay,e.HouseAddress,d.SummationShouldCompensateMoney,e.ProjectId as PrjId,e.id dcbId,d.SignTime,1 type from ResidentialAgreement d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.IsInRecords = 1 and d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select d.id,isnull(d.CollectDecisionNoHeadName, '') + isnull(d.No2, '') + '-' + isnull(d.No3, '') XyNo , d.SwitchProductionWay, e.HouseAddress, d.SummationShouldCompensateMoney, e.ProjectId as PrjId,e.id dcbId,d.SignTime,2 type from NonResidentialAgreement d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.IsInRecords = 1 and d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ); ");
|
return await db.Ado.SqlQueryAsync<Bcxy>("select d.id,isnull(d.CollectDecisionNoHeadName,'')+isnull(d.No1,'')+'-'+isnull(d.No2,'')+(case when (d.No3 is null or d.No3 = '') then '' else ('-'+d.No3) end ) XyNo,d.SwitchProductionWay,e.HouseAddress,d.SummationShouldCompensateMoney,e.ProjectId as PrjId,e.id dcbId,d.SignTime,1 type from ResidentialAgreement d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.IsInRecords = 1 and d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select d.id,isnull(d.CollectDecisionNoHeadName, '') + isnull(d.No2, '') + '-' + isnull(d.No3, '') XyNo , d.SwitchProductionWay, e.HouseAddress, d.SummationShouldCompensateMoney, e.ProjectId as PrjId,e.id dcbId,d.SignTime,2 type from NonResidentialAgreement d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.IsInRecords = 1 and d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ); ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="cardno"></param>
|
||||||
|
/// <param name="username"></param>
|
||||||
|
/// <returns></returns>
|
||||||
private async Task<H5IndexModel> GetInfoByCardNoAsync(string cardno, string username)
|
private async Task<H5IndexModel> GetInfoByCardNoAsync(string cardno, string username)
|
||||||
{
|
{
|
||||||
var cachedata = _cache.Get("IndexData-" + cardno);
|
var cachedata = _cache.Get("IndexData-" + cardno);
|
||||||
@@ -205,7 +211,7 @@ namespace Ewide.NbzsZheliban.Service
|
|||||||
{
|
{
|
||||||
ID = b.ID,
|
ID = b.ID,
|
||||||
Contents = b.Contents,
|
Contents = b.Contents,
|
||||||
PublicTime = b.PublicTime.HasValue ? b.PublicTime.Value.ToString("yyyy-MM-dd") : string.Empty,
|
PublicTime = b.PublicTime.ToString(),
|
||||||
Title = b.Title,
|
Title = b.Title,
|
||||||
Area = b.Area
|
Area = b.Area
|
||||||
}).ToList();
|
}).ToList();
|
||||||
@@ -217,11 +223,15 @@ namespace Ewide.NbzsZheliban.Service
|
|||||||
{
|
{
|
||||||
ID = b.ID,
|
ID = b.ID,
|
||||||
Contents = b.Contents,
|
Contents = b.Contents,
|
||||||
PublicTime = b.PublicTime.HasValue ? b.PublicTime.Value.ToString("yyyy-MM-dd") : string.Empty,
|
PublicTime = b.PublicTime.ToString(),
|
||||||
Title = b.Title,
|
Title = b.Title,
|
||||||
Area = b.Area
|
Area = b.Area
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
list_PoliciesRegulations.ForEach(a =>
|
||||||
|
{
|
||||||
|
a.PublicTime = Convert.ToDateTime(a.PublicTime).ToString("yyyy-MM-dd");
|
||||||
|
});
|
||||||
//移除没有协议也没有分户评估的项目 (空项目)
|
//移除没有协议也没有分户评估的项目 (空项目)
|
||||||
list_projects.FindAll(a => (a.BcxyList == null || a.BcxyList.Count == 0) && (a.FhpgList == null || a.FhpgList.Count == 0)).ForEach(a =>
|
list_projects.FindAll(a => (a.BcxyList == null || a.BcxyList.Count == 0) && (a.FhpgList == null || a.FhpgList.Count == 0)).ForEach(a =>
|
||||||
{
|
{
|
||||||
@@ -403,6 +413,12 @@ namespace Ewide.NbzsZheliban.Service
|
|||||||
var ticket = args.GetJsonValue("ticket", isThrowExp: true);
|
var ticket = args.GetJsonValue("ticket", isThrowExp: true);
|
||||||
var id = args.GetJsonGuidValue("id", isThrowExp: true);
|
var id = args.GetJsonGuidValue("id", isThrowExp: true);
|
||||||
JObject userInfoObj = GetInfoByTicket(ticket);
|
JObject userInfoObj = GetInfoByTicket(ticket);
|
||||||
|
//var cachedata=_cache.Get($"CacheData-ResidentialAgreement");
|
||||||
|
//if (!string.IsNullOrWhiteSpace(cachedata))
|
||||||
|
//{
|
||||||
|
// var listBcxy = JSON.Deserialize<List<Bcxy>>(cachedata);
|
||||||
|
// XyFile= listBcxy.Where(p => p.Id == id.ToString()).Select(p => new {ID= p.Id, XyFile=p.XyFile }).First();
|
||||||
|
//}
|
||||||
var XyFile = "";
|
var XyFile = "";
|
||||||
//住宅
|
//住宅
|
||||||
var entity_zz = db.Queryable<Nbzs.Entity.ResidentialAgreement>().Where(p => p.ID == id).Select(p => new { p.ID, p.XyFile }).First();
|
var entity_zz = db.Queryable<Nbzs.Entity.ResidentialAgreement>().Where(p => p.ID == id).Select(p => new { p.ID, p.XyFile }).First();
|
||||||
@@ -430,7 +446,7 @@ namespace Ewide.NbzsZheliban.Service
|
|||||||
|
|
||||||
var filePath = GetCurrentRootPath() + XyFile;
|
var filePath = GetCurrentRootPath() + XyFile;
|
||||||
var pdfFile = new FileInfo(filePath);
|
var pdfFile = new FileInfo(filePath);
|
||||||
if (File.Exists(pdfFile.Directory + "\\lock"))
|
if (File.Exists(pdfFile.Directory + "\\" + pdfFile.Name + ".lock"))
|
||||||
{
|
{
|
||||||
var picCount = pdfFile.Directory.GetFiles(pdfFile.Name + "-*.jpg").Length;
|
var picCount = pdfFile.Directory.GetFiles(pdfFile.Name + "-*.jpg").Length;
|
||||||
for (int i = 0; i < picCount; i++)
|
for (int i = 0; i < picCount; i++)
|
||||||
@@ -458,13 +474,13 @@ namespace Ewide.NbzsZheliban.Service
|
|||||||
pics.Add(current_domain + XyFile + "-" + i + ".jpg");
|
pics.Add(current_domain + XyFile + "-" + i + ".jpg");
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
File.WriteAllText(pdfFile.Directory.FullName + "\\lock", "lock");
|
File.WriteAllText(pdfFile.Directory.FullName + "\\" + pdfFile.Name + ".lock", pdfFile.Name + ".lock");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
//throw Oops.Oh(ex.Message);
|
throw Oops.Oh(ex.Message + ex.StackTrace);
|
||||||
throw Oops.Oh(-2002, "无附件文件[" + nbzs_domain + XyFile + "]");
|
throw Oops.Oh(-2002, "无附件文件[" + nbzs_domain + XyFile + "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,8 +3,28 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0" />
|
<meta name="viewport"
|
||||||
|
content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0" />
|
||||||
<title>宁波房屋征收</title>
|
<title>宁波房屋征收</title>
|
||||||
|
<script>
|
||||||
|
function getQueryString(name) {
|
||||||
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||||
|
var r = window.location.search.substr(1).match(reg);
|
||||||
|
if (r != null) return unescape(r[2]); return null;
|
||||||
|
}
|
||||||
|
//debugger
|
||||||
|
var ticket = getQueryString('ticket');
|
||||||
|
console.log('1201-ticket' + ticket)
|
||||||
|
if (ticket)
|
||||||
|
window.sessionStorage.setItem('ticket', ticket)
|
||||||
|
else {
|
||||||
|
if (window.sessionStorage.getItem('ticket') == null) {
|
||||||
|
setTimeout(function () { window.close() }, 10);
|
||||||
|
//window.open('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
|
||||||
|
location.replace('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script type="text/javascript" src="https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085"></script>
|
<script type="text/javascript" src="https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085"></script>
|
||||||
<script type="text/javascript" src="//jssdk.yyhj.zjzwfw.gov.cn/jsbridge/v2.0.0/bridge.min.js"></script>
|
<script type="text/javascript" src="//jssdk.yyhj.zjzwfw.gov.cn/jsbridge/v2.0.0/bridge.min.js"></script>
|
||||||
<!-- 引入ZWJSBridge -->
|
<!-- 引入ZWJSBridge -->
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
export function SetTicket(data) {
|
export function SetTicket(data) {
|
||||||
window.sessionStorage.setItem("ticket", data);
|
window.sessionStorage.setItem("ticket", data);
|
||||||
}
|
}
|
||||||
|
export function GetTicket() {
|
||||||
|
window.sessionStorage.getItem("ticket");
|
||||||
|
}
|
||||||
|
|
||||||
// 设置项目id
|
// 设置项目id
|
||||||
export function SetProjectId(data) {
|
export function SetProjectId(data) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const router = new Router({
|
|||||||
name: "index",
|
name: "index",
|
||||||
meta: { index: 1, title: "宁波房屋征收" },
|
meta: { index: 1, title: "宁波房屋征收" },
|
||||||
component: () =>
|
component: () =>
|
||||||
import ("../views")
|
import("../views/transit")
|
||||||
},
|
},
|
||||||
// 选择项目页面
|
// 选择项目页面
|
||||||
{
|
{
|
||||||
@@ -67,15 +67,42 @@ const router = new Router({
|
|||||||
meta: { index: 8, title: "政策详情" },
|
meta: { index: 8, title: "政策详情" },
|
||||||
component: () =>
|
component: () =>
|
||||||
import("../views/policyInfo/policyInfo")
|
import("../views/policyInfo/policyInfo")
|
||||||
|
}, {
|
||||||
|
path: "/final",
|
||||||
|
name: "final",
|
||||||
|
meta: { index: 9, title: "宁波房屋征收" },
|
||||||
|
component: () =>
|
||||||
|
import("../views")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
|
//debugger
|
||||||
|
console.log('1201-进入路由1--form-to:' + from.name + "->" + to.name);
|
||||||
if (to.meta.title) {
|
if (to.meta.title) {
|
||||||
document.title = to.meta.title;
|
document.title = to.meta.title;
|
||||||
}
|
}
|
||||||
|
// if (from.name == null && to.name == 'index') {
|
||||||
|
// router.push('/transit');
|
||||||
|
// next();
|
||||||
|
// } else {
|
||||||
|
if (from.name == 'final' && to.name == 'index') {
|
||||||
|
console.log('1201-进入判断2--form-to:' + from.name + "->" + to.name);
|
||||||
|
ZWJSBridge.close().then((result) => {
|
||||||
|
console.log('1201-进入close回调3--form-to:' + from.name + "->" + to.name);
|
||||||
|
console.log(result);
|
||||||
|
}).catch((error) => {
|
||||||
|
console.log('1201-进入close回调异常4--form-to:' + from.name + "->" + to.name);
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
console.log('1201-退出之前5--form-to:' + from.name + "->" + to.name);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.log('1201-next之前6--form-to:' + from.name + "->" + to.name);
|
||||||
next();
|
next();
|
||||||
|
}
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div @click="gotoProject('pg')" style="background: #f1ae4b">
|
<div @click="gotoProject('pg')" style="background: #f1ae4b">
|
||||||
<img src="@/assets/img/evaluation.png" />
|
<img src="@/assets/img/evaluation.png" />
|
||||||
<span>查评估结果</span>
|
<span>查评估报告</span>
|
||||||
</div>
|
</div>
|
||||||
<div @click="gotoProject('xy')" style="background: #16d7ed">
|
<div @click="gotoProject('xy')" style="background: #16d7ed">
|
||||||
<img src="@/assets/img/compensation.png" />
|
<img src="@/assets/img/compensation.png" />
|
||||||
@@ -286,25 +286,35 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (!this.$route.query.ticket) {
|
// SetTicket(this.$route.query.ticket);
|
||||||
// window.location.replace(
|
// if (!this.$route.query.ticket) {
|
||||||
// "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs"
|
// // //this.$router.push('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs');
|
||||||
// );
|
// // ZWJSBridge.openLink({
|
||||||
ZWJSBridge.openLink({
|
// // url: "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs",
|
||||||
url: "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs",
|
// // })
|
||||||
})
|
// // .then((result) => {
|
||||||
.then((result) => {
|
// // console.log('1130-1'+result)
|
||||||
console.log(result);
|
// // window.parent.location.reload();
|
||||||
})
|
// // ZWJSBridge.close();
|
||||||
.catch((error) => {
|
// // })
|
||||||
console.log(error);
|
// // .catch((error) => {
|
||||||
});
|
// // console.log(error);
|
||||||
} else {
|
// // });
|
||||||
this.onInit();
|
// // ZWJSBridge.close()
|
||||||
}
|
// // .then((result) => {
|
||||||
|
// // window.location.replace(
|
||||||
|
// // "https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs&goto=https://mapi.zjzwfw.gov.cn/web/mgop/gov-open/zj/2001833218/reserved/index.html"
|
||||||
|
// // );
|
||||||
|
// // })
|
||||||
|
// // .catch((error) => {
|
||||||
|
// // console.log(error);
|
||||||
|
// // });
|
||||||
|
// } else {
|
||||||
// this.onInit();
|
// this.onInit();
|
||||||
|
// }
|
||||||
|
this.onInit();
|
||||||
this.setLocationAplus();
|
this.setLocationAplus();
|
||||||
SetTicket(this.$route.query.ticket);
|
// SetTicket(this.$route.query.ticket);
|
||||||
$(".logout").css("display", "none");
|
$(".logout").css("display", "none");
|
||||||
if (sessionStorage.getItem("mode") == "older") {
|
if (sessionStorage.getItem("mode") == "older") {
|
||||||
changeStyle();
|
changeStyle();
|
||||||
@@ -313,6 +323,24 @@ export default {
|
|||||||
$("#app").addClass("old_app3");
|
$("#app").addClass("old_app3");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
beforeRouteLeave(to, from, next) {
|
||||||
|
//debugger;
|
||||||
|
if (from.name == "final" && to.name == "index") {
|
||||||
|
ZWJSBridge.close()
|
||||||
|
.then((result) => {
|
||||||
|
console.log(
|
||||||
|
"1201-index页面的close回调3--form-to:" + from.name + "->" + to.name
|
||||||
|
);
|
||||||
|
console.log(result);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.log(
|
||||||
|
"1201-index页面的close回调异常4--form-to:" + from.name + "->" + to.name
|
||||||
|
);
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
} else next();
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (sessionStorage.getItem("mode") == "older") {
|
if (sessionStorage.getItem("mode") == "older") {
|
||||||
$(".container").addClass("old_container");
|
$(".container").addClass("old_container");
|
||||||
@@ -327,7 +355,8 @@ export default {
|
|||||||
dataType: "JSON",
|
dataType: "JSON",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
ticket: this.$route.query.ticket,
|
ticket:
|
||||||
|
this.$route.query.ticket || window.sessionStorage.getItem("ticket"),
|
||||||
},
|
},
|
||||||
appKey: "es4b8zmz+2001833218+dehllx",
|
appKey: "es4b8zmz+2001833218+dehllx",
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
@@ -501,6 +530,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
scan() {
|
scan() {
|
||||||
|
//this.$router.push("http://localhost:8080/#/");
|
||||||
//扫一扫
|
//扫一扫
|
||||||
ZWJSBridge.scan({ type: "qrCode" })
|
ZWJSBridge.scan({ type: "qrCode" })
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|||||||
16
FrontCode2/sunshine_levy/src/views/transit/index.vue
Normal file
16
FrontCode2/sunshine_levy/src/views/transit/index.vue
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
//debugger;
|
||||||
|
this.$router.push("final");
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -35,7 +35,8 @@
|
|||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"nbzs_file_path": "D:\\1_发布程序",
|
"nbzs_file_path": "D:\\1_发布程序",
|
||||||
"nbzs_domain-bak": "https://zsxt.nbzs.org.cn",
|
"nbzs_domain-bak": "https://zsxt.nbzs.org.cn",
|
||||||
"nbzs_domain": "http://118.178.224.202:2258/",
|
"nbzs_domain_118": "http://118.178.224.202:2258/",
|
||||||
|
"nbzs_domain": "http://10.19.94.9:8020/",
|
||||||
"current_domain": "http://localhost:5566/",
|
"current_domain": "http://localhost:5566/",
|
||||||
"CorsAccessorSettings": {
|
"CorsAccessorSettings": {
|
||||||
"PolicyName": "自定义跨域策略名",
|
"PolicyName": "自定义跨域策略名",
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
@@ -0,0 +1 @@
|
|||||||
|
lock
|
||||||
Reference in New Issue
Block a user