Commit af36f9af authored by zhengke's avatar zhengke

修改

parent 1b51b4e6
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
text-align: center; text-align: center;
line-height: 25px; line-height: 25px;
background-color: #fff; background-color: #fff;
border:1px solid rgb(11, 189, 135); border:1px solid #E4E7ED;
left: -33px; left: -33px;
top: -2px; top: -2px;
border-radius: 50%; border-radius: 50%;
...@@ -45,23 +45,29 @@ ...@@ -45,23 +45,29 @@
<div class="St_mainDiv"> <div class="St_mainDiv">
<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">
酒店出发1 <i class="iconfont icon-hotel"></i>
</div>
酒店出发
</div> </div>
<div class="St_current" style="margin-bottom:10px"> <div class="St_current" style="margin-bottom:10px">
<template <template
v-if="trafficObj.trafficIntroduce.IntroduceTitle">{{trafficObj.trafficIntroduce.IntroduceTitle}}</template> v-if="trafficObj.trafficIntroduce.IntroduceTitle">{{trafficObj.trafficIntroduce.IntroduceTitle}}</template>
<template v-else>机场</template> <template v-else>机场</template>
<div class="St_radioDiv Str1"></div> <div class="St_radioDiv Str1">
<i class="iconfont icon-Shape1"></i>
</div>
</div> </div>
<div> <div>
<el-select :placeholder="$t('pub.pleaseSel')" v-model="trafficObj.trafficIntroduce.TrafficType"> <el-select :placeholder="$t('pub.pleaseSel')" class="w120" v-model="trafficObj.trafficIntroduce.TrafficType">
<el-option v-for="item in ArrivalTypeArray" :value="item.ID" :key="item.ID" :label="item.Name"> <el-option v-for="item in ArrivalTypeArray" :value="item.ID" :key="item.ID" :label="item.Name">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div v-if="CurrentDayNum!=totalDayNum" class="St_current" style="margin:10px 0"> <div v-if="CurrentDayNum!=totalDayNum" class="St_current" style="margin:10px 0">
<div class="St_radioDiv"></div> <div class="St_radioDiv">
<i class="iconfont icon-hotel"></i>
</div>
回酒店 回酒店
</div> </div>
</div> </div>
...@@ -80,7 +86,7 @@ ...@@ -80,7 +86,7 @@
{{item.CouponsName}} {{item.CouponsName}}
</div> </div>
<div> <div>
<el-select :placeholder="$t('pub.pleaseSel')" class="w150" v-model="item.TrafficType"> <el-select :placeholder="$t('pub.pleaseSel')" class="w120" 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>
...@@ -91,9 +97,9 @@ ...@@ -91,9 +97,9 @@
:show-file-list="false" :show-file-list="false"
action action
> >
<span>上传</span> <span @click='getItem(index)'>上传</span>
</el-upload> </el-upload>
<el-input class="w180" v-if="item.TrafficType==4" placeholder="距离预计用时"></el-input> <el-input class="w180" v-if="item.TrafficType==4" v-model="item.TrafficContent" 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">
...@@ -127,6 +133,7 @@ ...@@ -127,6 +133,7 @@
font: false, //字体 font: false, //字体
narrative: true //叙述, narrative: true //叙述,
}, },
checkedIndex:'',
//交通类型数组 //交通类型数组
ArrivalTypeArray: [{ ArrivalTypeArray: [{
ID: 1, ID: 1,
...@@ -155,40 +162,24 @@ ...@@ -155,40 +162,24 @@
"my-edit": MyEdit "my-edit": MyEdit
}, },
methods: { methods: {
//上传图片 //获取index
uploadFileBtn(file) { getItem(index) {
//上传 this.checkedIndex = index
if (file.file.size > 1024 * 1024 * 10) { },
this.$message.warning(this.$t("tips.wjdxbncgsz")); //上传图片
return; uploadFileBtn(file) {
let that = this
let newArr = []
newArr.push(file.file)
let path = '/Upload/DMC'
this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => {
this.ScenicArray[this.checkedIndex].TrafficImage = this.domainManager()
.ViittoFileUrl + x.data.FilePath
this.$message.success(x.data.Message)
this.$forceUpdate()
})
} }
// 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() {},
created() {}, created() {},
......
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