diff --git a/src/views/zh/housingestateInfo/HousingestateInfo.api.ts b/src/views/zh/housingestateInfo/HousingestateInfo.api.ts index 33d1420..d8e4956 100644 --- a/src/views/zh/housingestateInfo/HousingestateInfo.api.ts +++ b/src/views/zh/housingestateInfo/HousingestateInfo.api.ts @@ -16,6 +16,9 @@ enum Api { queryXqHyTdcsList = '/zh/blHousingestateInfo/queryXqHyTdcsList', queryXqHyTdzlList = '/zh/blHousingestateInfo/queryXqHyTdzlList', housingestateList = '/zh/hy/queryHousingestateList', + + queryXzhyDetailList = '/zh/blHousingestateInfo/queryXzhyDetailList', + queryTdcsDetailList = '/zh/blHousingestateInfo/queryTdcsDetailList', } /** @@ -23,7 +26,8 @@ enum Api { * @param params */ export const housingestateList = (params) => defHttp.get({ url: Api.housingestateList, params }); -export const queryXqHyTdcsPageList = (params) => defHttp.get({ url: Api.queryXqHyTdcsPageList, params }); +export const queryXzhyDetailList = (params) => defHttp.get({ url: Api.queryXzhyDetailList, params }); +export const queryTdcsDetailList = (params) => defHttp.get({ url: Api.queryTdcsDetailList, params }); /** * 导出api * @param params diff --git a/src/views/zh/housingestateInfo/HousingestateInfo.data.ts b/src/views/zh/housingestateInfo/HousingestateInfo.data.ts index 9ca136d..895ecd3 100644 --- a/src/views/zh/housingestateInfo/HousingestateInfo.data.ts +++ b/src/views/zh/housingestateInfo/HousingestateInfo.data.ts @@ -114,3 +114,128 @@ export const tdzlColumns : BasicColumn[] =[ width: '150px', } ] + + + +export const detailXzhyColumns : BasicColumn[] =[ + { + title: '小区名称', + dataIndex: 'housingestateName', + key: 'housingestateName', + align: 'center' + }, + { + title: '设备地点', + dataIndex: 'content', + key: 'content', + align: 'center' + }, + { + title: '电话', + dataIndex: 'phone', + key: 'phone', + align: 'center' + }, + { + title: '注册时间', + dataIndex: 'registerDate', + key: 'registerDate', + align: 'center' + }, + { + title: '投递次数', + dataIndex: 'deliveries', + key: 'deliveries', + align: 'center' + }, + { + title: '违规次数', + dataIndex: 'violations', + key: 'violations', + align: 'center' + }, + { + title: '注册时间', + dataIndex: 'deliveredAt', + key: 'deliveredAt', + align: 'center' + }, + { + title: '用户状态', + dataIndex: 'status', + key: 'status', + align: 'center', + customRender: function ({ text }) { + //0:拉黑 1:正常 + if (text == '0') { + return '拉黑'; + } else { + return '正常'; + } + }, + }, +] + + +export const detailTdcsColumns : BasicColumn[] =[ + { + title: '小区名称', + dataIndex: 'housingestateName', + key: 'housingestateName', + align: 'center' + }, + { + title: '设备地点', + dataIndex: 'content', + key: 'content', + align: 'center' + }, + { + title: '电话', + dataIndex: 'phone', + key: 'phone', + align: 'center' + }, + { + title: '投递时间', + dataIndex: 'addTime', + key: 'addTime', + align: 'center' + }, + { + title: '投递重量', + dataIndex: 'weight', + key: 'weight', + align: 'center' + }, + { + title: '投递状态', + dataIndex: 'invalid', + key: 'invalid', + align: 'center', + customRender: function ({ text }) { + //0正常 1违规 2部分违规 3待审核 4异常 5忽略 + if(text == '0'){ + return "正常" + }else if(text == '1'){ + return "违规" + }else if(text == '2'){ + return "部分违规" + }else if(text == '3'){ + return "待审核" + }else if(text == '4'){ + return "异常" + }else if(text == '5'){ + return "忽略" + }else{ + return "未知" + } + }, + }, + { + title: '原因', + dataIndex: 'cause', + key: 'cause', + align: 'center' + }, +] \ No newline at end of file diff --git a/src/views/zh/housingestateInfo/xqHyxzIndex.vue b/src/views/zh/housingestateInfo/xqHyxzIndex.vue index c63d41c..3545628 100644 --- a/src/views/zh/housingestateInfo/xqHyxzIndex.vue +++ b/src/views/zh/housingestateInfo/xqHyxzIndex.vue @@ -40,20 +40,27 @@ + + + + +