Commit 7e8905a3 authored by zhengke's avatar zhengke

修改页面

parent a9bd9b45
...@@ -63,10 +63,7 @@ ...@@ -63,10 +63,7 @@
<el-form-item label="导航图标" prop="NavIconImg"> <el-form-item label="导航图标" prop="NavIconImg">
<div> <div>
<el-tooltip class="item" effect="dark" content="建议尺寸:88*88" placement="top-start"> <el-tooltip class="item" effect="dark" content="建议尺寸:88*88" placement="top-start">
<el-upload class="avatar-uploader" action="" accept="image/jpeg,image/gif,image/png,image/bmp" <el-button size="small" @click="choicImg=true">选择文件</el-button>
:show-file-list="false" :http-request="UploadImage">
<el-button size="small">选择文件</el-button>
</el-upload>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="navNavIconImg"> <div class="navNavIconImg">
...@@ -189,13 +186,10 @@ ...@@ -189,13 +186,10 @@
} }
}) })
}, },
//上传图片 //选择图片
UploadImage(file) { SelectId(msg) {
this.UploadFileToTencent(this.FileType().UserNavIconImg, file.file, res => { this.addMsg.NavIconImg = this.getIconLink(msg.url);
if (res.resultCode == 1) { this.choicImg = false;
this.addMsg.NavIconImg = res.FileUrl;
}
})
}, },
submitform(addMsg) { submitform(addMsg) {
//提交创建、修改表单 //提交创建、修改表单
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
}, },
//选择图片 //选择图片
SelectId(msg) { SelectId(msg) {
this.data.list[this.comImgIndex].picUrl = msg.url; this.data.list[this.comImgIndex].picUrl = this.getIconLink(msg.url);
this.choicImg = false; this.choicImg = false;
}, },
//选择链接 //选择链接
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment