update
This commit is contained in:
parent
fb0451de2d
commit
83ce31674d
@ -249,7 +249,7 @@ export default {
|
|||||||
{ name: '运营中心', key: 'business' },
|
{ name: '运营中心', key: 'business' },
|
||||||
{ name: '客群画像', key: 'customerProfile' },
|
{ name: '客群画像', key: 'customerProfile' },
|
||||||
{ name: '经营分析', key: 'businessRevenue' },
|
{ name: '经营分析', key: 'businessRevenue' },
|
||||||
{ name: '供应链生态', key: 'supplierAnalysis' },
|
// { name: '供应链生态', key: 'supplierAnalysis' },
|
||||||
{ name: '电商生态', key: 'mallOperation' },
|
{ name: '电商生态', key: 'mallOperation' },
|
||||||
],
|
],
|
||||||
// 各个Tab对应的导航栏数据
|
// 各个Tab对应的导航栏数据
|
||||||
|
|||||||
@ -736,21 +736,53 @@ export default {
|
|||||||
},
|
},
|
||||||
// 跳转应急事件页面
|
// 跳转应急事件页面
|
||||||
showEmergencyDetails(type) {
|
showEmergencyDetails(type) {
|
||||||
// type 1 应急事件 2 日常问题
|
if (this.serviceInfo.SERVERPART_NAME) {
|
||||||
this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/emergencyEvents?type=${type}`);
|
// 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) {
|
handleClickJump(value) {
|
||||||
if (value === 1) {
|
let _this = this
|
||||||
this.showEmergencyDetails(1)
|
console.log('this.serviceInfothis.serviceInfo', this.serviceInfo);
|
||||||
} else if (value === 2) {
|
|
||||||
// this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/serviceFacility`);
|
if (this.serviceInfo.SERVERPART_NAME) {
|
||||||
this.$util.toNextRoute('navigateTo', `/pages/summaryOfPortraits/index?index=0`)
|
if (value === 1) {
|
||||||
} else if (value === 3) {
|
this.showEmergencyDetails(1)
|
||||||
this.$util.toNextRoute('navigateTo', `/pages/attendanceStatus/attendanceStatistics`)
|
} else if (value === 2) {
|
||||||
} else if (value === 5) {
|
// this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/serviceFacility`);
|
||||||
this.$util.toNextRoute('navigateTo', `/pages/attendanceStatus/roster`)
|
this.$util.toNextRoute('navigateTo', `/pages/summaryOfPortraits/index?index=0`)
|
||||||
|
} else if (value === 3) {
|
||||||
|
this.$util.toNextRoute('navigateTo', `/pages/attendanceStatus/attendanceStatistics`)
|
||||||
|
} 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) {
|
viewStaffDetails(obj) {
|
||||||
|
|||||||
@ -592,6 +592,30 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
handlePage() {
|
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(
|
this.$util.toNextRoute(
|
||||||
"navigateTo",
|
"navigateTo",
|
||||||
`/pages/everdayRenven/index?time=${this.lastDay}&GroupType=1000&ProvinceCode=530000&ServerpartIds=`
|
`/pages/everdayRenven/index?time=${this.lastDay}&GroupType=1000&ProvinceCode=530000&ServerpartIds=`
|
||||||
|
|||||||
@ -50,6 +50,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "userList",
|
name: "userList",
|
||||||
props: {
|
props: {
|
||||||
@ -71,6 +72,9 @@ export default {
|
|||||||
colorList: ['#3473FE', '#5B5BFB', '#B55FFB', '#0095FB', '#FB8922', '#EAAB00', '#1CB953', '#149FB3']
|
colorList: ['#3473FE', '#5B5BFB', '#B55FFB', '#0095FB', '#FB8922', '#EAAB00', '#1CB953', '#149FB3']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters({ user: "getUser" }),
|
||||||
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
console.log(this.colorList, 'colorList')
|
console.log(this.colorList, 'colorList')
|
||||||
},
|
},
|
||||||
@ -108,6 +112,32 @@ export default {
|
|||||||
},
|
},
|
||||||
// 第四行的跳转
|
// 第四行的跳转
|
||||||
handleGoFourth(item) {
|
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");
|
let userInfo = uni.getStorageSync("vuex");
|
||||||
userInfo = userInfo ? JSON.parse(userInfo) : ""
|
userInfo = userInfo ? JSON.parse(userInfo) : ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user