yxl
2025-01-14 266bf7454bcd0e3d814c974c6b0b05349fe549db
src/views/chartView/index.vue
@@ -366,6 +366,47 @@
          };
          mapSetFunc.init(finalData);
          break;
        case "getStrike":
          let dataList1 = [
            {
              type: "可打击目标",
              color: "#FF3366",
              list: [],
            },
            {
              type: "不可打击目标",
              color: "#33FF66",
              list: [],
            },
            {
              type: "其他",
              color: "#3366FF",
              list: [],
            },
          ];
          res.data.forEach((item) => {
            if (item.ifstrike === "1") {
              dataList1[0].list.push(item.uuid);
            } else if (item.ifstrike === "2") {
              dataList1[1].list.push(item.uuid);
            } else {
              dataList1[2].list.push(item.uuid);
            }
          });
          const resultData1 = dataList1
            .map((item) => `| ${item.type} | ${item.list.length} |`)
            .join("\n");
          var a = `| 数据类型 | 数据量 |\n|------|------|\n` + resultData1;
          console.log("aaa", a);
          this.setUpdateHistoryInFor(obj, a);
          var roleMsg = msgData.getMdData("markdown", a);
          this.refashMsg(roleMsg.list);
          const finalData1 = {
            func: "aroundPoi",
            data: dataList1,
          };
          mapSetFunc.init(finalData1);
          break;
        case "getParam":
          mapSetFunc.init(res);
          console.log("res.data.targetinfo", res);