Commit fc005aad authored by 黄奎's avatar 黄奎

权限修改

parent 06fd36ca
...@@ -734,6 +734,19 @@ var tripUtils = { ...@@ -734,6 +734,19 @@ var tripUtils = {
}) })
} }
return flag; return flag;
} },
//跳转到B2B一日游页面
GotoB2BOneDayPage(B2BDomain,ConfigId,tcid)
{
if (B2BDomain) {
var url = "http://"+B2BDomain;
window.open(
url+'/#/OneDayDetailTwo/' +
encodeURIComponent(ConfigId) + '/' + tcid +
'/preview',
'_blank'
)
}
},
} }
export default tripUtils; export default tripUtils;
...@@ -71,8 +71,6 @@ ...@@ -71,8 +71,6 @@
export default { export default {
data() { data() {
return { return {
//当前登录用户
CurrentUserInfo: {},
defaultSelectValue: 0, defaultSelectValue: 0,
list: [], list: [],
roomList: [], roomList: [],
...@@ -565,8 +563,7 @@ ...@@ -565,8 +563,7 @@
}, },
mounted() { mounted() {
this.getAllCurrency(); this.getAllCurrency();
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.NewTCIDs = this.$route.query.NewTCIDs; this.NewTCIDs = this.$route.query.NewTCIDs;
this.initSupplier(); this.initSupplier();
......
...@@ -604,8 +604,6 @@ ...@@ -604,8 +604,6 @@
data() { data() {
return { return {
EditBtn: false, //房餐景点修改权限 EditBtn: false, //房餐景点修改权限
//当前登录用户
CurrentUserInfo: {},
defaultSelectValue: 0, defaultSelectValue: 0,
list: [], list: [],
roomList: [], roomList: [],
...@@ -1208,8 +1206,6 @@ ...@@ -1208,8 +1206,6 @@
mounted() { mounted() {
this.GetAuth(); this.GetAuth();
this.getAllCurrency(); this.getAllCurrency();
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
this.LeaderName = this.$route.query.LeaderName; this.LeaderName = this.$route.query.LeaderName;
this.GuideName = this.$route.query.GuideName; this.GuideName = this.$route.query.GuideName;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
......
...@@ -240,8 +240,6 @@ ...@@ -240,8 +240,6 @@
GuestNum: 0, GuestNum: 0,
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//当前登录人信息
CurrentUserInfo: {},
//是否禁用按钮 //是否禁用按钮
IsDisabled: false, IsDisabled: false,
allCurrencyList: [], allCurrencyList: [],
...@@ -484,8 +482,6 @@ ...@@ -484,8 +482,6 @@
mounted() { mounted() {
this.CheckAuth(); this.CheckAuth();
this.GetAuth(); this.GetAuth();
let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.GuestNum = this.$route.query.GuestNum; this.GuestNum = this.$route.query.GuestNum;
this.getList(); this.getList();
......
...@@ -557,7 +557,6 @@ ...@@ -557,7 +557,6 @@
this.CheckUserAuth(actionCode, res => { this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) { if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true; this.EditBtn = true;
console.log("this.EditBtn",this.EditBtn)
} }
}); });
}, },
......
...@@ -125,17 +125,16 @@ ...@@ -125,17 +125,16 @@
</div> </div>
<div class="el-col"> <div class="el-col">
<div class="d7"> <div class="d7">
<el-button @click="goToOpenTravel('TravelManager2',item.ID)" type="primary" > <el-button @click="goToOpenTravel('TravelManager2',item.ID)" type="primary">
{{$t('Operation.Op_tripUpdate')}}</el-button> {{$t('Operation.Op_tripUpdate')}}</el-button>
<el-button @click="copyTravelInfo(item.ID)" type="primary">{{$t('Operation.Op_tripCopy')}}</el-button> <el-button @click="copyTravelInfo(item.ID)" type="primary">{{$t('Operation.Op_tripCopy')}}</el-button>
<el-button @click="goUrlR('confirmationOrderDownLoad',item)" type="primary"> <el-button @click="goUrlR('confirmationOrderDownLoad',item)" type="primary">
{{$t('Operation.Op_tripDownLoad')}}</el-button> {{$t('Operation.Op_tripDownLoad')}}</el-button>
<el-button style="display:none;" @click="goB2B(item.ID, 0)" type="primary">
{{$t('Operation.Op_b2bView')}}</el-button>
<el-button v-if="item.TCNUMS==''" @click="delConfig(item.ID)" type="primary"> <el-button v-if="item.TCNUMS==''" @click="delConfig(item.ID)" type="primary">
{{$t('system.table_delete')}}</el-button> {{$t('system.table_delete')}}</el-button>
<el-button @click="SetTravelConfigShare(item.ID)" type="primary"> <el-button @click="SetTravelConfigShare(item.ID)" type="primary">
共享给销售</el-button> 共享给销售</el-button>
</div> </div>
</div> </div>
...@@ -197,8 +196,6 @@ ...@@ -197,8 +196,6 @@
EndGroupDate: "", EndGroupDate: "",
KeyWords: "", //关键字 KeyWords: "", //关键字
}, },
//当前登录人员信息
CurrentUserInfo: {},
remarkMsg: { remarkMsg: {
TCID: 0, TCID: 0,
OPRemark: "", OPRemark: "",
...@@ -393,8 +390,8 @@ ...@@ -393,8 +390,8 @@
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息
SetTravelConfigShare(ID) { SetTravelConfigShare(ID) {
let msg = { let msg = {
ID:ID, ID: ID,
ShareTeamType:1 ShareTeamType: 1
}; };
this.apipost( this.apipost(
"travel_post_SetTravelConfigShareService", msg, "travel_post_SetTravelConfigShareService", msg,
...@@ -407,17 +404,7 @@ ...@@ -407,17 +404,7 @@
err => {} err => {}
); );
}, },
goB2B(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain;
var url = "http://192.168.2.214:8084";
url = "http://www.oytour.com";
window.open(
url + '/#/detailTwo/' +
encodeURIComponent(ConfigId) + '/' + tcid +
'/preview',
'_blank'
)
},
goUrlR(path, item) { goUrlR(path, item) {
var cityId = item.StartCityID var cityId = item.StartCityID
if (item.IsUnion == 1 && item.UnionTypeStr == 2) { if (item.IsUnion == 1 && item.UnionTypeStr == 2) {
...@@ -444,8 +431,6 @@ ...@@ -444,8 +431,6 @@
this.getLineList(); this.getLineList();
}, },
created() { created() {
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
this.getControlList(); this.getControlList();
}, },
}; };
......
...@@ -901,7 +901,6 @@ ...@@ -901,7 +901,6 @@
this.queryMsg.TCID = ""; this.queryMsg.TCID = "";
} }
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log("res.data.data.pageData",res.data.data.pageData);
this.queryCommonData.dataList = res.data.data.pageData this.queryCommonData.dataList = res.data.data.pageData
this.queryMsg.total = res.data.data.count this.queryMsg.total = res.data.data.count
this.queryMsg.noData = !this.queryMsg.total > 0 this.queryMsg.noData = !this.queryMsg.total > 0
...@@ -1150,13 +1149,8 @@ ...@@ -1150,13 +1149,8 @@
}) })
}, },
goB2B (ConfigId, tcid) { goB2B (ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain var B2BDomain = this.CurrentUserInfo.B2BDomain;
window.open( this.$tripUtils.GotoB2BOneDayPage(B2BDomain,ConfigId,tcid);
'http://www.oytour.com/#/OneDayDetailTwo/' +
encodeURIComponent(ConfigId) + '/' + tcid +
'/preview',
'_blank'
)
}, },
goTeamBalance (id, OutBranchId) { goTeamBalance (id, OutBranchId) {
this.$router.push({ this.$router.push({
......
This diff is collapsed.
...@@ -61,12 +61,9 @@ ...@@ -61,12 +61,9 @@
currentPage: 1, currentPage: 1,
isDisable:false, isDisable:false,
IsAuth:0,//生成票务提成权限 IsAuth:0,//生成票务提成权限
CurrentUserInfo:{},//当前用户对象
} }
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage();
this.CurrentUserInfo=userInfo;
this.GetAuth(); this.GetAuth();
this.getList(); this.getList();
}, },
......
...@@ -65,12 +65,10 @@ ...@@ -65,12 +65,10 @@
loading: false, loading: false,
//数据源 //数据源
dataList: [], dataList: [],
CurrentUserInfo: {}, //当前登录对象
} }
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
this.msg.MainId = this.$route.query.ID; this.msg.MainId = this.$route.query.ID;
this.getList(); this.getList();
}, },
......
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
CostType: 112, CostType: 112,
SelectState:true, SelectState:true,
} }
console.log(JSON.stringify(orderObj))
let id=[29,31]; let id=[29,31];
this.$router.push({ this.$router.push({
name: 'ChoiceAddFinancialDocuments', name: 'ChoiceAddFinancialDocuments',
......
...@@ -61,12 +61,11 @@ ...@@ -61,12 +61,11 @@
currentPage: 1, currentPage: 1,
isDisable:false, isDisable:false,
IsAuth:0,//生成票务提成权限 IsAuth:0,//生成票务提成权限
CurrentUserInfo:{},//当前用户对象
} }
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.CurrentUserInfo=userInfo;
this.GetAuth(); this.GetAuth();
this.getList(); this.getList();
}, },
......
...@@ -383,7 +383,6 @@ ...@@ -383,7 +383,6 @@
} }
basicData.TeamType = this.TeamType basicData.TeamType = this.TeamType
basicData.IsUpdateHotel = this.PostConfig.IsUpdateHotel basicData.IsUpdateHotel = this.PostConfig.IsUpdateHotel
console.log("basicData",basicData);
this.apipost( this.apipost(
'travel_post_SetTravelConfigInfo', 'travel_post_SetTravelConfigInfo',
basicData, basicData,
......
...@@ -143,8 +143,6 @@ ...@@ -143,8 +143,6 @@
loading: false, loading: false,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
//当前登录用户
CurrentUserInfo: {},
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
...@@ -266,8 +264,6 @@ ...@@ -266,8 +264,6 @@
}, },
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
let myDate = new Date(); let myDate = new Date();
let nowDate = let nowDate =
myDate.getFullYear() + myDate.getFullYear() +
......
...@@ -170,8 +170,6 @@ ...@@ -170,8 +170,6 @@
GuestNum: 0, GuestNum: 0,
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//当前登录人信息
CurrentUserInfo: {},
//是否禁用按钮 //是否禁用按钮
IsDisabled: false, IsDisabled: false,
} }
...@@ -280,8 +278,6 @@ ...@@ -280,8 +278,6 @@
}, },
mounted() { mounted() {
this.CheckAuth(); this.CheckAuth();
let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.flightTotal = this.$route.query.flightTotal; this.flightTotal = this.$route.query.flightTotal;
this.GuestNum = this.$route.query.GuestNum; this.GuestNum = this.$route.query.GuestNum;
......
...@@ -280,7 +280,6 @@ ...@@ -280,7 +280,6 @@
} }
.lineManagement .LM_ul li { .lineManagement .LM_ul li {
/*height: 78px;*/
margin: 20px 0 0px 0px; margin: 20px 0 0px 0px;
transition: linear all 0.5s; transition: linear all 0.5s;
background-color: #fff; background-color: #fff;
...@@ -444,8 +443,10 @@ ...@@ -444,8 +443,10 @@
</div> </div>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<div class="Linezhicai" :class="{'redType':item.isDirect=='0'}">{{item.isDirect=="0"?$t('op.feizhicai'):$t('op.zhicai')}}</div> <div class="Linezhicai" :class="{'redType':item.isDirect=='0'}">
<div class="Linezhicai" :class="{'redType':item.isShow=='0'}">{{item.isShow=="0"?$t('MarketingActi.notShow'):$t('system.table_isShows')}}</div> {{item.isDirect=="0"?$t('op.feizhicai'):$t('op.zhicai')}}</div>
<div class="Linezhicai" :class="{'redType':item.isShow=='0'}">
{{item.isShow=="0"?$t('MarketingActi.notShow'):$t('system.table_isShows')}}</div>
<div class="Linezhicai" :class="{'redType':item.is_PacketGroup=='0'}"> <div class="Linezhicai" :class="{'redType':item.is_PacketGroup=='0'}">
{{item.is_PacketGroup =="0"?$t('op.notxiaobaotuan'):$t('Operation.Op_AllowSmallGroup')}}</div> {{item.is_PacketGroup =="0"?$t('op.notxiaobaotuan'):$t('Operation.Op_AllowSmallGroup')}}</div>
</el-col> </el-col>
......
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