This commit is contained in:
2021-09-10 14:41:23 +08:00
27 changed files with 349 additions and 115 deletions

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ewide.NbzsZheliban.Entity.Base
{
[Serializable, System.Runtime.Serialization.DataContract]
public class RespModel
{
/// <summary>
/// 是否成功
/// </summary>
[System.Runtime.Serialization.DataMember]
public bool issuccess { get; set; }
/// <summary>
/// 错误码
/// </summary>
[System.Runtime.Serialization.DataMember]
public string errorcode { get; set; }
[System.Runtime.Serialization.DataMember]
public string message { get; set; }
/// <summary>
///
/// </summary>
[System.Runtime.Serialization.DataMember]
public object data { get; set; }
/// <summary>
///
/// </summary>
[System.Runtime.Serialization.DataMember]
public int allcount { get; set; }
/// <summary>
/// 附加对象
/// </summary>
[System.Runtime.Serialization.DataMember]
public object addition { get; set; }
/// <summary>
/// 消耗时间,单位毫秒
/// </summary>
[System.Runtime.Serialization.DataMember]
public long consume_time { get; set; }
}
}

View File

@@ -1,4 +1,5 @@
using Furion.JsonSerialization;
using Ewide.NbzsZheliban.Entity.Base;
using Furion.JsonSerialization;
using SqlSugar;
using System;
using System.Collections.Generic;
@@ -10,6 +11,5 @@ namespace Ewide.NbzsZheliban.Service
{
public class BaseService : Furion.DynamicApiController.IDynamicApiController
{
}
}

View File

