Browse Source

修复角色参数错误

pre-production
马远东 1 year ago
parent
commit
d229a544a1
  1. 17
      src/views/aftersales/aftersalesWorkOrder.vue

17
src/views/aftersales/aftersalesWorkOrder.vue

@ -1109,27 +1109,23 @@ const IndexTable = val => {
TimeoutStatus.value = false; //
// ProcessingPartyState.value = false; //
details.loadingObj.list = true; //
let data = {
...val,
workOrderStatus:
TabPermissions.value == '0' && UserPermissions.value == '仓库客服' ? '1000' : null,
};
columnList[2].checkarr = []; //
columnList[3].checkarr = [];
data.current = page.value.currentPage; //
data.size = page.value.pageSize; //
updateDictionary(columnList[2].checkarr, 'pc_work_order'); //
updateDictionary(columnList[3].checkarr, 'pc_discovery_node'); //
updateDictionary(columnList[17].checkarr, 'work_order_status'); //
//
getDictionaryBiz('after_sales_visits').then(res => {
console.log(res, '角色字典');
const matchingItem = res.data.data.find(
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, '角色');
@ -1143,7 +1139,12 @@ const IndexTable = val => {
UserPermissions.value = '仓库客服';
}
console.log(UserPermissions.value, '当前角色权限');
let data = {
...val,
current:page.value.currentPage, //
size:page.value.pageSize, //
workOrderStatus:TabPermissions.value == '0' && UserPermissions.value == '仓库客服' ? '1000' : null,
};
$_getList(data).then(res => {
Tableheaderswitching(columnList);
console.log(res, '初始化返回值');

Loading…
Cancel
Save