Browse Source

知识库列表调整

sangwenwei 7 months ago
parent
commit
6c876cc92b
2 changed files with 16 additions and 16 deletions
  1. 8 8
      src/views/knowledgeShare/InfoList.vue
  2. 8 8
      src/views/knowledgeShare/TypeList.vue

+ 8 - 8
src/views/knowledgeShare/InfoList.vue

@@ -24,7 +24,7 @@
       <vxe-toolbar :refresh="{query: refreshList}" custom>
         <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: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>
       </vxe-toolbar>
 
@@ -51,22 +51,22 @@
           <vxe-column type="seq" width="40"></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">
               <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>
               <span v-else>{{scope.row.title}}</span>
             </template>
           </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">
             <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>
           </vxe-column>
         </vxe-table>

+ 8 - 8
src/views/knowledgeShare/TypeList.vue

@@ -16,7 +16,7 @@
       <vxe-toolbar :refresh="{query: refreshList}" custom>
         <template #buttons>
           <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="primary"  size="default" icon="el-icon-plus" @click="add()">新建</el-button>
-          <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="danger"   size="default" icon="el-icon-delete" @click="del()" :disabled="$refs.typeTable && $refs.typeTable.getCheckboxRecords().length === 0" plain>删除</el-button>
+<!--          <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="danger"   size="default" icon="el-icon-delete" @click="del()" :disabled="$refs.typeTable && $refs.typeTable.getCheckboxRecords().length === 0" plain>删除</el-button>-->
         </template>
       </vxe-toolbar>
       <div style="height: calc(100% - 50px)">
@@ -38,16 +38,16 @@
           <vxe-column type="seq" width="40"></vxe-column>
           <vxe-column type="checkbox" width="60" ></vxe-column>
 
-          <vxe-column title="分享类型" field="klgsType" align="left"></vxe-column>
-          <vxe-column width="200" title="分享类型key值" field="klgsKey" align="left"></vxe-column>
-          <vxe-column width="100" title="序号" field="klgsSort"></vxe-column>
-          <vxe-column width="100" title="创建人" field="createName"></vxe-column>
-          <vxe-column width="100" title="创建时间" field="createTime"></vxe-column>
+          <vxe-column title="分享类型" field="klgsType" align="center"></vxe-column>
+          <vxe-column width="200" title="分享类型key值" field="klgsKey" align="center"></vxe-column>
+          <vxe-column width="100" title="序号" field="klgsSort" align="center"></vxe-column>
+          <vxe-column width="100" title="创建人" field="createName" align="center"></vxe-column>
+          <vxe-column width="100" title="创建时间" field="createTime" align="center"></vxe-column>
 
           <vxe-column title="操作" width="230px" fixed="right" align="center">
             <template  #default="scope">
-              <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="text"  size="small" @click="edit(scope.row.id)">修改</el-button>
-              <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>
+              <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="text"  size="primary" @click="edit(scope.row.id)">修改</el-button>
+              <el-button v-if="hasPermission('knowledgeShare:TypeList:add')" type="text"   size="primary" @click="del(scope.row.id)">删除</el-button>
             </template>
           </vxe-column>
         </vxe-table>