fix: source和entity integration添加查看功能
This commit is contained in:
@@ -22,6 +22,12 @@
|
||||
<i class="cn-icon-edit cn-icon"></i>
|
||||
<span>{{ $t('overall.edit') }}</span>
|
||||
</button>
|
||||
<button id="tag-view" class="business-button business-button--light tag__btn margin-r-10 tool-btn-view"
|
||||
:disabled="disableView"
|
||||
@click="viewSource">
|
||||
<i class="cn-icon-preview cn-icon"></i>
|
||||
<span>{{ $t('overall.view') }}</span>
|
||||
</button>
|
||||
<button id="tag-delete" class="business-button business-button--light tag__btn margin-r-10"
|
||||
:disabled="disableDelete"
|
||||
@click="delBatch">
|
||||
@@ -223,6 +229,17 @@ export default {
|
||||
this.jumpToEditPage(this.batchDeleteObjs[0].id)
|
||||
}
|
||||
},
|
||||
viewSource () {
|
||||
const pageNo = this.$router.currentRoute.value.query.pageNo
|
||||
this.$router.push({
|
||||
path: '/setting/source/view',
|
||||
query: {
|
||||
t: +new Date(),
|
||||
pageNoForTable: pageNo || 1,
|
||||
id: this.batchDeleteObjs[0].id
|
||||
}
|
||||
})
|
||||
},
|
||||
jumpToEditPage (id) {
|
||||
const pageNo = this.$router.currentRoute.value.query.pageNo
|
||||
this.$router.push({
|
||||
|
||||
Reference in New Issue
Block a user