Kaynağa Gözat

xcsadfsawqe33

xusl 8 ay önce
ebeveyn
işleme
3929d9fcd8

+ 1 - 27
ipp-ap/src/const/crud/fileanalysisrecord.js

@@ -32,33 +32,7 @@ export const tableOption = {
     , {
       "type": "input",
       "label": "文件类型",
-      "prop": "fileType",
-      formatter: (row, value, label, column) => {
-        if (value == 0) {
-          return label = "短期"
-        }
-        if (value == 1) {
-          return label = "超短期"
-        }
-        if (value == 2) {
-          return label = "测风塔"
-        }
-        if (value == 3) {
-          return label = "气象站"
-        }
-        if (value == 4) {
-          return label = "NWP"
-        }
-        if (value == 5) {
-          return label = "风机"
-        }
-        if (value == 6) {
-          return label = "逆变器"
-        }
-        if (value == 7) {
-          return label = "实际功率"
-        }
-      }
+      "prop": "fileType"
     }
     , {
       "type": "input",

+ 27 - 1
ipp-ap/src/const/crud/parsingLog.js

@@ -40,7 +40,33 @@ export const tableOption = {
     , {
       "type": "input",
       "label": "文件类型",
-      "prop": "fileType"
+      "prop": "fileType",
+      formatter: (row, value, label, column) => {
+        if (value == 0) {
+          return label = "短期"
+        }
+        if (value == 1) {
+          return label = "超短期"
+        }
+        if (value == 2) {
+          return label = "测风塔"
+        }
+        if (value == 3) {
+          return label = "气象站"
+        }
+        if (value == 4) {
+          return label = "NWP"
+        }
+        if (value == 5) {
+          return label = "风机"
+        }
+        if (value == 6) {
+          return label = "逆变器"
+        }
+        if (value == 7) {
+          return label = "实际功率"
+        }
+      }
     }
     , {
       "type": "input",

+ 1 - 1
ipp-ap/src/views/idp/control/parsingLog/index.vue

@@ -56,7 +56,7 @@
           v-for="item in fileTypes"
           :key="item.label"
           :label="item.label"
-          :value="item.label">
+          :value="item.value">
           <span style="float: left">{{ item.label }}</span>
         </el-option>
       </el-select>