Browse Source

修改开始

huk 3 years ago
parent
commit
2ef386f108

+ 1 - 1
build/utils.js

@@ -16,7 +16,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 //       统计报表       组织机构/系统管理 采购  仓储
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 let devModules = ['all'];
 let devModules = ['all'];
-// let devModules = ['index','appoint','TMS'];
+// let devModules = ['index','statisticalReport','TMS'];
 if (pathSrc.indexOf('node_modules') > -1) {
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
     devModules = require('../../../cors.js').devModules;
 }
 }

+ 9 - 9
src/components/DilCommonUI/packages/table/src/table.js

@@ -174,19 +174,19 @@ export default {
     },
     },
     // 当某一行被点击时会触发该事件
     // 当某一行被点击时会触发该事件
     rowClick(row, column, event) {
     rowClick(row, column, event) {
-      if (this.selectionType == "radio") {
-        if (this.dataRadioId == row.ROW_ID) {
-          this.dataRadioId = "";
-          row = {};
-        } else {
-          this.dataRadioId = row.ROW_ID;
-        }
+      // if (this.selectionType == "radio") {
+      //   if (this.dataRadioId == row.ROW_ID) {
+      //     this.dataRadioId = "";
+      //     row = {};
+      //   } else {
+      //     this.dataRadioId = row.ROW_ID;
+      //   }
         this.$emit("radio-change", row);
         this.$emit("radio-change", row);
-      }
+      // }
     },
     },
     // 多选的选中行改变回调
     // 多选的选中行改变回调
     selectionChange(selection) {
     selectionChange(selection) {
-      this.dataSelection = selection;
+      // this.dataSelection = selection;
       // 将多选中的数据抛出
       // 将多选中的数据抛出
       this.$emit("selection-change", selection);
       this.$emit("selection-change", selection);
     },
     },

+ 3 - 3
src/components/DilCommonUI/packages/table/src/table.vue

@@ -142,9 +142,9 @@ export default {
     selectionType: {
     selectionType: {
       default: "",
       default: "",
     },
     },
-    // 是否 在数据翻页后保留之前选中的数据(需指定 row-key)
+    // 是否在数据翻页后保留之前选中的数据(需指定 row-key)
     reserveSelection: {
     reserveSelection: {
-      default: true,
+      default: false,
     },
     },
     // 是否为斑马纹 table
     // 是否为斑马纹 table
     stripe: {
     stripe: {
@@ -205,7 +205,7 @@ export default {
     // 每页显示个数选择器的选项设置
     // 每页显示个数选择器的选项设置
     pageSizes: {
     pageSizes: {
       default() {
       default() {
-        return [10, 20, 50, 100, 200,1000];
+        return [10, 20, 50, 100, 200, 1000];
       },
       },
     },
     },
     // 每页显示条目个数,支持 .sync 修饰符
     // 每页显示条目个数,支持 .sync 修饰符