This commit is contained in:
fan 2022-08-24 11:14:12 +08:00
commit 0452a4fee7

View File

@ -55,17 +55,18 @@ export default {
},
queryList: {
height: '500px',
indexShow: true,
paginationHiden: true,
selectCheckShow: false,
data: [],
columns: [
{
title: this.$t('trainingManage.stepNum'),
width: '80',
prop: 'id',
type: 'basic',
edit: true
},
// {
// title: this.$t('trainingManage.stepNum'),
// width: '80',
// prop: 'id',
// type: 'basic',
// edit: true
// },
{
title: this.$t('trainingManage.roleSelect'),
width: '200',
@ -139,7 +140,7 @@ export default {
mId = this.queryList.data[lastIndex].memberId || '';
}
const obj = {
id: lastIndex + 2 + '',
// id: lastIndex + 2 + '',
memberId: mId,
description: ''
// triggerCondition: [],
@ -170,9 +171,10 @@ export default {
},
saveStepData() {
const list = [];
this.queryList.data.forEach(item => {
this.queryList.data.forEach((item, index) => {
const obj = {
...item
...item,
id: index + 1 + ''
};
delete obj.isEdit;
list.push(obj);