[update] 修改bug77873,77934
This commit is contained in:
@@ -239,6 +239,12 @@ export const ConfigurableTableMixin = {
|
|||||||
},
|
},
|
||||||
/* 导入 */
|
/* 导入 */
|
||||||
handleImportExcel (info) {
|
handleImportExcel (info) {
|
||||||
|
// 限制导入大于500MB
|
||||||
|
if (info.file.size > 1024 * 1024 * 500) {
|
||||||
|
this.$message.error('导入文件最大500MB!')
|
||||||
|
info.fileList.pop()
|
||||||
|
return
|
||||||
|
}
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
importModalLoading = this.$info({
|
importModalLoading = this.$info({
|
||||||
|
|||||||
@@ -387,6 +387,12 @@ export const JeroListMixin = {
|
|||||||
},
|
},
|
||||||
/* 导入 */
|
/* 导入 */
|
||||||
handleImportExcel (info) {
|
handleImportExcel (info) {
|
||||||
|
// 限制导入大于500MB
|
||||||
|
if (info.file.size > 1024 * 1024 * 500) {
|
||||||
|
this.$message.error('导入文件最大500MB!')
|
||||||
|
info.fileList.pop()
|
||||||
|
return
|
||||||
|
}
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
importModalLoading = this.$info({
|
importModalLoading = this.$info({
|
||||||
|
|||||||
@@ -92,6 +92,7 @@
|
|||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
|
:loading="loading"
|
||||||
@change="tableOnChange">
|
@change="tableOnChange">
|
||||||
<!-- 在混入里已经过滤过没有权限的按钮了 -->
|
<!-- 在混入里已经过滤过没有权限的按钮了 -->
|
||||||
<template slot="operation" slot-scope="{text, record}">
|
<template slot="operation" slot-scope="{text, record}">
|
||||||
|
|||||||
Reference in New Issue
Block a user