@@ -1,6 +1,10 @@
using Ewide.NbzsZheliban.Entity;
using Ewide.NbzsZheliban.Entity.Base;
using Ewide.NbzsZheliban.Entity.Extends;
using Ewide.NbzsZheliban.Tools;
using Furion;
using Furion.DataEncryption;
using Furion.FriendlyException;
using Furion.JsonSerialization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
@@ -30,35 +34,93 @@ namespace Ewide.NbzsZheliban.Service
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
[HttpGet("/project/list")]
[HttpPost("/project/list")]
[Microsoft.AspNetCore.Authorization.AllowAnonymous]
public async Task<dynamic> PrjList([FromBody] JObject args)
{
var cardno = args.GetJsonValue("cardno", isThrowExp: true);
//住宅调查表
var list_zz_dcb = await db.Ado.SqlQueryAsync<Dcbs>("select ID dcbId,ProjectId PrjId from InvestigateTable b where b.ExpropriatedCardNo=@ExpropriatedCardNo", new List<SugarParameter> { new SugarParameter("ExpropriatedCardNo", cardno, System.Data.DbType.String) }.ToArray());
//非住宅调查表
var list_fzz_dcb = await db.Ado.SqlQueryAsync<Dcbs>("select ID dcbId,ProjectId PrjId from NonResidentialInvestigateTable b where b.PropertyRightCardNo=@ExpropriatedCardNo", new List<SugarParameter> { new SugarParameter("ExpropriatedCardNo", cardno, System.Data.DbType.String) }.ToArray());
//调查表集合
var list_dcbs = list_zz_dcb.Concat(list_fzz_dcb);
//项目列表
var list_projects = await db.Ado.SqlQueryAsync<H5IndexPrjModel>("select a.ID Prjid,a.area,a.HouseAcquisitionDepartment as zsbm,a.CollectDecisionNo1 as year,(isnull(a.CollectDecisionNoHeadName,'')+'['+cast(a.CollectDecisionNo1 as varchar)+']'+ isnull(cast(a.CollectDecisionNo2 as varchar),'')+'号') zsjdh,dbo.get_current_state(a.ID) CurrentState from Projects a where ID in ('" + string.Join("','", list_dcbs.Select(p => p.PrjId)) + "') ");
//分户评估
var InvestigateTableID_param = "'" + string.Join("','", list_dcbs.Select(p => p.dcbId)) + "'";
var list_fhpgs = await db.Ado.SqlQueryAsync<Fhpgs>("select e.ProjectId as PrjId ,d.AssessmentNo,e.HouseAddress,d.countValue from InvestigateTable_Assessment d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select e.ProjectId as PrjId ,AssessmentNo, e.HouseAddress, d.countValue from NonInvestigateTable_Assessment d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ) ;");
//补偿协议
var list_bcxys = await db.Ado.SqlQueryAsync<Bcxy>("select 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 from ResidentialAgreement d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select isnull(d.CollectDecisionNoHeadName, '') + isnull(d.No2, '') + '-' + isnull(d.No3, '') XyNo , d.SwitchProductionWay, e.HouseAddress, d.SummationShouldCompensateMoney, e.ProjectId as PrjId from NonResidentialAgreement d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ); ");
#region
var ticket = args.GetJsonValue("ticket", isThrowExp: true);
//var ticket = Request.Query["ticket"];
if (!string.IsNullOrWhiteSpace(ticket))
{
var time = DateTime.Now.ToString("yyyyMMddHHmmss");
var servicecode = App.Configuration["zlb_setting:servicecode"];
var servicepwd = App.Configuration["zlb_setting:servicepwd"];
var sign = MD5Encryption.Encrypt(servicecode + servicepwd + time);
var datatype = "json";
var url = App.Configuration["zlb_setting:ticket_url"]
.Replace("{servicecode}", servicecode)
.Replace("{time}", time)
.Replace("{sign}", sign)
.Replace("{ticket}", ticket)
.Replace("{datatype}", datatype)
;
var tickerRsltStr = Ewide.NbzsZheliban.Tools.HttpHelper.CallUrl(url, "");
JObject ticketObj = null;
try
{
ticketObj = JObject.Parse(tickerRsltStr);
}
catch (Newtonsoft.Json.JsonReaderException)
{
throw Oops.Oh($"ticket接口返回值有误,[{tickerRsltStr}]");
}
if (ticketObj["result"].Value<int>() != 0)
throw Oops.Oh($"ticket接口返回值有误,[{tickerRsltStr}]");
time = DateTime.Now.ToString("yyyyMMddHHmmss");
sign = MD5Encryption.Encrypt(servicecode + servicepwd + time);
url = App.Configuration["zlb_setting:token_url"]
.Replace("{servicecode}", servicecode)
.Replace("{time}", time)
.Replace("{sign}", sign)
.Replace("{token}", ticketObj["token"].ToString())
.Replace("{datatype}", datatype)
;
var userinfoRsltStr = Ewide.NbzsZheliban.Tools.HttpHelper.CallUrl(url, "");
JObject userinfoObj = null;
try
{
userinfoObj = JObject.Parse(userinfoRsltStr);
}
catch (Newtonsoft.Json.JsonReaderException)
{
throw Oops.Oh($"token接口返回值有误,[{tickerRsltStr}]");
}
if (userinfoObj["result"].Value<int>() != 0)
throw Oops.Oh($"ticket接口返回值有误,[{tickerRsltStr}]");
var cardno = userinfoObj["idnum"].ToString();
var username = userinfoObj["username"].ToString();
#endregion
//var cardno = args.GetJsonValue("cardno", isThrowExp: true);
//住宅调查表
var list_zz_dcb = await db.Ado.SqlQueryAsync<Dcbs>("select ID dcbId,ProjectId PrjId from InvestigateTable b where b.ExpropriatedCardNo=@ExpropriatedCardNo", new List<SugarParameter> { new SugarParameter("ExpropriatedCardNo", cardno, System.Data.DbType.String) }.ToArray());
//非住宅调查表
var list_fzz_dcb = await db.Ado.SqlQueryAsync<Dcbs>("select ID dcbId,ProjectId PrjId from NonResidentialInvestigateTable b where b.PropertyRightCardNo=@ExpropriatedCardNo", new List<SugarParameter> { new SugarParameter("ExpropriatedCardNo", cardno, System.Data.DbType.String) }.ToArray());
//调查表集合
var list_dcbs = list_zz_dcb.Concat(list_fzz_dcb);
//项目列表
var list_projects = await db.Ado.SqlQueryAsync<H5IndexPrjModel>("select a.ID Prjid,a.area,a.HouseAcquisitionDepartment as zsbm,a.CollectDecisionNo1 as year,(isnull(a.CollectDecisionNoHeadName,'')+'['+cast(a.CollectDecisionNo1 as varchar)+']'+ isnull(cast(a.CollectDecisionNo2 as varchar),'')+'号') zsjdh,dbo.get_current_state(a.ID) CurrentState from Projects a where ID in ('" + string.Join("','", list_dcbs.Select(p => p.PrjId)) + "') ");
//分户评估
var InvestigateTableID_param = "'" + string.Join("','", list_dcbs.Select(p => p.dcbId)) + "'";
var list_fhpgs = await db.Ado.SqlQueryAsync<Fhpgs>("select e.ProjectId as PrjId ,d.AssessmentNo,e.HouseAddress,d.countValue from InvestigateTable_Assessment d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select e.ProjectId as PrjId ,AssessmentNo, e.HouseAddress, d.countValue from NonInvestigateTable_Assessment d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ) ;");
//补偿协议
var list_bcxys = await db.Ado.SqlQueryAsync<Bcxy>("select 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 from ResidentialAgreement d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select isnull(d.CollectDecisionNoHeadName, '') + isnull(d.No2, '') + '-' + isnull(d.No3, '') XyNo , d.SwitchProductionWay, e.HouseAddress, d.SummationShouldCompensateMoney, e.ProjectId as PrjId from NonResidentialAgreement d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ); ");
list_projects.ForEach(p =>
list_projects.ForEach(p =>
{
p.FhpgList = list_fhpgs.Where(a => a.PrjId == p.PrjId);
p.BcxyList = list_bcxys.Where(a => a.PrjId == p.PrjId);
});
H5IndexModel h5IndexModel = new()
{
PrjList = list_projects
};
return h5IndexModel;
}
else
{
p.FhpgList = list_fhpgs.Where(a => a.PrjId == p.PrjId);
p.BcxyList = list_bcxys.Where(a => a.PrjId == p.PrjId);
});
H5IndexModel h5IndexModel = new()
{
PrjList = list_projects
};
return h5IndexModel;
throw Oops.Oh("无效访问");
}
}
}
}

