右侧收缩显示/修改上传文件大小
This commit is contained in:
parent
f509d4b049
commit
6c30e0ff4a
@ -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;
|
||||||
}
|
}
|
||||||
// 校验上传名称是否存在相同,相同则提示上传失败
|
// 校验上传名称是否存在相同,相同则提示上传失败
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user