Browse Source

跳转样式和表格宽度

ZaiZai 2 years ago
parent
commit
46a83ba1f2
3 changed files with 15 additions and 9 deletions
  1. 10 4
      src/styles/app/theme.scss
  2. 4 4
      src/views/file/collection.vue
  3. 1 1
      src/views/file/records.vue

+ 10 - 4
src/styles/app/theme.scss

@@ -135,10 +135,16 @@ html.dark {
         --el-border: var(--el-border-width) var(--el-border-style) var(--el-color-primary);
     }
     //分页
-    .card-page-box .el-pagination.is-background .btn-next,
-    .card-page-box .el-pagination.is-background .btn-prev,
-    .card-page-box .el-pagination.is-background .el-pager li {
-        border: 1px solid #646363;
+    .card-page-box {
+        .el-pagination {
+            --el-pagination-hover-color: white;
+            --el-pagination-button-bg-color: var(--el-color-primary-light-5);
+        }
+        .el-pagination.is-background .btn-next,
+        .el-pagination.is-background .btn-prev,
+        .el-pagination.is-background .el-pager li {
+            border: 1px solid #646363;
+        }
     }
     //开关
     .hc-new-switch {

+ 4 - 4
src/views/file/collection.vue

@@ -562,7 +562,7 @@ const tableColumn = ref([])
 const setTableColumns = () => {
     if (isBuiltDrawing.value === 1) {
         tableColumn.value = [
-            {key:'fileNumber', name: '文件编号', width: 100},
+            {key:'fileNumber', name: '文件编号', width: 100, autoWidth: true},
             {key:'fileName', name: '文件名称'},
             {key:'filePage', name: '文件页数', width: 120},
             {key:'sheetType', name: '图幅', width: 110},
@@ -571,19 +571,19 @@ const setTableColumns = () => {
             {key:'citeChangeNumber', name: '引用变更令编号', width: 110},
             {key:'isCertificationValue', name: '认证状态', width: 100},
             {key:'isApprovalValue', name: '状态', width: 100},
-            {key:'fileTime', name: '文件时间', width: 120},
+            {key:'fileTime', name: '文件时间', width: 120, autoWidth: true},
             {key:'dutyUser', name: '责任者', width: 140}
         ]
         sheetTypeStatus()
         sheetSourceStatus()
     } else {
         tableColumn.value = [
-            {key:'fileNumber', name: '文件编号', width: 100},
+            {key:'fileNumber', name: '文件编号', width: 100, autoWidth: true},
             {key:'fileName', name: '文件名称'},
             {key:'filePage', name: '文件页数', width: 100},
             {key:'isCertificationValue', name: '认证状态', width: 100},
             {key:'isApprovalValue', name: '状态', width: 100},
-            {key:'fileTime', name: '文件时间', width: 120},
+            {key:'fileTime', name: '文件时间', width: 120, autoWidth: true},
             {key:'dutyUser', name: '责任者', width: 140}
         ]
     }

+ 1 - 1
src/views/file/records.vue

@@ -437,7 +437,7 @@ const setTableColumns = () => {
         {key:'storageTime', name: '保管期限', width: 100},
         {key:'pageN', name: '页数', width: 100},
         {key:'unit', name: '立卷单位', width: 140},
-        {key:'dates', name: '起止日期', width: 140}
+        {key:'dates', name: '起止日期', width: 140, autoWidth: true}
     ]
 }
 const tableData = ref([])