Commit 8d84ec40 by 前端

权限

1 parent 7844df55
...@@ -47,10 +47,12 @@ export default { ...@@ -47,10 +47,12 @@ export default {
{ {
label: "首页", label: "首页",
icon: "home", icon: "home",
name: 'HomeSlot'
}, },
{ {
label: "接待记录", label: "接待记录",
icon: "record", icon: "record",
name: 'RecordList'
}, },
], ],
} }
...@@ -77,11 +79,10 @@ export default { ...@@ -77,11 +79,10 @@ export default {
const res = await uni.$api.customerApi.haveCustomerAccess({ const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId merchantId
}) })
if (res) this.tabs.push( {
const len = this.tabs.length - 1
if (res) this.tabs.splice(len, 0, {
label: "客户档案", label: "客户档案",
icon: "customer-file", icon: "customer-file",
name: 'CustomerFile'
}) })
this.$store.state.user.haveCustomerAccess = res this.$store.state.user.haveCustomerAccess = res
...@@ -91,6 +92,7 @@ export default { ...@@ -91,6 +92,7 @@ export default {
this.tabs.push({ this.tabs.push({
label: "个人中心", label: "个人中心",
icon: "point", icon: "point",
name: 'Point'
}) })
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-17 09:25:04 * @LastEditTime: 2025-01-21 15:02:22
--> -->
<template> <template>
<view class="point-box"> <view class="point-box">
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
data() { data() {
return { return {
pointClassification: ['C001', 'C003', 'C002'], pointClassification: ['C001', 'C003', 'C002'],
pointClassName: ['能力类', '日常行为类', '学习类'], pointClassName: ['培训类', '行为类', '学习类'],
statistics: {}, statistics: {},
levelImg: [require('@/assets/images/point/bronze.png'), require('@/assets/images/point/silver.png'), require('@/assets/images/point/gold.png'), require('@/assets/images/point/masonry.png')], levelImg: [require('@/assets/images/point/bronze.png'), require('@/assets/images/point/silver.png'), require('@/assets/images/point/gold.png'), require('@/assets/images/point/masonry.png')],
detail: [], detail: [],
......
...@@ -116,11 +116,8 @@ export default { ...@@ -116,11 +116,8 @@ export default {
return this.$refs.finish return this.$refs.finish
}, },
componentName() { componentName() {
const len = this.$refs.leftBox.tabs.length console.log(this.$refs.leftBox.tabs, this.tabIndex, this.$refs.leftBox.tabs[this.tabIndex].name)
if (this.tabIndex == 0) return 'HomeSlot' return this.$refs.leftBox.tabs[this.tabIndex].name
else if (this.tabIndex == 1) return 'RecordList'
else if (this.tabIndex == len - 1) return 'Point'
else return 'CustomerFile'
} }
}, },
methods: { methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!