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
29cc88d4
Commit
29cc88d4
authored
Sep 07, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 审核事项
parent
a05d4ec1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
18 deletions
+32
-18
audit-item-list.vue
src/views/review-center/audit-item-list.vue
+14
-3
audit-types.js
src/views/review-center/audit-types.js
+13
-0
create-audit-item.vue
src/views/review-center/create-audit-item.vue
+5
-15
No files found.
src/views/review-center/audit-item-list.vue
View file @
29cc88d4
...
...
@@ -5,7 +5,9 @@
</div>
<el-table
:data=
"auditItemList"
>
<el-table-column
label=
"审核组"
prop=
"auditGroupName"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
label=
"审核事项"
prop=
"auditTypes"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
label=
"审核事项"
prop=
"auditTypes"
show-overflow-tooltip
>
<template
slot-scope=
"
{ row }">
{{
row
.
auditTypes
|
formatAuditTypes
(
auditTypes
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
@
click=
"toCreateItem(row)"
>
编辑
</el-button>
...
...
@@ -17,14 +19,15 @@
</template>
<
script
>
import
auditTypes
from
'./audit-types'
;
import
fetch
from
'@/api/review'
;
// eslint-disable-next-line
const
{
auditItemList
,
delAuditItem
}
=
fetch
;
export
default
{
name
:
'AuditItemList'
,
data
()
{
return
{
wxEnterpriseId
:
''
,
auditTypes
,
auditItemList
:
[]
};
},
...
...
@@ -42,7 +45,7 @@ export default {
toCreateItem
(
itemData
)
{
const
{
auditItemId
}
=
itemData
||
{};
const
url
=
'/create-audit-item'
;
this
.
$router
.
push
(
auditItemId
?
`
${
url
}
?auditItem
i
d=
${
auditItemId
}
`
:
url
);
this
.
$router
.
push
(
auditItemId
?
`
${
url
}
?auditItem
I
d=
${
auditItemId
}
`
:
url
);
},
onDelItem
(
itemData
)
{
const
{
auditGroupName
,
auditItemId
}
=
itemData
;
...
...
@@ -53,6 +56,14 @@ export default {
});
});
}
},
filters
:
{
formatAuditTypes
(
types
,
auditTypes
)
{
if
(
!
types
)
return
'--'
;
types
=
types
.
split
(
','
);
const
result
=
auditTypes
.
filter
(
el
=>
types
.
some
(
item
=>
item
==
el
.
type
));
return
result
.
length
>
0
?
result
.
map
(
el
=>
el
.
title
).
join
(
'、'
)
:
'--'
;
}
}
};
</
script
>
...
...
src/views/review-center/audit-types.js
0 → 100644
View file @
29cc88d4
// 审核事项类型列表
export
default
[
{
type
:
'3'
,
title
:
'导购账号新增'
,
desc
:
'能看到管辖范围内导购添加的审核事项'
},
{
type
:
'1'
,
title
:
'导购账号绑定'
,
desc
:
'能看到管辖范围内导购账号绑定申请'
}
];
src/views/review-center/create-audit-item.vue
View file @
29cc88d4
...
...
@@ -20,8 +20,8 @@
</
template
>
<
script
>
import
auditTypes
from
'./audit-types'
;
import
fetch
from
'@/api/review'
;
// eslint-disable-next-line
const
{
addAuditItem
,
editAuditItem
,
auditItemDetail
,
getAuditGroupList
}
=
fetch
;
export
default
{
name
:
'CreateAuditItem'
,
...
...
@@ -31,18 +31,7 @@ export default {
// 审核组列表
auditGroupList
:
[],
// 审核事项类型列表
auditTypes
:
[
{
type
:
'3'
,
title
:
'导购账号新增'
,
desc
:
'能看到管辖范围内导购添加的审核事项'
},
{
type
:
'1'
,
title
:
'导购账号绑定'
,
desc
:
'能看到管辖范围内导购账号绑定申请'
}
],
auditTypes
,
// 审核事项详情数据
auditData
:
{
auditGroupIds
:
[],
// aaa,bbb,cccc
...
...
@@ -78,8 +67,9 @@ export default {
if
(
typeof
auditTypes
==
'string'
)
{
this
.
auditData
.
auditTypes
=
auditTypes
.
split
(
','
);
}
if
(
typeof
auditGroupId
==
'string'
)
{
this
.
auditData
.
auditGroupIds
=
auditGroupId
.
split
(
','
);
// 新建、编辑保存的时候审核组可以多选,编辑回显的时候只有一个审核组
if
(
typeof
auditGroupId
==
'string'
||
typeof
auditGroupId
==
'number'
)
{
this
.
auditData
.
auditGroupIds
=
[
auditGroupId
];
}
});
},
...
...
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