update
This commit is contained in:
parent
fb0451de2d
commit
83ce31674d
@ -249,7 +249,7 @@ export default {
|
||||
{ name: '运营中心', key: 'business' },
|
||||
{ name: '客群画像', key: 'customerProfile' },
|
||||
{ name: '经营分析', key: 'businessRevenue' },
|
||||
{ name: '供应链生态', key: 'supplierAnalysis' },
|
||||
// { name: '供应链生态', key: 'supplierAnalysis' },
|
||||
{ name: '电商生态', key: 'mallOperation' },
|
||||
],
|
||||
// 各个Tab对应的导航栏数据
|
||||
|
||||
@ -736,11 +736,29 @@ export default {
|
||||
},
|
||||
// 跳转应急事件页面
|
||||
showEmergencyDetails(type) {
|
||||
if (this.serviceInfo.SERVERPART_NAME) {
|
||||
// type 1 应急事件 2 日常问题
|
||||
this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/emergencyEvents?type=${type}`);
|
||||
} else {
|
||||
let _this = this
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '请先选择服务区!',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
_this.$util.toNextRoute("navigateTo", "/pages/map/index?type=attendanceStatistics");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
// 跳转其他页面
|
||||
handleClickJump(value) {
|
||||
let _this = this
|
||||
console.log('this.serviceInfothis.serviceInfo', this.serviceInfo);
|
||||
|
||||
if (this.serviceInfo.SERVERPART_NAME) {
|
||||
if (value === 1) {
|
||||
this.showEmergencyDetails(1)
|
||||
} else if (value === 2) {
|
||||
@ -751,6 +769,20 @@ export default {
|
||||
} else if (value === 5) {
|
||||
this.$util.toNextRoute('navigateTo', `/pages/attendanceStatus/roster`)
|
||||
}
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '请先选择服务区!',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
_this.$util.toNextRoute("navigateTo", "/pages/map/index?type=attendanceStatistics");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
// 会员详情信息
|
||||
viewStaffDetails(obj) {
|
||||
|
||||
@ -592,6 +592,30 @@ export default {
|
||||
);
|
||||
},
|
||||
handlePage() {
|
||||
if (this.isReturn) {
|
||||
let userInfo = JSON.parse(JSON.stringify(this.user));
|
||||
if (userInfo && userInfo.WeChat_UserId && userInfo.AuthorityInfo["89a1f248-2113-4d57-84b1-c2e6edb9e8ee"] !== 1) {
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '抱歉,您没有权限查看数智化看板,请联系管理员进行授权',
|
||||
success(res) {
|
||||
}
|
||||
})
|
||||
return
|
||||
} else {
|
||||
let _this = this
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '请您授权登录后再操作。',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
_this.$util.toNextRoute('redirectTo', '/pages/register/register')
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
this.$util.toNextRoute(
|
||||
"navigateTo",
|
||||
`/pages/everdayRenven/index?time=${this.lastDay}&GroupType=1000&ProvinceCode=530000&ServerpartIds=`
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
name: "userList",
|
||||
props: {
|
||||
@ -71,6 +72,9 @@ export default {
|
||||
colorList: ['#3473FE', '#5B5BFB', '#B55FFB', '#0095FB', '#FB8922', '#EAAB00', '#1CB953', '#149FB3']
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({ user: "getUser" }),
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.colorList, 'colorList')
|
||||
},
|
||||
@ -108,6 +112,32 @@ export default {
|
||||
},
|
||||
// 第四行的跳转
|
||||
handleGoFourth(item) {
|
||||
if (this.isReturn) {
|
||||
let userInfo = JSON.parse(JSON.stringify(this.user));
|
||||
if (userInfo && userInfo.WeChat_UserId && userInfo.AuthorityInfo["89a1f248-2113-4d57-84b1-c2e6edb9e8ee"] !== 1) {
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '抱歉,您没有权限查看数智化看板,请联系管理员进行授权',
|
||||
success(res) {
|
||||
}
|
||||
})
|
||||
return
|
||||
} else {
|
||||
let _this = this
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '请您授权登录后再操作。',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
_this.$util.toNextRoute('redirectTo', '/pages/register/register')
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//通过权限来判断是否可以点击跳转
|
||||
let userInfo = uni.getStorageSync("vuex");
|
||||
userInfo = userInfo ? JSON.parse(userInfo) : ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user