[update] 修改bug80276

This commit is contained in:
lideqin
2024-01-12 11:46:56 +08:00
parent 46be7892ad
commit 92482c305f
11 changed files with 323 additions and 62 deletions
@@ -6,11 +6,12 @@
:can-drag="true"
:scroll="{x: '100%'}"
ref="table"
rowKey="id"
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
:columns="columns"
:dataSource="dataSource"
:pagination="false"
:loading="loading">
:pagination="ipagination"
:loading="loading"
@change="handleTableChange">
<!-- 起草人 -->
<!--<template slot="user" slot-scope="{record, text}">-->
<!-- <a-tooltip overlay-class-name="tooltip-style">-->
@@ -58,6 +59,18 @@ export default {
},
data () {
return {
/* 分页参数 */
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('workCenter.enStandardRevision.draftingUnit'),
@@ -148,10 +161,14 @@ export default {
}
return data
},
handleTableChange (pagination) {
this.ipagination = pagination
},
// 上传企标
handleUploadStandard (record, index) {
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
this.$refs.uploadFile.open(record.fileId)
this.uploadIndex = index
this.uploadIndex = dataIndex
},
// 上传企标后的回调
uploadFileChange (data) {