Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
cd29f921
Commit
cd29f921
authored
Sep 07, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 审核组列表
parent
7a0d06e7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
130 additions
and
1 deletions
+130
-1
review.js
src/api/review.js
+2
-0
routes.js
src/router/routes.js
+21
-1
audit-group-list.vue
src/views/review-center/audit-group-list.vue
+78
-0
audit-item-list.vue
src/views/review-center/audit-item-list.vue
+10
-0
create-audit-group.vue
src/views/review-center/create-audit-group.vue
+10
-0
create-audit-item.vue
src/views/review-center/create-audit-item.vue
+9
-0
No files found.
src/api/review.js
View file @
cd29f921
...
@@ -31,6 +31,8 @@ let api = {
...
@@ -31,6 +31,8 @@ let api = {
useIntercept
:
false
useIntercept
:
false
},
},
getAuditDetail
:
'/audit/batch-log-list'
,
// 同意详情
getAuditDetail
:
'/audit/batch-log-list'
,
// 同意详情
getAuditGroupList
:
'/auditGroup/audit-group-list'
,
// 获取审核组列表
delAuditGroup
:
'/auditGroup/del-audit-group'
,
// 删除审核组
};
};
api
=
getFetch
(
api
,
'/hb-manage-web'
);
api
=
getFetch
(
api
,
'/hb-manage-web'
);
...
...
src/router/routes.js
View file @
cd29f921
...
@@ -80,7 +80,27 @@ export const routes = [
...
@@ -80,7 +80,27 @@ export const routes = [
path
:
'/unreview'
,
path
:
'/unreview'
,
name
:
'未审核'
,
name
:
'未审核'
,
component
:
_import
(
'review-center'
,
'unreview'
)
component
:
_import
(
'review-center'
,
'unreview'
)
}
},
{
path
:
'/audit-group-list'
,
meta
:
{
title
:
'审核组列表'
},
component
:
_import
(
'review-center'
,
'audit-group-list'
)
},
{
path
:
'/create-audit-group'
,
meta
:
{
title
:
'新建、编辑审核组'
},
component
:
_import
(
'review-center'
,
'create-audit-group'
)
},
{
path
:
'/audit-item-list'
,
meta
:
{
title
:
'审核事项列表'
},
component
:
_import
(
'review-center'
,
'audit-item-list'
)
},
{
path
:
'/create-audit-item'
,
meta
:
{
title
:
'新建、编辑审核事项'
},
component
:
_import
(
'review-center'
,
'create-audit-item'
)
},
]
]
},
},
{
{
...
...
src/views/review-center/audit-group-list.vue
0 → 100644
View file @
cd29f921
<
template
>
<div
class=
"audit-group-list"
>
<div
class=
"audit-group-header"
>
<el-button
type=
"primary"
@
click=
"toCreateGroup()"
>
新建审核组
</el-button>
</div>
<el-table
:data=
"groupList"
>
<el-table-column
label=
"审核组"
prop=
"auditGroupName"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
label=
"管理员"
show-overflow-tooltip
>
<template
slot-scope=
"
{ row }">
{{
row
.
auditPerson
|
formatAuditer
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
@
click=
"toCreateGroup(row)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"onDelGroup(row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
import
fetch
from
'@/api/review.js'
;
const
{
getAuditGroupList
,
delAuditGroup
}
=
fetch
;
export
default
{
name
:
'AuditGroupList'
,
data
()
{
return
{
groupList
:
[]
};
},
created
()
{
this
.
getGroupList
();
},
methods
:
{
getGroupList
()
{
getAuditGroupList
().
then
(
res
=>
{
this
.
groupList
=
res
.
result
||
[];
});
},
onDelGroup
(
groupData
)
{
const
{
auditGroupName
,
auditGroupId
}
=
groupData
;
this
.
$confirm
(
`确定删除【
${
auditGroupName
}
】吗?`
,
'提示'
,
{
type
:
'warning'
}).
then
(()
=>
{
delAuditGroup
({
auditGroupId
}).
then
(
res
=>
{
this
.
$message
.
success
(
'删除成功!'
);
this
.
getGroupList
();
});
});
},
toCreateGroup
(
groupData
)
{
const
{
auditGroupId
}
=
groupData
||
{};
const
url
=
'/create-audit-group'
;
this
.
$router
.
push
(
auditGroupId
?
`
${
url
}
?auditGroupId=
${
auditGroupId
}
`
:
url
);
}
},
filters
:
{
formatAuditer
(
auditerlist
)
{
if
(
!
Array
.
isArray
(
auditerlist
))
return
'--'
;
const
result
=
auditerlist
.
map
(
el
=>
el
.
staffName
||
'--'
);
return
result
.
join
(
'、'
);
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.audit-group-list
{
padding
:
20px
;
min-height
:
100%
;
background-color
:
#fff
;
.audit-group-header
{
margin-bottom
:
20px
;
display
:
flex
;
justify-content
:
flex-end
;
}
}
</
style
>
src/views/review-center/audit-item-list.vue
0 → 100644
View file @
cd29f921
<
template
>
<div>
审核事项列表
</div>
</
template
>
<
script
>
export
default
{
name
:
'AuditItemList'
};
</
script
>
\ No newline at end of file
src/views/review-center/create-audit-group.vue
0 → 100644
View file @
cd29f921
<
template
>
<div>
新建审核组
</div>
</
template
>
<
script
>
export
default
{
name
:
'CreateAuditGroup'
};
</
script
>
\ No newline at end of file
src/views/review-center/create-audit-item.vue
0 → 100644
View file @
cd29f921
<
template
>
<div>
新建审核事项
</div>
</
template
>
<
script
>
export
default
{
name
:
'CreateAuditItem'
};
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment