|
@@ -15,7 +15,9 @@
|
|
|
<div class="td">{{ item.reportId }}</div>
|
|
|
<div class="td">{{ item.reportName }}</div>
|
|
|
<div class="td">{{ item.subject }}</div>
|
|
|
- <div class="td">{{ item.eventType }}</div>
|
|
|
+ <div class="td">
|
|
|
+ <dict-tag :options="mm_event_type" :value="item.eventType" />
|
|
|
+ </div>
|
|
|
<div class="td">{{ item.summary }}</div>
|
|
|
<div class="td">{{ item.publishingUnit }}</div>
|
|
|
<div class="td">{{ item.publishDate }}</div>
|
|
@@ -36,11 +38,16 @@
|
|
|
<script setup lang="ts">
|
|
|
import { reactive } from 'vue';
|
|
|
import { fetchReports } from '@/api/knowledge/index';
|
|
|
+import { parseTime } from '@/utils/ruoyi';
|
|
|
|
|
|
const emit = defineEmits(['update:show']);
|
|
|
const closeDialog = () => {
|
|
|
emit('update:show', false);
|
|
|
};
|
|
|
+const proxy = getCurrentInstance()?.proxy;
|
|
|
+const { mm_event_type } = toRefs<any>(
|
|
|
+ proxy?.useDict('mm_event_type')
|
|
|
+);
|
|
|
const queryParams = reactive({
|
|
|
pageNum: 1,
|
|
|
pageSize: 7,
|
|
@@ -58,8 +65,12 @@ const handleChangePage = (newNum) => {
|
|
|
// getLists是获取列表数据的方法
|
|
|
const getList = async () => {
|
|
|
fetchReports(queryParams).then((res) => {
|
|
|
+ let data = res.data;
|
|
|
+ data.forEach((item) => {
|
|
|
+ item.publishDate = parseTime(item.publishDate, '{y}-{m}-{d} {h}:{i}:{s}');
|
|
|
+ });
|
|
|
total.value = res.total;
|
|
|
- tableData.value = res.data;
|
|
|
+ tableData.value = data;
|
|
|
});
|
|
|
};
|
|
|
|