我的申请 数据过滤
This commit is contained in:
1 parent
3913e0e702
commit
49cda3df29
1 file changed
+5
-2
@@ -198,7 +198,6 @@
|
|||||||
|
|
||||||
isViewDrawerShown: false,
|
isViewDrawerShown: false,
|
||||||
viewItem: {},
|
viewItem: {},
|
||||||
userId: '<$ ctx.userInfo.userId $>',
|
|
||||||
taskStatusColor:{
|
taskStatusColor:{
|
||||||
'已通过': 'primary',
|
'已通过': 'primary',
|
||||||
'已拒绝': 'red',
|
'已拒绝': 'red',
|
||||||
@@ -248,13 +247,17 @@
|
|||||||
|
|
||||||
async getTableData() {
|
async getTableData() {
|
||||||
this.isTableLoading = true;
|
this.isTableLoading = true;
|
||||||
|
var where = {}
|
||||||
|
if(this.constantObj.userGroupRoleList.includes('超级管理员')){
|
||||||
|
where.taskInitUser = '<$ ctx.userInfo.userId $>'
|
||||||
|
}
|
||||||
const result = await window.jianghuAxios({
|
const result = await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskManagement',
|
pageId: 'taskManagement',
|
||||||
actionId: 'selectItemList',
|
actionId: 'selectItemList',
|
||||||
actionData: {},
|
actionData: {},
|
||||||
where:{taskInitUser: this.userId},
|
where: where,
|
||||||
orderBy: [{ column: 'operationAt', order: 'desc' }]
|
orderBy: [{ column: 'operationAt', order: 'desc' }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user