tangning 8 mesi fa
parent
commit
0af638b6be
1 ha cambiato i file con 16 aggiunte e 10 eliminazioni
  1. 16 10
      src/views/case/list.vue

+ 16 - 10
src/views/case/list.vue

@@ -151,7 +151,7 @@
       const permissionStore = usePermissionStore();
       const { getCheckPerm } = permissionStore;
       const loading = ref(false);
-      const tableType = ref<Recordable>(0); //0看看 、1看见、2深时
+      const tableType = ref<number>(0); //0看看 、1看见、2深时
       const columns: BasicColumn[] = [
         {
           title: '标题',
@@ -162,12 +162,18 @@
           minWidth: 150,
           width: 300,
         },
-        // {
-        //   title: '场景码',
-        //   dataIndex: 'num',
-        //   ellipsis: true,
-        //   width: 180,
-        // },
+        {
+          title: '人员编号',
+          dataIndex: 'nickName',
+          ellipsis: true,
+          width: 100,
+        },
+        {
+          title: '姓名',
+          dataIndex: 'userName',
+          ellipsis: true,
+          width: 100,
+        },
         {
           title: '创建时间',
           dataIndex: 'createTime',
@@ -281,7 +287,7 @@
           ifShow: true,
           fixed: 'right',
           flag: 'ACTION',
-          width: 400,
+          width: 200,
         },
       ];
       const searchForm: Partial<FormProps> = {
@@ -310,7 +316,7 @@
       const [registerDownModal, { openModal: openDownModal }] = useModal();
       const [registerMoveModal, { openModal: openMoveModal }] = useModal();
       const [registerPowersModal, { openModal: openPowersModal }] = useModal();
-      const [registerTable, { reload }] = useTable({
+      const [registerTable, { reload, setColumns }] = useTable({
         api: caseListApi,
         title: ``,
         // titleHelpMessage: ['已启用expandRowByClick', '已启用stopButtonPropagation'],
@@ -337,7 +343,7 @@
         },               
         canResize: true,
       });
-      function changeTable(val: string) {
+      function changeTable(val: number) {
         tableType.value = val;
         reload();
       }