Commit ff283d07 authored by 黄媛媛's avatar 黄媛媛
parents 642f8720 1781c163
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
} }
</script> </script>
<style> <style>
@import "//at.alicdn.com/t/font_635492_rcf1gwtw66.css"; @import "//at.alicdn.com/t/font_635492_rwoxda6u56n.css";
@import "./assets/css/Semibold.css"; @import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css"; @import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css"; @import "./assets/css/fileIcon.css";
......
...@@ -13,32 +13,32 @@ ...@@ -13,32 +13,32 @@
position: relative; position: relative;
} }
.St_radioDiv { .St_mainDiv .St_radioDiv {
position: absolute; position: absolute;
width: 12px; width: 25px;
height: 12px; height: 25px;
background-color: rgb(11, 189, 135); text-align: center;
left: -27px; line-height: 25px;
top: 3px; background-color: #fff;
border:1px solid rgb(11, 189, 135);
left: -33px;
top: -2px;
border-radius: 50%; border-radius: 50%;
} }
.St_current { .St_mainDiv .St_current {
position: relative; position: relative;
} }
.St_current:last-child { .St_mainDiv .St_current:last-child {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.St_mainDiv .St_uploadContent {
.St_current:last-child .St_radioDiv { display:inline-block;
top: 7px;
} }
.St_mainDiv .St_uploadContent span{
.Str1 { color:#409eff;
top: 0;
} }
</style> </style>
<template> <template>
<div class="TC-ScenicTraffic"> <div class="TC-ScenicTraffic">
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<div v-if="!ishasScenic"> <div v-if="!ishasScenic">
<div v-if="CurrentDayNum!=1" class="St_current" style="margin-bottom:20px;"> <div v-if="CurrentDayNum!=1" class="St_current" style="margin-bottom:20px;">
<div class="St_radioDiv Str1"></div> <div class="St_radioDiv Str1"></div>
酒店出发 酒店出发1
</div> </div>
<div class="St_current" style="margin-bottom:10px"> <div class="St_current" style="margin-bottom:10px">
<template <template
...@@ -67,24 +67,39 @@ ...@@ -67,24 +67,39 @@
</div> </div>
<div v-else> <div v-else>
<div v-if="CurrentDayNum!=1" class="St_current" style="margin-bottom:20px;"> <div v-if="CurrentDayNum!=1" class="St_current" style="margin-bottom:20px;">
<div class="St_radioDiv Str1"></div> <div class="St_radioDiv Str1">
<i class="iconfont icon-hotel"></i>
</div>
酒店出发 酒店出发
</div> </div>
<div v-for="(item,index) in ScenicArray" :key="index"> <div v-for="(item,index) in ScenicArray" :key="index">
<div style="margin:10px 0" class="St_current"> <div style="margin:10px 0" class="St_current">
<div class="St_radioDiv"></div> <div class="St_radioDiv">
<i class="iconfont icon-jingdian"></i>
</div>
{{item.CouponsName}} {{item.CouponsName}}
</div> </div>
<div> <div>
<el-select :placeholder="$t('pub.pleaseSel')" v-model="item.TrafficType"> <el-select :placeholder="$t('pub.pleaseSel')" class="w150" v-model="item.TrafficType">
<el-option v-for="subItem in ArrivalTypeArray" :value="subItem.ID" :key="subItem.ID" <el-option v-for="subItem in ArrivalTypeArray" :value="subItem.ID" :key="subItem.ID"
:label="subItem.Name"> :label="subItem.Name">
</el-option> </el-option>
</el-select> </el-select>
<el-upload v-if="item.TrafficType==3" class="St_uploadContent"
:http-request="uploadFileBtn"
:multiple="false"
:show-file-list="false"
action
>
<span>上传</span>
</el-upload>
<el-input class="w180" v-if="item.TrafficType==4" placeholder="距离预计用时"></el-input>
</div> </div>
</div> </div>
<div v-if="CurrentDayNum!=totalDayNum" class="St_current" style="margin:20px 0"> <div v-if="CurrentDayNum!=totalDayNum" class="St_current" style="margin:20px 0">
<div class="St_radioDiv"></div> <div class="St_radioDiv">
<i class="iconfont icon-hotel"></i>
</div>
回酒店 回酒店
</div> </div>
</div> </div>
...@@ -140,6 +155,39 @@ ...@@ -140,6 +155,39 @@
"my-edit": MyEdit "my-edit": MyEdit
}, },
methods: { methods: {
//上传图片
uploadFileBtn(file) {
//上传
if (file.file.size > 1024 * 1024 * 10) {
this.$message.warning(this.$t("tips.wjdxbncgsz"));
return;
}
// 1 文档 2 数据 3 图片
let typeArr = [{ stringArr: "GIF|JPG|JPEG|PNG|BMP", type: 3 }];
let ft = file.file.name
.substring(file.file.name.lastIndexOf(".") + 1, file.file.name.length)
.toUpperCase();
let fileTypeNumber = 2;
let typeOk = false;
typeArr.forEach(x => {
if (x.stringArr.indexOf(ft) != "-1") {
fileTypeNumber = x.type;
typeOk = true;
}
});
if (!typeOk) return this.Error(this.$t("tips.qsctpian"));
let newArr = [];
newArr.push(file.file);
let path = "/Upload/activity/";
this.UploadSelfFileT(path, newArr, x => {
let fileSize =
file.file.size < 1024
? file.file.size
: (file.file.size / 1024).toFixed(0);
this.Success(this.$t("tips.scchenggong"));
});
},
}, },
mounted() {}, mounted() {},
......
...@@ -161,13 +161,13 @@ ...@@ -161,13 +161,13 @@
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.Inventory }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.Inventory }}</span>
</el-option> </el-option>
</el-select> </el-select>
<el-popover placement="right" width="500" trigger="click" > <el-popover placement="right" width="430" trigger="click" >
<scenicTraffic :ref="'scenicTraffic'+dayObj.DayNum+''" :ScenicArray="dayObj.ScenicArray" <scenicTraffic :ref="'scenicTraffic'+dayObj.DayNum+''" :ScenicArray="dayObj.ScenicArray"
:trafficObj="dayObj.TrafficObj" :ishasScenic="ishasScenic" :trafficObj="dayObj.TrafficObj" :ishasScenic="ishasScenic"
:CurrentDayNum="dayObj.DayNum" :totalDayNum="subConfig.DayNum" :CurrentDayNum="dayObj.DayNum" :totalDayNum="subConfig.DayNum"
> >
</scenicTraffic> </scenicTraffic>
<span slot="reference" class="TC-tripTitle" style="padding-left:5px;cursor:pointer;">选择交通信息</span> <span slot="reference" class="TC-tripTitle" style="padding-left:5px;cursor:pointer;display:none">选择交通信息</span>
</el-popover> </el-popover>
<ul class="scenicCheck_check" v-if="ishasScenic&& NoticeParameters.IsDirect==0"> <ul class="scenicCheck_check" v-if="ishasScenic&& NoticeParameters.IsDirect==0">
......
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