Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj-simple
/
dj-admin
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 fafafa63
authored
Mar 21, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交账户中心票据修改
1 parent
f5ebea61
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
85 additions
and
34 deletions
public/menuIcon/accountCenter.png
src/store/modules/d2admin/modules/user.js
src/views/accountCenter/account.vue
src/views/accountCenter/dictionary.vue
src/views/accountCenter/employee.vue
src/views/accountCenter/function.vue
src/views/accountCenter/menu.vue
src/views/accountCenter/merchant.vue
src/views/accountCenter/product.vue
src/views/accountCenter/role.vue
public/menuIcon/accountCenter.png
0 → 100644
View file @
fafafa6
394 Bytes
src/store/modules/d2admin/modules/user.js
View file @
fafafa6
...
...
@@ -52,7 +52,7 @@ export default {
updateRefesh
:
false
,
scrmInfo
:
{},
SSOInfo
:
{
t
:
"TGT-5
7-yM93hs2pNJGpm4hloOInTVPRxoSHgwBvkkFdBCQAzP5eJPm7s2
-qc36.glsx.com"
t
:
"TGT-5
9-1M9mdsOHrQcm7Vi6zB3uCw3IdEasfDDCjsnMfb0lMOQSFdgGQH
-qc36.glsx.com"
}
},
mutations
:
{
...
...
src/views/accountCenter/account.vue
View file @
fafafa6
...
...
@@ -10,12 +10,14 @@
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
iframeSrc
:
'http://192.168.1.68:8085
/customer/account'
,
iframe
Url
:
'/index.html
'
,
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com
'
// iframeSrc: 'https://oss-account-padtest.glsx.com.cn
/customer/account',
iframe
Src
:
baseConfig
.
accountUrl
+
'/customer/account
'
,
iframeUrl
:
'/index.html
'
};
},
computed
:
{
...
...
@@ -23,14 +25,17 @@ export default {
// 检查是否已经有 t 参数
if
(
this
.
iframeUrl
.
includes
(
'?t='
))
{
// 如果已经有 t 参数,替换它
return
this
.
iframeUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
t
);
return
this
.
iframeUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
SSOInfo
.
t
);
}
else
{
// 如果没有 t 参数,添加它
return
this
.
iframeUrl
.
includes
(
'?'
)
?
this
.
iframeUrl
+
'&t='
+
this
.
t
:
this
.
iframeUrl
+
'?t='
+
this
.
t
;
?
this
.
iframeUrl
+
'&t='
+
this
.
SSOInfo
.
t
:
this
.
iframeUrl
+
'?t='
+
this
.
SSOInfo
.
t
;
}
}
},
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
},
mounted
()
{
// 监听来自 iframe 的消息
...
...
@@ -49,13 +54,12 @@ export default {
const
internalUrl
=
url
;
let
newInternalUrl
=
internalUrl
;
if
(
internalUrl
.
includes
(
'?t='
))
{
newInternalUrl
=
internalUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
t
);
newInternalUrl
=
internalUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
SSOInfo
.
t
);
}
else
{
newInternalUrl
=
internalUrl
.
includes
(
'?'
)
?
internalUrl
+
'&t='
+
this
.
t
:
internalUrl
+
'?t='
+
this
.
t
;
?
internalUrl
+
'&t='
+
this
.
SSOInfo
.
t
:
internalUrl
+
'?t='
+
this
.
SSOInfo
.
t
;
}
console
.
log
(
'新的内部地址:'
,
newInternalUrl
);
this
.
iframeUrl
=
newInternalUrl
}
...
...
src/views/accountCenter/dictionary.vue
View file @
fafafa6
...
...
@@ -10,12 +10,14 @@
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
iframeSrc
:
'http://192.168.1.68:8085
/customer/dictionaryManage'
,
iframe
Url
:
'/index.html
'
,
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com
'
// iframeSrc: 'https://oss-account-padtest.glsx.com.cn
/customer/dictionaryManage',
iframe
Src
:
baseConfig
.
accountUrl
+
'/customer/dictionaryManage
'
,
iframeUrl
:
'/index.html
'
};
},
computed
:
{
...
...
@@ -23,14 +25,17 @@ export default {
// 检查是否已经有 t 参数
if
(
this
.
iframeUrl
.
includes
(
'?t='
))
{
// 如果已经有 t 参数,替换它
return
this
.
iframeUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
t
);
return
this
.
iframeUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
SSOInfo
.
t
);
}
else
{
// 如果没有 t 参数,添加它
return
this
.
iframeUrl
.
includes
(
'?'
)
?
this
.
iframeUrl
+
'&t='
+
this
.
t
:
this
.
iframeUrl
+
'?t='
+
this
.
t
;
?
this
.
iframeUrl
+
'&t='
+
this
.
SSOInfo
.
t
:
this
.
iframeUrl
+
'?t='
+
this
.
SSOInfo
.
t
;
}
}
},
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
},
mounted
()
{
// 监听来自 iframe 的消息
...
...
@@ -49,11 +54,11 @@ export default {
const
internalUrl
=
url
;
let
newInternalUrl
=
internalUrl
;
if
(
internalUrl
.
includes
(
'?t='
))
{
newInternalUrl
=
internalUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
t
);
newInternalUrl
=
internalUrl
.
replace
(
/
(\?
|&
)
t=
[^
&
]
+/
,
'$1t='
+
this
.
SSOInfo
.
t
);
}
else
{
newInternalUrl
=
internalUrl
.
includes
(
'?'
)
?
internalUrl
+
'&t='
+
this
.
t
:
internalUrl
+
'?t='
+
this
.
t
;
?
internalUrl
+
'&t='
+
this
.
SSOInfo
.
t
:
internalUrl
+
'?t='
+
this
.
SSOInfo
.
t
;
}
console
.
log
(
'新的内部地址:'
,
newInternalUrl
);
...
...
src/views/accountCenter/employee.vue
View file @
fafafa6
...
...
@@ -2,16 +2,23 @@
<iframe
class=
"box"
allowfullscreen
:src=
"`
http://192.168.1.68:5500/html/employee/index.html?t=$
{
t}`"
:src=
"`
$
{iframeSrc}?t=${SSOInfo.
t}`"
>
</iframe>
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com
'
iframeSrc
:
baseConfig
.
merchantsUrl
+
'/html/employee/index.html
'
}
},
computed
:
{
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
}
}
</
script
>
...
...
src/views/accountCenter/function.vue
View file @
fafafa6
...
...
@@ -2,16 +2,23 @@
<iframe
class=
"box"
allowfullscreen
:src=
"`
http://192.168.1.68:8085/productManage/functionList.html?t=$
{
t}`"
:src=
"`
$
{iframeSrc}?t=${SSOInfo.
t}`"
>
</iframe>
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
"vuex"
export
default
{
data
()
{
return
{
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com
'
iframeSrc
:
baseConfig
.
accountUrl
+
'/productManage/functionList.html
'
}
},
computed
:
{
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
}
}
</
script
>
...
...
src/views/accountCenter/menu.vue
View file @
fafafa6
...
...
@@ -2,16 +2,23 @@
<iframe
class=
"box"
allowfullscreen
:src=
"`
http://192.168.1.68:8085/productManage/menuList.html?t=$
{
t}`"
:src=
"`
$
{iframeSrc}?t=${SSOInfo.
t}`"
>
</iframe>
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com'
iframeSrc
:
baseConfig
.
accountUrl
+
'/productManage/menuList.html'
,
}
},
computed
:
{
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
}
}
</
script
>
...
...
src/views/accountCenter/merchant.vue
View file @
fafafa6
...
...
@@ -2,16 +2,23 @@
<iframe
class=
"box"
allowfullscreen
:src=
"`
http://192.168.1.68:5500/html/merchant/index.html?t=$
{
t}`"
:src=
"`
$
{iframeSrc}?t=${SSOInfo.
t}`"
>
</iframe>
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com'
iframeSrc
:
baseConfig
.
merchantsUrl
+
'/html/merchant/index.html'
,
}
},
computed
:
{
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
}
}
</
script
>
...
...
src/views/accountCenter/product.vue
View file @
fafafa6
...
...
@@ -2,16 +2,23 @@
<iframe
class=
"box"
allowfullscreen
:src=
"`
http://192.168.1.68:8085/productManage/productList.html?t=$
{
t}`"
:src=
"`
$
{iframeSrc}?t=${SSOInfo.
t}`"
>
</iframe>
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com
'
iframeSrc
:
baseConfig
.
accountUrl
+
'/productManage/productList.html
'
}
},
computed
:
{
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
}
}
</
script
>
...
...
src/views/accountCenter/role.vue
View file @
fafafa6
...
...
@@ -2,16 +2,23 @@
<iframe
class=
"box"
allowfullscreen
:src=
"`
http://192.168.1.68:5500/html/role/index.html?t=$
{
t}`"
:src=
"`
$
{iframeSrc}?t=${SSOInfo.
t}`"
>
</iframe>
</
template
>
<
script
>
import
{
baseConfig
}
from
"@/main"
import
{
mapState
}
from
'vuex'
export
default
{
data
()
{
return
{
t
:
'TGT-46-oHQlAR5rTvCorkzy3qYUscqugM3cUUG2WF7ZQXXGrIIw36QevX-qc36.glsx.com
'
iframeSrc
:
baseConfig
.
merchantsUrl
+
'/html/role/index.html
'
}
},
computed
:
{
...
mapState
({
SSOInfo
:
(
state
)
=>
state
.
d2admin
.
user
.
SSOInfo
,
})
}
}
</
script
>
...
...
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