|
@@ -5,11 +5,17 @@ import { useModel } from '@/store';
|
5
|
5
|
import MenuIcon from '@/components/MenuIcon';
|
6
|
6
|
import { ROLE_CITIZEN, ROLE_INSPECTOR, ROLE_MANAGER, ROLE_ORG_MANAGER, ROLE_ORG_USER, ROLE_QUERY_PERSON } from '@/utils/user';
|
7
|
7
|
import { PROCESS_APPLY_DELAY, PROCESS_APPLY_END, PROCESS_APPLY_REJECT, PROCESS_APPLY_VERIFY, PROCESS_ASSIGNED, PROCESS_END, PROCESS_START } from '@/utils/biz';
|
|
8
|
+import { getApplyNum } from '@/services/taissueapply';
|
8
|
9
|
import Head from './components/Head';
|
9
|
10
|
import Banner from './components/Banner';
|
10
|
11
|
import StatCard from './components/StatCard';
|
11
|
12
|
import './index.less';
|
12
|
13
|
|
|
14
|
+const getRejctApply = () => getApplyNum({ applyType: PROCESS_APPLY_REJECT });
|
|
15
|
+const getDelayApply = () => getApplyNum({ applyType: PROCESS_APPLY_DELAY });
|
|
16
|
+const getVerifyApply = () => getApplyNum({ applyType: PROCESS_APPLY_VERIFY });
|
|
17
|
+const getEdnApply = () => getApplyNum({ applyType: PROCESS_APPLY_END });
|
|
18
|
+
|
13
|
19
|
const menus = {
|
14
|
20
|
// 督查员
|
15
|
21
|
[ROLE_INSPECTOR]: [
|
|
@@ -23,10 +29,10 @@ const menus = {
|
23
|
29
|
{ icon: 'icon1', text: '待 交 办', link: `/pages/issue/list2/index?title=待交办&bizStatus=${PROCESS_START}` },
|
24
|
30
|
{ icon: 'icon2', text: '已 交 办', link: `/pages/issue/list2/index?title=已交办&bizStatus=${PROCESS_ASSIGNED}`, },
|
25
|
31
|
{ icon: 'icon3', text: '已 办 结', link: `/pages/issue/list2/index?title=已办结&bizStatus=${PROCESS_END}` },
|
26
|
|
- { icon: 'icon4', text: '消单申请', link: `/pages/apply/list/index?title=消单申请&applyType=${PROCESS_APPLY_END}` },
|
|
32
|
+ { icon: 'icon4', text: '消单申请', request: getEdnApply, link: `/pages/apply/list/index?title=消单申请&applyType=${PROCESS_APPLY_END}` },
|
27
|
33
|
{ icon: 'icon5', text: '逾期警告', link: `/pages/issue/list2/index?title=逾期警告&bizStatus=expired` },
|
28
|
|
- { icon: 'icon6', text: '延期申请', link: `/pages/apply/list/index?title=延期申请&applyType=${PROCESS_APPLY_DELAY}` },
|
29
|
|
- { icon: 'icon12', text: '驳回申请', link: `/pages/apply/list/index?title=驳回申请&applyType=${PROCESS_APPLY_REJECT}` },
|
|
34
|
+ { icon: 'icon6', text: '延期申请', request: getDelayApply, link: `/pages/apply/list/index?title=延期申请&applyType=${PROCESS_APPLY_DELAY}` },
|
|
35
|
+ { icon: 'icon12', text: '驳回申请', request: getRejctApply, link: `/pages/apply/list/index?title=驳回申请&applyType=${PROCESS_APPLY_REJECT}` },
|
30
|
36
|
{ icon: 'icon7', text: '统计查询', link: '/subpkg1/pages/statistics/index' },
|
31
|
37
|
{ icon: 'icon9', text: '我的上报', link: '/pages/issue/list2/index?title=我的上报&mine=true' },
|
32
|
38
|
{ icon: 'icon11', text: '消息通知', link: '/pages/message/list/index' },
|
|
@@ -45,7 +51,7 @@ const menus = {
|
45
|
51
|
{ icon: 'icon2', text: '处 理 中', link: `/pages/org/issue/list/index?title=处理中&bizStatus=${PROCESS_ASSIGNED}` },
|
46
|
52
|
{ icon: 'icon3', text: '已 办 结', link: `/pages/org/issue/list/index?title=已办结&bizStatus=${PROCESS_END}` },
|
47
|
53
|
{ icon: 'icon5', text: '已 逾 期', link: '/pages/org/issue/list/index?title=已办结&bizStatus=expired' },
|
48
|
|
- { icon: 'icon9', text: '审核申请', link: `/pages/apply/list/index?title=审核申请&applyType=${PROCESS_APPLY_VERIFY}` },
|
|
54
|
+ { icon: 'icon9', text: '审核申请', request: getVerifyApply, link: `/pages/apply/list/index?title=审核申请&applyType=${PROCESS_APPLY_VERIFY}` },
|
49
|
55
|
{ icon: 'icon11', text: '消息通知', link: '/pages/message/list/index' },
|
50
|
56
|
],
|
51
|
57
|
|