|
@@ -97,6 +97,17 @@
|
|
|
title: '工步选择',
|
|
title: '工步选择',
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
|
columns: [
|
|
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: '序号',
|
|
label: '序号',
|
|
|
type: 'index',
|
|
type: 'index',
|
|
@@ -195,30 +206,7 @@
|
|
|
if (current) {
|
|
if (current) {
|
|
|
this.current = 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;
|
|
this.visible = true;
|
|
|
},
|
|
},
|
|
|
|
|
|