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

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 beforeUpload(file) {// false
if (file.size > 256 * 1024 * 1024) { if (file.size > 500 * 1024 * 1024) {
this.$message({message: '文件[' + file.name + ']不允许大于256M上传失败',type: 'warning'}); this.$message({message: '文件[' + file.name + ']不允许大于500M上传失败',type: 'warning'});
return false; 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'}"> <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()"> <div @click="newwidthbind()">
<img :src="imgPath" style="border-radius: 4px;border:1px solid #F2F2F2;width:20px;"> <img :src="imgPath" style="border-radius: 4px;border:1px solid #F2F2F2;width:20px;">
<!--{{newtitle}}--> {{newtitle}}
</div> </div>
<div style="border-left: 1px solid #f2f2f2;height: 100%;" v-if="newwidthtrue==false"> <div style="border-left: 1px solid #f2f2f2;height: 100%;" v-if="newwidthtrue==false">
<!-- 名称和缩略图 --> <!-- 名称和缩略图 -->
@ -391,7 +391,7 @@
return { return {
loading: false, loading: false,
newwidth:'280px', newwidth:'280px',
newwidthtrue:false, newwidthtrue:true,
newtitle:'收起', newtitle:'收起',
mainHeight: (parseInt(this.$store.getters.getTopMainHeightFn) - (this.showFooter ? 45 : 0)) + 'px', mainHeight: (parseInt(this.$store.getters.getTopMainHeightFn) - (this.showFooter ? 45 : 0)) + 'px',
tableLoading: false, tableLoading: false,
@ -484,7 +484,6 @@
created() { created() {
}, },
mounted(){ mounted(){
this.initData(); this.initData();
this.rowDrop(); this.rowDrop();
// initData 便 // initData 便
@ -506,12 +505,12 @@
if(this.newwidthtrue==false){ if(this.newwidthtrue==false){
this.newwidthtrue = true; this.newwidthtrue = true;
this.newwidth ='28px'; this.newwidth ='28px';
//this.newtitle = ''; this.newtitle = '展开';
this.imgPath=require('@/assets/double-arrow-left.png'); this.imgPath=require('@/assets/double-arrow-left.png');
}else{ }else{
this.newwidthtrue = false; this.newwidthtrue = false;
this.newwidth ='280px'; this.newwidth ='280px';
//this.newtitle = ''; this.newtitle = '收起';
this.imgPath=require('@/assets/double-arro-right.png'); this.imgPath=require('@/assets/double-arro-right.png');
} }
}, },
@ -583,7 +582,6 @@
}, },
initData() { initData() {
const that = this; const that = this;
that.tableLoading = true; that.tableLoading = true;
const wsId = that.$store.getters.getWsIdFn; const wsId = that.$store.getters.getWsIdFn;
const teamId = that.$store.getters.getTeamIdFn; 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=>{ }).catch(error=>{
console.log(error); console.log(error);