Commit a85c50df authored by zhengke's avatar zhengke
parents ad99bf34 851671a0
......@@ -609,7 +609,38 @@
</div>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="行程顶部图片">
<div class="TFimgList" >
<img v-if="!addMsg.TripFeatureTopBg" src="../../assets/img/bg_c3@3x.png">
<img v-else :src='addMsg.TripFeatureTopBg'>
<div class="TFIMGzhe">
<div class="TFreupload">
<el-upload :http-request="uploadTripFeatureTopBg" :multiple="false"
accept="image/jpeg, image/gif, image/png, image/bmp" :show-file-list="false" action="">
<i class="iconfont icon-Edit"></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="行程底部图片">
<div class="TFimgList" >
<img v-if="!addMsg.TripFeatureBottomBg" src="../../assets/img/bg_c3@3x.png">
<img v-else :src='addMsg.TripFeatureBottomBg'>
<div class="TFIMGzhe">
<div class="TFreupload">
<el-upload :http-request="uploadTripFeatureBottomBg" :multiple="false"
accept="image/jpeg, image/gif, image/png, image/bmp" :show-file-list="false" action="">
<i class="iconfont icon-Edit"></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
</el-col>
<div class="LM_Btcontent">
<input type="button" class="normalBtn" @click="submitForm('addMsg')" :value="$t('pub.saveBtn')" />
<input type="button" class="hollowFixedBtn" @click="isShowDIv=false" :value="$t('pub.cancelBtn')" />
......@@ -717,6 +748,8 @@
BroadsideImage: '',
AppLineIcon: "",
RebateMoney: 0, //人头返佣
TripFeatureTopBg: "", //行程特色顶部图片
TripFeatureBottomBg: "", //行程特色顶部图片
},
departCompany: "",
departDepartment: "",
......@@ -780,9 +813,27 @@
this.fileList = fileList.slice(-1);
},
handleChange2(file, fileList) {
this.fileList2 = fileList.slice(-1);
},
//行程特色顶部图片
uploadTripFeatureTopBg(file) {
let newArr = [];
newArr.push(file.file);
let path = "/Upload/DMC/Icon/";
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.TripFeatureTopBg = url;
});
},
uploadTripFeatureBottomBg(file) {
let newArr = [];
newArr.push(file.file);
let path = "/Upload/DMC/Icon/";
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.TripFeatureBottomBg = url;
});
},
uploadTest3(file) {
let newArr = [];
newArr.push(file.file);
......
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