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
1d89907f
Commit
1d89907f
authored
Sep 08, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
ac4e9b71
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
12 deletions
+14
-12
main.ts
src/main.ts
+1
-1
index.ts
src/util/Bridge/index.ts
+2
-3
add-department.vue
src/views/team/add-department.vue
+1
-1
import.vue
src/views/team/import.vue
+2
-1
confirm-join.vue
src/views/team/join-team/confirm-join.vue
+3
-1
team-frame.vue
src/views/team/team-frame.vue
+3
-3
two-code.vue
src/views/team/two-code.vue
+2
-2
No files found.
src/main.ts
View file @
1d89907f
...
@@ -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 @
1d89907f
...
@@ -50,10 +50,9 @@ export function isAppEnv() {
...
@@ -50,10 +50,9 @@ export function isAppEnv() {
}
}
export
function
appNavBack
(){
export
function
appNavBack
(){
console
.
log
(
111
);
const
appEnv
=
isAppEnv
()
const
appEnv
=
isAppEnv
()
console
.
log
(
111
,
appEnv
);
if
(
appEnv
){
if
(
appEnv
){
goBack
()
goBack
()
}
else
{
}
else
{
...
...
src/views/team/add-department.vue
View file @
1d89907f
...
@@ -109,7 +109,7 @@ export default Vue.extend({
...
@@ -109,7 +109,7 @@ export default Vue.extend({
},
},
created
(){
created
(){
this
.
entId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
string
).
id
this
.
entId
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
string
).
id
const
leaderId
=
JSON
.
parse
(
localStorage
.
getItem
(
'U
E
R_INFO'
)
as
string
)?.
id
const
leaderId
=
JSON
.
parse
(
localStorage
.
getItem
(
'U
S
R_INFO'
)
as
string
)?.
id
this
.
selectedLeaderId
=
[
leaderId
]
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
...
...
src/views/team/import.vue
View file @
1d89907f
...
@@ -80,6 +80,7 @@ import Staff from '@/service/moudles/Staff';
...
@@ -80,6 +80,7 @@ import Staff from '@/service/moudles/Staff';
import
{
Account
}
from
'@/service/base'
;
import
{
Account
}
from
'@/service/base'
;
import
{
formatDate
}
from
'@/util/FormatDate'
;
import
{
formatDate
}
from
'@/util/FormatDate'
;
import
{
formatFileSize
}
from
'@/util/Common'
;
import
{
formatFileSize
}
from
'@/util/Common'
;
import
{
getUserInfo
}
from
'@/util/Bridge'
;
Vue
.
use
(
Popup
);
Vue
.
use
(
Popup
);
...
@@ -128,7 +129,7 @@ export default Vue.extend({
...
@@ -128,7 +129,7 @@ export default Vue.extend({
this
.
show
=
true
;
this
.
show
=
true
;
this
.
show1
=
true
;
this
.
show1
=
true
;
this
.
progress
=
0
;
this
.
progress
=
0
;
Staff
.
getInstance
().
addExcel
(
this
.
file
,
Account
.
entId
,
this
.
onProgressChange
).
then
(()
=>
{
Staff
.
getInstance
().
addExcel
(
this
.
file
,
JSON
.
parse
(
getUserInfo
())
.
entId
,
this
.
onProgressChange
).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"Team"
})
this
.
$router
.
push
({
name
:
"Team"
})
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
Toast
.
fail
(
err
)
Toast
.
fail
(
err
)
...
...
src/views/team/join-team/confirm-join.vue
View file @
1d89907f
...
@@ -111,18 +111,20 @@ export default Vue.extend({
...
@@ -111,18 +111,20 @@ export default Vue.extend({
},
},
created
()
{
created
()
{
this
.
info
=
this
.
$route
.
query
as
unknown
as
AcceptJoinDTO
this
.
info
=
this
.
$route
.
query
as
unknown
as
AcceptJoinDTO
console
.
log
(
this
.
info
);
this
.
getDepInfo
(
this
.
info
)
this
.
getDepInfo
(
this
.
info
)
},
},
methods
:
{
methods
:
{
appNavBack
,
appNavBack
,
async
submit
()
{
async
submit
()
{
console
.
log
(
'申请'
)
this
.
loading
=
true
this
.
loading
=
true
const
{
depId
,
entId
,
expiration
,
hash
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
info
as
AcceptJoinDTO
const
{
depId
,
entId
,
expiration
,
hash
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
info
as
AcceptJoinDTO
let
req
=
{
let
req
=
{
depId
,
entId
,
expiration
:
Number
(
expiration
)
,
hash
,
inviterId
,
joinTime
:
Number
(
joinTime
),
name
,
oaServer
,
phone
,
position
depId
,
entId
,
expiration
:
Number
(
expiration
)
,
hash
,
inviterId
,
joinTime
:
Number
(
joinTime
),
name
,
oaServer
,
phone
,
position
}
}
console
.
log
(
this
.
info
);
this
.
$service
.
enterprise
.
acceptJoin
(
req
)
this
.
$service
.
enterprise
.
acceptJoin
(
req
)
.
then
((
res
:
any
)
=>
{
.
then
((
res
:
any
)
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
...
...
src/views/team/team-frame.vue
View file @
1d89907f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
header-bg=
"bg-white"
header-bg=
"bg-white"
:loading=
"loading"
:loading=
"loading"
left-arrow
left-arrow
@
click-left=
"
appNav
Back"
@
click-left=
"
go
Back"
>
>
<template
slot=
"right"
>
<template
slot=
"right"
>
<app-icon
<app-icon
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
useLocalStorageState
}
from
'ahooks-vue'
import
{
useLocalStorageState
}
from
'ahooks-vue'
import
{
appNavBack
,
getUserInfo
,
openCompanyUserInfo
}
from
'@/util/Bridge'
import
{
appNavBack
,
getUserInfo
,
goBack
,
openCompanyUserInfo
}
from
'@/util/Bridge'
import
{
Department
,
Staff
}
from
'@/Interface'
import
{
Department
,
Staff
}
from
'@/Interface'
// import {openCompanyUserInfo} from '@/util/Bridge'
// import {openCompanyUserInfo} from '@/util/Bridge'
...
@@ -115,7 +115,7 @@ export default Vue.extend({
...
@@ -115,7 +115,7 @@ export default Vue.extend({
this
.
parentId
=
dep
.
id
this
.
parentId
=
dep
.
id
this
.
getStaff
()
this
.
getStaff
()
},
},
appNav
Back
,
go
Back
,
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 @
1d89907f
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<code-icon
:path=
"require('@/assets/icons/y-downlode.png')"
class-name=
"h-9 w-9"
/>
保存
<code-icon
:path=
"require('@/assets/icons/y-downlode.png')"
class-name=
"h-9 w-9"
/>
保存
</div>
</div>
</div>
</div>
<c-button
type=
"secondary"
class=
"mt-16"
@
click=
"
$router.push('/team/team-frame')
"
>
进入团队工作台
</c-button>
<c-button
type=
"secondary"
class=
"mt-16"
@
click=
"
handleClickLeft
"
>
进入团队工作台
</c-button>
</div>
</div>
</main-page>
</main-page>
</div>
</div>
...
@@ -135,7 +135,7 @@ export default Vue.extend({
...
@@ -135,7 +135,7 @@ export default Vue.extend({
return
res
return
res
},
},
handleClickLeft
()
{
handleClickLeft
()
{
this
.
$router
.
push
(
'/team/team-frame'
)
this
.
$router
.
replace
(
'/team/team-frame'
)
},
},
dpr
()
{
dpr
()
{
console
.
log
(
window
.
devicePixelRatio
,
'pixel'
)
console
.
log
(
window
.
devicePixelRatio
,
'pixel'
)
...
...
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