diff --git a/src/api/mobileSupervision/supRiskPerson.ts b/src/api/mobileSupervision/supRiskPerson.ts new file mode 100644 index 0000000..56c9a77 --- /dev/null +++ b/src/api/mobileSupervision/supRiskPerson.ts @@ -0,0 +1,11 @@ +import request from "@/api/request"; + +/** + * 获取重点人员督察记录 + * */ +export const getTaskSuprt = (query)=>{ + return request.get({ + url:'/task/supRisk/recordPage', + query + }) +} diff --git a/src/api/superviseReport/superviseReport.ts b/src/api/superviseReport/superviseReport.ts index 8ba4737..cf6a089 100644 --- a/src/api/superviseReport/superviseReport.ts +++ b/src/api/superviseReport/superviseReport.ts @@ -38,9 +38,22 @@ export function removeByIdFun(id){ }) } - +/** + * 获取督察报告详情 + * */ export function getReportDetailFun(id){ return request.get({ url:`/supervise/report/getReportDetail/${id}` }) } + +/** + * 根据报告获取问题列表 + * */ +export function getNegativePageByQuery(query){ + return request.get({ + url:'/supervise/report/negativePage', + query + }) +} + diff --git a/src/views/books/Audit.vue b/src/views/books/Audit.vue index ffbe348..5f23db9 100644 --- a/src/views/books/Audit.vue +++ b/src/views/books/Audit.vue @@ -333,6 +333,10 @@ function handleExport() { `${BASE_PATH}/negative/books/export/audit?` + new URLSearchParams(query.value).toString() ); + window.open( + `${BASE_PATH}/negative/books/export/auditFile?`+ + new URLSearchParams(query.value).toString() + ) } const show = ref(false); @@ -344,4 +348,4 @@ function handleAction(row) { } \ No newline at end of file + diff --git a/src/views/datav/RightsComfort.vue b/src/views/datav/RightsComfort.vue index c8f65ff..a768f59 100644 --- a/src/views/datav/RightsComfort.vue +++ b/src/views/datav/RightsComfort.vue @@ -419,7 +419,6 @@ let globalTempMapVoList = ref([]); // 地图数据 const getMapData = async (timeValue) => { const res = await getComfortMapIcon(timeValue); - console.log('res',res) const mappedData = res.comfortMapVoList?.map(item => { let name; switch (item.name) { @@ -465,8 +464,10 @@ const getMapData = async (timeValue) => { }; }); globalTempMapVoList.value = mappedData - const total = mappedData.reduce((sum, item) => sum + Number(item.value), 0); + + const total = mappedData.reduce((sum, item) => sum + (Number(item.rightsNumber) || 0), 0); const avg = total / mappedData.length; // 计算平均值 + console.log('mappedData',mappedData) const range30Percent = avg * 0.3 // 不用取整,小数也可以 option.value.series[0].data = mappedData; @@ -509,7 +510,6 @@ const option = ref({ tooltip: { trigger: 'item', formatter: function (params) { - console.log('---------123e123------',params) const dataItem = globalTempMapVoList.value.find(item => item.name.includes(params.name.substring(0, 2))); if (dataItem) { return ` diff --git a/src/views/mobileSupervise/Inspection.vue b/src/views/mobileSupervise/Inspection.vue index 2fbc03c..5152f69 100644 --- a/src/views/mobileSupervise/Inspection.vue +++ b/src/views/mobileSupervise/Inspection.vue @@ -82,7 +82,7 @@ 已完成 - +