|
|
|
@ -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, '初始化返回值'); |
|
|
|
|