Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
23e7569d
Commit
23e7569d
authored
Sep 07, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加成员处添加批量导入转跳按钮
parent
1f682329
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
26 deletions
+18
-26
add_many_people.png
src/assets/icons/add_many_people.png
+0
-0
add-member.vue
src/views/team/add-member.vue
+18
-26
No files found.
src/assets/icons/add_many_people.png
0 → 100644
View file @
23e7569d
5.79 KB
src/views/team/add-member.vue
View file @
23e7569d
...
...
@@ -6,11 +6,12 @@
:ent-id=
"entId"
:selected
.
sync=
"selectedDepId"
/>
<main-page
left-arrow
:loading=
"loading"
@
click-left=
"handleClickLeft"
>
<main-page
left-arrow
:loading=
"loading"
@
click-left=
"handleClickLeft"
>
<template
#
right
>
<div
@
click=
"$router.push(
{ name: 'Import' })">
<img
class=
"w-6 h-6"
src=
"@/assets/icons/add_many_people.png"
alt
/>
</div>
</
template
>
<div
class=
"px-4 pt-14 pb-16"
>
<!-- 姓名/职位 -->
<input-cell
...
...
@@ -45,7 +46,7 @@
title="员工编号"
placeholder="请输入员工编号"
type="input"
/>
-->
/>-->
<c-cell
v-model=
"date"
dot
...
...
@@ -59,24 +60,16 @@
:round=
"false"
color=
"#4F62C1"
:show-confirm=
"true"
:style=
"
{ height:
'100%'
}"
:style=
"{ height:
'100%'
}"
@
confirm=
"selectJoinTime"
/>
<!-- 选择部门 -->
<group-cell
dot
required
class=
"mt-4"
title=
"所属部门"
@
click=
"selectDep"
>
<group-cell
dot
required
class=
"mt-4"
title=
"所属部门"
@
click=
"selectDep"
>
<c-cell
:title=
"currentDep.name"
/>
</group-cell>
<!--按钮-->
<div
class=
"fixed bottom-0 left-0 w-full px-4 py-1.5 bg-common-bg"
>
<c-button
@
click=
"generateQrCode"
>
生成邀请二维码
</c-button>
<c-button
@
click=
"generateQrCode"
>
生成邀请二维码
</c-button>
</div>
</div>
</main-page>
...
...
@@ -86,12 +79,12 @@
<
script
lang=
"ts"
>
import
Vue
from
'vue'
import
{
Calendar
,
Overlay
}
from
'vant'
import
{
Calendar
,
Overlay
}
from
'vant'
import
{
AcceptJoinDTO
}
from
'@/service/moudles/service.dto'
import
{
trim
}
from
'@/util/Contact'
import
{
Department
}
from
'@/Interface'
import
{
Department
}
from
'@/Interface'
import
{
useLocalStorageState
}
from
'ahooks-vue'
import
{
formatDate
}
from
'@/util/FormatDate'
import
{
formatDate
}
from
'@/util/FormatDate'
import
DepSelector
from
'@/views/team/components/dep-selector.vue'
Vue
.
use
(
Calendar
).
use
(
Overlay
)
...
...
@@ -167,7 +160,7 @@ export default Vue.extend({
entId
:
this
.
entId
,
parentId
:
parentId
}).
then
((
res
:
any
)
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
this
.
loading
=
false
if
(
data
.
code
===
this
.
$global
.
success
)
{
return
data
.
data
...
...
@@ -182,7 +175,7 @@ export default Vue.extend({
entId
:
this
.
entId
,
id
:
depId
}).
then
((
res
:
any
)
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
this
.
loading
=
false
if
(
data
.
code
===
this
.
$global
.
success
)
{
this
.
currentDep
=
data
.
data
...
...
@@ -204,7 +197,7 @@ export default Vue.extend({
this
.
$router
.
go
(
-
1
)
},
// 入职日期
selectJoinTime
(
date
:
Date
)
{
selectJoinTime
(
date
:
Date
)
{
this
.
acceptJoin
.
joinTime
=
new
Date
(
date
).
getTime
()
this
.
show
=
false
this
.
date
=
this
.
formatDate
(
date
)
...
...
@@ -221,11 +214,11 @@ export default Vue.extend({
this
.
acceptJoin
.
entId
=
this
.
entId
this
.
acceptJoin
.
depId
=
this
.
selectedDepId
this
.
acceptJoin
.
expiration
=
this
.
acceptJoin
.
joinTime
this
.
acceptJoin
.
inviterId
=
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this
.
acceptJoin
.
inviterId
=
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this
.
acceptJoin
.
oaServer
=
'http://172.16.101.107:20000'
this
.
$store
.
commit
(
'setAcceptJoin'
,
this
.
acceptJoin
)
this
.
$router
.
push
(
'/team/two-code'
)
}).
catch
(()
=>
{})
}).
catch
(()
=>
{
})
}
},
watch
:
{
...
...
@@ -237,5 +230,4 @@ export default Vue.extend({
</
script
>
<
style
lang=
"less"
>
</
style
>
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