QuKatie 3 роки тому
батько
коміт
070cef556f
1 змінених файлів з 3 додано та 18 видалено
  1. 3 18
      src/components/crop-select/main.vue

+ 3 - 18
src/components/crop-select/main.vue

@@ -114,7 +114,6 @@
 
 <script>
 import option from "./configuration/mainList.json";
-import option2 from "./configuration/mainList2.json";
 import {
   customerList,
   allCropList,
@@ -171,17 +170,7 @@ export default {
     event: "balabala"
   },
   async created() {
-    if (this.gysType == "CK" && this.corpType == "GYS") {
-      this.tableOption = await this.getColumnData(
-        this.getColumnName(99),
-        option2
-      );
-    } else {
-      this.tableOption = await this.getColumnData(
-        this.getColumnName(51),
-        option
-      );
-    }
+    this.tableOption = await this.getColumnData(this.getColumnName(51), option);
     let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
     this.title = getCustomerName(this.corpType);
     allCropList({
@@ -307,12 +296,8 @@ export default {
       }
     },
     async resetColumn() {
-      this.option =
-        this.gysType == "CK" && this.corpType == "GYS" ? option2 : option;
-      const inSave = await this.delColumnData(
-        this.getColumnName(51),
-        this.gysType == "CK" && this.corpType == "GYS" ? option2 : option
-      );
+      this.option = option;
+      const inSave = await this.delColumnData(this.getColumnName(51), option);
       if (inSave) {
         this.$message.success("重置成功");
         this.$refs.crud.$refs.dialogColumn.columnBox = false;