diff --git a/src/views/bggl/8000/jj/azjj.vue b/src/views/bggl/8000/jj/azjj.vue index ecf6738..41d57c9 100644 --- a/src/views/bggl/8000/jj/azjj.vue +++ b/src/views/bggl/8000/jj/azjj.vue @@ -753,7 +753,7 @@ export default { } let url = '' this.ysjl.bglx = 1 - this.ysjl.cjState = 'bggl' + this.ysjl.cjState = 'jybg' this.ysjl.zfState = '0' this.ysjl.jianyanxiangmu = 'azjj' this.ysjl.jlprintState = 0 diff --git a/src/views/bggl/components/original_db_list.vue b/src/views/bggl/components/original_db_list.vue index 7749288..63660af 100644 --- a/src/views/bggl/components/original_db_list.vue +++ b/src/views/bggl/components/original_db_list.vue @@ -620,13 +620,13 @@ export default { }, delReport() { // 批量删除 - this.ysjlId = '' if (this.multipleSelection.length === 0) { this.$message('请在列表选择要删除的数据。') return false } let linkname = '' let revertRenwuByYsjlIds = '' + const ids = [] for (let i = 0; i < this.multipleSelection.length; i++) { if (i === 0 && this.multipleSelection[i].flowstatus === 1) { linkname = this.multipleSelection[i].flowstatus @@ -638,10 +638,7 @@ export default { if (this.multipleSelection[i].shebeileibiedaima === '2100' && this.multipleSelection[i].jianyanleibie === 'DJ') { revertRenwuByYsjlIds = this.multipleSelection[i].id + ',' + revertRenwuByYsjlIds } - this.ysjlId = this.multipleSelection[i].id + ',' + this.ysjlId - if (i + 1 === this.multipleSelection.length) { - this.ysjlId = this.ysjlId.substring(0, this.ysjlId.length - 1) - } + ids.push(this.multipleSelection[i].id) } this.$confirm('确定删除当前选中报告?', '提示', { confirmButtonText: '确定', @@ -650,9 +647,12 @@ export default { }).then(() => { this.api({ url: '/ysjl/delReport', - method: 'post', + method: 'delete', params: { - ids: this.ysjlId + ids: ids + }, + paramsSerializer: function(params) { + return require('qs').stringify(params, { indices: false }) } }).then(() => { this.$message({ diff --git a/src/views/bggl/yiban_list.vue b/src/views/bggl/yiban_list.vue index aa2eb02..983cb9e 100644 --- a/src/views/bggl/yiban_list.vue +++ b/src/views/bggl/yiban_list.vue @@ -144,7 +144,7 @@ export default { }, methods: { getList() { - this.listQuery.cjState = 'bggl' + this.listQuery.cjState = 'jybg' this.api({ url: '/ysjl/getListDoneJybg', method: 'get', diff --git a/src/views/ysjl/components/original_yb_list.vue b/src/views/ysjl/components/original_yb_list.vue index 94b8d23..d93bb2e 100644 --- a/src/views/ysjl/components/original_yb_list.vue +++ b/src/views/ysjl/components/original_yb_list.vue @@ -143,7 +143,7 @@ export default { }, methods: { getList() { - this.listQuery.cjState = 'bggl' + this.listQuery.cjState = 'jybg' this.api({ url: '/ysjl/getListDoneYsjl', method: 'get',