Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
4a96bb3c
Commit
4a96bb3c
authored
Jun 15, 2022
by
季圣华
Browse files
优化插件展示页面的页面链接字段
parent
9561741f
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/PluginList.vue
View file @
4a96bb3c
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</a-popconfirm>
</a-popconfirm>
</span>
</span>
<span
slot=
"linkInfo"
slot-scope=
"text, record"
>
<span
slot=
"linkInfo"
slot-scope=
"text, record"
>
<a
@
click
=
"link
To
(record)"
target=
'_blank'
>
链接跳转
</a>
<a
:href
=
"link
Url
(record)"
target=
'_blank'
:title=
"linkUrl(record)"
>
{{linkUrl(record)}}
</a>
</span>
</span>
<
template
slot=
"customRenderFlag"
slot-scope=
"pluginState"
>
<
template
slot=
"customRenderFlag"
slot-scope=
"pluginState"
>
<a-tag
v-if=
"pluginState=='STARTED'"
color=
"green"
>
启用
</a-tag>
<a-tag
v-if=
"pluginState=='STARTED'"
color=
"green"
>
启用
</a-tag>
...
@@ -146,10 +146,10 @@
...
@@ -146,10 +146,10 @@
}
}
}
}
},
},
{
title
:
'
页面链接
'
,
dataIndex
:
''
,
width
:
250
,
{
title
:
'
页面链接
'
,
dataIndex
:
''
,
width
:
250
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
'
linkInfo
'
}
scopedSlots
:
{
customRender
:
'
linkInfo
'
}
},
},
{
title
:
'
状态
'
,
dataIndex
:
'
pluginState
'
,
width
:
8
0
,
align
:
"
center
"
,
{
title
:
'
状态
'
,
dataIndex
:
'
pluginState
'
,
width
:
6
0
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderFlag
'
}
scopedSlots
:
{
customRender
:
'
customRenderFlag
'
}
},
},
{
{
...
@@ -192,11 +192,13 @@
...
@@ -192,11 +192,13 @@
this
.
$refs
.
modalForm
.
title
=
"
填写激活码
"
;
this
.
$refs
.
modalForm
.
title
=
"
填写激活码
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
},
},
link
To
(
record
)
{
link
Url
(
record
)
{
let
desc
=
record
.
pluginDescriptor
.
pluginDescription
;
let
desc
=
record
.
pluginDescriptor
.
pluginDescription
if
(
desc
.
indexOf
(
"
|
"
)){
if
(
desc
.
indexOf
(
"
|
"
)){
let
arr
=
desc
.
split
(
"
|
"
);
let
arr
=
desc
.
split
(
"
|
"
)
window
.
location
.
href
=
arr
[
1
]
return
arr
[
1
]
}
else
{
return
''
}
}
},
},
uploadTemplate
(
record
)
{
uploadTemplate
(
record
)
{
...
...
Write
Preview
Supports
Markdown
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