yxl
2025-01-03 8ca7f7c74de140b79ea7dd821ca0236b11ce7551
src/views/chartView/index.vue
@@ -259,7 +259,6 @@
    },
    setMapfunc(res, obj) {
      this.$store.state.showLenged = false;
      switch (res.func) {
        case "queryRelationship":
          var roleMsg = null;
@@ -318,16 +317,49 @@
          this.refashMsg(roleMsg.list);
          break;
        case "aroundPoi":
          mapSetFunc.init(res);
          this.setUpdateHistoryInFor(obj, res.msg);
          var roleMsg = msgData.getAffairsData([
            { type: "text", val: res.msg },
          ]);
          let dataList = [
            {
              type: "可打击目标",
              color:'#FF3366',
              list: [],
            },
            {
              type: "不可打击目标",
              color:'#33FF66',
              list: [],
            },
            {
              type: "其他",
              color:'#3366FF',
              list: [],
            },
          ];
          res.data.forEach((item) => {
            if (item.ifstrike === "1") {
              dataList[0].list.push(item.seid);
            } else if (item.ifstrike === "2") {
              dataList[1].list.push(item.seid);
            } else {
              dataList[2].list.push(item.seid);
            }
          });
          const resultData = dataList
            .map((item) => `| ${item.type} | ${item.list.length} |`)
            .join("\n");
          var a = `| 数据类型 | 数据量 |\n|------|------|\n`+resultData;
          console.log("aaa", a);
          this.setUpdateHistoryInFor(obj, a);
          var roleMsg = msgData.getMdData("markdown", a);
          this.refashMsg(roleMsg.list);
          const finalData = {
            func: "aroundPoi",
            data: dataList,
          }
          mapSetFunc.init(finalData);
          break;
        case "getParam":
          mapSetFunc.init(res);
          console.log('res.data.targetinfo',res);
          console.log("res.data.targetinfo", res);
          this.setUpdateHistoryInFor(obj, res.msg);
          var roleMsg = msgData.getAffairsData([
            { type: "text", val: res.data[0].targetinfo },