View File

@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Http;
using Furion.FriendlyException;
using Microsoft.AspNetCore.Http;
using Microsoft.VisualBasic;
using Newtonsoft.Json.Linq;
using System;
@@ -900,12 +901,12 @@ namespace Ewide.NbzsZheliban.Tools
public static string GetJsonValue(this JObject jObject, string jsonName, bool isToLower = true, bool isThrowExp = false)
{
if (jObject == null)
throw new Exception("参数为空");
throw Oops.Oh("参数为空");
JToken token = jObject[isToLower ? jsonName.ToLower() : jsonName];
if (token == null)
{
if (isThrowExp)
throw new Exception(jsonName + "是必需的");
throw Oops.Oh(jsonName + "是必需的");
return string.Empty;
}
else
@@ -989,7 +990,7 @@ namespace Ewide.NbzsZheliban.Tools
if (jObject == null)
{
if (isThrowExp)
throw new Exception(jsonName + "是必需的");
throw Oops.Oh(jsonName + "是必需的");
return null;
}
string v = GetJsonValue(jObject, jsonName, isToLower);
@@ -1000,7 +1001,7 @@ namespace Ewide.NbzsZheliban.Tools
else
{
if (isThrowExp)
throw new Exception(jsonName + "是必需的");
throw Oops.Oh(jsonName + "是必需的");
return null;
}
}
@@ -1018,7 +1019,7 @@ namespace Ewide.NbzsZheliban.Tools
else
{
if (isThrowExp)
throw new Exception(jsonName + "是必需的");
throw Oops.Oh(jsonName + "是必需的");
return null;
}
}
@@ -1200,7 +1201,7 @@ namespace Ewide.NbzsZheliban.Tools
value = jobj.GetJsonBoolValue(pro.Name, isToLower);
break;
default:
throw new Exception("补充类型:" + propName);
throw Oops.Oh("补充类型:" + propName);
}
pro.SetValue(obj, value, null);
}

