Commit 03066f22 authored by 黄奎's avatar 黄奎

页面修改

parent bf6d3ccc
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
<el-checkbox v-model="queryMsg.IsWarning">{{$t('Operation.Op_WarningTeam')}}</el-checkbox> <el-checkbox v-model="queryMsg.IsWarning">{{$t('Operation.Op_WarningTeam')}}</el-checkbox>
</span> </span>
</div> </div>
<div class="comSearchDiv"> <div class="comSearchDiv" style="display:none;">
<span>{{$t('visa.v_hbstatus')}}</span> <span>{{$t('visa.v_hbstatus')}}</span>
<span> <span>
<el-checkbox-group v-model="queryCommonData.flightCKed" style="margin-left:0;"> <el-checkbox-group v-model="queryCommonData.flightCKed" style="margin-left:0;">
...@@ -915,12 +915,12 @@ ...@@ -915,12 +915,12 @@
flightStatus: [{ flightStatus: [{
Id: 0, Id: 0,
Name: '不限', Name: '不限',
Checked: false Checked: true
}, },
{ {
Id: 1, Id: 1,
Name: '已配置', Name: '已配置',
Checked: true Checked: false
}, },
{ {
Id: 2, Id: 2,
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<span class="foldList" @click="fold" v-if="isFold==1">点击展开</span> <span class="foldList" @click="fold" v-if="isFold==1">点击展开</span>
<div class="TrfList clearfix"> <div class="TrfList clearfix">
<!-- 'display_none':(item.TypeState===4 && FeatureData.FeatureType !== 4) || (item.TypeState===4 && !$route.query.configId)--> <!-- 'display_none':(item.TypeState===4 && FeatureData.FeatureType !== 4) || (item.TypeState===4 && !$route.query.configId)-->
<div class="TFslide" v-for="item in TypeArray" :class="{'TFcked':item.isShow,'display_none':(item.TypeState===4 && FeatureData.FeatureType !== 4) || (item.TypeState===4 && !$route.query.configId)}" <div class="TFslide" v-for="item in TypeArray"
:class="{'TFcked':item.isShow,'display_none':(item.TypeState===4 && FeatureData.FeatureType !== 4) || (item.TypeState===4 && !$route.query.configId)}"
@click="clickFeature(item)" :key="item.subCode"> @click="clickFeature(item)" :key="item.subCode">
<img v-bind:src="item.imgUrl"> <img v-bind:src="item.imgUrl">
<div>{{item.ckTitle}}</div> <div>{{item.ckTitle}}</div>
...@@ -17,8 +18,8 @@ ...@@ -17,8 +18,8 @@
<div style="display:none"> <div style="display:none">
<p style="padding:5px 0;">请选择下载word行程的主题颜色</p> <p style="padding:5px 0;">请选择下载word行程的主题颜色</p>
<el-radio-group v-model="FeatureData.TemplateId"> <el-radio-group v-model="FeatureData.TemplateId">
<el-radio-button v-for="item in templateColorArray" :class="`templateColorArray_${item.color}`" :label="item.id" <el-radio-button v-for="item in templateColorArray" :class="`templateColorArray_${item.color}`"
:key="item.id" :value="item.id">{{item.text}}</el-radio-button> :label="item.id" :key="item.id" :value="item.id">{{item.text}}</el-radio-button>
</el-radio-group> </el-radio-group>
<p style="padding:5px 0 0 0;"> </p> <p style="padding:5px 0 0 0;"> </p>
</div> </div>
...@@ -38,8 +39,8 @@ ...@@ -38,8 +39,8 @@
<img v-else :src="item.Url"> <img v-else :src="item.Url">
<div class="TFIMGzhe"> <div class="TFIMGzhe">
<div class="TFreupload" @click="updateTFimg(index)"> <div class="TFreupload" @click="updateTFimg(index)">
<el-upload :file-list="FeatureData.fileList" :http-request="reUpload" :multiple="true" accept="image/jpeg, image/gif, image/png, image/bmp" <el-upload :file-list="FeatureData.fileList" :http-request="reUpload" :multiple="true"
:show-file-list="false" action> accept="image/jpeg, image/gif, image/png, image/bmp" :show-file-list="false" action>
<i class="iconfont icon-Edit"></i> <i class="iconfont icon-Edit"></i>
</el-upload> </el-upload>
</div> </div>
...@@ -68,8 +69,9 @@ ...@@ -68,8 +69,9 @@
<div class="userDefined"> <div class="userDefined">
<!-- <quill-editor @change="onEditorChange($event)" v-model="FeatureData.FeatureContent"> <!-- <quill-editor @change="onEditorChange($event)" v-model="FeatureData.FeatureContent">
</quill-editor>--> </quill-editor>-->
<my-edit v-on:edit-value="FeatureData.FeatureContent = arguments[0]" v-bind:editValue="FeatureData.FeatureContent" <my-edit v-on:edit-value="FeatureData.FeatureContent = arguments[0]"
v-bind:toolbarShow="toolbar" v-bind:referenceList="DefaultList" v-bind:placeholder="placeholder"></my-edit> v-bind:editValue="FeatureData.FeatureContent" v-bind:toolbarShow="toolbar"
v-bind:referenceList="DefaultList" v-bind:placeholder="placeholder"></my-edit>
</div> </div>
</div> </div>
<div class="TFright" v-if="FeatureData.FeatureType!=FeatureTypeState.userDefined"> <div class="TFright" v-if="FeatureData.FeatureType!=FeatureTypeState.userDefined">
...@@ -79,8 +81,8 @@ ...@@ -79,8 +81,8 @@
<img v-else :src="item.Url"> <img v-else :src="item.Url">
<div class="TFIMGzhe"> <div class="TFIMGzhe">
<div class="TFreupload" @click="updateTFimg(index)"> <div class="TFreupload" @click="updateTFimg(index)">
<el-upload :file-list="FeatureData.fileList" :http-request="reUpload" :multiple="true" accept="image/jpeg, image/gif, image/png, image/bmp" <el-upload :file-list="FeatureData.fileList" :http-request="reUpload" :multiple="true"
:show-file-list="false" action> accept="image/jpeg, image/gif, image/png, image/bmp" :show-file-list="false" action>
<i class="iconfont icon-Edit"></i> <i class="iconfont icon-Edit"></i>
</el-upload> </el-upload>
</div> </div>
...@@ -94,7 +96,8 @@ ...@@ -94,7 +96,8 @@
<div v-if="FeatureData.FeatureType===FeatureTypeState.travelSpecial"> <div v-if="FeatureData.FeatureType===FeatureTypeState.travelSpecial">
<new-feature ref='newFeature' :data='FeatureData'></new-feature> <new-feature ref='newFeature' :data='FeatureData'></new-feature>
</div> </div>
<div v-if="(FeatureData.FeatureType===FeatureTypeState.travelSpecial2 || FeatureData.FeatureType===6 || FeatureData.FeatureType===7) && FeatureDataFlag"> <div
v-if="(FeatureData.FeatureType===FeatureTypeState.travelSpecial2 || FeatureData.FeatureType===6 || FeatureData.FeatureType===7) && FeatureDataFlag">
<newFeature2 ref='newFeature2' :FeatureData='FeatureData'></newFeature2> <newFeature2 ref='newFeature2' :FeatureData='FeatureData'></newFeature2>
</div> </div>
</div> </div>
...@@ -283,7 +286,7 @@ ...@@ -283,7 +286,7 @@
type: contentType type: contentType
}); });
}, },
getHtml: function (postData, SaveType) { getHtml: function (postData, SaveType, TeamType) {
var FeatureData = { var FeatureData = {
B2BRemark: postData.B2BRemark, B2BRemark: postData.B2BRemark,
ConfigId: postData.ConfigId, ConfigId: postData.ConfigId,
...@@ -303,13 +306,6 @@ ...@@ -303,13 +306,6 @@
WarmTip: postData.WarmTip, WarmTip: postData.WarmTip,
TemplateId: postData.TemplateId TemplateId: postData.TemplateId
}; };
let flagWangYue = this.$route.query.flag;
if (flagWangYue == undefined || flagWangYue === "false" || !flagWangYue) {
flagWangYue = false;
} else {
flagWangYue = true;
}
if (this.$refs.newFeature != undefined) { if (this.$refs.newFeature != undefined) {
var obj = ''; var obj = '';
try { try {
...@@ -329,8 +325,7 @@ ...@@ -329,8 +325,7 @@
setTimeout(() => { setTimeout(() => {
try { try {
FeatureData.FeatureHtml = document.getElementById("newFeatureBox").innerHTML; FeatureData.FeatureHtml = document.getElementById("newFeatureBox").innerHTML;
} catch (err) { } catch (err) {}
}
this.apipost("travel_post_SetFeature", FeatureData, res => { this.apipost("travel_post_SetFeature", FeatureData, res => {
try { try {
this.$refs.newFeature.setReadOnly(false) this.$refs.newFeature.setReadOnly(false)
...@@ -343,13 +338,19 @@ ...@@ -343,13 +338,19 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//保存按钮跳转当当前页码 //保存按钮跳转当当前页码
if (SaveType == 1) { if (SaveType == 1) {
let path = flagWangYue ? 'TravelManager3' : 'TravelManager2'; let path = "TravelManager2";
if (TeamType == 0) {
path = "TravelManager2";
} else if (TeamType == 1) {
path = "TravelManager3";
} else if (TeamType == 2) {
path = "TravelManager4";
}
this.Success("保存成功"); this.Success("保存成功");
if (flagWangYue || this.isNewConfig) { if (this.isNewConfig) {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
flag: flagWangYue,
configId: FeatureData.ConfigId, configId: FeatureData.ConfigId,
openState: 1 openState: 1
} }
...@@ -363,8 +364,16 @@ ...@@ -363,8 +364,16 @@
} }
//提交按钮和另存模板跳转团控列表 //提交按钮和另存模板跳转团控列表
else if (SaveType == 2 || SaveType == 3) { else if (SaveType == 2 || SaveType == 3) {
let path = "TravelControlList";
if (TeamType == 0) {
path = "TravelControlList";
} else if (TeamType == 1) {
path = "TravelControlListSale";
} else if (TeamType == 2) {
path = "oneDayTrip";
}
this.$router.push({ this.$router.push({
path: "TravelControlList", path: path,
query: { query: {
cache: true cache: true
} }
...@@ -381,7 +390,8 @@ ...@@ -381,7 +390,8 @@
//切换tab事件 //切换tab事件
clickFeature(item) { clickFeature(item) {
let state = this.FeatureData.FeatureType let state = this.FeatureData.FeatureType
if ((state === 4 && item.TypeState === 5) || (state === 4 && item.TypeState === 6) || (state === 4 && item.TypeState === if ((state === 4 && item.TypeState === 5) || (state === 4 && item.TypeState === 6) || (state === 4 && item
.TypeState ===
7)) { 7)) {
this.$confirm('尊敬的用户,行程特色“1”切换为行程特色“2”将会清空行程特色“1”里面的所有内容,您确定切换吗?', { this.$confirm('尊敬的用户,行程特色“1”切换为行程特色“2”将会清空行程特色“1”里面的所有内容,您确定切换吗?', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
...@@ -189,8 +189,6 @@ ...@@ -189,8 +189,6 @@
ckedNav: 1, ckedNav: 1,
modifyType: 1, //1:系列团修改,2:单团修改 modifyType: 1, //1:系列团修改,2:单团修改
modifyTcid: 0, //修改单团期id modifyTcid: 0, //修改单团期id
// flagWangYue: null,
// flagTwodog:null,
TeamType:'', TeamType:'',
loading: false, loading: false,
isNewConfig: true, isNewConfig: true,
...@@ -372,12 +370,8 @@ ...@@ -372,12 +370,8 @@
if (SaveType == 3) { if (SaveType == 3) {
basicData.TravelInfoIsCopy = true; basicData.TravelInfoIsCopy = true;
} }
//小包团
if (this.TeamType) { basicData.TeamType=this.TeamType;
basicData.TeamType = 1;
} else {
basicData.TeamType = 0;
}
console.log("basicData",basicData); console.log("basicData",basicData);
this.apipost( this.apipost(
"travel_post_SetTravelConfigInfo", "travel_post_SetTravelConfigInfo",
...@@ -386,7 +380,7 @@ ...@@ -386,7 +380,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//配置编号 //配置编号
TripFeature.ConfigId = res.data.data; TripFeature.ConfigId = res.data.data;
this.$refs.TravelFeature.getHtml(TripFeature, SaveType); this.$refs.TravelFeature.getHtml(TripFeature, SaveType,this.TeamType);
this.$refs.TravelPrice.closeHotelDialog(); this.$refs.TravelPrice.closeHotelDialog();
this.$refs.TravelPrice.initStatus(); this.$refs.TravelPrice.initStatus();
} else if (res.data.resultCode == 10009) { } else if (res.data.resultCode == 10009) {
...@@ -572,13 +566,13 @@ ...@@ -572,13 +566,13 @@
firstLoadConfigInfo() { firstLoadConfigInfo() {
var routeName = this.$route.name; var routeName = this.$route.name;
if(routeName=='TravelManager2'){ if(routeName=='TravelManager2'){
this.TeamType=1; this.TeamType=0;
} }
if(routeName=='TravelManager3'){ if(routeName=='TravelManager3'){
this.TeamType=2; this.TeamType=1;
} }
if(routeName=='TravelManager4'){ if(routeName=='TravelManager4'){
this.TeamType=3; this.TeamType=2;
} }
let configId = this.$route.query.configId; let configId = this.$route.query.configId;
this.modifyTcid = this.$route.query.tcid; this.modifyTcid = this.$route.query.tcid;
...@@ -595,7 +589,7 @@ ...@@ -595,7 +589,7 @@
this.ConfigId = configId; this.ConfigId = configId;
let msg = { let msg = {
configId: configId, configId: configId,
isSale: this.flagWangYue isSale: this.TeamType==1?true:false
}; };
this.loading = true; this.loading = true;
this.apipost( this.apipost(
...@@ -726,7 +720,7 @@ ...@@ -726,7 +720,7 @@
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"travel_get_GetCommonTravelInfo", { "travel_get_GetCommonTravelInfo", {
isSale: this.flagWangYue isSale: this.TeamType==1?true:false
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -734,7 +728,7 @@ ...@@ -734,7 +728,7 @@
if (tempData.LineList != null) { if (tempData.LineList != null) {
let data = tempData.LineList; let data = tempData.LineList;
let dataTwo = []; let dataTwo = [];
if (this.flagWangYue) { if ( this.TeamType==1) {
data.forEach(x => { data.forEach(x => {
if (x.Is_PacketGroup == 1) { if (x.Is_PacketGroup == 1) {
dataTwo.push(x); dataTwo.push(x);
......
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