소스 검색

优化代码

chenrui  2 년 전
부모
커밋
e0ba324f1a
1개의 변경된 파일2개의 추가작업 그리고 12개의 파일을 삭제
  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]
-              );
             }
           }
           //