gemercheung 2 years ago
parent
commit
235638203c
2 changed files with 10 additions and 8 deletions
  1. 7 5
      src/views/notification/center.vue
  2. 3 3
      src/views/notification/list.vue

+ 7 - 5
src/views/notification/center.vue

@@ -20,8 +20,10 @@
       </template>
 
       <template #periodTime="{ record }">
-        <Time :value="record.startTime" mode="datetime" /> 到
-        <Time :value="record.endTime" mode="datetime" />
+        <span v-if="record.startTime?.length && record.endTime?.length">
+          <Time :value="record.startTime" mode="datetime" /> 到
+          <Time :value="record.endTime" mode="datetime" />
+        </span>
       </template>
 
       <template #createTime="{ record }">
@@ -53,13 +55,13 @@
       const [registerAddModal, { openModal: openAddModal }] = useModal();
       const columns: BasicColumn[] = [
         {
-          title: 'ID',
+          title: '序列',
           dataIndex: 'id',
           fixed: 'left',
           width: 60,
         },
         {
-          title: '名称',
+          title: '标题',
           dataIndex: 'title',
           // sorter: true,
           width: 160,
@@ -99,7 +101,7 @@
         schemas: [
           {
             field: 'title',
-            label: '名称',
+            label: '标题',
             component: 'Input',
             componentProps: {
               maxLength: 100,

+ 3 - 3
src/views/notification/list.vue

@@ -83,13 +83,13 @@
       const [registerAddModal, { openModal: openAddModal }] = useModal();
       const columns: BasicColumn[] = [
         {
-          title: 'ID',
+          title: '序列',
           dataIndex: 'id',
           fixed: 'left',
           width: 60,
         },
         {
-          title: '名称',
+          title: '标题',
           dataIndex: 'title',
           // sorter: true,
           width: 160,
@@ -129,7 +129,7 @@
         schemas: [
           {
             field: 'title',
-            label: '名称',
+            label: '标题',
             component: 'Input',
             componentProps: {
               maxLength: 100,