Browse Source

待回复校验

pre-production
马远东 1 year ago
parent
commit
50d75a079c
  1. 13
      src/views/aftersales/aftersalesWorkOrder.vue

13
src/views/aftersales/aftersalesWorkOrder.vue

@ -4,7 +4,7 @@
<el-tabs type="border-card" v-model="tabValue" @tab-change="tabChenge" class="el_tabs">
<div></div>
<template v-for="item in TabList">
<el-tab-pane :name="item.name" :label="item.label" :key="item.name" v-if="item.state" >
<el-tab-pane v-if="item.state" :name="item.name" :label="item.label" :key="item.name">
</el-tab-pane>
</template>
@ -678,7 +678,7 @@ const AppealStatusT = ref(false); //是否为申诉列表
const TabList = ref([
{ name: 0, label: '全部', state: true },
{ name: 3, label: '待处理', state: true },
{ name: 8, label: '待回复', state: UserPermissions.value == '仓库客服' },
{ name: 8, label: '待回复', state: false },
{ name: 1, label: '处理中', state: true },
{ name: 2, label: '处理完毕', state: true },
{ name: 6, label: '完结', state: true },
@ -1031,8 +1031,17 @@ const IndexTable = val => {
item => item.dictValue == JSON.parse(localStorage.getItem('TWMS-userInfo')).content.role_name
);
if (matchingItem) {
console.log(TabList.value,'导航');
UserPermissions.value = matchingItem.dictValue;
console.log(matchingItem.dictValue,'角色');
if(matchingItem.dictValue!='仓库客服'){
TabList.value[2].state=false
}else{
TabList.value[2].state=true
}
} else {
TabList.value[2].state=true
UserPermissions.value = '仓库客服';
}
console.log(UserPermissions.value, '当前角色权限');

Loading…
Cancel
Save