Prechádzať zdrojové kódy

fix: 前端有效期显示 + webhook处理器 + 关联表同步

alphah 2 týždňov pred
rodič
commit
f95eec792b

+ 11 - 6
frontend/src/views/module_payment/institution/index.vue

@@ -70,10 +70,10 @@
               align="center"
             />
             <el-table-column
-              v-if="contentCols.find((col) => col.prop === 'name')?.show"
-              key="name"
+              v-if="contentCols.find((col) => col.prop === 'institution_name')?.show"
+              key="institution_name"
               label="制度名称"
-              prop="name"
+              prop="institution_name"
               min-width="150"
               show-overflow-tooltip
             />
@@ -81,10 +81,15 @@
               v-if="contentCols.find((col) => col.prop === 'valid_period')?.show"
               key="valid_period"
               label="制度有效期"
-              prop="valid_period"
               min-width="150"
               show-overflow-tooltip
-            />
+            >
+              <template #default="scope">
+                {{ (scope.row.effective_start_date || '').substring(0, 10) || '-' }}
+                ~
+                {{ (scope.row.effective_end_date || '').substring(0, 10) || '长期有效' }}
+              </template>
+            </el-table-column>
             <el-table-column
               v-if="contentCols.find((col) => col.prop === 'expense_type')?.show"
               key="expense_type"
@@ -286,7 +291,7 @@ const contentCols = reactive<
 >([
   { prop: "selection", label: "选择框", show: false },
   { prop: "index", label: "序号", show: true },
-  { prop: "name", label: "制度名称", show: true },
+  { prop: "institution_name", label: "制度名称", show: true },
   { prop: "valid_period", label: "制度有效期", show: true },
   { prop: "expense_type", label: "费用类型", show: true },
   { prop: "status", label: "制度状态", show: true },