Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
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
new-sing
admin-base
Commits
ac8f95e5
Commit
ac8f95e5
authored
Aug 22, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工管理 新增 岗位类型(销售,助教,TMK,增长)
parent
ddf5cef0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
staff.vue
src/components/system/staff.vue
+9
-8
wordbook.js
src/util/wordbook.js
+14
-0
No files found.
src/components/system/staff.vue
View file @
ac8f95e5
...
...
@@ -16,7 +16,7 @@
<el-form-item
label=
"岗位"
>
<el-select
v-model=
"searchFrom.type"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"item in
type
"
v-for=
"item in
STAFF_TYPE
"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -60,7 +60,8 @@
</el-table-column>
<el-table-column
label=
"岗位"
width=
"80"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
type
==
1
?
'销售'
:
''
}}
<!--
{{
scope
.
row
.
type
==
1
?
'销售'
:
''
}}
-->
{{
filterName
(
scope
.
row
.
type
,
'STAFF_TYPE'
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"in_at"
label=
"入职时间"
></el-table-column>
...
...
@@ -96,7 +97,7 @@
<el-form-item
label=
"岗位:"
prop=
"type"
>
<el-select
v-model=
"dialog.form.type"
placeholder=
"请选择"
>
<el-option
v-for=
"item in
type
"
v-for=
"item in
STAFF_TYPE
"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -127,6 +128,7 @@
<
script
>
import
{
getStaffListApi
,
postStaffListApi
,
putStaffListApi
}
from
"../../service/api"
;
import
page
from
'../framework/page'
import
{
STAFF_TYPE
}
from
'@/util/wordbook'
export
default
{
name
:
"index"
,
...
...
@@ -164,11 +166,7 @@
},
}
},
type
:
[{
value
:
1
,
label
:
'销售'
}],
STAFF_TYPE
:
STAFF_TYPE
,
dialogDetail
:
{
show
:
false
,
id
:
''
...
...
@@ -198,6 +196,9 @@
},
methods
:
{
filterName
(
string
,
type
)
{
return
this
[
type
].
find
(
i
=>
{
return
i
.
value
==
string
}).
label
},
dialogToggle
()
{
this
.
dialog
.
show
=
!
this
.
dialog
.
show
;
if
(
!
this
.
dialog
.
show
)
{
...
...
src/util/wordbook.js
View file @
ac8f95e5
...
...
@@ -268,3 +268,17 @@ export const CALLBACK_INTENTION = [{
label
:
'不跟踪'
,
value
:
4
}];
export
const
STAFF_TYPE
=
[{
label
:
'销售'
,
value
:
1
},
{
label
:
'助教'
,
value
:
2
},
{
label
:
'TMK'
,
value
:
3
},
{
label
:
'增长'
,
value
:
4
}];
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