feiyu02
2025-10-20 dd2ff26f240bcb79de082f1de4eaf6d2c973b28e
2025.10.18 修改嫉妒报告生成逻辑
已修改4个文件
33 ■■■■ 文件已修改
public/underway_season_report.docx 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components.d.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/historymode/component/MissionReport.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/underway_season_report.docx
Binary files differ
src/api/index.js
@@ -13,10 +13,10 @@
}
if (debug) {
  ip1 = 'http://192.168.0.103:8084/';
  // ip1 = 'http://localhost:8084/';
  ws = `192.168.0.103:9031`;
  // ws = `localhost:9031`;
  // ip1 = 'http://192.168.0.103:8084/';
  ip1 = 'http://localhost:8084/';
  // ws = `192.168.0.103:9031`;
  ws = `localhost:9031`;
}
const $http = axios.create({
src/components.d.ts
@@ -31,7 +31,6 @@
    ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
    ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
    ElDialog: typeof import('element-plus/es')['ElDialog']
    ElDivider: typeof import('element-plus/es')['ElDivider']
    ElDropdown: typeof import('element-plus/es')['ElDropdown']
    ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
    ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
@@ -39,7 +38,6 @@
    ElFormItem: typeof import('element-plus/es')['ElFormItem']
    ElIcon: typeof import('element-plus/es')['ElIcon']
    ElInput: typeof import('element-plus/es')['ElInput']
    ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
    ElLink: typeof import('element-plus/es')['ElLink']
    ElOption: typeof import('element-plus/es')['ElOption']
    ElPagination: typeof import('element-plus/es')['ElPagination']
src/views/historymode/component/MissionReport.vue
@@ -350,14 +350,15 @@
          _area: `${township}`,
          clueByFactorList: clues
            .groupBy((e) => e.factorTag)
            .map((item2) => {
            .map((item2, index2) => {
              const { key: factorTag, values: clues2 } = item2;
              const factorNames = [...new Set(clues2.flatMap((e) => e.factors))]
                .map((e) => factorName(e))
                .map((e) => factorName[e])
                .join('、');
              return {
                index: index2 + 1,
                factor: factorNames,
                clues: clues2.map((clue) => {
                clues: clues2.map((item3, index3) => {
                  // const _riskRegion = [];
                  // if (clue.pollutedArea.address) {
                  //   _riskRegion.push(clue.pollutedArea.address);
@@ -368,13 +369,15 @@
                  // if (clue.pollutedArea.roadinter) {
                  //   _riskRegion.push(clue.pollutedArea.roadinter);
                  // }
                  const clue = item3.clue
                  return {
                    index: index3+1,
                    _title:
                      (clue.pollutedArea.street ?? '') +
                      (clue.pollutedArea.streetNumber ?? '') +
                      (clue.pollutedArea.direction ?? ''),
                    _factorNames: Object.keys(clue.pollutedData.statisticMap)
                      .map((e) => factorName(e))
                      .map((e) => factorName[e])
                      .join('、'),
                    _time:
                      moment(clue.pollutedData.startTime).format(
@@ -468,14 +471,14 @@
        const infoDes = item.highRiskGridMap[key].map((e) => {
          return {
            factorValue: g.factorValue,
            factorValue: e.factorValue,
            // 四至范围,顺序为最小经度,最大经度,最小纬度,最大纬度
            _boundsDes: `经度${g.bounds[0]}至${g.bounds[1]},纬度${g.bounds[2]}至${g.bounds[3]}`,
            _boundsDes: `经度${e.bounds[0]}至${e.bounds[1]},纬度${e.bounds[2]}至${e.bounds[3]}`,
            // 涉及街镇
            town: g.town,
            town: e.town,
            _scenesDes:
              g.highRiskScenes.length > 0
                ? `涉及的污染场景包括${g.highRiskScenes.map((s) => s.name).join('、')}`
              e.highRiskScenes.length > 0
                ? `涉及的污染场景包括${e.highRiskScenes.map((s) => s.name).join('、')}`
                : '网格内可能存在隐藏风险源'
          };
        });
@@ -488,7 +491,7 @@
            const { url1, url2 } = url;
            _highRiskGridList.push({
              index: i + 1,
              factor: factorName(g.factorType),
              factor: factorName[g.factorType],
              // 标准色网格图
              gridImgUrl1: url1,
              // 对比色网格图