fix:链接管理 点击链接实现跳转
This commit is contained in:
@@ -48,8 +48,10 @@
|
|||||||
width="220px">
|
width="220px">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="url"
|
|
||||||
label="链接">
|
label="链接">
|
||||||
|
<template slot-scope="scope" >
|
||||||
|
<span @click="linkto(scope.row.url)" style="color: #0c91e5;cursor: pointer;text-decoration: underline">{{ scope.row.url }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
@@ -149,6 +151,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//链接点击跳转,链接形式为http://xxxxxx
|
||||||
|
linkto(link_href){
|
||||||
|
window.open(link_href)
|
||||||
|
},
|
||||||
//头部新增按钮
|
//头部新增按钮
|
||||||
addLink () {
|
addLink () {
|
||||||
this.type = 1
|
this.type = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user