[update] 修改bug77873,77934

This commit is contained in:
lideqin
2023-11-03 09:40:21 +08:00
parent b36bd2c228
commit 571c46ca07
3 changed files with 13 additions and 0 deletions
+6
View File
@@ -239,6 +239,12 @@ export const ConfigurableTableMixin = {
},
/* 导入 */
handleImportExcel (info) {
// 限制导入大于500MB
if (info.file.size > 1024 * 1024 * 500) {
this.$message.error('导入文件最大500MB')
info.fileList.pop()
return
}
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({
+6
View File
@@ -387,6 +387,12 @@ export const JeroListMixin = {
},
/* 导入 */
handleImportExcel (info) {
// 限制导入大于500MB
if (info.file.size > 1024 * 1024 * 500) {
this.$message.error('导入文件最大500MB')
info.fileList.pop()
return
}
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({
@@ -92,6 +92,7 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="ipagination"
:scroll="{x: '100%'}"
:loading="loading"
@change="tableOnChange">
<!-- 在混入里已经过滤过没有权限的按钮了 -->
<template slot="operation" slot-scope="{text, record}">