修改开放文档页面位置

This commit is contained in:
暮光:城中城
2020-06-15 22:41:11 +08:00
parent 61f4c316d8
commit 74d1c06561
36 changed files with 454 additions and 103 deletions

View File

@@ -98,7 +98,7 @@
<el-table-column prop="spaceExplain" label="说明"></el-table-column>
<el-table-column label="开放地址">
<template slot-scope="scope">
<a target="_blank" :href="'open-wiki.html?space='+scope.row.uuid" v-if="scope.row.openDoc == 1">{{scope.row.name}}</a>
<el-button type="text" @click="showOpenSpace(scope.row.uuid)" v-if="scope.row.openDoc == 1">{{scope.row.name}}</el-button>
<span v-else>暂未开放</span>
</template>
</el-table-column>
@@ -247,6 +247,10 @@
filterPageNode(value, data) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
},
showOpenSpace(space) {
let routeUrl = this.$router.resolve({path: '/page/openView', query: {space: space}});
window.open(routeUrl.href, '_blank');
},
editSpaceInfo(row) {
this.newSpaceForm = {