Commit be5bae00 authored by zhengke's avatar zhengke

修改

parent b7510301
......@@ -15,15 +15,17 @@
<q-select filled stack-label option-value="Id" option-label="Name" class="q-mt-lg"
v-model="addMsg.PlatformType" @input="$forceUpdate()" ref="Id" :options="platTypeList" label="平台类型"
:dense="false" emit-value map-options />
<q-input clearable filled v-model="addMsg.MediaName" placeholder="请输入图片名称" class="q-mt-lg" maxlength="20" />
<!-- <q-input clearable filled v-model="addMsg.MediaName" placeholder="请输入图片名称" class="q-mt-lg" maxlength="20" /> -->
<div style="margin-top: 15px;">
<div style="width:70px">上传图片:</div>
<div style="margin-top: 15px;">
<el-upload class="avatar-uploader materialupload" ref="upload" :action="importFileUrl2"
<el-upload class="avatar-uploader" ref="upload" :action="importFileUrl2"
:multiple="false" :on-success="successUpload" :show-file-list="false"
accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp">
<i class="el-icon-plus avatar-uploader-icon" style="font-size: 30px;" v-if="imgPath==''"></i>
<div v-if="imgPath==''" class="materialupload">
<i class="el-icon-plus avatar-uploader-icon" style="font-size: 30px;"></i>
</div>
<q-img v-else :src="imgPath" style="width: 110px;height: 110px;border-radius: 6px;display: flex;">
</q-img>
</el-upload>
......@@ -264,6 +266,7 @@
if (file.Code == 1) {
this.imgPath = this.domainManager().DomainUrl + file.Data.HttpPath;
this.addMsg.Path = file.Data.Path;
this.addMsg.MediaName = file.Data.Name;
}
},
uploadFile(files) { //图片上传
......
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