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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
13 deletions
+15
-13
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
+4
-2
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)
Vue
.
prototype
.
$dsbridge
=
dsbridge
Vue
.
prototype
.
$global
=
global
new
VConsole
()
//
new VConsole()
new
Vue
({
router
,
...
...
src/util/Bridge/index.ts
View file @
1d89907f
...
...
@@ -50,10 +50,9 @@ export function isAppEnv() {
}
export
function
appNavBack
(){
console
.
log
(
111
);
const
appEnv
=
isAppEnv
()
const
appEnv
=
isAppEnv
()
console
.
log
(
111
,
appEnv
);
if
(
appEnv
){
goBack
()
}
else
{
...
...
src/views/team/add-department.vue
View file @
1d89907f
...
...
@@ -109,7 +109,7 @@ export default Vue.extend({
},
created
(){
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
.
getStaffInfo
(
this
.
selectedLeaderId
[
0
])
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';
import
{
Account
}
from
'@/service/base'
;
import
{
formatDate
}
from
'@/util/FormatDate'
;
import
{
formatFileSize
}
from
'@/util/Common'
;
import
{
getUserInfo
}
from
'@/util/Bridge'
;
Vue
.
use
(
Popup
);
...
...
@@ -128,7 +129,7 @@ export default Vue.extend({
this
.
show
=
true
;
this
.
show1
=
true
;
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"
})
}).
catch
((
err
)
=>
{
Toast
.
fail
(
err
)
...
...
src/views/team/join-team/confirm-join.vue
View file @
1d89907f
...
...
@@ -111,18 +111,20 @@ export default Vue.extend({
},
created
()
{
this
.
info
=
this
.
$route
.
query
as
unknown
as
AcceptJoinDTO
console
.
log
(
this
.
info
);
this
.
getDepInfo
(
this
.
info
)
},
methods
:
{
appNavBack
,
async
submit
()
{
console
.
log
(
'申请'
)
this
.
loading
=
true
const
{
depId
,
entId
,
expiration
,
hash
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
info
as
AcceptJoinDTO
let
req
=
{
depId
,
entId
,
expiration
:
Number
(
expiration
)
,
hash
,
inviterId
,
joinTime
:
Number
(
joinTime
),
name
,
oaServer
,
phone
,
position
}
console
.
log
(
this
.
info
);
this
.
$service
.
enterprise
.
acceptJoin
(
req
)
.
then
((
res
:
any
)
=>
{
const
{
data
}
=
res
...
...
src/views/team/team-frame.vue
View file @
1d89907f
...
...
@@ -6,7 +6,7 @@
header-bg=
"bg-white"
:loading=
"loading"
left-arrow
@
click-left=
"
appNav
Back"
@
click-left=
"
go
Back"
>
<template
slot=
"right"
>
<app-icon
...
...
@@ -55,7 +55,7 @@
<
script
lang=
"ts"
>
import
Vue
from
'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 {openCompanyUserInfo} from '@/util/Bridge'
...
...
@@ -115,7 +115,7 @@ export default Vue.extend({
this
.
parentId
=
dep
.
id
this
.
getStaff
()
},
appNav
Back
,
go
Back
,
getEntInfo
()
{
this
.
loading
=
true
return
this
.
$service
.
enterprise
.
getEnterpriseInfo
({
...
...
src/views/team/two-code.vue
View file @
1d89907f
...
...
@@ -53,7 +53,7 @@
<code-icon
:path=
"require('@/assets/icons/y-downlode.png')"
class-name=
"h-9 w-9"
/>
保存
</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>
</main-page>
</div>
...
...
@@ -135,7 +135,7 @@ export default Vue.extend({
return
res
},
handleClickLeft
()
{
this
.
$router
.
push
(
'/team/team-frame'
)
this
.
$router
.
replace
(
'/team/team-frame'
)
},
dpr
()
{
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