Commit 7e128887 by Lyan

知识管理提交

parent 3b87c5d4
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
url: this.$http.adornUrl(`/office/knowledgeinfo/${!this.dataForm.id ? 'save' : 'update'}`), url: this.$http.adornUrl(`/office/knowledgeinfo/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post', method: 'post',
data: this.$http.adornData({ data: this.$http.adornData({
'id': this.dataForm.id || undefined, 'knowledgeinfoid': this.dataForm.id || undefined,
'title': this.dataForm.title, 'title': this.dataForm.title,
'levels': this.dataForm.levels, 'levels': this.dataForm.levels,
'directpath': this.dataForm.directpath, 'directpath': this.dataForm.directpath,
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<el-button v-if="isAuth('manage:knowledgeinfo:check')" type="text" size="small" @click="checkHandle(scope.row.knowledgeinfoid,1)">[成功]</el-button> <el-button v-if="isAuth('manage:knowledgeinfo:check')" type="text" size="small" @click="checkHandle(scope.row.knowledgeinfoid,1)">[成功]</el-button>
<el-button v-if="isAuth('manage:knowledgeinfo:check')" type="text" size="small" @click="checkHandle(scope.row.knowledgeinfoid,-1)">[失败]</el-button> <el-button v-if="isAuth('manage:knowledgeinfo:check')" type="text" size="small" @click="checkHandle(scope.row.knowledgeinfoid,-1)">[失败]</el-button>
<br v-if="isAuth('manage:knowledgeinfo:check')" /> <br v-if="isAuth('manage:knowledgeinfo:check')" />
<!-- <el-button v-if="isAuth('manage:knowledgeinfo:info')" type="text" size="small" @click="showMsg(scope.row)">预览</el-button> --> <el-button v-if="isAuth('manage:knowledgeinfo:info')" type="text" size="small" @click="showMsg(scope.row)">预览</el-button>
<el-button v-if="isAuth('manage:knowledgeinfo:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.knowledgeinfoid)">修改</el-button> <el-button v-if="isAuth('manage:knowledgeinfo:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.knowledgeinfoid)">修改</el-button>
<el-button v-if="isAuth('manage:knowledgeinfo:delete')" type="text" size="small" @click="deleteHandle(scope.row.knowledgeinfoid)">删除</el-button> <el-button v-if="isAuth('manage:knowledgeinfo:delete')" type="text" size="small" @click="deleteHandle(scope.row.knowledgeinfoid)">删除</el-button>
</template> </template>
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
}, },
showMsg (data) { showMsg (data) {
if (!data.jumppath || data.jumppath === null) { if (!data.jumppath || data.jumppath === null) {
window.open(this.$store.state.config.urls + '/News/msg?id=' + data.id, '_blank') window.open(this.$store.state.config.urls + '/Knowledge/article?id=' + data.knowledgeinfoid, '_blank')
} else if (/^\//.test(data.jumppath)) { } else if (/^\//.test(data.jumppath)) {
window.open(this.$store.state.config.urls + data.jumppath, '_blank') window.open(this.$store.state.config.urls + data.jumppath, '_blank')
} else { } else {
......
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
>[失败]</el-button >[失败]</el-button
> >
<br v-if="isAuth('plate:product:check')" /> <br v-if="isAuth('plate:product:check')" />
<el-button v-if="isAuth('plate:product:info')" type="text" size="small" @click="showMsg(scope.row)">预览</el-button>
<el-button <el-button
v-if="isAuth('plate:product:update')" v-if="isAuth('plate:product:update')"
type="text" type="text"
...@@ -257,6 +258,9 @@ export default { ...@@ -257,6 +258,9 @@ export default {
this.$refs.addOrUpdate.init(id) this.$refs.addOrUpdate.init(id)
}) })
}, },
showMsg (data) {
window.open(this.$store.state.config.urls + '/Service/Book?id=' + data.id, '_blank')
},
// 删除 // 删除
deleteHandle (id) { deleteHandle (id) {
var ids = id var ids = id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment