Commit 36635d7f authored by youjie's avatar youjie

ppt 行程特色

parent cf29ad63
...@@ -229,6 +229,12 @@ ...@@ -229,6 +229,12 @@
订单改价查看 订单改价查看
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="userInfo.IsEditTripTemplate" class="clearfix _dropdown_other"
@click.native="journeyTemplate(1)">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
添加/编辑模版
<i class="iconfont icon-right1"></i>
</el-dropdown-item>
<el-dropdown-item class="clearfix _dropdown_other" @click.native="goUrlPersonal()"> <el-dropdown-item class="clearfix _dropdown_other" @click.native="goUrlPersonal()">
<i class="iconfont icon-menu-shezhi1" style="color:#2c3e50"></i> <i class="iconfont icon-menu-shezhi1" style="color:#2c3e50"></i>
设置 设置
...@@ -1210,6 +1216,9 @@ ...@@ -1210,6 +1216,9 @@
<ChangeThePriceMessage v-if="ChangeThePriceVisible||ExamineThePriceVisible" :type="1" :msg="ExamineThePriceMsg" <ChangeThePriceMessage v-if="ChangeThePriceVisible||ExamineThePriceVisible" :type="1" :msg="ExamineThePriceMsg"
:ChangeThePriceObj="ChangeThePriceObj" :ChangeThePriceObj="ChangeThePriceObj"
@ChangeThePriceVisible="ChangeThePriceVisible=false,ExamineThePriceVisible=false"></ChangeThePriceMessage> @ChangeThePriceVisible="ChangeThePriceVisible=false,ExamineThePriceVisible=false"></ChangeThePriceMessage>
<!-- ppt 模版新增编辑窗口 -->
<pptIframe v-show="dialogPptistVisible" :TemplateUrl="TemplateUrl"
@close="closeIframe()"></pptIframe>
</div> </div>
</template> </template>
...@@ -1234,6 +1243,7 @@ ...@@ -1234,6 +1243,7 @@
import Voting from "../components/administrative/model/Voting"; import Voting from "../components/administrative/model/Voting";
import unbundlingMessage from "../components/administrative/model/unbundlingMessage"; import unbundlingMessage from "../components/administrative/model/unbundlingMessage";
import ChangeThePriceMessage from "../components/administrative/model/ChangeThePriceMessage"; import ChangeThePriceMessage from "../components/administrative/model/ChangeThePriceMessage";
import pptIframe from './commonPage/pptIframe/index';
export default { export default {
components: { components: {
...@@ -1247,9 +1257,12 @@ ...@@ -1247,9 +1257,12 @@
Voting, Voting,
unbundlingMessage, unbundlingMessage,
ChangeThePriceMessage, ChangeThePriceMessage,
pptIframe,
}, },
data() { data() {
return { return {
TemplateUrl: '',
dialogPptistVisible: false,
ExamineThePriceMsg: { ExamineThePriceMsg: {
Q_IsCollect: '2', //收款状态 Q_IsCollect: '2', //收款状态
DepartSTime: '', //出发时间 DepartSTime: '', //出发时间
...@@ -1972,6 +1985,15 @@ ...@@ -1972,6 +1985,15 @@
} }
}, },
methods: { methods: {
closeIframe(){
this.dialogPptistVisible = false
},
// 添加编辑模版
journeyTemplate(type){
let href = this.domainManager().PptUrl
this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&model=1`
this.dialogPptistVisible = true
},
GetExaminePriceOrderPageList(type) { GetExaminePriceOrderPageList(type) {
this.apipost( this.apipost(
"CarSingle_post_GetExaminePriceOrderPageList", this.ExamineThePriceMsg, "CarSingle_post_GetExaminePriceOrderPageList", this.ExamineThePriceMsg,
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
</span> </span>
<span class="foldList" @click="fold" v-if="isFold==''">{{$t('sm.djzd')}}</span> <span class="foldList" @click="fold" v-if="isFold==''">{{$t('sm.djzd')}}</span>
<span class="foldList" @click="fold" v-if="isFold==1">{{$t('sm.djzk')}}</span> <span class="foldList" @click="fold" v-if="isFold==1">{{$t('sm.djzk')}}</span>
<template v-if="false"> <template v-if="true">
<span class="foldList" style="margin-right: 5px;" <!-- <span class="foldList" style="margin-right: 5px;"
v-if="userInfo.IsEditTripTemplate" v-if="userInfo.IsEditTripTemplate"
@click="journeyTemplate(1)">添加/编辑模版</span> @click="journeyTemplate(1)">添加/编辑模版</span> -->
<span v-if="FeatureData.FeatureType==9" class="foldList" style="margin-right: 5px;" <span v-if="FeatureData.FeatureType==9" class="foldList" style="margin-right: 5px;"
@click="journeyTemplate(0)">编辑行程</span> @click="journeyTemplate(0)">编辑行程</span>
</template> </template>
...@@ -124,6 +124,8 @@ ...@@ -124,6 +124,8 @@
</div> </div>
<!-- ppt 模版行程 --> <!-- ppt 模版行程 -->
<div v-if="FeatureData.FeatureType==9&&FeatureDataFlag"> <div v-if="FeatureData.FeatureType==9&&FeatureDataFlag">
<!-- <iframe :src="TemplateUrlImg" style="width: 100%;height: 1000px;border: 0;">
</iframe> -->
<div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0"> <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0">
<template v-for="url in FeatureData.TripImageListNew"> <template v-for="url in FeatureData.TripImageListNew">
<el-image <el-image
...@@ -132,28 +134,15 @@ ...@@ -132,28 +134,15 @@
:preview-src-list="FeatureData.TripImageListNew"></el-image> :preview-src-list="FeatureData.TripImageListNew"></el-image>
</template> </template>
</div> </div>
<div v-else style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div> <div v-if="FeatureData.TripImageListNew.length==0" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- ppt 模版新增编辑窗口 --> <!-- ppt 模版新增编辑窗口 -->
<div class="dialogPptistVisible-box" v-show="dialogPptistVisible" <pptIframe v-show="dialogPptistVisible" :TemplateUrl="TemplateUrl"
style="width: 100%;height: 100%;"> @close="closeIframe()"></pptIframe>
<div class="closePptist-box">
<div class="closePptist">
<el-tooltip class="item" effect="dark" content="关闭窗口" placement="bottom">
<i class="el-icon-close"
style="color: #E95252;"
@click="dialogPptistVisible=!dialogPptistVisible"></i>
</el-tooltip>
</div>
</div>
<iframe :src="TemplateUrl"
class="TemplateIframe">
</iframe>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -171,6 +160,7 @@ ...@@ -171,6 +160,7 @@
// import newFeature2 from './TravelTemp/travelFeature2'; // import newFeature2 from './TravelTemp/travelFeature2';
import newFeature2 from './TravelTemp/travelFeature3'; import newFeature2 from './TravelTemp/travelFeature3';
import UpgradedVersion from './UpgradedVersion/index'; import UpgradedVersion from './UpgradedVersion/index';
import pptIframe from '../../commonPage/pptIframe/index';
import { import {
setTimeout setTimeout
} from 'timers'; } from 'timers';
...@@ -187,7 +177,8 @@ ...@@ -187,7 +177,8 @@
newFeature, newFeature,
newFeature2, newFeature2,
// newFeature3, // newFeature3,
UpgradedVersion UpgradedVersion,
pptIframe
}, },
props: ["subConfigId", "FeatureData", "isNewConfig", "TeamType"], props: ["subConfigId", "FeatureData", "isNewConfig", "TeamType"],
inject: ['loadConfigInfo'], inject: ['loadConfigInfo'],
...@@ -260,12 +251,12 @@ ...@@ -260,12 +251,12 @@
imgUrl: Travelslider, imgUrl: Travelslider,
TypeState: 8 TypeState: 8
}, },
// { {
// ckTitle: "行程特色-ppt", ckTitle: "行程特色-ppt",
// isShow: false, isShow: false,
// imgUrl: Travelslider, imgUrl: Travelslider,
// TypeState: 9 TypeState: 9
// }, },
], //tab数组 ], //tab数组
templateColorArray: [{ templateColorArray: [{
id: 1, id: 1,
...@@ -293,12 +284,16 @@ ...@@ -293,12 +284,16 @@
dialogPptistVisible: false, dialogPptistVisible: false,
userInfo: {}, userInfo: {},
TemplateUrl:'', TemplateUrl:'',
TemplateUrlImg:'',
isPostMessage: false isPostMessage: false
}; };
}, },
created: function () {}, created: function () {},
methods: { methods: {
closeIframe(){
this.dialogPptistVisible = false
},
handleMessage(event,targetOrigin) { handleMessage(event,targetOrigin) {
if(this.isPostMessage) return if(this.isPostMessage) return
if(event.data=='行程数据保存成功'){ if(event.data=='行程数据保存成功'){
...@@ -627,6 +622,7 @@ ...@@ -627,6 +622,7 @@
this.MsgBus.$on('FeatureDataFlag', () => { this.MsgBus.$on('FeatureDataFlag', () => {
this.FeatureDataFlag = true this.FeatureDataFlag = true
}); });
this.TemplateUrlImg = `${this.domainManager().PptUrl}/?uid=${this.userInfo.EmployeeId}&ConfigId=${this.FeatureData.ConfigId}&model=3&TempId=${this.FeatureData.TemplateId}`
}, },
watch: { watch: {
FeatureData: { FeatureData: {
...@@ -1728,49 +1724,5 @@ ...@@ -1728,49 +1724,5 @@
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
} }
.dialogPptistVisible-box{
position: fixed;
z-index: 1000;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
}
.closePptist-box{
position: fixed;
z-index: 1001;
left: 0;
right: 0;
top: 0;
height: 30px;
background: #fff;
border-bottom: 1px solid #eee;
}
.closePptist {
padding: 0 30px;
text-align: right;
margin: auto;
position: relative;
}
.closePptist i{
display: inline-block;
padding: 5px 10px;
font-size: 20px;
position: absolute;
right: 20px;
cursor: pointer;
}
.TemplateIframe{
border: none;
width: 100%;
height: calc(100vh - 30px);
background: rgb(243, 246, 251);
position: fixed;
z-index: 1002;
top: 30px;
left: 0;
right: 0;
bottom: 0px;
}
</style> </style>
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
let isOnline = 0; //0-本地测试,1-线上 let isOnline = 0; //0-本地测试,1-线上
let ocrUrl = "http://192.168.10.214:8140"; let ocrUrl = "http://192.168.10.214:8140";
// domainUrl = "http://192.168.10.238:8083"; // 刘东电脑 // domainUrl = "http://192.168.10.238:8083"; // 刘东电脑
// domainUrl = "http://192.168.10.226"; //春姐 domainUrl = "http://192.168.10.226"; //春姐
domainUrl = "http://192.168.10.214"; //奎哥 domainUrl = "http://192.168.10.214"; //奎哥
let crmLocalFileStreamDownLoadUrl = ""; let crmLocalFileStreamDownLoadUrl = "";
...@@ -172,9 +172,9 @@ export default { ...@@ -172,9 +172,9 @@ export default {
//google地图图片地址 //google地图图片地址
GoogleMapImageUrl: "http://imgfile.oytour.com", GoogleMapImageUrl: "http://imgfile.oytour.com",
//上传站点 //上传站点
UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://upload.oytour.com" : "http://192.168.10.68:8120", UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://upload.oytour.com" : "http://192.168.10.214:8120",
//文件站点 //文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.10.68:8130', ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.10.214:8130',
javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.10.123:9000", javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.10.123:9000",
javaUrlNew: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://property.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.10.123:9000", javaUrlNew: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://property.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.10.123:9000",
//Java接口本站文件流下载地址 //Java接口本站文件流下载地址
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
lxymallUrl: lxymallUrl, lxymallUrl: lxymallUrl,
crmUrl: crmUrl, crmUrl: crmUrl,
crmRoutingUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://fcrmyx.oytour.com/#/" : "http://localhost:8081/#/", crmRoutingUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://fcrmyx.oytour.com/#/" : "http://localhost:8081/#/",
PptUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://fcrmyx.oytour.com/#/" : "http://localhost:8080", PptUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://ppt.oytour.com" : "http://localhost:8080",
}; };
return obj; return obj;
}, },
...@@ -262,8 +262,8 @@ export default { ...@@ -262,8 +262,8 @@ export default {
if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 && if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 &&
this.$route.name.indexOf('confirmationOrderDownLoadNew') === -1 && this.$route.name.indexOf('PrintPage') === -1 && this.$route.name.indexOf('confirmationOrderDownLoadNew') === -1 && this.$route.name.indexOf('PrintPage') === -1 &&
this.$route.name.indexOf('TravelContractConfirm') === -1 && this.$route.name.indexOf('ViittoContractConfirm') === -1 && this.$route.name.indexOf('TravelContractConfirm') === -1 && this.$route.name.indexOf('ViittoContractConfirm') === -1 &&
this.$route.name.indexOf('OrderProfitLossList') === -1 && this.$route.name.indexOf('clientProtocol') === -1 && this.$route.name.indexOf('OrderProfitLossList') === -1 && this.$route.name.indexOf('clientProtocol') === -1
this.$route.name.indexOf('clientDisclaimerProtocol') === -1 && this.$route.name.indexOf('clientDisclaimerProtocol')===-1
) { ) {
let previousPathInfo = { let previousPathInfo = {
path: this.$route.name, path: this.$route.name,
...@@ -328,7 +328,9 @@ export default { ...@@ -328,7 +328,9 @@ export default {
guestId: guestId, guestId: guestId,
} }
}) })
} else if (this.$route.path == "/clientDisclaimerProtocol") { }
else if(this.$route.path=="/clientDisclaimerProtocol")
{
let TCID = this.$route.query.TCID; let TCID = this.$route.query.TCID;
let OrderId = this.$route.query.OrderId; let OrderId = this.$route.query.OrderId;
let GuestId = this.$route.query.GuestId; let GuestId = this.$route.query.GuestId;
...@@ -340,7 +342,8 @@ export default { ...@@ -340,7 +342,8 @@ export default {
GuestId: GuestId, GuestId: GuestId,
} }
}) })
} else if (this.$route.path == "/TravelContractConfirm") { }
else if (this.$route.path == "/TravelContractConfirm") {
let ContractId = this.$route.query.ContractId; let ContractId = this.$route.query.ContractId;
this.$router.push({ this.$router.push({
name: "TravelContractConfirm", name: "TravelContractConfirm",
...@@ -1057,18 +1060,16 @@ export default { ...@@ -1057,18 +1060,16 @@ export default {
}, },
//文件上传 //文件上传
Vue.prototype.uploadImg = function (path, base64Str, successCall, faildCall) { Vue.prototype.uploadImg = function (path, base64Str, successCall, faildCall) {
var apiurl = this.domainManager().UploadUrl + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=' + path; var apiurl = this.domainManager().UploadUrl + '/Upload/UploadBase64Two?fileType=1&fileLimit=5&&filePath=' + path;
var formData = new FormData(); this.$http.post(apiurl, {
formData.append("myfile", base64Str); MyFile: base64Str
this.$http.post(apiurl, formData, { }, {
headers: { headers: {
"Content-Type": "application/x-www-form-urlencoded;" "Content-Type": "application/x-www-form-urlencoded;"
}, },
}).then(function (res) { }).then(function (res) {
if (successCall) {
successCall(res) })
}
}, faildCall);
}, },
//证件识别 //证件识别
Vue.prototype.UploadCard = function (type, base64Str, successCall, faildCall) { Vue.prototype.UploadCard = function (type, base64Str, successCall, faildCall) {
......
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