代码调整
This commit is contained in:
parent
d0c3ca304d
commit
d96678e7c4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user