优化插件展示页面的页面链接字段
This commit is contained in:
@@ -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="linkTo(record)" target='_blank'>链接跳转</a>
|
<a :href="linkUrl(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 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{title: '页面链接', dataIndex: '', width: 250,
|
{title: '页面链接', dataIndex: '', width: 250, ellipsis:true,
|
||||||
scopedSlots: { customRender: 'linkInfo' }
|
scopedSlots: { customRender: 'linkInfo' }
|
||||||
},
|
},
|
||||||
{title: '状态', dataIndex: 'pluginState', width: 80, align: "center",
|
{title: '状态', dataIndex: 'pluginState', width: 60, align: "center",
|
||||||
scopedSlots: { customRender: 'customRenderFlag' }
|
scopedSlots: { customRender: 'customRenderFlag' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -192,11 +192,13 @@
|
|||||||
this.$refs.modalForm.title = "填写激活码";
|
this.$refs.modalForm.title = "填写激活码";
|
||||||
this.$refs.modalForm.disableSubmit = false;
|
this.$refs.modalForm.disableSubmit = false;
|
||||||
},
|
},
|
||||||
linkTo(record) {
|
linkUrl(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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user