Explorar el Código

feat(system): 添加历史记录公共牌展示

- 在历史记录表格中添加公共牌列
- 注释掉搜索框和新增按钮的代码
- 优化代码格式,调整注释位置
fugui001 hace 5 meses
padre
commit
7e7c84bea1
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
  1. 1 1
      src/permission.ts
  2. 5 5
      src/views/system/business/history/index.vue

+ 1 - 1
src/permission.ts

@@ -19,7 +19,7 @@ const isWhiteList = (path: string) => {
 
 router.beforeEach(async (to, from, next) => {
   NProgress.start();
-/*
+  /*
   console.log('当前访问路径:', to.path);
   console.log('是否在白名单:', isWhiteList(to.path));
   console.log('是否有 token:', getToken());

+ 5 - 5
src/views/system/business/history/index.vue

@@ -46,7 +46,7 @@
       </el-scrollbar>
     </div>
 
-<!--    <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
+    <!--    <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
       <div v-show="showSearch" class="mb-[10px]">
         <el-card shadow="hover">
           <el-form ref="queryFormRef" :model="queryParams" :inline="true">
@@ -86,7 +86,7 @@
     <el-card shadow="never">
       <template #header>
         <el-row :gutter="10" class="mb8">
-<!--          <el-col :span="1.5">
+          <!--          <el-col :span="1.5">
             <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:history:add']">新增</el-button>
           </el-col>
           <el-col :span="1.5">
@@ -107,11 +107,12 @@
       </template>
 
       <el-table v-loading="loading" border :data="historyList" @selection-change="handleSelectionChange">
-<!--        <el-table-column type="selection" width="55" align="center" />-->
+        <!--        <el-table-column type="selection" width="55" align="center" />-->
         <el-table-column label="" align="center" prop="id" v-if="false" />
         <el-table-column label="事件" align="center" prop="operateText" />
+        <el-table-column label="公共牌" align="center" prop="publicBrand" />
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
-<!--          <template #default="scope">
+          <!--          <template #default="scope">
             <el-tooltip content="修改" placement="top">
               <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:history:edit']"></el-button>
             </el-tooltip>
@@ -467,4 +468,3 @@ const handleTableClick = (table: any) => {
   getList();
 };
 </script>
-