ysy 1 jaar geleden
bovenliggende
commit
bc8ad2105d
1 gewijzigde bestanden met toevoegingen van 12 en 24 verwijderingen
  1. 12 24
      src/views/material/BOMmanage/components/StepModal1.vue

+ 12 - 24
src/views/material/BOMmanage/components/StepModal1.vue

@@ -97,6 +97,17 @@
         title: '工步选择',
         // 表格列配置
         columns: [
+          {
+            columnKey: 'selection',
+            type: 'selection',
+            width: 45,
+            align: 'center',
+            selectable: (row, index) => {
+              return !this.tableData.some((it) => it.stepId == row.id);
+            },
+            reserveSelection: true,
+            fixed: 'left'
+          },
           {
             label: '序号',
             type: 'index',
@@ -195,30 +206,7 @@
         if (current) {
           this.current = current;
         }
-        if (type === '修改') {
-          this.columns = [
-            {
-              action: 'action',
-              slot: 'action',
-              align: 'center',
-              label: '选择'
-            }
-          ].concat(this.columns);
-        } else {
-          this.columns = [
-            {
-              columnKey: 'selection',
-              type: 'selection',
-              width: 45,
-              align: 'center',
-              selectable: (row, index) => {
-                return !this.tableData.some((it) => it.stepId == row.id);
-              },
-              reserveSelection: true,
-              fixed: 'left'
-            }
-          ].concat(this.columns);
-        }
+
         this.visible = true;
       },