View File

@@ -1 +1 @@
e18cbf8e59bc83ce9fd9daee67e8ec04308bbafb
fbae486d0767770514b6ba877c8b825b66bbda21

View File

@@ -1 +1 @@
4bde41c8041738fd99537bb8a528c2972537dead
e152e943102a596d81738a7c8388c9d1012f3a29

View File

@@ -5281,6 +5281,11 @@
"integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==",
"dev": true
},
"js-md5": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz",
"integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
},
"js-tokens": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",

View File

@@ -11,6 +11,7 @@
},
"dependencies": {
"axios": "^0.21.4",
"js-md5": "^0.7.3",
"lib-flexible": "^0.3.2",
"px2rem-loader": "^0.1.9",
"vant": "^2.12.27",

View File

@@ -11,6 +11,7 @@ const url = {
// 项目数统计信息
projectStatistics: '/webapi/project.ashx?action=getStatistics',
getprjdata: 'http://183.136.157.9:7099/api/project/list'
};
export default url;

View File

@@ -0,0 +1,27 @@
import axios from "axios"
const instance = axios.create({
baseURL: "https://some-domain.com/api/",
timeout: 5000,
})
// 添加请求拦截器
axios.interceptors.request.use(function(config) {
// 在发送请求之前做些什么
return config;
}, function(error) {
// 对请求错误做些什么
return Promise.reject(error);
});
// 添加响应拦截器
axios.interceptors.response.use(function(response) {
// 对响应数据做点什么
return response;
}, function(error) {
// 对响应错误做点什么
return Promise.reject(error);
});
export default instance

View File

@@ -7,35 +7,59 @@
</div>
<div>
<div class="baseInfo">
<van-image :src="require('@/assets/img/renyuanliebiao.png')" class="baseImg" />
<van-image
:src="require('@/assets/img/renyuanliebiao.png')"
class="baseImg"
/>
<span class="baseFont">被征收人姓名</span>
<span class="baseFont">{{user.name}}</span>
<span class="baseFont">{{ user.name }}</span>
</div>
<div class="baseInfo">
<van-image :src="require('@/assets/img/credentials_icon.png')" class="baseImg" />
<van-image
:src="require('@/assets/img/credentials_icon.png')"
class="baseImg"
/>
<span class="baseFont">身份证号码</span>
<span class="baseFont">{{user.identityId}}</span>
<span class="baseFont">{{ user.identityId }}</span>
</div>
</div>
<div>
<div class="gridBg centerMagin">
<van-image :src="require('@/assets/img/scan.png')" class="gridImg" />
<van-image :src="require('@/assets/img/evaluation .png')" class="gridImg" />
<van-image :src="require('@/assets/img/compensation.png')" class="gridImg" />
<van-image
:src="require('@/assets/img/scan.png')"
class="gridImg"
/>
<van-image
:src="require('@/assets/img/evaluation .png')"
class="gridImg"
/>
<van-image
:src="require('@/assets/img/compensation.png')"
class="gridImg"
/>
</div>
</div>
</div>
<div class="centerMagin">
<van-image :src="require('@/assets/img/government.png')" class="bigImg" />
<van-image
:src="require('@/assets/img/government.png')"
class="bigImg"
/>
</div>
<div class="centerMagin">
<div class="project">
<div>
<van-image :src="require('@/assets/img/project.png')" class="projectIcon" />
<span class="projectTitle">{{project.name}}</span>
<van-image
:src="require('@/assets/img/project.png')"
class="projectIcon"
/>
<span class="projectTitle">{{ project.name }}</span>
</div>
<div class="projectRight">
<van-image :src="require('@/assets/img/menu_yhxy.png')" class="projectRightIcon" />
<van-image
:src="require('@/assets/img/menu_yhxy.png')"
class="projectRightIcon"
/>
<span class="projectRightFont">协议签订阶段</span>
</div>
</div>
@@ -43,125 +67,176 @@
<div class="projectCenter centerMagin">
<div class="projectCenterInfo">
<div class="projectCenterInfo">
<van-image :src="require('@/assets/img/project_area.png')" class="projectCenterImg" />
<van-image
:src="require('@/assets/img/project_area.png')"
class="projectCenterImg"
/>
<span class="projectCenterFont">项目所在区域</span>
<span class="projectCenterFont">{{project.area}}</span>
<span class="projectCenterFont">{{ project.area }}</span>
</div>
</div>
<div class="projectCenterInfo">
<div class="projectCenterInfo">
<van-image :src="require('@/assets/img/project_dep.png')" class="projectCenterImg" />
<van-image
:src="require('@/assets/img/project_dep.png')"
class="projectCenterImg"
/>
<span class="projectCenterFont">征收部门</span>
<span class="projectCenterFont">{{project.department}}</span>
<span class="projectCenterFont">{{ project.department }}</span>
</div>
</div>
<div class="projectCenterInfo">
<div class="projectCenterInfo">
<van-image :src="require('@/assets/img/project_year.png')" class="projectCenterImg" />
<van-image
:src="require('@/assets/img/project_year.png')"
class="projectCenterImg"
/>
<span class="projectCenterFont">所属年份</span>
<span class="projectCenterFont">{{project.year}}</span>
<span class="projectCenterFont">{{ project.year }}</span>
</div>
</div>
<div class="projectCenterInfo">
<div class="projectCenterInfo">
<van-image :src="require('@/assets/img/project_no.png')" class="projectCenterImg" />
<van-image
:src="require('@/assets/img/project_no.png')"
class="projectCenterImg"
/>
<span class="projectCenterFont">征收决定号</span>
<span class="projectCenterFont" style="color:#3883F1">{{project.num}}</span>
<span class="projectCenterFont" style="color: #3883f1">{{
project.num
}}</span>
</div>
</div>
<div class="centerMagin">
<div class="assess">
<div>
<van-image :src="require('@/assets/img/assess_1.png')" class="assessIcon" />
<van-image
:src="require('@/assets/img/assess_1.png')"
class="assessIcon"
/>
<span class="assessTitle">分户评估结果</span>
</div>
<div>
<van-image :src="require('@/assets/img/skip.png')" class="assessRightIcon" round />
<van-image
:src="require('@/assets/img/skip.png')"
class="assessRightIcon"
round
/>
</div>
</div>
<div class="assessCenter1">
<div class="assessBox">
<span class="projectCenterFont">评估报告编号</span>
<span class="projectCenterFont">{{assess.num}}</span>
<span class="projectCenterFont">{{ assess.num }}</span>
</div>
<div class="assessBox">
<span class="projectCenterFont" style="width: 40%;">被征收房屋地址</span>
<span class="projectCenterFont protocolTitle">{{assess.address}}</span>
<span class="projectCenterFont" style="width: 40%"
>被征收房屋地址</span
>
<span class="projectCenterFont protocolTitle">{{
assess.address
}}</span>
</div>
<div class="assessBox">
<span class="projectCenterFont">评估总金额</span>
<span class="projectTitle" style="color:red">¥{{assess.amount}}</span>
<span class="projectTitle" style="color: red"
>¥{{ assess.amount }}</span
>
</div>
</div>
<div class="assess">
<div>
<van-image :src="require('@/assets/img/assess_2.png')" class="assessIcon" />
<van-image
:src="require('@/assets/img/assess_2.png')"
class="assessIcon"
/>
<span class="assessTitle">补偿协议</span>
</div>
<div>
<van-image :src="require('@/assets/img/skip.png')" class="assessRightIcon" round />
<van-image
:src="require('@/assets/img/skip.png')"
class="assessRightIcon"
round
/>
</div>
</div>
<div class="assessCenter2">
<div class="assessBox">
<span class="projectCenterFont">协议编号</span>
<span class="projectCenterFont">{{retrievalProtocol.num}}</span>
<span class="projectCenterFont">{{ retrievalProtocol.num }}</span>
</div>
<div class="assessBox">
<span class="projectCenterFont" style="width: 40%;">被征收房屋地址</span>
<span class="projectCenterFont protocolTitle">{{retrievalProtocol.address}}</span>
<span class="projectCenterFont" style="width: 40%"
>被征收房屋地址</span
>
<span class="projectCenterFont protocolTitle">{{
retrievalProtocol.address
}}</span>
</div>
<div class="assessBox">
<span class="projectCenterFont">补偿方式</span>
<span class="projectCenterFont">{{retrievalProtocol.compensation}}</span>
<span class="projectCenterFont">{{
retrievalProtocol.compensation
}}</span>
</div>
<div class="assessBox">
<span class="projectCenterFont">合计补偿资金</span>
<span class="projectTitle" style="color:red">¥{{retrievalProtocol.amount}}</span>
<span class="projectTitle" style="color: red"
>¥{{ retrievalProtocol.amount }}</span
>
</div>
</div>
</div>
</div>
<div class="centerMagin">
<van-image :src="require('@/assets/img/expropriationPolicy.png')" class="bigImg" />
<van-image
:src="require('@/assets/img/expropriationPolicy.png')"
class="bigImg"
/>
</div>
<div class="centerMagin">
<span class="projectTitle" style="color:#202020">征收政策</span>
<div class="assessBox" style="padding-left: 5px;padding-right: 5px;">
<span class="font11" style="color:#2c2b2b">{{total}}</span>
<span class="projectTitle" style="color: #202020">征收政策</span>
<div class="assessBox" style="padding-left: 5px; padding-right: 5px">
<span class="font11" style="color: #2c2b2b">{{ total }}</span>
<div>
<span class="font11">查看全部</span>
<van-icon color="#1989fa" name="arrow" />
</div>
</div>
</div>
<div class="centerMagin" style="padding-bottom: 20px;">
<div class="centerMagin" style="padding-bottom: 20px">
<div class="protocolBox">
<van-list :finished="finished" @load="onLoad" v-model="loading">
<div :key="item.id" class="protocolList" v-for="(item,i) in list">
<div class="protocolLine" v-if="i!=list.length-1">
<div class="font14 protocolTitle">{{item.title}}</div>
<div class="assessBox" style="padding-left: 5px;padding-right: 5px;">
<div :key="item.id" class="protocolList" v-for="(item, i) in list">
<div class="protocolLine" v-if="i != list.length - 1">
<div class="font14 protocolTitle">{{ item.title }}</div>
<div
class="assessBox"
style="padding-left: 5px; padding-right: 5px"
>
<div>
<span class="font11">发布时间</span>
<span class="font11">{{item.publish_date}}</span>
<span class="font11">{{ item.publish_date }}</span>
</div>
<div>
<span class="font11">区域</span>
<span class="font11">{{item.area}}</span>
<span class="font11">{{ item.area }}</span>
</div>
</div>
</div>
<div style="padding-bottom: 10px;" v-else>
<div class="font14 protocolTitle">{{item.title}}</div>
<div class="assessBox" style="padding-left: 5px;padding-right: 5px;">
<div style="padding-bottom: 10px" v-else>
<div class="font14 protocolTitle">{{ item.title }}</div>
<div
class="assessBox"
style="padding-left: 5px; padding-right: 5px"
>
<div>
<span class="font11">发布时间</span>
<span class="font11">{{item.publish_date}}</span>
<span class="font11">{{ item.publish_date }}</span>
</div>
<div>
<span class="font11">区域</span>
<span class="font11">{{item.area}}</span>
<span class="font11">{{ item.area }}</span>
</div>
</div>
</div>
@@ -174,55 +249,55 @@
</template>
<script>
import './home.css';
import { apis } from '@/common/apis';
import { token } from '@/common/token';
import "./home.css";
import { apis } from "@/common/apis";
import { token } from "@/common/token";
import request from "@/common/util";
export default {
name: 'home',
name: "home",
data() {
return {
user: {
name: '胡伯钧',
identityId: '3302041982893743782',
name: "胡伯钧",
identityId: "3302041982893743782",
},
project: {
name: '曙光一村地块',
area: '海曙区',
department: '宁海县房屋征收管理中心',
year: '2019',
num: '海政发【2021】28号',
name: "曙光一村地块",
area: "海曙区",
department: "宁海县房屋征收管理中心",
year: "2019",
num: "海政发【2021】28号",
},
assess: {
num: '044',
address: '宁波市江北区泗洲街16号404',
amount: '180234',
num: "044",
address: "宁波市江北区泗洲街16号404",
amount: "180234",
},
retrievalProtocol: {
num: '044',
address: '宁波市江北区泗洲街16号404',
compensation: '产权调换',
amount: '180234',
num: "044",
address: "宁波市江北区泗洲街16号404",
compensation: "产权调换",
amount: "180234",
},
total: '8',
total: "8",
list: [
{
id: 11,
area: '全大市',
title: '宁波市住房和城乡建设委员会开展关于住房的政策',
publish_date: '2021年09月05日',
area: "全大市",
title: "宁波市住房和城乡建设委员会开展关于住房的政策",
publish_date: "2021年09月05日",
},
{
id: 22,
area: '全大市',
title: '宁波市住房和城乡建设委员会开展关于住房的政策',
publish_date: '2021年09月05日',
area: "全大市",
title: "宁波市住房和城乡建设委员会开展关于住房的政策",
publish_date: "2021年09月05日",
},
{
id: 33,
area: '全大市',
title: '宁波市住房和城乡建设委员会开展关于住房的政策',
publish_date: '2021年09月05日',
area: "全大市",
title: "宁波市住房和城乡建设委员会开展关于住房的政策",
publish_date: "2021年09月05日",
},
],
loading: false,
@@ -264,10 +339,13 @@ export default {
},
onInit() {
// this.onLogin();
//获取当前数据
var prjdata = apis.getprjdata({ ticket: this.$route.query.ticket });
console.log(prjdata);
},
onLogin() {
// this.loading = true;
let form = { account: 'zgbqc', password: '111qqqqq' };
let form = { account: "zgbqc", password: "111qqqqq" };
apis
.login(form)
.finally(() => {
@@ -300,6 +378,13 @@ export default {
this.statistics = result;
});
},
padStart(num, n) {
var tbl = [];
var len = n - num.toString().length;
if (len <= 0) return num;
if (!tbl[len]) tbl[len] = new Array(len + 1).join("0");
return tbl[len] + num;
},
},
};
</script>

View File

@@ -38,7 +38,8 @@ import { Divider } from 'vant';
Vue.use(Divider);
Vue.config.productionTip = false
import md5 from 'js-md5'
Vue.prototype.$md5 = md5
/* eslint-disable no-new */
const vm = new Vue({
el: '#app',

View File

@@ -24,3 +24,8 @@ git checkout zsxt_nbzs_h5
打开项目vs,增加类库
递归克隆
git clone --recursive http://118.178.224.202:3000/ewide/zsxt_nbzs_h5.git
--测试回调
https://puser.zjzwfw.gov.cn/sso/newusp.do?action=ssoLogin&servicecode=fwzs&goto=http://183.136.157.9:7099/#/index
https://appapi.zjzwfw.gov.cn/sso/servlet/simpleauth?method=ticketValidation&servicecode=fwzs