Commit d1ec5267 authored by liudong1993's avatar liudong1993
parents f7e41eef ebb895f1
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<div class="showMyCareer" v-if="showCareer"> <div class="showMyCareer" v-if="showCareer">
<mycareer :show-close="true" :uid="careerId" @close="closeCareer"></mycareer> <mycareer :show-close="true" :uid="careerId" @close="closeCareer"></mycareer>
</div> </div>
<customerService v-show="showCustomerService" @close="showCustomerService=false"/> <customerService v-show="showCustomerService" />
<img @click="showCustomerService=!showCustomerService" <!-- <img @click="showCustomerService=!showCustomerService"
class="customerServiceButton" class="customerServiceButton"
src="./assets/img/kefu1.png" alt=""/> src="./assets/img/kefu1.png" alt=""/> -->
</div> </div>
</template> </template>
...@@ -237,6 +237,9 @@ ...@@ -237,6 +237,9 @@
this.MsgBus.$on("changeTheme", t => { this.MsgBus.$on("changeTheme", t => {
this.isRed = t == 1; this.isRed = t == 1;
}); });
this.MsgBus.$on("showCustomerServiceHandler", (isShow) => {
this.showCustomerService = isShow;
});
} }
}; };
......
src/assets/img/AI.png

2.78 KB | W: | H:

src/assets/img/AI.png

2.69 KB | W: | H:

