feat: 支持角色身份自定义名称全链路配置与动态展示
这个提交包含在:
@@ -96,21 +96,34 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive } from 'vue';
|
||||
import { computed, reactive } from 'vue';
|
||||
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app';
|
||||
import sheep from '@/sheep';
|
||||
import _ from 'lodash';
|
||||
|
||||
const headerBg = sheep.$url.css('/assets/addons/shopro/uniapp/user/wallet_card_bg.png');
|
||||
|
||||
const tabMaps = [
|
||||
const userInfo = computed(() => sheep.$store('user').userInfo);
|
||||
const agentInfo = computed(() => sheep.$store('user').agentInfo);
|
||||
|
||||
const roleNames = computed(() => {
|
||||
return (
|
||||
userInfo.value?.custom_role_names ||
|
||||
userInfo.value?.role_names ||
|
||||
agentInfo.value?.custom_role_names ||
|
||||
agentInfo.value?.role_names ||
|
||||
{}
|
||||
);
|
||||
});
|
||||
|
||||
const tabMaps = computed(() => [
|
||||
{ name: '全部', value: 'all' },
|
||||
{ name: '开拓奖', value: 'push3' },
|
||||
{ name: '创客', value: 'maker' },
|
||||
{ name: '酒道馆', value: 'venue' },
|
||||
{ name: '区县', value: 'county' },
|
||||
{ name: roleNames.value.maker || '创客', value: 'maker' },
|
||||
{ name: roleNames.value.venue || '酒道馆', value: 'venue' },
|
||||
{ name: roleNames.value.county || '区县', value: 'county' },
|
||||
{ name: '加权奖励', value: 'share' },
|
||||
];
|
||||
]);
|
||||
|
||||
const emptyPagination = {
|
||||
data: [],
|
||||
|
||||
在新工单中引用
屏蔽一个用户