Commit 194faaab authored by zhengke's avatar zhengke

修改页面

parent c4d9cb83
...@@ -453,6 +453,20 @@ ...@@ -453,6 +453,20 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="AccountOrder_box" v-if="postMsg.IsShowSDNav==0">
<div>
<div class="AccountOrder_Top">
<div>司导订单</div>
<div style="color: rgb(153, 153, 153);">查看更多></div>
</div>
<div class="Account_bTM">
<div class="Account_bTMList" v-for="(item,index) in postMsg.SDOrderMenuList" :key="index">
<div class="Account_btmimg" :style="{backgroundImage:'url('+ item.MenuIcon + ')'}"></div>
<div style="margin-top:5px;">{{item.MenuName}}</div>
</div>
</div>
</div>
</div> </div>
<div class="mobile-menus-box" v-if="postMsg.IsShowMenuNav==0"> <div class="mobile-menus-box" v-if="postMsg.IsShowMenuNav==0">
<template v-if="postMsg.MenuNavStyle==1"> <template v-if="postMsg.MenuNavStyle==1">
...@@ -558,6 +572,23 @@ ...@@ -558,6 +572,23 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="User_rightTop">
<div class="User_rightTop_header">司导订单栏设置</div>
<el-form label-width="150px" style="padding:20px;">
<el-form-item label="司导订单栏显示状态" size="small">
<el-switch v-model="postMsg.IsShowSDNav" :active-value="0" :inactive-value="1"></el-switch>
</el-form-item>
<el-form-item label="订单栏" size="small">
<div class="CollectDiv">
<div class="ColeectList" v-for="(item,index) in postMsg.SDOrderMenuList" :key="index"
@click="upDateMsg(item,5),comCheckIndex=index">
<div class="ColeectImgList" :style="{backgroundImage:'url('+ item.MenuIcon + ')'}"></div>
<div>{{item.MenuName}}</div>
</div>
</div>
</el-form-item>
</el-form>
</div>
<div class="User_rightTop"> <div class="User_rightTop">
<div class="User_rightTop_header">账户栏设置</div> <div class="User_rightTop_header">账户栏设置</div>
<el-form label-width="150px" style="padding:20px;"> <el-form label-width="150px" style="padding:20px;">
...@@ -628,7 +659,7 @@ ...@@ -628,7 +659,7 @@
<el-dialog :title="commonEditTitle" :visible.sync="isShowDialog" width="450px"> <el-dialog :title="commonEditTitle" :visible.sync="isShowDialog" width="450px">
<el-form label-width="120px"> <el-form label-width="120px">
<el-form-item label="名称"> <el-form-item label="名称">
<el-input type="text" :disabled="EditIndex==1||EditIndex==2" v-model="modifyMsg.name" size="small" <el-input type="text" :disabled="EditIndex==1||EditIndex==2||EditIndex==5" v-model="modifyMsg.name" size="small"
class="w200" maxlength="100" /> class="w200" maxlength="100" />
</el-form-item> </el-form-item>
<el-form-item label="图标"> <el-form-item label="图标">
...@@ -759,12 +790,14 @@ ...@@ -759,12 +790,14 @@
HeadStyleStr: "", //会员中心头像样式字符串 HeadStyleStr: "", //会员中心头像样式字符串
IsShowFavorite: 0, //是否显示收藏夹(0-显示,1-不显示) IsShowFavorite: 0, //是否显示收藏夹(0-显示,1-不显示)
IsShowOrderNav: 0, //是否显示订单栏(0-显示,1-不显示) IsShowOrderNav: 0, //是否显示订单栏(0-显示,1-不显示)
IsShowSDNav:0, //是否显示司导订单栏(0-显示,1-不显示)
IsShowAccountNav: 0, //是否显示账户栏(0-显示,1-不显示) IsShowAccountNav: 0, //是否显示账户栏(0-显示,1-不显示)
IsShowMenuNav: 0, //是否显示菜单栏(0-显示,1-不显示) IsShowMenuNav: 0, //是否显示菜单栏(0-显示,1-不显示)
MenuNavTitle: "", //菜单栏标题 MenuNavTitle: "", //菜单栏标题
MenuNavStyle: 0, //菜单栏样式(0-列表,1-九宫格) MenuNavStyle: 0, //菜单栏样式(0-列表,1-九宫格)
FavoriteFootMenuList: [], //收藏足迹菜单 FavoriteFootMenuList: [], //收藏足迹菜单
OrderMenuList: [], //订单菜单 OrderMenuList: [], //订单菜单
SDOrderMenuList:[], //司导订单栏
AccountMenuList: [], //账号菜单 AccountMenuList: [], //账号菜单
SelfMenuList: [], //自定义菜单 SelfMenuList: [], //自定义菜单
}, },
...@@ -824,6 +857,10 @@ ...@@ -824,6 +857,10 @@
this.postMsg.SelfMenuList[this.comCheckIndex].MenuName = this.modifyMsg.name; this.postMsg.SelfMenuList[this.comCheckIndex].MenuName = this.modifyMsg.name;
this.postMsg.SelfMenuList[this.comCheckIndex].MenuIcon = this.modifyMsg.image; this.postMsg.SelfMenuList[this.comCheckIndex].MenuIcon = this.modifyMsg.image;
break; break;
case 5:
this.postMsg.SDOrderMenuList[this.comCheckIndex].MenuName = this.modifyMsg.name;
this.postMsg.SDOrderMenuList[this.comCheckIndex].MenuIcon = this.modifyMsg.image;
break;
} }
this.isShowDialog = false; this.isShowDialog = false;
}, },
...@@ -849,6 +886,10 @@ ...@@ -849,6 +886,10 @@
this.commonEditTitle = '订单栏编辑'; this.commonEditTitle = '订单栏编辑';
this.SuggestSize = '建议尺寸:50*50'; this.SuggestSize = '建议尺寸:50*50';
break; break;
case 5:
this.commonEditTitle = '司导订单栏编辑';
this.SuggestSize = '建议尺寸:60*60';
break;
} }
this.modifyMsg.name = item.MenuName; this.modifyMsg.name = item.MenuName;
this.modifyMsg.image = item.MenuIcon; this.modifyMsg.image = item.MenuIcon;
...@@ -920,6 +961,10 @@ ...@@ -920,6 +961,10 @@
} else { } else {
this.restoreOrder(false); this.restoreOrder(false);
} }
//司导栏显示
if(jsonData.SDOrderMenuList){
this.postMsg.SDOrderMenuList = jsonData.SDOrderMenuList;
}
//账户栏 //账户栏
if (jsonData.AccountMenuList) { if (jsonData.AccountMenuList) {
this.postMsg.AccountMenuList = jsonData.AccountMenuList; this.postMsg.AccountMenuList = jsonData.AccountMenuList;
...@@ -941,8 +986,9 @@ ...@@ -941,8 +986,9 @@
this.apipost("/api/Tenant/GetMiniprogramPageListExt", {}, res => { this.apipost("/api/Tenant/GetMiniprogramPageListExt", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.userCenterMsg.MenuList = res.data.data; this.userCenterMsg.MenuList = res.data.data;
console.log(res,'数据');
} else { } else {
this.Info(res.data.message); this.Error(res.data.message);
} }
}) })
}, },
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
<span>导游管理</span> <span>导游管理</span>
<div style="display: flex;flex-direction: row;align-items: center"> <div style="display: flex;flex-direction: row;align-items: center">
<el-button type="primary" class="el-button--small" @click="addRecharge">新增</el-button> <el-button type="primary" class="el-button--small" @click="addRecharge">新增</el-button>
<el-button type="primary" @click="SetProduct(0)" style="margin-left:10px;" class="el-button--small">启用导游</el-button>
<el-button type="primary" @click="SetProduct(1)" style="margin-left:10px;" class="el-button--small">冻结导游</el-button>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
...@@ -20,10 +22,10 @@ ...@@ -20,10 +22,10 @@
</el-input> </el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span> <span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div> </div>
<div class="searchInput" style="width:190px"> <div class="searchInput" style="width:200px">
<el-input style="display:inline-block;width:160px;height:30px" <el-input style="display:inline-block;width:170px;height:30px"
placeholder="请输入导游编号搜索" placeholder="请输入导游编号搜索"
v-model="msg.ID" v-model="searchId"
size="small" size="small"
@clear="getList" @clear="getList"
@keyup.enter.native="getList" @keyup.enter.native="getList"
...@@ -31,7 +33,7 @@ ...@@ -31,7 +33,7 @@
</el-input> </el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span> <span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div> </div>
<span style="margin-left:15px">状态:</span> <span>状态:</span>
<el-select class="w120" @change="msg.pageIndex=1,getList()" v-model="msg.IsEnable" size="small" <el-select class="w120" @change="msg.pageIndex=1,getList()" v-model="msg.IsEnable" size="small"
placeholder="请选择"> placeholder="请选择">
<el-option v-for="item in IsEnableList" :key="item.id" :label="item.name" :value="item.id"> <el-option v-for="item in IsEnableList" :key="item.id" :label="item.name" :value="item.id">
...@@ -41,9 +43,6 @@ ...@@ -41,9 +43,6 @@
<el-date-picker v-model="dateList" @change="msg.pageIndex=1,getList()" size="small" type="datetimerange" range-separator="至" <el-date-picker v-model="dateList" @change="msg.pageIndex=1,getList()" size="small" type="datetimerange" range-separator="至"
value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期"> value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
<el-button @click="SetProduct(0)" style="margin-left:10px;" size="mini">启用导游</el-button>
<el-button @click="SetProduct(1)" style="margin-left:10px;" size="mini">冻结导游</el-button>
</div> </div>
</div> </div>
...@@ -52,16 +51,15 @@ ...@@ -52,16 +51,15 @@
<div style="display: flex;flex-direction: row;align-items: center"> <div style="display: flex;flex-direction: row;align-items: center">
<div class="block" > <div class="block" >
<span style="margin-left: 10px">工作年限范围:</span> <span style="margin-left: 10px">工作年限范围:</span>
<el-input style="display:inline-block;width:100px;height:30px" placeholder="请输入" v-model="msg.StartWorkYears" size="small" clearable type="number"></el-input> <el-input style="display:inline-block;width:100px;height:30px" :min="0" placeholder="请输入" v-model="msg.StartWorkYears" size="small" type="number"></el-input>
<span style="margin: 0 10px ;">~</span> <span style="margin: 0 10px ;">~</span>
<el-input style="display:inline-block;width:100px;height:30px" placeholder="请输入" v-model="msg.EndWorkYears" size="small" clearable type="number"></el-input> <el-input style="display:inline-block;width:100px;height:30px" :min="0" placeholder="请输入" v-model="msg.EndWorkYears" size="small" type="number"></el-input>
<el-button type="primary" @click="getList()" size="small" style="margin-left: 5px">确定</el-button>
<span style="margin-left: 20px">评分范围:</span> <span style="margin-left: 20px">评分范围:</span>
<el-input style="display:inline-block;width:100px;height:30px" placeholder="请输入" v-model="msg.StartScore" size="small" clearable type="number"></el-input> <el-input style="display:inline-block;width:100px;height:30px" placeholder="请输入" v-model="msg.StartScore" size="small" type="number"></el-input>
<span style="margin: 0 10px ;">~</span> <span style="margin: 0 10px ;">~</span>
<el-input style="display:inline-block;width:100px;height:30px" placeholder="请输入" v-model="msg.EndScore" size="small" clearable type="number"></el-input> <el-input style="display:inline-block;width:100px;height:30px" placeholder="请输入" v-model="msg.EndScore" size="small" type="number"></el-input>
<el-button type="primary" @click="getList()" size="small" style="margin-left: 5px">确定</el-button> <el-button type="primary" @click="getList()" size="small" style="margin-left: 5px">查询</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -183,7 +181,7 @@ ...@@ -183,7 +181,7 @@
pageIndex:1, pageIndex:1,
pageSize:20, pageSize:20,
Name:'', Name:'',
ID:0, ID:'',
StartWorkYears:'', StartWorkYears:'',
EndWorkYears:'', EndWorkYears:'',
IsEnable:-1, IsEnable:-1,
...@@ -194,7 +192,7 @@ ...@@ -194,7 +192,7 @@
}, },
dateList:[], dateList:[],
IsEnableList:[ IsEnableList:[
{id:-1,name:'查看全部'}, {id:-1,name:'不限'},
{id:0,name:'正常'}, {id:0,name:'正常'},
{id:1,name:'冻结'}, {id:1,name:'冻结'},
], ],
...@@ -205,6 +203,7 @@ ...@@ -205,6 +203,7 @@
Ids:'', Ids:'',
IsEnable:0, IsEnable:0,
}, },
searchId:'', //输入框ID
} }
}, },
created(){ created(){
...@@ -214,8 +213,10 @@ ...@@ -214,8 +213,10 @@
methods:{ methods:{
getDateList(){ getDateList(){
this.loading=true; this.loading=true;
if(this.msg.ID==''){ if(this.searchId==''){
this.msg.ID=0 this.msg.ID=0
}else{
this.msg.ID = parseInt(this.searchId);
} }
if (this.dateList && this.dateList.length > 0) { if (this.dateList && this.dateList.length > 0) {
this.msg.StartTime = this.dateList[0]; this.msg.StartTime = this.dateList[0];
...@@ -283,6 +284,7 @@ ...@@ -283,6 +284,7 @@
} }
}) })
}, },
//点击启用和冻结导游
SetProduct(type){ SetProduct(type){
this.EnableMsg.IsEnable = type; this.EnableMsg.IsEnable = type;
if(this.EnableMsg.Ids.length==0){ if(this.EnableMsg.Ids.length==0){
...@@ -292,6 +294,7 @@ ...@@ -292,6 +294,7 @@
this.EnableMsg.Ids = this.EnableMsg.Ids.join(","); this.EnableMsg.Ids = this.EnableMsg.Ids.join(",");
this.enableGuideCar() this.enableGuideCar()
}, },
//勾选导游
handleSelectionChange(val){ handleSelectionChange(val){
var selectRow = JSON.parse(JSON.stringify(val)); var selectRow = JSON.parse(JSON.stringify(val));
let array= []; let array= [];
......
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