Browse Source

优化代码

chenrui  2 years ago
parent
commit
e0ba324f1a
1 changed files with 2 additions and 12 deletions
  1. 2 12
      src/components/Table/index.vue

+ 2 - 12
src/components/Table/index.vue

@@ -942,25 +942,15 @@ export default {
                 this.tableOptions[item.columnName]
               );
             }
-            // this.tableOptions[item.columnName] = await this.getSelectData(
-            //   item.listqueryTemplateID
-            // );
           } else {
             if (
-              item.columnName !== "beginPosition" &&
-              item.columnName !== "endPosition"
+              item.columnName === "beginPosition" ||
+              item.columnName === "endPosition"
             ) {
-              // this.tableOptions[item.columnName] = await this.getSelectData(
-              //   item.listqueryTemplateID
-              // );
-            } else {
               this.tableOptions[item.columnName] = await this.getSelectData(
                 item.listqueryTemplateID,
                 null
               );
-              this.tabledatacopy[item.columnName] = _.cloneDeep(
-                this.tableOptions[item.columnName]
-              );
             }
           }
           //