|
@@ -5,7 +5,14 @@
|
|
|
:column="tableColumn" :datas="tableData" :loading="tableLoaing"
|
|
|
is-new :index-style="{ width: 60 }" :is-check="isCheck" :check-style="{ width: 29 }"
|
|
|
@selection-change="tableSelection"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template #dates="{ row }">
|
|
|
+ <div v-if="row?.endDate || row?.startDate " class="content">
|
|
|
+ {{ `${splitDate(row?.startDate)}~${splitDate(row?.endDate)}` }}
|
|
|
+ </div>
|
|
|
+ <div v-else />
|
|
|
+ </template>
|
|
|
+ </HcTable>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -49,8 +56,18 @@ const tableColumn = ref([
|
|
|
{ key:'name', name: '案卷题名' },
|
|
|
{ key:'pageN', name: '总页数', width: 120 },
|
|
|
{ key:'storageTimeValue', name: '保管期限', width: 120 },
|
|
|
+ { key:'unit', name: '立卷单位', width: 120 },
|
|
|
+ { key:'dates', name: '起止日期', width: 190 },
|
|
|
{ key:'remark', name: '备注' },
|
|
|
])
|
|
|
+//截取日期
|
|
|
+const splitDate = (val)=>{
|
|
|
+ if (val) {
|
|
|
+ return val?.substring(0, 10)
|
|
|
+ } else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+}
|
|
|
//监听
|
|
|
watch(() => [
|
|
|
props.tableData,
|