[update] 修改bug80276,改了年度制修订的两个流程

This commit is contained in:
lideqin
2024-01-11 19:07:04 +08:00
parent 4ff9ba5ead
commit 367115bf75
8 changed files with 147 additions and 39 deletions
@@ -25,12 +25,13 @@
:can-drag="true"
:scroll="{x: '100%'}"
ref="table"
:rowKey="(record, index) => { return index }"
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
:columns="columns"
:dataSource="dataSource"
:pagination="false"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<!-- 原企标编号/企标名称 -->
<template v-slot:toDetailOld="{text, record}">
@@ -142,6 +143,18 @@ export default {
data () {
return {
loading: false,
/* 分页参数 */
ipagination: {
current: 1,
pageSize: 10,
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
showTotal: (total, range) => {
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
},
showQuickJumper: true,
showSizeChanger: true,
total: 0
},
columns: [
{
title: this.$t('serialNumber'),
@@ -322,6 +335,9 @@ export default {
}
})
},
handleTableChange (pagination) {
this.ipagination = pagination
},
// 表格选中
onSelectChange (selectedRowKeys, selectionRows) {
this.selectedRowKeys = selectedRowKeys
@@ -429,7 +445,8 @@ export default {
},
// 编辑
handleEdit (record, index) {
this.modalType = 'edit' + ',' + index
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
this.modalType = 'edit' + ',' + dataIndex
this.$refs.contactEnterSendTaskModal.edit(record)
},
// 查看
@@ -438,7 +455,14 @@ export default {
},
// 删除
handleDelete (id, index) {
this.dataSource.splice(index, 1)
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
onOk: () => {
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
this.dataSource.splice(dataIndex, 1)
}
})
},
// 批量删除
batchDel () {