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
6db0a524
Commit
6db0a524
authored
Sep 07, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
122c4a55
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
index.ts
src/util/Bridge/index.ts
+10
-1
add-member.vue
src/views/team/add-member.vue
+3
-2
confirm-join.vue
src/views/team/join-team/confirm-join.vue
+5
-3
two-code.vue
src/views/team/two-code.vue
+3
-0
No files found.
src/util/Bridge/index.ts
View file @
6db0a524
...
...
@@ -28,7 +28,8 @@ enum BridgeMethods{
OPEN_COMPANY_USER_INFO
=
'openCompanyUserInfo'
,
Back
=
'back'
,
GEN_JOIN_FORM
=
'genJoinForm'
,
SIGN
=
'sign'
SIGN
=
'sign'
,
GET_PUBLIC_KEY
=
"getPublicKey"
}
export
function
isAppEnv
()
{
...
...
@@ -122,6 +123,14 @@ export function getSign(obj: object) {
return
data
}
export
function
getPublicKey
(){
const
data
=
dsbridge
.
call
(
BridgeMethods
.
GET_PUBLIC_KEY
,{},
res
=>
{
return
res
})
return
data
}
// /**
// * 提交
// */
...
...
src/views/team/add-member.vue
View file @
6db0a524
...
...
@@ -86,7 +86,7 @@ import { Department, LocalStore } from '@/Interface'
import
{
useLocalStorageState
}
from
'ahooks-vue'
import
{
formatDate
}
from
'@/util/FormatDate'
import
DepSelector
from
'@/views/team/components/dep-selector.vue'
import
{
getSign
,
getUserInfo
}
from
'@/util/Bridge'
import
{
get
PublicKey
,
get
Sign
,
getUserInfo
}
from
'@/util/Bridge'
Vue
.
use
(
Calendar
).
use
(
Overlay
)
export
default
Vue
.
extend
({
...
...
@@ -216,12 +216,13 @@ export default Vue.extend({
this
.
acceptJoin
.
depId
=
this
.
selectedDepId
this
.
acceptJoin
.
expiration
=
this
.
acceptJoin
.
joinTime
+
6000000
this
.
acceptJoin
.
inviterId
=
process
.
env
.
NODE_ENV
===
'production'
?
get
UserInfo
().
id
:
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this
.
acceptJoin
.
inviterId
=
process
.
env
.
NODE_ENV
===
'production'
?
get
PublicKey
()
:
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
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
this
.
acceptJoin
.
hash
=
getSign
({
depId
,
entId
,
expiration
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
})
this
.
$store
.
commit
(
'setAcceptJoin'
,
this
.
acceptJoin
)
this
.
$router
.
push
(
'/team/two-code'
)
}).
catch
(()
=>
{
})
...
...
src/views/team/join-team/confirm-join.vue
View file @
6db0a524
...
...
@@ -119,9 +119,11 @@ export default Vue.extend({
async
submit
()
{
console
.
log
(
'申请'
)
this
.
loading
=
true
this
.
$service
.
enterprise
.
acceptJoin
(
this
.
info
)
const
{
depId
,
entId
,
expiration
,
hash
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
info
as
AcceptJoinDTO
let
req
=
{
depId
,
entId
,
expiration
:
Number
(
expiration
)
/
1000
,
hash
,
inviterId
,
joinTime
:
Number
(
joinTime
)
/
1000
,
name
,
oaServer
,
phone
,
position
}
this
.
$service
.
enterprise
.
acceptJoin
(
req
)
.
then
((
res
:
any
)
=>
{
const
{
data
}
=
res
this
.
loading
=
false
...
...
src/views/team/two-code.vue
View file @
6db0a524
...
...
@@ -94,9 +94,12 @@ export default Vue.extend({
// console.log(Mock, 'mock')
this
.
joinInfo
=
this
.
$store
.
state
.
acceptJoin
const
urloutput
=
this
.
outputUrl
(
this
.
joinInfo
)
this
.
qrCodeText
=
JSON
.
stringify
(
this
.
joinInfo
)
let
url
=
window
.
location
.
origin
+
'/team/confirm-join'
this
.
qrCodeText
=
`
${
url
}
?
${
urloutput
}
`
console
.
log
(
this
.
qrCodeText
);
this
.
dpr
()
// this.drawCanvas()
},
...
...
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