Commit b5380156 authored by 罗超's avatar 罗超

1

parent f2de6bc5
...@@ -535,6 +535,9 @@ input:-webkit-autofill { ...@@ -535,6 +535,9 @@ input:-webkit-autofill {
.w780 { .w780 {
width: 780px!important; width: 780px!important;
} }
.w1000 {
width: 1000px!important;
}
.w50 { .w50 {
width: 50px !important; width: 50px !important;
......
<style> <style>
@import "../../assets/css/advert/advmanager"; @import "../../assets/css/advert/advmanager";
</style> </style>
<template> <template>
<div class="advmanager-box"> <div class="advmanager-box">
<div class="content" style="top: 50px">
<div class="content" style="top:50px;">
<!-- <ul> <!-- <ul>
<li v-for='item in addatas' :key="item.id"> <li v-for='item in addatas' :key="item.id">
<div class="img-box"> <div class="img-box">
...@@ -18,139 +17,189 @@ ...@@ -18,139 +17,189 @@
</div> </div>
</li> </li>
</ul> --> </ul> -->
<vueWaterfallEasy v-if='addatas.length!=0' ref="waterfall" :imgsArr="addatas" @scrollReachBottom="handleCurrentChange" :maxCols='7' :imgWidth='208' :enablePullDownEvent='true'> <vueWaterfallEasy
v-if="addatas.length != 0"
ref="waterfall"
:imgsArr="addatas"
@scrollReachBottom="handleCurrentChange"
:maxCols="7"
:imgWidth="208"
:enablePullDownEvent="true"
>
<template slot-scope="props"> <template slot-scope="props">
<span class="free"><i class="el-icon-share"></i> 0</span> <span class="free"><i class="el-icon-share"></i> 0</span>
<div class="zezhao"> <div class="zezhao">
<a :href='`/#/advert?id=${props.value.id}`'><i class="el-icon-edit" title="修改"></i></a> <a :href="`/#/advert?id=${props.value.id}`"
<a :href='props.value.advertisingPicUrlStr' download="广告图.png"><i class="el-icon-download" title="下载"></i></a> ><i class="el-icon-edit" title="修改"></i
<i class="el-icon-delete" title="删除" @click="deleteItem(props.value)"></i> ></a>
<a :href="props.value.advertisingPicUrlStr" download="广告图.png"
><i class="el-icon-download" title="下载"></i
></a>
<i
class="el-icon-delete"
title="删除"
@click="deleteItem(props.value)"
></i>
</div> </div>
</template> </template>
</vueWaterfallEasy> </vueWaterfallEasy>
<div v-if='addatas.length==0' style='width:100%;margin-top:50px;text-align:center;color: #ccc;'> <div
<i class="iconfont icon-kong" style="font-size: 120px;"></i><br/> v-if="addatas.length == 0"
还没有广告哦,<a href='/#/advert' style="color:rgb(0, 129, 255)">立即制作</a> style="width: 100%; margin-top: 50px; text-align: center; color: #ccc"
>
<i class="iconfont icon-kong" style="font-size: 120px"></i><br />
还没有广告哦,<a href="/#/advert" style="color: rgb(0, 129, 255)"
>立即制作</a
>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import vueWaterfallEasy from 'vue-waterfall-easy' import vueWaterfallEasy from "vue-waterfall-easy";
export default { export default {
data(){ data() {
return{ return {
lines:[], lines: [],
teams:[], teams: [],
modelTeams:[], modelTeams: [],
countrys:[], countrys: [],
addatas:[], addatas: [],
pageIndex:0, pageIndex: 0,
pageSize:15, pageSize: 15,
total:0, total: 0,
msg:{ msg: {
lineId:'0', lineId: "0",
teamId:'0', teamId: "0",
countryId:'0', countryId: "0",
type:'0' type: "0",
}, },
user:{}, user: {},
model:{}, model: {},
isAdd:false, isAdd: false,
uploadType:0, uploadType: 0,
} };
}, },
components: { components: {
vueWaterfallEasy vueWaterfallEasy,
}, },
mounted(){ mounted() {
this.user=JSON.parse(window.localStorage.userInfo) this.user = JSON.parse(window.localStorage.userInfo);
this.getline() this.getline();
this.getcountry() this.getcountry();
this.getaddatas(0) this.getaddatas(0);
}, },
methods:{ methods: {
deleteItem(x){ deleteItem(x) {
this.apipost("Advertising_post_Remove", {'ID':x.id}, x => { this.apipost(
if(x.data.resultCode==1){ "Advertising_post_Remove",
this.$message.success('删除成功') { ID: x.id },
this.getaddatas(0) (x) => {
}else{ if (x.data.resultCode == 1) {
this.$message.error(x.data.message) this.$message.success("删除成功");
this.getaddatas(0);
} else {
this.$message.error(x.data.message);
} }
},err => {}) },
(err) => {}
);
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageIndex++ this.pageIndex++;
this.getaddatas(1) this.getaddatas(1);
}, },
getaddatas(type){ getaddatas(type) {
if(type==0){ if (type == 0) {
this.pageIndex=0 this.pageIndex = 0;
} }
let msg={ let msg = {
pageIndex:this.pageIndex, pageIndex: this.pageIndex,
pageSize:this.pageSize pageSize: this.pageSize,
} };
this.apipost("Advertising_post_GetPageList", msg, x => { this.apipost(
x.data.data.pageData.forEach(x=>{ "Advertising_post_GetPageList",
x.src=`${x.advertisingPicUrlStr}?x-oss-process=image/resize,w_200` msg,
}) (x) => {
if(x.data.data.pageData.length==0){ x.data.data.pageData.forEach((x) => {
this.$refs.waterfall.waterfallOver() x.src = `${x.advertisingPicUrlStr}?x-oss-process=image/resize,w_200`;
} });
this.addatas=[]; if (x.data.data.pageData.length == 0) {
this.addatas=this.addatas.concat(x.data.data.pageData) this.$refs.waterfall.waterfallOver();
this.total=x.data.data.pageCount
},err => {})
},
getcountry(){
this.apipost("dict_post_Destination_GetCountry", {}, x => {
this.countrys=x.data.data
},err => {})
},
getteam(){
let msg={
'RB_Branch_id':this.user.RB_Branch_id,
'isTOOP':1,
'lineID':this.msg.lineId
}
this.apipost("team_post_GetList", msg, x => {
this.teams=x.data.data
if(x.data.data.length>0)
this.msg.teamId=x.data.data[0].LtID
},err => {})
},
changeLine(){
this.teams.splice(0,this.teams.length-1)
if(this.msg.lineId!==0){
this.getteam()
} }
this.addatas = [];
this.addatas = this.addatas.concat(x.data.data.pageData);
this.total = x.data.data.pageCount;
}, },
changeLineForm(){ (err) => {}
this.modelTeams.splice(0,this.modelTeams.length-1) );
if(this.model.LineID!==0&&this.model.LineID!=''){
let msg={
'RB_Branch_id':this.user.RB_Branch_id,
'isTOOP':1,
'lineID':this.model.LineID
}
this.apipost("team_post_GetList", msg, x => {
this.modelTeams=x.data.data
if(x.data.data.length>0)
this.model.SeriesID=x.data.data[0].LtID
},err => {})
}
}, },
getline(){ getcountry() {
let msg={'pageIndex':0,'pageSize':100} this.apipost(
this.apipost("line_post_GetPageList", msg, x => { "dict_post_Destination_GetCountry",
this.lines=x.data.data.pageData {},
},err => {}) (x) => {
this.countrys = x.data.data;
},
(err) => {}
);
},
getteam() {
let msg = {
RB_Branch_id: this.user.RB_Branch_id,
isTOOP: 1,
lineID: this.msg.lineId,
};
this.apipost(
"team_post_GetList",
msg,
(x) => {
this.teams = x.data.data;
if (x.data.data.length > 0) this.msg.teamId = x.data.data[0].LtID;
},
(err) => {}
);
},
changeLine() {
this.teams.splice(0, this.teams.length - 1);
if (this.msg.lineId !== 0) {
this.getteam();
} }
},
changeLineForm() {
this.modelTeams.splice(0, this.modelTeams.length - 1);
if (this.model.LineID !== 0 && this.model.LineID != "") {
let msg = {
RB_Branch_id: this.user.RB_Branch_id,
isTOOP: 1,
lineID: this.model.LineID,
};
this.apipost(
"team_post_GetList",
msg,
(x) => {
this.modelTeams = x.data.data;
if (x.data.data.length > 0)
this.model.SeriesID = x.data.data[0].LtID;
},
(err) => {}
);
} }
} },
getline() {
let msg = { pageIndex: 0, pageSize: 100 };
this.apipost(
"line_post_GetPageList",
msg,
(x) => {
this.lines = x.data.data.pageData;
},
(err) => {}
);
},
},
};
</script> </script>
\ No newline at end of file
...@@ -37,33 +37,35 @@ import pinyin from 'pinyin' ...@@ -37,33 +37,35 @@ import pinyin from 'pinyin'
// import JsPDF from 'jspdf' // import JsPDF from 'jspdf'
import lrz from 'lrz' import lrz from 'lrz'
import 'vue-easytable/libs/themes-base/index.css' import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable' import { VTable, VPagination } from 'vue-easytable'
import 'viewerjs/dist/viewer.css' import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer' import Viewer from 'v-viewer'
Vue.component(VTable.name, VTable) Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination) Vue.component(VPagination.name, VPagination)
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.http = Vue.prototype.$http = axios Vue.http = Vue.prototype.$http = axios
Vue.cookie = Vue.prototype.$cookie=cookie Vue.cookie = Vue.prototype.$cookie = cookie
Vue.commonUtils = Vue.prototype.$commonUtils=commonUtils Vue.commonUtils = Vue.prototype.$commonUtils = commonUtils
Vue.tripUtils=Vue.prototype.$tripUtils=tripUtils Vue.tripUtils = Vue.prototype.$tripUtils = tripUtils
Vue.DMCUtils=Vue.prototype.$DMCUtils=DMCUtils Vue.DMCUtils = Vue.prototype.$DMCUtils = DMCUtils
Vue.languageUtils=Vue.prototype.$languageUtils=languageUtils Vue.languageUtils = Vue.prototype.$languageUtils = languageUtils
Vue.calendarUtils=Vue.prototype.$calendarUtils=calendarUtils Vue.calendarUtils = Vue.prototype.$calendarUtils = calendarUtils
Vue.lunarCalendar=Vue.prototype.$lunarCalendar=lunarCalendar Vue.lunarCalendar = Vue.prototype.$lunarCalendar = lunarCalendar
Vue.googleMap=Vue.prototype.$googleMap=googleMap Vue.googleMap = Vue.prototype.$googleMap = googleMap
Vue.AuthCode=Vue.prototype.$AuthCode=AuthCode Vue.AuthCode = Vue.prototype.$AuthCode = AuthCode
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
Vue.chartsUtils=Vue.prototype.$chartsUtils=chartsUtils Vue.chartsUtils = Vue.prototype.$chartsUtils = chartsUtils
Vue.prototype.$VueBarcode = VueBarcode Vue.prototype.$VueBarcode = VueBarcode
// Vue.prototype.GLOBAL = global_ // Vue.prototype.GLOBAL = global_
// Vue.component('barcode', VueBarcode); // Vue.component('barcode', VueBarcode);
Vue.prototype.pinyin = pinyin Vue.prototype.pinyin = pinyin
// Vue.prototype.h2c=h2c // Vue.prototype.h2c=h2c
Vue.prototype.lrz=lrz Vue.prototype.lrz = lrz
/* eslint-disable no-new */ /* eslint-disable no-new */
// Vue.use(htmlToPdf) // Vue.use(htmlToPdf)
...@@ -74,7 +76,7 @@ Vue.use(vueQuillEditor) ...@@ -74,7 +76,7 @@ Vue.use(vueQuillEditor)
//Vue.use(VueAMap); //Vue.use(VueAMap);
Vue.use(VueBarcode); //声明条形码组件 Vue.use(VueBarcode); //声明条形码组件
Vue.use(store); Vue.use(store);
Vue.use(Viewer,{ Vue.use(Viewer, {
defaultOptions: { defaultOptions: {
zIndex: 9999 zIndex: 9999
} }
...@@ -93,10 +95,10 @@ Date.prototype.Format = function (fmt) { ...@@ -93,10 +95,10 @@ Date.prototype.Format = function (fmt) {
"m+": this.getMinutes(), //分 "m+": this.getMinutes(), //分
"s+": this.getSeconds() //秒 "s+": this.getSeconds() //秒
}; };
if (/(y+)/.test(fmt)){ //根据y的长度来截取年 if (/(y+)/.test(fmt)) { //根据y的长度来截取年
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
} }
for (var k in o){ for (var k in o) {
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
} }
return fmt; return fmt;
...@@ -107,7 +109,7 @@ Vue.prototype.DateDiff = function (sDate1, sDate2) { ...@@ -107,7 +109,7 @@ Vue.prototype.DateDiff = function (sDate1, sDate2) {
oDate1 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0]) oDate1 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0])
aDate = sDate2.split("-") aDate = sDate2.split("-")
oDate2 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0]) oDate2 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0])
iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 /24) //把相差的毫秒数转换为天数 iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24) //把相差的毫秒数转换为天数
return iDays return iDays
} }
...@@ -155,7 +157,7 @@ const i18n = new VueI18n({ ...@@ -155,7 +157,7 @@ const i18n = new VueI18n({
'zh-CN': require('./assets/common/lang/zh'), // 中文语言包 'zh-CN': require('./assets/common/lang/zh'), // 中文语言包
'en-US': require('./assets/common/lang/en'), // 英文语言包 'en-US': require('./assets/common/lang/en'), // 英文语言包
'zh-TW': require('./assets/common/lang/zh-tw'), // 台湾语言包 'zh-TW': require('./assets/common/lang/zh-tw'), // 台湾语言包
'Japanese' : require('./assets/common/lang/jp') // 日本语言包 'Japanese': require('./assets/common/lang/jp') // 日本语言包
} }
}) })
......
...@@ -2564,7 +2564,7 @@ export default { ...@@ -2564,7 +2564,7 @@ export default {
meta: { meta: {
title: '产品列表' title: '产品列表'
}, },
},{ }, {
path: '/directorGoodsEdit', //司导专区=>产品编辑 path: '/directorGoodsEdit', //司导专区=>产品编辑
name: 'directorGoodsEdit', name: 'directorGoodsEdit',
component: resolve => require(['@/components/TravelManager/Lxy/directorGoodsEdit'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/directorGoodsEdit'], resolve),
...@@ -2579,70 +2579,70 @@ export default { ...@@ -2579,70 +2579,70 @@ export default {
meta: { meta: {
title: '产品列表' title: '产品列表'
}, },
},{ }, {
path: '/directorOrderDetails', //司导专区=>订单详情 path: '/directorOrderDetails', //司导专区=>订单详情
name: 'directorOrderDetails', name: 'directorOrderDetails',
component: resolve => require(['@/components/TravelManager/Lxy/directorOrderDetails'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/directorOrderDetails'], resolve),
meta: { meta: {
title: '订单详情' title: '订单详情'
}, },
},{ }, {
path: '/directorSetting', //司导专区=>基础设置 path: '/directorSetting', //司导专区=>基础设置
name: 'directorSetting', name: 'directorSetting',
component: resolve => require(['@/components/TravelManager/Lxy/directorSetting'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/directorSetting'], resolve),
meta: { meta: {
title: '基础设置' title: '基础设置'
}, },
},{ }, {
path: '/guideCarSiteList', //司导专区=>站点管理 path: '/guideCarSiteList', //司导专区=>站点管理
name: 'guideCarSiteList', name: 'guideCarSiteList',
component: resolve => require(['@/components/TravelManager/Lxy/guideCarSiteList'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/guideCarSiteList'], resolve),
meta: { meta: {
title: '站点管理' title: '站点管理'
}, },
},{ }, {
path: '/addSite', //司导专区=>站点管理 path: '/addSite', //司导专区=>站点管理
name: 'addSite', name: 'addSite',
component: resolve => require(['@/components/TravelManager/Lxy/addSite'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/addSite'], resolve),
meta: { meta: {
title: '站点管理' title: '站点管理'
}, },
},{ }, {
path: '/directorGuideList', //司导专区=>导游管理 path: '/directorGuideList', //司导专区=>导游管理
name: 'directorGuideList', name: 'directorGuideList',
component: resolve => require(['@/components/TravelManager/Lxy/directorGuideList'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/directorGuideList'], resolve),
meta: { meta: {
title: '导游管理' title: '导游管理'
}, },
},{ }, {
path: '/addGuide', //司导专区=>导游管理 path: '/addGuide', //司导专区=>导游管理
name: 'addGuide', name: 'addGuide',
component: resolve => require(['@/components/TravelManager/Lxy/addGuide'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/addGuide'], resolve),
meta: { meta: {
title: '导游管理' title: '导游管理'
}, },
},{ }, {
path: '/directorCarList', //司导专区=>车辆管理 path: '/directorCarList', //司导专区=>车辆管理
name: 'directorCarList', name: 'directorCarList',
component: resolve => require(['@/components/TravelManager/Lxy/directorCarList'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/directorCarList'], resolve),
meta: { meta: {
title: '车辆管理' title: '车辆管理'
}, },
},{ }, {
path: '/addCar', //司导专区=>车辆管理 path: '/addCar', //司导专区=>车辆管理
name: 'addCar', name: 'addCar',
component: resolve => require(['@/components/TravelManager/Lxy/addCar'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/addCar'], resolve),
meta: { meta: {
title: '车辆管理' title: '车辆管理'
}, },
},{ }, {
path: '/directorCarBrandList', //司导专区=>车辆品牌管理 path: '/directorCarBrandList', //司导专区=>车辆品牌管理
name: 'directorCarBrandList', name: 'directorCarBrandList',
component: resolve => require(['@/components/TravelManager/Lxy/directorCarBrandList'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/directorCarBrandList'], resolve),
meta: { meta: {
title: '车辆品牌管理' title: '车辆品牌管理'
}, },
},{ }, {
path: '/addCarBrand', //司导专区=>车辆品牌管理 path: '/addCarBrand', //司导专区=>车辆品牌管理
name: 'addCarBrand', name: 'addCarBrand',
component: resolve => require(['@/components/TravelManager/Lxy/addCarBrand'], resolve), component: resolve => require(['@/components/TravelManager/Lxy/addCarBrand'], resolve),
...@@ -4832,6 +4832,7 @@ export default { ...@@ -4832,6 +4832,7 @@ export default {
title: '商品活动' title: '商品活动'
} }
}, },
{ {
path: "/OrderManagement", path: "/OrderManagement",
name: "OrderManagement", name: "OrderManagement",
......
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