src/assets/img/AI.png
src/assets/img/AI.png
src/assets/img/AI.png
src/assets/img/AI.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
<template> <template>
<div class="dialogPptistVisible-box" style="width: 100%;height: 100%;"> <div class="dialogPptistVisible-box" style="width: 100%;height: 100%;">
<div style="position: relative;width: 800px;"> <div style="position: relative;width: 800px;">
<span style="opacity: 0;">1</span> <span style="opacity: 0;">1</span>
<div class="item"> <div class="item">
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<iframe id="myTemplateUrl" v-if="Url!=''" name="myTemplateUrl" :src="Url" class="TemplateIframe"> <iframe id="myTemplateUrl" v-if="Url!=''" name="myTemplateUrl" :src="Url" class="TemplateIframe">
</iframe> </iframe>
</div> </div>
</template> </template>
<script> <script>
import { compressToBase64 } from '@/utils/compression'; import { compressToBase64 } from '@/utils/compression';
...@@ -47,7 +47,7 @@ import { compressToBase64 } from '@/utils/compression'; ...@@ -47,7 +47,7 @@ import { compressToBase64 } from '@/utils/compression';
}, },
methods: { methods: {
close() { close() {
this.$emit('close') this.MsgBus.$emit("showCustomerServiceHandler",false);
}, },
async createInitDifyAsync(){ async createInitDifyAsync(){
const userInfo = this.getLocalStorage(); const userInfo = this.getLocalStorage();
...@@ -113,7 +113,7 @@ import { compressToBase64 } from '@/utils/compression'; ...@@ -113,7 +113,7 @@ import { compressToBase64 } from '@/utils/compression';
right: -40px; right: -40px;
top: -10px; top: -10px;
z-index: 99; z-index: 99;
} }
.itemBox{ .itemBox{
width: 30px; width: 30px;
......
...@@ -284,15 +284,22 @@ ...@@ -284,15 +284,22 @@
</el-dropdown> </el-dropdown>
</li> </li>
<template v-if="userInfo.RB_Group_id == 2"> <template v-if="userInfo.RB_Group_id == 2">
<li style="position: relative;"> <!-- <li style="position: relative;">
<!--||MsgCount>0-->
<i class="iconfont icon-imessage_top" <i class="iconfont icon-imessage_top"
:class="[(hasNewMsg > 0) && !IM_bodyIsShow ? 'animation red' : '', IM_bodyIsShow ? 'red' : '']" :class="[(hasNewMsg > 0) && !IM_bodyIsShow ? 'animation red' : '', IM_bodyIsShow ? 'red' : '']"
@click="IM_bodyIsShow = !IM_bodyIsShow, IM_navType = 1"></i> @click="IM_bodyIsShow = !IM_bodyIsShow, IM_navType = 1"></i>
</li> </li> -->
<li style="display: flex;flex-direction: column;align-items: center;justify-content: center;"> <li style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
<!-- <i class="iconfont icon-banbengengxin" @click="goUrlLog()"></i> --> <!-- <i class="iconfont icon-banbengengxin" @click="goUrlLog()"></i> -->
<img src="../assets/img/AI.png" style="width: 25px;cursor: pointer;" title="AI行程" @click="goRequirement()"> <el-tooltip effect="dark" content="AI行程" placement="top">
<img src="../assets/img/AI.png" style="width: 30px;cursor: pointer;" @click="goRequirement()">
</el-tooltip>
</li>
<li style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
<el-tooltip effect="dark" content="ERP智能客服" placement="top">
<!-- <img src="../assets/img/AI.png" style="width: 30px;cursor: pointer;" @click="goRequirement()"> -->
<div class="top-right-menu-item" style="margin-top: -10px;" @click="showCustomerServiceHandler()" ></div>
</el-tooltip>
</li> </li>
<li v-if="!useRed"><i class="iconfont icon-gonggao" <li v-if="!useRed"><i class="iconfont icon-gonggao"
@click="IM_bodyIsShow = !IM_bodyIsShow, IM_navType = 52"></i> @click="IM_bodyIsShow = !IM_bodyIsShow, IM_navType = 52"></i>
...@@ -2075,6 +2082,9 @@ export default { ...@@ -2075,6 +2082,9 @@ export default {
} }
}, },
methods: { methods: {
showCustomerServiceHandler() {
this.MsgBus.$emit("showCustomerServiceHandler",true);
},
// 销售看板 // 销售看板
SalesBoard() { SalesBoard() {
this.apipost( this.apipost(
...@@ -4673,7 +4683,17 @@ export default { ...@@ -4673,7 +4683,17 @@ export default {
.downmz .khd a { .downmz .khd a {
color: #fff; color: #fff;
} }
.top-right-menu-item{
width: 30px;
height: 30px;
background-image: url('../assets/img/robot.png');
background-size: 100% 100%;
background-repeat: no-repeat;
cursor: pointer;
}
.top-right-menu-item:hover{
background-image: url('../assets/img/robot_hover.png');
}
.downmz .khd { .downmz .khd {
display: inline-block; display: inline-block;
width: 162px; width: 162px;
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<div class="option-label">{{ item.label }}</div> <div class="option-label">{{ item.label }}</div>
</div> </div>
</div> </div>
<div class="qrcode-area" style="margin: 24px 0; text-align: center;" v-loading="createQrcode"> <div v-if="currentPublishOption!='pdfItinerary'" class="qrcode-area" style="margin: 24px 0; text-align: center;" v-loading="createQrcode">
<div style="height: 100px; width: 100px; background: #f5f5f5; display: inline-block; border-radius: 8px; line-height: 100px;"> <div style="height: 100px; width: 100px; background: #f5f5f5; display: inline-block; border-radius: 8px; line-height: 100px;">
<!-- 这里放二维码图片 --> <!-- 这里放二维码图片 -->
<img :src="qrcodeUrl" style="width: 100%; height: 100%;" /> <img :src="qrcodeUrl" style="width: 100%; height: 100%;" />
...@@ -134,12 +134,13 @@ ...@@ -134,12 +134,13 @@
<el-input <el-input
v-model="publishShareLink" v-model="publishShareLink"
readonly readonly
placeholder="这里是分享链接" placeholder=""
style="width: 100%;" style="width: 100%;"
v-if="currentPublishOption!='wechatH5'" v-if="currentPublishOption!='wechatH5'"
> >
<template #append> <template #append>
<el-button @click="copyPublishLink">复制</el-button> <el-button @click="copyPublishLink">复制</el-button>
<el-button @click="openUrl(publishShareLink)">打开</el-button>
</template> </template>
</el-input> </el-input>
<div style="height: 30px;"></div> <div style="height: 30px;"></div>
...@@ -362,7 +363,7 @@ export default { ...@@ -362,7 +363,7 @@ export default {
}, },
handlePDFItinerary(row) { handlePDFItinerary(row) {
// 下载PDF行程书 // 下载PDF行程书
window.open(`${this.baseHref}/api/itinerary/pdf/book/${row.id}`, '_blank'); this.getDownloadTDUrl(row);
}, },
handleWebSchedule(row) { handleWebSchedule(row) {
// 打开Web行程单页面 // 打开Web行程单页面
...@@ -453,6 +454,33 @@ export default { ...@@ -453,6 +454,33 @@ export default {
); );
} }
}, },
getDownloadTDUrl(row) {
if(row.tdId == 0){
this.$message.error('请先创建TD行程');
return;
}
this.apipost && this.apipost(
"triptemplate_GetTripOther", {Id:row.tdId},
res => {
if (res.data && res.data.resultCode == 1) {
const params = {"Id":row.tdId,"Hash":res.data.data.HashInfo,"Range":"","Quality":1,"DownloadType":0}
this.apipost("ppt_get_downloadtoken",params,res=>{
if(res.data && res.data.resultCode == 1){
this.publishShareLink = `${this.domainManager().PptUrl}/download/${res.data.data}`;
}
});
} else {
this.$message.error('获取TD行程失败');
}
},
err => {
this.$message.error('获取TD行程失败');
}
);
},
openUrl(url){
window.open(url, '_blank');
},
editTD(row) { editTD(row) {
// 先请求接口获取uid,再拼接PPT预览链接 // 先请求接口获取uid,再拼接PPT预览链接
if (row.tdId > 0) { if (row.tdId > 0) {
...@@ -461,7 +489,7 @@ export default { ...@@ -461,7 +489,7 @@ export default {
res => { res => {
if (res.data && res.data.resultCode == 1) { if (res.data && res.data.resultCode == 1) {
let href = this.domainManager().PptUrl; let href = this.domainManager().PptUrl;
const pageUrl = `/editor/${row.tdId}/1/1/0/e/1/c/1` const pageUrl = `/editor/${row.tdId}/${row.tdTemplate}/1/0/e/1/c/1`
let url = `${href}/autoLogin?uid=${res.data.data}&model=1001&redict=${encodeURIComponent(pageUrl)}`; let url = `${href}/autoLogin?uid=${res.data.data}&model=1001&redict=${encodeURIComponent(pageUrl)}`;
window.open(url, '_blank'); window.open(url, '_blank');
} else { } else {
......
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