|
@@ -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;
|