Commit 3f9659ea authored by 罗超's avatar 罗超

修改部分功能

parent 6da4097a
...@@ -216,12 +216,17 @@ ...@@ -216,12 +216,17 @@
</div> </div>
</div> </div>
<div class="WebSite_Left"> <div class="WebSite_Left">
<el-select v-model="countryId" @change="changeCountry" style="margin-bottom:12px;">
<el-option v-for="x in tempCountry" :label="x.name" :value="x.val" :key="x.val">
</el-option>
</el-select>
<el-select v-model="templateId" @change="getTemplateDetails()"> <el-select v-model="templateId" @change="getTemplateDetails()">
<el-option label="请选择" :value="0" :key="0"> <el-option label="请选择" :value="0" :key="0">
</el-option> </el-option>
<el-option v-for="item in templateList" :label="item.TemplateName" :value="item.Id" :key="item.Id"> <el-option v-for="item in templateList" :label="item.TemplateName" :value="item.Id" :key="item.Id">
</el-option> </el-option>
</el-select> </el-select>
<div class="temp-list-wrap"> <div class="temp-list-wrap">
<div v-for="(subItem,subIndex) in detailsList" class="temp-list-item" :key="subIndex" draggable="true" <div v-for="(subItem,subIndex) in detailsList" class="temp-list-item" :key="subIndex" draggable="true"
@dragstart="dragLeftStart($event,subItem)" @dragend="dragendLeft($event,subItem)"> @dragstart="dragLeftStart($event,subItem)" @dragend="dragendLeft($event,subItem)">
...@@ -318,8 +323,47 @@ ...@@ -318,8 +323,47 @@
dragging: null, dragging: null,
commonTitle: '', commonTitle: '',
dragObj: {}, dragObj: {},
tempCountry:[
{
name:'日本',
val:1
},
{
name:'韓國',
val:2
},
{
name:'澳洲',
val:3
},
{
name:'東南亞',
val:4
},
{
name:'歐洲',
val:5
},
{
name:'中國大陸',
val:6
},
{
name:'台灣',
val:7
},
{
name:'北美',
val:8
},
{
name:'中東亞非',
val:9
}
],
countryId:1,
isDraggable: true, isDraggable: true,
realTemplateList:[]
}; };
}, },
created() {}, created() {},
...@@ -343,6 +387,16 @@ ...@@ -343,6 +387,16 @@
otherdialog otherdialog
}, },
methods: { methods: {
changeCountry(){
if(this.countryId=="1"){
this.templateList=this.realTemplateList
}else{
this.templateList=[]
this.Error("該模板正在維護,敬請期待")
}
this.templateId=0
this.detailsList=[]
},
dragendLeft(e, item) { dragendLeft(e, item) {
var obj = { var obj = {
Id: item.TemplateKey, Id: item.TemplateKey,
...@@ -432,7 +486,8 @@ ...@@ -432,7 +486,8 @@
"ws_get_GetTemplateList", {}, "ws_get_GetTemplateList", {},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.templateList = res.data.data; this.realTemplateList = res.data.data;
this.templateList=this.realTemplateList
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -142,8 +142,10 @@ ...@@ -142,8 +142,10 @@
dayNum: {}, dayNum: {},
showTime: {}, showTime: {},
}, },
data: { data() {
isshowtime: true, return {
isshowtime: true,
}
}, },
watch: { watch: {
showTime: { showTime: {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<span v-if="dayNum<10">0</span> <span v-if="dayNum<10">0</span>
{{dayNum}} {{dayNum}}
</h3> </h3>
<p v-if="isshowtime" v-if="isshowtime" style="margin: 0;">{{day.dateTime}}</p> <p v-if="isshowtime" style="margin: 0;">{{day.dateTime}}</p>
</td> </td>
<td class="desc" v-html="title"></td> <td class="desc" v-html="title"></td>
</tr> </tr>
...@@ -141,8 +141,10 @@ export default { ...@@ -141,8 +141,10 @@ export default {
dayNum:{}, dayNum:{},
showTime: {}, showTime: {},
}, },
data: { data() {
isshowtime: true, return {
isshowtime: true,
}
}, },
watch: { watch: {
showTime: { showTime: {
......
...@@ -108,13 +108,16 @@ ...@@ -108,13 +108,16 @@
dayNum: {}, dayNum: {},
showTime: {}, showTime: {},
}, },
data: { data() {
isshowtime: true, return {
isshowtime: true,
}
}, },
watch: { watch: {
showTime: { showTime: {
handler: function (v, ov) { handler: function (v, ov) {
this.isshowtime = v; this.isshowtime = v;
console.log(v)
}, },
deep: true, deep: true,
}, },
......
...@@ -187,8 +187,10 @@ export default { ...@@ -187,8 +187,10 @@ export default {
dayNum:{}, dayNum:{},
showTime: {}, showTime: {},
}, },
data: { data() {
isshowtime: true, return {
isshowtime: true,
}
}, },
watch: { watch: {
showTime: { showTime: {
......
...@@ -102,8 +102,10 @@ export default { ...@@ -102,8 +102,10 @@ export default {
dayNum:{}, dayNum:{},
showTime: {}, showTime: {},
}, },
data: { data() {
isshowtime: true, return {
isshowtime: true,
}
}, },
watch: { watch: {
showTime: { showTime: {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<div class="travelControlTrip detail-box"> <div class="travelControlTrip detail-box">
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div> <div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div>
<el-row style="margin-bottom:20px;"> <el-row style="margin-bottom:20px;">
<el-col :span="10"> <el-col :span="14">
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<span class="el-dropdown-link">行程下载 <span class="el-dropdown-link">行程下载
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
...@@ -47,8 +47,6 @@ ...@@ -47,8 +47,6 @@
下载电脑版WORD 下载电脑版WORD
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
<span style="display:inline-block;margin-left:20px">显示行程日期:</span>
<el-checkbox v-model="isShowTime">备选项</el-checkbox>
</el-dropdown> </el-dropdown>
<!-- <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版PDF" <!-- <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版PDF"
@click="toPDF_V2(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> @click="toPDF_V2(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
...@@ -57,6 +55,7 @@ ...@@ -57,6 +55,7 @@
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版WORD" <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版WORD"
@click="gernalFeature(1)" /> --> @click="gernalFeature(1)" /> -->
<input type="button" value="新版行程" class="travelControlTripBtn" @click="goUrlView()"/> <input type="button" value="新版行程" class="travelControlTripBtn" @click="goUrlView()"/>
<el-checkbox v-model="isShowTime">显示行程日期</el-checkbox>
<a class="travelControlTripBtn" v-if="priceList.length>0&& priceList[0].wordPath!=''" style="display:inline-block;text-decoration:none; <a class="travelControlTripBtn" v-if="priceList.length>0&& priceList[0].wordPath!=''" style="display:inline-block;text-decoration:none;
width:135px;text-align:center;line-height:30px;font-size:13px;position:relative;top:2px;" width:135px;text-align:center;line-height:30px;font-size:13px;position:relative;top:2px;"
:href="domainManager().ViittoFileUrl+priceList[0].wordPath">下载WORD行程</a> :href="domainManager().ViittoFileUrl+priceList[0].wordPath">下载WORD行程</a>
......
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