This commit is contained in:
ylj20011123 2025-12-01 09:01:40 +08:00
parent fb0451de2d
commit 83ce31674d
4 changed files with 98 additions and 12 deletions

View File

@ -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

View File

@ -736,11 +736,29 @@ export default {
}, },
// //
showEmergencyDetails(type) { showEmergencyDetails(type) {
if (this.serviceInfo.SERVERPART_NAME) {
// type 1 2 // type 1 2
this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/emergencyEvents?type=${type}`); 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) {
let _this = this
console.log('this.serviceInfothis.serviceInfo', this.serviceInfo);
if (this.serviceInfo.SERVERPART_NAME) {
if (value === 1) { if (value === 1) {
this.showEmergencyDetails(1) this.showEmergencyDetails(1)
} else if (value === 2) { } else if (value === 2) {
@ -751,6 +769,20 @@ export default {
} else if (value === 5) { } else if (value === 5) {
this.$util.toNextRoute('navigateTo', `/pages/attendanceStatus/roster`) 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) {

View File

@ -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=`

View File

@ -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) : ""