Commit 851671a0 authored by 黄奎's avatar 黄奎

页面修改

parent 5ec16224
...@@ -609,7 +609,38 @@ ...@@ -609,7 +609,38 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </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"> <div class="LM_Btcontent">
<input type="button" class="normalBtn" @click="submitForm('addMsg')" :value="$t('pub.saveBtn')" /> <input type="button" class="normalBtn" @click="submitForm('addMsg')" :value="$t('pub.saveBtn')" />
<input type="button" class="hollowFixedBtn" @click="isShowDIv=false" :value="$t('pub.cancelBtn')" /> <input type="button" class="hollowFixedBtn" @click="isShowDIv=false" :value="$t('pub.cancelBtn')" />
...@@ -717,6 +748,8 @@ ...@@ -717,6 +748,8 @@
BroadsideImage: '', BroadsideImage: '',
AppLineIcon: "", AppLineIcon: "",
RebateMoney: 0, //人头返佣 RebateMoney: 0, //人头返佣
TripFeatureTopBg: "", //行程特色顶部图片
TripFeatureBottomBg: "", //行程特色顶部图片
}, },
departCompany: "", departCompany: "",
departDepartment: "", departDepartment: "",
...@@ -780,9 +813,27 @@ ...@@ -780,9 +813,27 @@
this.fileList = fileList.slice(-1); this.fileList = fileList.slice(-1);
}, },
handleChange2(file, fileList) { handleChange2(file, fileList) {
this.fileList2 = fileList.slice(-1); 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) { uploadTest3(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); 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