右侧收缩显示/修改上传文件大小

This commit is contained in:
zhal 2022-08-11 22:58:38 +08:00
parent f509d4b049
commit 6c30e0ff4a
2 changed files with 10 additions and 10 deletions

View File

@ -368,8 +368,8 @@
},
beforeUpload(file) {// false
if (file.size > 256 * 1024 * 1024) {
this.$message({message: '文件[' + file.name + ']不允许大于256M上传失败',type: 'warning'});
if (file.size > 500 * 1024 * 1024) {
this.$message({message: '文件[' + file.name + ']不允许大于500M上传失败',type: 'warning'});
return false;
}
//

View File

@ -207,7 +207,7 @@
<el-aside v-if="isShow" width="280px" :style="{'width':newwidth, 'height': (parseInt(mainHeight) - 5) + 'px', 'background-color': '#FAFAFB','position': 'relative','top': '5px'}">
<div @click="newwidthbind()">
<img :src="imgPath" style="border-radius: 4px;border:1px solid #F2F2F2;width:20px;">
<!--{{newtitle}}-->
{{newtitle}}
</div>
<div style="border-left: 1px solid #f2f2f2;height: 100%;" v-if="newwidthtrue==false">
<!-- 名称和缩略图 -->
@ -391,7 +391,7 @@
return {
loading: false,
newwidth:'280px',
newwidthtrue:false,
newwidthtrue:true,
newtitle:'收起',
mainHeight: (parseInt(this.$store.getters.getTopMainHeightFn) - (this.showFooter ? 45 : 0)) + 'px',
tableLoading: false,
@ -484,7 +484,6 @@
created() {
},
mounted(){
this.initData();
this.rowDrop();
// initData 便
@ -506,12 +505,12 @@
if(this.newwidthtrue==false){
this.newwidthtrue = true;
this.newwidth ='28px';
//this.newtitle = '';
this.newtitle = '展开';
this.imgPath=require('@/assets/double-arrow-left.png');
}else{
this.newwidthtrue = false;
this.newwidth ='280px';
//this.newtitle = '';
this.newtitle = '收起';
this.imgPath=require('@/assets/double-arro-right.png');
}
},
@ -583,7 +582,6 @@
},
initData() {
const that = this;
that.tableLoading = true;
const wsId = that.$store.getters.getWsIdFn;
const teamId = that.$store.getters.getTeamIdFn;
@ -682,8 +680,10 @@
}
}
that.imgPath=require("@/assets/double-arro-right.png");
//
that.newwidth ='28px';
that.newtitle = '展开';
that.imgPath=require('@/assets/double-arrow-left.png');
}
}).catch(error=>{
console.log(error);