|
@@ -24,7 +24,7 @@
|
|
<vxe-toolbar :refresh="{query: refreshList}" custom>
|
|
<vxe-toolbar :refresh="{query: refreshList}" custom>
|
|
<template #buttons>
|
|
<template #buttons>
|
|
<el-button v-if="hasPermission('knowledgeShare:InfoList:add')" size="primary" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
<el-button v-if="hasPermission('knowledgeShare:InfoList:add')" size="primary" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
- <el-button v-if="hasPermission('knowledgeShare:InfoList:del')" size="primary" icon="el-icon-delete" @click="del()" :disabled="$refs.typeTable && $refs.typeTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
|
|
|
|
+<!-- <el-button v-if="hasPermission('knowledgeShare:InfoList:del')" size="primary" icon="el-icon-delete" @click="del()" :disabled="$refs.typeTable && $refs.typeTable.getCheckboxRecords().length === 0" plain>删除</el-button>-->
|
|
</template>
|
|
</template>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
|
|
|
|
@@ -51,22 +51,22 @@
|
|
<vxe-column type="seq" width="40"></vxe-column>
|
|
<vxe-column type="seq" width="40"></vxe-column>
|
|
<vxe-column type="checkbox" width="60" ></vxe-column>
|
|
<vxe-column type="checkbox" width="60" ></vxe-column>
|
|
|
|
|
|
- <vxe-column title="主题" field="title" align="left">
|
|
|
|
|
|
+ <vxe-column title="主题" field="title" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('knowledgeShare:InfoList:view')" @click="view(scope.row.id)">{{scope.row.title}}</el-link>
|
|
<el-link type="primary" :underline="false" v-if="hasPermission('knowledgeShare:InfoList:view')" @click="view(scope.row.id)">{{scope.row.title}}</el-link>
|
|
<el-link type="primary" :underline="false" v-else-if="hasPermission('knowledgeShare:InfoList:view')" @click="view(scope.row.id)">{{scope.row.title}}</el-link>
|
|
<el-link type="primary" :underline="false" v-else-if="hasPermission('knowledgeShare:InfoList:view')" @click="view(scope.row.id)">{{scope.row.title}}</el-link>
|
|
<span v-else>{{scope.row.title}}</span>
|
|
<span v-else>{{scope.row.title}}</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column width="150" title="发帖人" field="createName" align="left"></vxe-column>
|
|
|
|
- <vxe-column width="200" title="发帖时间" field="createTime"></vxe-column>
|
|
|
|
- <vxe-column width="100" title="阅读量" field="visitNum"></vxe-column>
|
|
|
|
- <vxe-column width="100" title="回复量" field="commentNum"></vxe-column>
|
|
|
|
|
|
+ <vxe-column width="150" title="发帖人" field="createName" align="center"></vxe-column>
|
|
|
|
+ <vxe-column width="200" title="发帖时间" field="createTime" align="center"></vxe-column>
|
|
|
|
+ <vxe-column width="100" title="阅读量" field="visitNum" align="center"></vxe-column>
|
|
|
|
+ <vxe-column width="100" title="回复量" field="commentNum" align="center"></vxe-column>
|
|
|
|
|
|
<vxe-column title="操作" width="230px" fixed="right" align="center">
|
|
<vxe-column title="操作" width="230px" fixed="right" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button v-if="hasPermission('knowledgeShare:InfoList:edit') && (create === scope.row.createName)" type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
- <el-button v-if="hasPermission('knowledgeShare:InfoList:del') && (create === scope.row.createName || isAdmin)" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('knowledgeShare:InfoList:edit') && (create === scope.row.createName)" type="text" size="primary" @click="edit(scope.row.id)">修改</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('knowledgeShare:InfoList:del') && (create === scope.row.createName || isAdmin)" type="text" size="primary" @click="del(scope.row.id)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|