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
16f87b5b
Commit
16f87b5b
authored
Sep 08, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of gitlab.33.cn:HF_web/OKR
parents
551dccc6
c5e67198
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
36 deletions
+27
-36
ssyx.png
src/assets/icons/ssyx.png
+0
-0
add-department.vue
src/views/team/add-department.vue
+9
-15
add-member.vue
src/views/team/add-member.vue
+7
-10
create-team.vue
src/views/team/create-team/create-team.vue
+1
-1
import.vue
src/views/team/import.vue
+5
-2
team-frame.vue
src/views/team/team-frame.vue
+4
-7
two-code.vue
src/views/team/two-code.vue
+1
-1
No files found.
src/assets/icons/ssyx.png
0 → 100644
View file @
16f87b5b
2.75 KB
src/views/team/add-department.vue
View file @
16f87b5b
...
@@ -68,7 +68,7 @@ export default Vue.extend({
...
@@ -68,7 +68,7 @@ export default Vue.extend({
data
()
{
data
()
{
const
addDep
:
AddSubDTO
=
{
const
addDep
:
AddSubDTO
=
{
entId
:
''
,
entId
:
''
,
leaderId
:
'
1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR
'
,
leaderId
:
''
,
name
:
''
,
name
:
''
,
parentId
:
''
parentId
:
''
}
}
...
@@ -97,7 +97,7 @@ export default Vue.extend({
...
@@ -97,7 +97,7 @@ export default Vue.extend({
addDep
,
addDep
,
parentDep
:
{},
parentDep
:
{},
leader
:
{},
leader
:
{},
selectedLeaderId
:
[
'1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR'
]
,
selectedLeaderId
:
[
]
as
Array
<
string
>
,
showMemberSelector
:
false
,
showMemberSelector
:
false
,
entId
:
''
,
entId
:
''
,
depTree
,
depTree
,
...
@@ -108,7 +108,9 @@ export default Vue.extend({
...
@@ -108,7 +108,9 @@ export default Vue.extend({
}
}
},
},
created
(){
created
(){
this
.
entId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
||
'{}'
).
id
this
.
entId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
string
).
id
const
leaderId
=
JSON
.
parse
(
localStorage
.
getItem
(
'UER_INFO'
)
as
string
)?.
id
||
'1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR'
this
.
selectedLeaderId
=
[
leaderId
]
this
.
getStaffInfo
(
this
.
selectedLeaderId
[
0
])
this
.
getStaffInfo
(
this
.
selectedLeaderId
[
0
])
const
depId
=
this
.
$route
.
query
.
id
as
string
const
depId
=
this
.
$route
.
query
.
id
as
string
this
.
selectedDepId
=
depId
this
.
selectedDepId
=
depId
...
@@ -116,12 +118,6 @@ export default Vue.extend({
...
@@ -116,12 +118,6 @@ export default Vue.extend({
},
},
methods
:
{
methods
:
{
addDepConfirm
(){
addDepConfirm
(){
// const { data, loading, error, run} =useRequest(this.$service.department.addDep({
// "entId": "entId",
// "leaderId": "leaderId",
// "name": "name",
// "parentId": "parentId"
// }))
if
(
this
.
name
===
''
)
{
if
(
this
.
name
===
''
)
{
this
.
$toast
(
'请输入部门名称'
)
this
.
$toast
(
'请输入部门名称'
)
return
return
...
@@ -192,17 +188,15 @@ export default Vue.extend({
...
@@ -192,17 +188,15 @@ export default Vue.extend({
})
})
},
},
selectDep
()
{
selectDep
()
{
const
parentId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
||
'{}'
).
rootDepId
const
parentId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
string
).
rootDepId
this
.
getSub
(
parentId
)
this
.
getSub
(
parentId
)
this
.
showDepSelector
=
true
this
.
showDepSelector
=
true
}
}
},
},
watch
:
{
watch
:
{
selectedLeaderId
:
{
selectedLeaderId
(
val
)
{
handler
(
val
)
{
const
newLeader
=
val
[
0
]
const
newLeader
=
val
[
0
]
this
.
getStaffInfo
(
newLeader
)
this
.
getStaffInfo
(
newLeader
)
}
},
},
selectedDepId
(
val
:
string
)
{
selectedDepId
(
val
:
string
)
{
this
.
getDepInfo
(
val
)
this
.
getDepInfo
(
val
)
...
...
src/views/team/add-member.vue
View file @
16f87b5b
...
@@ -116,12 +116,12 @@ export default Vue.extend({
...
@@ -116,12 +116,12 @@ export default Vue.extend({
}
}
const
acceptJoin
:
AcceptJoinDTO
=
{
const
acceptJoin
:
AcceptJoinDTO
=
{
expiration
:
0
,
expiration
:
0
,
inviterId
:
'
17MTDNzwBXXKNzwdzEnQrehmSEPAy31sUS
'
,
inviterId
:
''
,
name
:
''
,
name
:
''
,
oaServer
:
'
oaServer
'
,
oaServer
:
''
,
depId
:
''
,
depId
:
''
,
entId
:
''
,
entId
:
''
,
hash
:
'
mock-hash
'
,
hash
:
''
,
joinTime
:
new
Date
().
getTime
(),
joinTime
:
new
Date
().
getTime
(),
phone
:
''
,
phone
:
''
,
position
:
''
position
:
''
...
@@ -130,7 +130,7 @@ export default Vue.extend({
...
@@ -130,7 +130,7 @@ export default Vue.extend({
formatDate
,
formatDate
,
date
:
'请选择入职时间'
,
// 入职时间
date
:
'请选择入职时间'
,
// 入职时间
show
:
false
,
// 日期弹窗
show
:
false
,
// 日期弹窗
depId
:
'
123
'
,
depId
:
''
,
entId
:
''
,
entId
:
''
,
selectedDepId
:
''
,
selectedDepId
:
''
,
currentDep
,
currentDep
,
...
@@ -150,7 +150,7 @@ export default Vue.extend({
...
@@ -150,7 +150,7 @@ export default Vue.extend({
},
},
methods
:
{
methods
:
{
async
selectDep
()
{
async
selectDep
()
{
const
parentId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
||
'{}'
).
rootDepId
const
parentId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
string
).
rootDepId
const
dep
=
await
this
.
getSub
(
parentId
)
const
dep
=
await
this
.
getSub
(
parentId
)
this
.
depTree
=
dep
.
dep
this
.
depTree
=
dep
.
dep
this
.
depTree
.
children
=
dep
.
subDepList
this
.
depTree
.
children
=
dep
.
subDepList
...
@@ -216,15 +216,12 @@ export default Vue.extend({
...
@@ -216,15 +216,12 @@ export default Vue.extend({
this
.
acceptJoin
.
entId
=
this
.
entId
this
.
acceptJoin
.
entId
=
this
.
entId
this
.
acceptJoin
.
depId
=
this
.
selectedDepId
this
.
acceptJoin
.
depId
=
this
.
selectedDepId
this
.
acceptJoin
.
expiration
=
this
.
acceptJoin
.
joinTime
+
6000000
this
.
acceptJoin
.
expiration
=
this
.
acceptJoin
.
joinTime
+
6000000
console
.
log
(
getPublicKey
(),
'getPublicKey'
);
this
.
acceptJoin
.
inviterId
=
process
.
env
.
NODE_ENV
===
'production'
?
getPublicKey
():
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this
.
acceptJoin
.
inviterId
=
process
.
env
.
NODE_ENV
===
'production'
?
getPublicKey
():
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this
.
acceptJoin
.
oaServer
=
localStorage
.
getItem
(
'ENT_INFO'
)?
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
any
).
oaServer
:
'http://172.16.101.107:20000'
this
.
acceptJoin
.
oaServer
=
localStorage
.
getItem
(
'ENT_INFO'
)?
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
any
).
oaServer
:
'http://172.16.101.107:20000'
const
{
depId
,
entId
,
expiration
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
acceptJoin
const
{
depId
,
entId
,
expiration
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
acceptJoin
this
.
acceptJoin
.
hash
=
getSign
({
this
.
acceptJoin
.
hash
=
process
.
env
.
NODE_ENV
===
'production'
?
getSign
({
depId
,
entId
,
expiration
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
depId
,
entId
,
expiration
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
})
})
:
'mock-hash'
this
.
$store
.
commit
(
'setAcceptJoin'
,
this
.
acceptJoin
)
this
.
$store
.
commit
(
'setAcceptJoin'
,
this
.
acceptJoin
)
this
.
$router
.
push
(
'/team/two-code'
)
this
.
$router
.
push
(
'/team/two-code'
)
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
})
...
...
src/views/team/create-team/create-team.vue
View file @
16f87b5b
...
@@ -145,7 +145,7 @@ export default Vue.extend({
...
@@ -145,7 +145,7 @@ export default Vue.extend({
this
.
$toast
(
'创建成功'
)
this
.
$toast
(
'创建成功'
)
this
.
name
=
''
this
.
name
=
''
this
.
leaderName
=
''
this
.
leaderName
=
''
goBack
(
)
this
.
$router
.
push
(
'/team/team-frame'
)
}
else
{
}
else
{
this
.
$toast
(
data
.
msg
)
this
.
$toast
(
data
.
msg
)
}
}
...
...
src/views/team/import.vue
View file @
16f87b5b
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
type=
"file"
type=
"file"
id=
"uploadFile"
id=
"uploadFile"
ref=
"uploadFile"
ref=
"uploadFile"
accept=
".xlsx"
class=
"hidden"
class=
"hidden"
@
input=
"fileHandler"
@
input=
"fileHandler"
/>
/>
...
@@ -139,7 +138,11 @@ export default Vue.extend({
...
@@ -139,7 +138,11 @@ export default Vue.extend({
if
(
target
.
files
&&
target
.
files
?.
length
!==
0
)
{
if
(
target
.
files
&&
target
.
files
?.
length
!==
0
)
{
console
.
log
(
target
.
files
);
console
.
log
(
target
.
files
);
const
file
=
target
.
files
[
0
];
const
file
=
target
.
files
[
0
];
this
.
file
=
file
;
if
(
file
.
name
.
match
(
/
\.
xlsx$/
))
{
this
.
file
=
file
;
}
else
{
Toast
.
fail
(
'请选择xlsx文件'
)
}
}
}
},
},
uploadFile
()
{
uploadFile
()
{
...
...
src/views/team/team-frame.vue
View file @
16f87b5b
...
@@ -90,7 +90,7 @@ export default Vue.extend({
...
@@ -90,7 +90,7 @@ export default Vue.extend({
loading
:
false
,
loading
:
false
,
contacts
:
{},
contacts
:
{},
parentId
:
''
,
parentId
:
''
,
entId
:
'
166961152260050944
'
,
entId
:
''
,
ifContainChildDep
:
true
,
ifContainChildDep
:
true
,
enterpriseInfo
:
{},
enterpriseInfo
:
{},
currentDep
,
currentDep
,
...
@@ -101,7 +101,8 @@ export default Vue.extend({
...
@@ -101,7 +101,8 @@ export default Vue.extend({
}
}
},
},
mounted
()
{
mounted
()
{
// useLocalStorageState('USER_INFO',getUserInfo())
this
.
entId
=
getUserInfo
()?.
entId
||
'166961152260050944'
localStorage
.
setItem
(
'USR_INFO'
,
JSON
.
stringify
(
getUserInfo
()))
this
.
getEntInfo
()
this
.
getEntInfo
()
},
},
computed
:
{
computed
:
{
...
@@ -114,11 +115,7 @@ export default Vue.extend({
...
@@ -114,11 +115,7 @@ export default Vue.extend({
this
.
parentId
=
dep
.
id
this
.
parentId
=
dep
.
id
this
.
getStaff
()
this
.
getStaff
()
},
},
appNavBack
,
appNavBack
,
// appNavBack(){
// this.$router.go(-1)
// // appNavBack()
// },
getEntInfo
()
{
getEntInfo
()
{
this
.
loading
=
true
this
.
loading
=
true
return
this
.
$service
.
enterprise
.
getEnterpriseInfo
({
return
this
.
$service
.
enterprise
.
getEnterpriseInfo
({
...
...
src/views/team/two-code.vue
View file @
16f87b5b
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
/>
-->
/>
-->
<div
class=
"w-32 h-32"
>
<div
class=
"w-32 h-32"
>
<vue-qr
<vue-qr
:logoSrc=
"require('@/assets/icons/
y-chat33
.png')"
:logoSrc=
"require('@/assets/icons/
ssyx
.png')"
:text=
"qrCodeText"
:text=
"qrCodeText"
:margin=
"2"
:margin=
"2"
:size=
"400"
:size=
"400"
...
...
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