This commit is contained in:
clay
2022-01-30 19:00:41 +08:00
parent 1fbdc2847f
commit 7064967728
5 changed files with 6 additions and 6 deletions

View File

@@ -3,4 +3,4 @@ ENV = 'production'
# EBTS/生产环境
#VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = 'http://localhost:8096/dev-api'
VUE_APP_BASE_API = 'http://sistapi.hchyun.cn:88/dev-api'

View File

@@ -5,4 +5,4 @@ ENV = 'staging'
# EBTS/测试环境
#VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api'
VUE_APP_BASE_API = 'http://sistapi.hchyun.cn:88/dev-api'

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -49,7 +49,7 @@ export default {
// 大小限制(MB)
fileSize: {
type: Number,
default: 10,
default: 50,
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: {
@@ -115,7 +115,7 @@ export default {
return false;
});
if (!isTypeOk) {
this.$message.error('文件格式不正确, 请上传${this.fileType.join("/")}格式文件!');
this.$message.error('文件格式不正确, 请上传'+this.fileType.join("/")+'格式文件!');
return false;
}
}
@@ -123,7 +123,7 @@ export default {
if (this.fileSize) {
const isLt = file.size / 1024 / 1024 < this.fileSize;
if (!isLt) {
this.$message.error('提交文件大小不能超过 ${this.fileSize} MB!');
this.$message.error('提交文件大小不能超过' + this.fileSize + 'MB!');
return false;
}
}

View File

@@ -139,7 +139,7 @@
<el-table v-loading="loading" :data="fileList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="文件名称" align="left" prop="fileName"/>
<el-table-column label="文件路径" align="center" prop="fileAddr"/>
<!--<el-table-column label="文件路径" align="center" prop="fileAddr"/>-->
<el-table-column label="文件类型" align="center" prop="fileType"/>
<el-table-column label="文件大小(MB)" align="center" prop="fileSize"/>
<el-table-column label="所属位置" align="center" prop="type" :formatter="isNavLabelFormat"/>