diff --git a/src/views/trainingManage/editDetails.vue b/src/views/trainingManage/editDetails.vue index 5eb166b7e..3b218ce78 100644 --- a/src/views/trainingManage/editDetails.vue +++ b/src/views/trainingManage/editDetails.vue @@ -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);