Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b2e15b95
authored
Oct 14, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改商户传参
1 parent
2c3acef8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
15 deletions
package.json
src/router/routes.js
src/views/account/index.vue
src/views/employee/index.vue
src/views/role/add.vue
package.json
View file @
b2e15b9
...
...
@@ -11,8 +11,8 @@
"axios"
:
"^0.21.1"
,
"core-js"
:
"^3.4.4"
,
"el-tree-transfer"
:
"^2.2.6"
,
"
element-ui"
:
"^2.4.5
"
,
"glsx-
table"
:
"^1.1.0
"
,
"
glsx-common"
:
"^1.4.0
"
,
"glsx-
components"
:
"^1.0.6
"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
...
...
@@ -29,8 +29,6 @@
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"glsx-common"
:
"^1.4.0"
,
"glsx-components"
:
"^1.0.4"
,
"node-sass"
:
"^4.14.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
...
...
src/router/routes.js
View file @
b2e15b9
...
...
@@ -52,5 +52,13 @@ const staticRoutes = Object.freeze([{
url
:
'http://192.168.1.68:5501/html/role/index.html'
}
},
{
name
:
'Role'
,
path
:
'/role/add'
,
component
:
resolve
=>
require
([
`@/views/role/add.vue`
],
resolve
),
meta
:
{
url
:
'http://192.168.1.68:5501/html/role/add.html'
}
}
])
export
default
staticRoutes
\ No newline at end of file
src/views/account/index.vue
View file @
b2e15b9
...
...
@@ -5,27 +5,27 @@
</
template
>
<
script
>
const
params
=
{
merchantAccountLevel
:
1
,
merchantId
:
81
,
model
:
2
}
export
default
{
name
:
'account'
,
data
()
{
return
{
// url: `${this.$router.currentRoute.meta.url}?merchantAccountLevel=${merchantAccountLevel}&merchantId=${merchantId}`
url
:
''
}
},
mounted
()
{
console
.
log
(
this
.
$common
)
const
{
session
,
session
:
{
accountLevel
,
merchantModel
,
merchantId
,
sessionId
}}
=
this
.
$globalState
const
params
=
{
accountLevel
,
merchantModel
,
merchantId
,
sessionId
}
console
.
log
(
params
)
this
.
url
=
this
.
$router
.
currentRoute
.
meta
.
url
+
'?'
+
this
.
$common
.
utils
.
genUrlParams
(
params
)
},
methods
:
{
subscribe
(
child
)
{
child
.
on
(
'route-to'
,
params
=>
{
console
.
log
(
params
,
'-----------------------'
)
this
.
$history
.
push
(
params
.
path
)
})
}
...
...
src/views/employee/index.vue
View file @
b2e15b9
<
template
>
<div>
<GLExternal
:url=
"url"
:subscribe=
"subscribe"
></GLExternal>
<GLExternal
v-if=
"url"
:url=
"url"
:subscribe=
"subscribe"
></GLExternal>
</div>
</
template
>
...
...
@@ -9,13 +9,25 @@ export default {
name
:
'adapter'
,
data
()
{
return
{
url
:
this
.
$router
.
currentRoute
.
meta
.
url
url
:
''
}
},
mounted
()
{
const
{
session
,
session
:
{
accountLevel
,
merchantModel
,
merchantId
,
sessionId
}}
=
this
.
$globalState
const
params
=
{
accountLevel
,
merchantModel
,
merchantId
,
sessionId
}
console
.
log
(
params
)
this
.
url
=
this
.
$router
.
currentRoute
.
meta
.
url
+
'?'
+
this
.
$common
.
utils
.
genUrlParams
(
params
)
},
methods
:
{
subscribe
(
child
)
{
child
.
on
(
'route-to'
,
params
=>
{
this
.
$history
.
push
(
params
)
console
.
log
(
params
)
this
.
$history
.
push
(
params
.
path
)
})
}
}
...
...
src/views/role/add.vue
0 → 100644
View file @
b2e15b9
<
template
>
<div>
<GLExternal
:url=
"url"
:subscribe=
"subscribe"
></GLExternal>
</div>
</
template
>
<
script
>
export
default
{
name
:
'adapter'
,
data
()
{
return
{
url
:
this
.
$router
.
currentRoute
.
meta
.
url
}
},
methods
:
{
subscribe
(
child
)
{
child
.
on
(
'route-to'
,
params
=>
{
this
.
$history
.
push
(
params
)
})
}
}
}
</
script
>
<
style
></
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment