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
You need to sign in or sign up before continuing.
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 @@
...
@@ -18,6 +18,9 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getUsualList
}
from
"
@/api/apply/apply.js
"
;
export
default
{
export
default
{
props
:
{
props
:
{
config
:
{
config
:
{
...
@@ -35,6 +38,18 @@
...
@@ -35,6 +38,18 @@
this
.
initData
()
this
.
initData
()
},
},
methods
:
{
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
()
{
initData
()
{
this
.
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
config
.
option
))
this
.
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
config
.
option
))
let
style
;
let
style
;
...
@@ -52,43 +67,60 @@
...
@@ -52,43 +67,60 @@
}
}
this
.
option
.
style
=
style
this
.
option
.
style
=
style
this
.
option
.
labelFontSize
=
this
.
option
.
labelFontSize
*
2
+
'
rpx
'
this
.
option
.
labelFontSize
=
this
.
option
.
labelFontSize
*
2
+
'
rpx
'
this
.
getUsualList
()
this
.
key
=
+
new
Date
()
this
.
key
=
+
new
Date
()
},
},
jump
(
item
)
{
// jump(item) {
if
(
this
.
config
.
platform
===
'
mp
'
)
return
// if (this.config.platform === 'mp') return
let
url
;
// let url;
if
(
item
.
linkType
==
1
&&
item
.
type
==
3
)
{
// if (item.linkType == 1 && item.type == 3) {
let
data
=
{
// let data = {
id
:
item
.
moduleId
,
// id: item.moduleId,
moduleId
:
item
.
moduleId
,
// moduleId: item.moduleId,
urlAddress
:
item
.
urlAddress
,
// urlAddress: item.urlAddress,
...
JSON
.
parse
(
item
.
propertyJson
)
// ...JSON.parse(item.propertyJson)
}
// }
url
=
'
/pages/apply/dynamicModel/index?config=
'
+
// url = '/pages/apply/dynamicModel/index?config=' +
this
.
jnpf
.
base64
.
encode
(
JSON
.
stringify
(
data
))
// this.jnpf.base64.encode(JSON.stringify(data))
}
else
if
(
item
.
linkType
==
1
&&
item
.
type
==
2
)
{
// } else if (item.linkType == 1 && item.type == 2) {
url
=
item
.
urlAddress
// url = item.urlAddress
}
else
if
(
item
.
linkType
==
1
&&
item
.
type
==
8
)
{
// } else if (item.linkType == 1 && item.type == 8) {
let
propertyJson
=
JSON
.
parse
(
item
.
propertyJson
)
// let propertyJson = JSON.parse(item.propertyJson)
uni
.
navigateTo
({
// uni.navigateTo({
url
:
"
/pages/portal/scanPortal/index?id=
"
+
propertyJson
.
moduleId
+
// url: "/pages/portal/scanPortal/index?id=" + propertyJson.moduleId +
"
&portalType=1&fullName=
"
+
// "&portalType=1&fullName=" +
item
.
fullName
,
// item.fullName,
fail
:
(
err
)
=>
{},
// fail: (err) => {},
});
// });
return
// return
}
else
{
// } else {
if
(
!
item
.
urlAddress
)
return
// if (!item.urlAddress) return
url
=
'
/pages/apply/externalLink/index?url=
'
+
encodeURIComponent
(
item
.
urlAddress
)
+
// url = '/pages/apply/externalLink/index?url=' + encodeURIComponent(item.urlAddress) +
'
&fullName=
'
+
item
.
fullName
// '&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
({
uni
.
navigateTo
({
url
:
url
,
url
:
"
/pages/apply/dynamicModel/index?config=
"
+
this
.
jnpf
.
base64
.
encode
(
JSON
.
stringify
(
item
)),
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
// this.$u.toast("暂无此页面")
this
.
$u
.
toast
(
"
暂无此页面
"
);
}
})
},
},
});
}
}
}
}
}
}
</
script
>
</
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