浏览代码

fix:关闭自动分析

liujiejie 1 月之前
父节点
当前提交
f4ef9d4e6a
共有 3 个文件被更改,包括 25 次插入30 次删除
  1. 2 2
      src/components/map/index.vue
  2. 18 10
      src/views/performance/assetssMag.vue
  3. 5 18
      src/views/performance/components/analysisEvent.vue

+ 2 - 2
src/components/map/index.vue

@@ -224,10 +224,10 @@ export default {
         new TileLayer({
           source: new XYZ({
             // url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
-            url: "http://127.0.0.1:8010/tiles/{z}/{x}/{y}.png", //本地
+            // url: "http://127.0.0.1:8010/tiles/{z}/{x}/{y}.png", //本地
             // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
             // url: "http://10.96.137.5:9080/tiles/{z}/{x}/{y}.png", //大~#@唐
-            //url: "http://192.168.0.1/tiles/{z}/{x}/{y}.png", //华电
+            url: "http://192.168.0.1/tiles/{z}/{x}/{y}.png", //华电
           }),
         }),
         new VectorLayer({

+ 18 - 10
src/views/performance/assetssMag.vue

@@ -523,16 +523,16 @@ export default {
     window.addEventListener("message", this.handleMessage); //江
   },
   methods: {
-    async handleDownLoadChart() {
-      const res = await axios.post(
-        "/downLoadChart/chartServer/charts/lineAndChildLine",
-        {
-          dataUrl:
-            "http://192.168.50.233:6900/wof039800012/WOF039800012-WOB000001/cp/manual/%2319.json",
-        }
-      );
-      console.log(res, "res linechart");
-    },
+    // async handleDownLoadChart() {
+    //   const res = await axios.post(
+    //     "/downLoadChart/chartServer/charts/lineAndChildLine",
+    //     {
+    //       dataUrl:
+    //         "http://192.168.50.233:6900/wof039800012/WOF039800012-WOB000001/cp/manual/%2319.json",
+    //     }
+    //   );
+    //   console.log(res, "res linechart");
+    // },
     //自动分析列表页面跳转
     handleAutoAsstessList() {
       window.open(
@@ -555,12 +555,20 @@ export default {
               this.loading = false;
               this.isPolling = false;
               await this.fetchData();
+              let obj = this.fieldCodeList.filter((itemS) => {
+                if (itemS.codeNumber === this.addRuleForm.fieldCode) {
+                  return itemS;
+                }
+              });
+              console.log(obj, obj.fieldName, "obj");
               this.$router.push({
                 path: "/home/performance/editAssets",
                 query: {
                   batchCode: this.tableData[0].batchCode,
                   analysisTypeCode: this.tableData[0].analysisTypeCode,
                   fieldEngineCode: this.tableData[0].fieldCode,
+                  fieldName: obj[0].fieldName,
+                  analysisName: this.addRuleForm.analysisName,
                 },
               });
             }

+ 5 - 18
src/views/performance/components/analysisEvent.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2024-05-29 09:13:51
- * @LastEditTime: 2025-04-10 16:42:07
+ * @LastEditTime: 2025-04-11 09:25:24
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/analysisEvent.vue
@@ -121,14 +121,13 @@
                 </el-select>
               </el-form-item>
             </el-col>
-
             <el-col
               :xs="24"
               :sm="24"
               :md="12"
               :lg="8"
               :xl="5"
-              v-hasPermi="['home:performance:offlinedata']"
+              v-hasPermi="['home:offlinedata']"
             >
               <el-form-item
                 label="开始时间"
@@ -142,27 +141,15 @@
                   placeholder="选择分析开始时间"
                   :picker-options="pickerOptions"
                 >
-                </el-date-picker>
-                <!-- <el-date-picker
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  v-model="picker"
-                  type="datetimerange"
-                  size="small"
-                  range-separator="至"
-                  start-placeholder="开始日期"
-                  end-placeholder="结束日期"
-                  :picker-options="pickerOptions"
-                >
-                </el-date-picker> -->
-              </el-form-item></el-col
-            >
+                </el-date-picker> </el-form-item
+            ></el-col>
             <el-col
               :xs="24"
               :sm="24"
               :md="12"
               :lg="8"
               :xl="5"
-              v-hasPermi="['home:performance:offlinedata']"
+              v-hasPermi="['home:offlinedata']"
             >
               <el-form-item
                 label="结束时间"