liujiejie 10 miesięcy temu
rodzic
commit
6b608e3092

+ 12 - 11
src/views/dataAdministration/index.vue

@@ -755,18 +755,19 @@ export default {
       this.editTransferStateForm.timeGranularityName = row.timeGranularityName;
       this.editTransferStateTitle = title;
       this.editTransferStateLoading = true;
-      if (title === "重新转换") {
-        this.$nextTick(() => {
-          this.$refs.forPltRef.reSetByWindCodeAndTypeForPlt({
-            type: this.forPltFrom.transferType,
-            windCode: this.forPltFrom.fieldCode,
-          });
-        });
-      } else {
-        this.$nextTick(() => {
-          this.$refs.forPltRef.reset("fromPlt");
+      // if (title === "重新转换") {
+      this.$nextTick(() => {
+        this.$refs.forPltRef.reset("fromPlt");
+        this.$refs.forPltRef.reSetByWindCodeAndTypeForPlt({
+          type: this.forPltFrom.transferType,
+          windCode: this.forPltFrom.fieldCode,
         });
-      }
+      });
+      // } else {
+      //   this.$nextTick(() => {
+      //     this.$refs.forPltRef.reset("fromPlt");
+      //   });
+      // }
     },
     handleEdit(row) {
       this.editNuedialog = true;

+ 1 - 4
src/views/performance/assetssMag.vue

@@ -227,7 +227,6 @@
 </template>
 
 <script>
-import { fromCircle } from "ol/geom/Polygon";
 import MyDialog from "./components/dialogCom.vue";
 import { getAnalysisResultList, onOffAutoAnalysis } from "@/api/performance";
 export default {
@@ -261,7 +260,6 @@ export default {
   created() {
     this.getTableList();
   },
-
   methods: {
     async HandleOnOffAuto(row) {
       try {
@@ -269,7 +267,6 @@ export default {
         form.append("batchCode", row.batchCode);
         form.append("onOffCall", row.onOffCall === 0 ? 1 : 0);
         const res = await onOffAutoAnalysis(form);
-        // console.log(res, "res");
         if (res.code === 200) {
           this.getTableList();
           this.$message({
@@ -328,7 +325,7 @@ export default {
       }
       this.title = title;
     },
-    handleConfirm(slotContent) {
+    handleConfirm() {
       this.dialogVisible = false;
     },
     //分页数据切换