Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jnpf-app-vue3-dj
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zuoliyuan
jnpf-app-vue3-dj
Commits
db226678
Commit
db226678
authored
Nov 06, 2024
by
zuoliyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws
parent
244aaaaf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
31 deletions
+63
-31
pages/portal/components/HCommonFunc/index.vue
pages/portal/components/HCommonFunc/index.vue
+63
-31
No files found.
pages/portal/components/HCommonFunc/index.vue
View file @
db226678
...
...
@@ -18,6 +18,9 @@
</view>
</
template
>
<
script
>
import
{
getUsualList
}
from
"
@/api/apply/apply.js
"
;
export
default
{
props
:
{
config
:
{
...
...
@@ -35,6 +38,18 @@
this
.
initData
()
},
methods
:
{
getUsualList
()
{
getUsualList
(
2
).
then
((
res
)
=>
{
this
.
option
.
appDefaultValue
=
res
.
data
.
list
.
map
((
o
)
=>
{
const
objectData
=
o
.
objectData
?
JSON
.
parse
(
o
.
objectData
)
:
{};
return
{
...
o
,
...
objectData
,
};
});
console
.
log
(
this
.
option
.
appDefaultValue
,
'
usualList
'
)
});
},
initData
()
{
this
.
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
config
.
option
))
let
style
;
...
...
@@ -52,43 +67,60 @@
}
this
.
option
.
style
=
style
this
.
option
.
labelFontSize
=
this
.
option
.
labelFontSize
*
2
+
'
rpx
'
this
.
getUsualList
()
this
.
key
=
+
new
Date
()
},
jump
(
item
)
{
if
(
this
.
config
.
platform
===
'
mp
'
)
return
let
url
;
if
(
item
.
linkType
==
1
&&
item
.
type
==
3
)
{
let
data
=
{
id
:
item
.
moduleId
,
moduleId
:
item
.
moduleId
,
urlAddress
:
item
.
urlAddress
,
...
JSON
.
parse
(
item
.
propertyJson
)
}
url
=
'
/pages/apply/dynamicModel/index?config=
'
+
this
.
jnpf
.
base64
.
encode
(
JSON
.
stringify
(
data
))
}
else
if
(
item
.
linkType
==
1
&&
item
.
type
==
2
)
{
url
=
item
.
urlAddress
}
else
if
(
item
.
linkType
==
1
&&
item
.
type
==
8
)
{
let
propertyJson
=
JSON
.
parse
(
item
.
propertyJson
)
uni
.
navigateTo
({
url
:
"
/pages/portal/scanPortal/index?id=
"
+
propertyJson
.
moduleId
+
"
&portalType=1&fullName=
"
+
item
.
fullName
,
fail
:
(
err
)
=>
{},
});
return
}
else
{
if
(
!
item
.
urlAddress
)
return
url
=
'
/pages/apply/externalLink/index?url=
'
+
encodeURIComponent
(
item
.
urlAddress
)
+
'
&fullName=
'
+
item
.
fullName
// jump(item) {
// if (this.config.platform === 'mp') return
// let url;
// if (item.linkType == 1 && item.type == 3) {
// let data = {
// id: item.moduleId,
// moduleId: item.moduleId,
// urlAddress: item.urlAddress,
// ...JSON.parse(item.propertyJson)
// }
// url = '/pages/apply/dynamicModel/index?config=' +
// this.jnpf.base64.encode(JSON.stringify(data))
// } else if (item.linkType == 1 && item.type == 2) {
// url = item.urlAddress
// } else if (item.linkType == 1 && item.type == 8) {
// let propertyJson = JSON.parse(item.propertyJson)
// uni.navigateTo({
// url: "/pages/portal/scanPortal/index?id=" + propertyJson.moduleId +
// "&portalType=1&fullName=" +
// item.fullName,
// fail: (err) => {},
// });
// return
// } else {
// if (!item.urlAddress) return
// url = '/pages/apply/externalLink/index?url=' + encodeURIComponent(item.urlAddress) +
// '&fullName= ' + item.fullName
// }
// uni.navigateTo({
// url: url,
// fail: (err) => {
// // this.$u.toast("暂无此页面")
// }
// })
// },
// 之前是直接写死,现在,重新写了,将“工作台”菜单的“常用功能”移到“首页”了
jump
(
item
){
if
(
item
.
type
==
3
)
{
if
(
!
item
.
moduleId
)
{
this
.
$u
.
toast
(
"
暂无此页面
"
);
return
;
}
uni
.
navigateTo
({
url
:
url
,
url
:
"
/pages/apply/dynamicModel/index?config=
"
+
this
.
jnpf
.
base64
.
encode
(
JSON
.
stringify
(
item
)),
fail
:
(
err
)
=>
{
// this.$u.toast("暂无此页面")
}
})
this
.
$u
.
toast
(
"
暂无此页面
"
);
},
});
}
}
}
}
</
script
>
...
...
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