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
551dccc6
Commit
551dccc6
authored
Sep 08, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
07f585a0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
main.ts
src/main.ts
+1
-1
index.ts
src/util/Bridge/index.ts
+4
-1
add-member.vue
src/views/team/add-member.vue
+1
-0
team-detail.vue
src/views/team/team-detail.vue
+2
-1
team-frame.vue
src/views/team/team-frame.vue
+5
-4
No files found.
src/main.ts
View file @
551dccc6
...
@@ -20,7 +20,7 @@ Vue.use(utils).use(service)
...
@@ -20,7 +20,7 @@ Vue.use(utils).use(service)
Vue
.
prototype
.
$dsbridge
=
dsbridge
Vue
.
prototype
.
$dsbridge
=
dsbridge
Vue
.
prototype
.
$global
=
global
Vue
.
prototype
.
$global
=
global
//
new VConsole()
new
VConsole
()
new
Vue
({
new
Vue
({
router
,
router
,
...
...
src/util/Bridge/index.ts
View file @
551dccc6
...
@@ -42,8 +42,9 @@ export function isAppEnv() {
...
@@ -42,8 +42,9 @@ export function isAppEnv() {
}
}
export
function
appNavBack
(){
export
function
appNavBack
(){
const
appEnv
=
isAppEnv
()
console
.
log
(
111
);
console
.
log
(
111
);
const
appEnv
=
isAppEnv
()
if
(
appEnv
){
if
(
appEnv
){
goBack
()
goBack
()
...
@@ -127,6 +128,8 @@ export function getSign(obj: object) {
...
@@ -127,6 +128,8 @@ export function getSign(obj: object) {
export
function
getPublicKey
(){
export
function
getPublicKey
(){
const
data
=
dsbridge
.
call
(
BridgeMethods
.
GET_PUBLIC_KEY
,{},
res
=>
{
const
data
=
dsbridge
.
call
(
BridgeMethods
.
GET_PUBLIC_KEY
,{},
res
=>
{
console
.
log
(
res
);
return
res
return
res
})
})
return
data
return
data
...
...
src/views/team/add-member.vue
View file @
551dccc6
...
@@ -216,6 +216,7 @@ export default Vue.extend({
...
@@ -216,6 +216,7 @@ 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'
...
...
src/views/team/team-detail.vue
View file @
551dccc6
...
@@ -59,7 +59,7 @@ import Vue from 'vue'
...
@@ -59,7 +59,7 @@ import Vue from 'vue'
import
{
team
,
contacts
}
from
'@/DTO'
import
{
team
,
contacts
}
from
'@/DTO'
import
{
Member
}
from
'@/DTO'
import
{
Member
}
from
'@/DTO'
import
{
getContacts
}
from
'@/util/Contact'
import
{
getContacts
}
from
'@/util/Contact'
import
{
openCompanyUserInfo
}
from
'@/util/Bridge'
import
{
openCompanyUserInfo
,
appNavBack
}
from
'@/util/Bridge'
export
default
Vue
.
extend
({
export
default
Vue
.
extend
({
name
:
'TeamDetail'
,
name
:
'TeamDetail'
,
...
@@ -109,6 +109,7 @@ export default Vue.extend({
...
@@ -109,6 +109,7 @@ export default Vue.extend({
this
.
getStaff
(
this
.
parentId
)
this
.
getStaff
(
this
.
parentId
)
},
},
methods
:
{
methods
:
{
appNavBack
,
// 获取成员
// 获取成员
getStaff
(
id
:
string
)
{
getStaff
(
id
:
string
)
{
this
.
loading
=
true
this
.
loading
=
true
...
...
src/views/team/team-frame.vue
View file @
551dccc6
...
@@ -114,10 +114,11 @@ export default Vue.extend({
...
@@ -114,10 +114,11 @@ export default Vue.extend({
this
.
parentId
=
dep
.
id
this
.
parentId
=
dep
.
id
this
.
getStaff
()
this
.
getStaff
()
},
},
appNavBack
(){
appNavBack
,
this
.
$router
.
go
(
-
1
)
// 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
({
...
...
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