Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
62e1194f
Commit
62e1194f
authored
Jul 06, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
e1adecce
218f1389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
15 deletions
+49
-15
index.vue
dsk-operate-ui/src/views/detail/party-a/index.vue
+49
-15
No files found.
dsk-operate-ui/src/views/detail/party-a/index.vue
View file @
62e1194f
...
...
@@ -165,17 +165,50 @@ export default {
return
this
.
$store
.
state
.
permission
.
routes
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
){
if
(
to
.
query
.
customerId
){
let
customerId
=
to
.
query
.
customerId
if
(
to
.
query
.
path
){
vm
.
currentPath
.
pathName
=
to
.
query
.
path
watch
:
{
'$route'
(
to
,
from
)
{
if
(
to
.
name
==
'PartyA'
&&
to
.
query
.
customerId
){
if
(
to
.
query
.
customerId
&&
to
.
query
.
path
==
'business'
||
to
.
query
.
path
==
'gjjl'
)
{
if
(
this
.
companyId
==
0
)
{
customerInfo
(
to
.
query
.
customerId
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
userId
==
this
.
$store
.
state
.
user
.
userId
)
{
this
.
$nextTick
(()
=>
{
this
.
customerInfo
=
res
.
data
this
.
customerId
=
res
.
data
.
customerId
this
.
isCustomer
=
true
this
.
isCompany
=
false
this
.
currentPath
.
pathName
=
this
.
$route
.
query
.
path
||
'business'
this
.
companyInfo
=
{
companyName
:
this
.
customerInfo
.
companyName
}
document
.
getElementById
(
'tagTitle'
).
innerText
=
this
.
customerInfo
.
companyName
})
}
}
})
}
if
(
to
.
query
.
customerId
==
this
.
customerId
&&
to
.
query
.
path
)
{
this
.
currentPath
.
pathName
=
to
.
query
.
path
}
vm
.
association
(
customerId
)
}
}
else
{
if
(
from
.
name
==
'PartyA'
&&
!
from
.
query
.
customerId
){
this
.
$nextTick
(()
=>
{
this
.
isCompany
=
true
})
}
}
}
},
beforeRouteLeave
(
to
,
from
,
next
)
{
next
(
vm
=>
{
})
},
beforeRouteEnter
(
to
,
from
,
next
){
next
(
vm
=>
{
})
},
created
()
{
...
...
@@ -237,10 +270,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
customerInfo
=
res
.
data
this
.
customerId
=
res
.
data
.
customerId
this
.
isCustomer
=
true
this
.
isCompanyId
=
true
})
if
(
res
.
data
.
companyId
==
this
.
companyId
&&
this
.
companyInfo
){
if
(
res
.
data
.
companyId
==
this
.
companyId
){
this
.
$nextTick
(()
=>
{
this
.
isCustomer
=
true
this
.
isCompany
=
true
...
...
@@ -260,20 +291,23 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
isCustomer
=
true
this
.
isCompany
=
true
this
.
currentPath
.
pathName
=
'overview'
})
this
.
currentPath
.
pathName
=
'overview'
}
}
}).
catch
(
err
=>
{
this
.
currentPath
.
pathName
=
'overview'
this
.
$nextTick
(()
=>
{
this
.
currentPath
.
pathName
=
'overview'
this
.
isCompany
=
true
})
})
}
else
{
this
.
isCompany
=
true
this
.
$nextTick
(()
=>
{
this
.
isCompany
=
true
this
.
currentPath
.
pathName
=
'overview'
})
}
}
}
,
}
}
...
...
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