事件列表新增创建时间
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-10-18 13:33:27 +08:00
parent 6288770c26
commit bc15ac1cd3
1 changed files with 23 additions and 3 deletions

View File

@ -84,6 +84,12 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
:label="$t('system:event:eventCreateTime')"
prop="CreateTime"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column <el-table-column
:label="$t('common:action:action')" :label="$t('common:action:action')"
fixed="right" fixed="right"
@ -91,6 +97,9 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="view(scope.row)">
{{ $t("common:button:view") }}
</el-button>
<el-button size="mini" type="text" @click="rePublish(scope.row)"> <el-button size="mini" type="text" @click="rePublish(scope.row)">
{{ $t("system:event:button:rePublish") }} {{ $t("system:event:button:rePublish") }}
</el-button> </el-button>
@ -106,12 +115,17 @@
/> />
</div> </div>
</div> </div>
<base-model v-if="model_cfg.visible" :config="model_cfg">
<template slot="dialog-body">
<div v-html="info"></div>
</template>
</base-model>
</div> </div>
</template> </template>
<script> <script>
import { getEventStoreRecordList, rePublishEvent } from "@/api/admin"; import { getEventStoreRecordList, rePublishEvent } from "@/api/admin";
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import moment from "moment"; import BaseModel from "@/components/BaseModel";
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
EventState: null, EventState: null,
@ -124,16 +138,17 @@ const searchDataDefault = () => {
}; };
export default { export default {
name: "event", name: "event",
components: { Pagination }, components: { Pagination, BaseModel },
data() { data() {
return { return {
moment,
searchData: searchDataDefault(), searchData: searchDataDefault(),
list: [], list: [],
total: 0, total: 0,
loading: false, loading: false,
PublishVersionList: [], PublishVersionList: [],
selectTableList: [], selectTableList: [],
model_cfg: { visible: false, title: "", width: "500px" },
info: null,
}; };
}, },
mounted() { mounted() {
@ -189,6 +204,11 @@ export default {
handleSelectionChange(val) { handleSelectionChange(val) {
this.selectTableList = val; this.selectTableList = val;
}, },
//
view(row) {
this.info = row.EventData;
this.model_cfg.visible = true;
},
}, },
}; };
</script> </script>