Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db_qms_wx
Project
Project
Details
Activity
Releases
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
刘怀志
db_qms_wx
Commits
fd87dcc8
Commit
fd87dcc8
authored
Apr 16, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(全局): 消息详情 header修改
parent
b7537102
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
base-data-approval.vue
components/home-approval/base-data-approval.vue
+3
-1
production-approval.vue
components/home-approval/production-approval.vue
+2
-1
index.vue
pages/index.vue
+3
-1
index.vue
pages/message/index.vue
+2
-1
No files found.
components/home-approval/base-data-approval.vue
View file @
fd87dcc8
...
@@ -138,7 +138,8 @@ export default {
...
@@ -138,7 +138,8 @@ export default {
await
this
.
getList
();
await
this
.
getList
();
this
.
loadData
()
this
.
loadData
()
// 获取当前地址 ? 后的内容
// 获取当前地址 ? 后的内容
const
queryString
=
window
.
location
.
href
.
split
(
'?'
)[
1
];
const
queryString
=
uni
.
getStorageSync
(
'targetRoute'
);
console
.
log
(
'KKKKKKKKKKKKKKKKKKK'
)
if
(
queryString
)
{
if
(
queryString
)
{
console
.
log
(
'查询字符串:'
,
queryString
);
console
.
log
(
'查询字符串:'
,
queryString
);
// 如果你需要将查询字符串解析为对象,可以使用以下方法
// 如果你需要将查询字符串解析为对象,可以使用以下方法
...
@@ -148,6 +149,7 @@ export default {
...
@@ -148,6 +149,7 @@ export default {
queryObject
[
key
]
=
value
;
queryObject
[
key
]
=
value
;
}
}
this
.
targetId
=
queryObject
.
targetId
;
this
.
targetId
=
queryObject
.
targetId
;
uni
.
removeStorageSync
(
'targetRoute'
);
if
(
this
.
targetId
){
if
(
this
.
targetId
){
this
.
showOneMessage
()
this
.
showOneMessage
()
}
}
...
...
components/home-approval/production-approval.vue
View file @
fd87dcc8
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
await
this
.
getList
();
await
this
.
getList
();
this
.
loadData
()
this
.
loadData
()
// 获取当前地址 ? 后的内容
// 获取当前地址 ? 后的内容
const
queryString
=
window
.
location
.
href
.
split
(
'?'
)[
1
]
;
const
queryString
=
uni
.
getStorageSync
(
'targetRoute'
)
;
if
(
queryString
)
{
if
(
queryString
)
{
console
.
log
(
'查询字符串:'
,
queryString
);
console
.
log
(
'查询字符串:'
,
queryString
);
// 如果你需要将查询字符串解析为对象,可以使用以下方法
// 如果你需要将查询字符串解析为对象,可以使用以下方法
...
@@ -128,6 +128,7 @@ export default {
...
@@ -128,6 +128,7 @@ export default {
queryObject
[
key
]
=
value
;
queryObject
[
key
]
=
value
;
}
}
this
.
targetId
=
queryObject
.
targetId
;
this
.
targetId
=
queryObject
.
targetId
;
uni
.
removeStorageSync
(
'targetRoute'
);
if
(
this
.
targetId
){
if
(
this
.
targetId
){
this
.
showOneMessage
()
this
.
showOneMessage
()
}
}
...
...
pages/index.vue
View file @
fd87dcc8
...
@@ -103,8 +103,10 @@ export default {
...
@@ -103,8 +103,10 @@ export default {
}
}
},
},
created
()
{
created
()
{
// 获取当前地址 ? 后的内容
// 获取当前地址 ? 后的内容
const
queryString
=
window
.
location
.
href
.
split
(
'?'
)[
1
];
// const queryString = window.location.href.split('?')[1];
const
queryString
=
uni
.
getStorageSync
(
'targetRoute'
);
if
(
queryString
)
{
if
(
queryString
)
{
console
.
log
(
'查询字符串:'
,
queryString
);
console
.
log
(
'查询字符串:'
,
queryString
);
// 如果你需要将查询字符串解析为对象,可以使用以下方法
// 如果你需要将查询字符串解析为对象,可以使用以下方法
...
...
pages/message/index.vue
View file @
fd87dcc8
...
@@ -137,7 +137,8 @@ export default {
...
@@ -137,7 +137,8 @@ export default {
// 安灯报警
// 安灯报警
targetRoute
=
'3'
targetRoute
=
'3'
}
}
this
.
$tab
.
reLaunch
(
`/pages/index?targetRoute=${targetRoute
}
&targetId=${row.instanceId
}
`
)
uni
.
setStorageSync
(
'targetRoute'
,
`targetRoute=${targetRoute
}
&targetId=${row.instanceId
}
`
)
this
.
$tab
.
reLaunch
(
`/pages/index`
)
}
,
}
,
clickTabs
(
item
)
{
clickTabs
(
item
)
{
this
.
queryNotice
.
mesType
=
item
.
name
===
'基础数据审批'
?
'1'
:
'2'
this
.
queryNotice
.
mesType
=
item
.
name
===
'基础数据审批'
?
'1'
:
'2'
...
...
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