glj-代码提交

This commit is contained in:
glj 2023-05-04 15:23:00 +08:00
parent 209340dbeb
commit c81befc92e
2 changed files with 9 additions and 2 deletions

View File

@ -53,8 +53,8 @@
@selection-change=" handleSelectionChange " style="width: 100%; height: 600px;">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" />
<el-table-column v-if=" state.searchName == '1' " prop="title" label="Title"
show-overflow-tooltip></el-table-column>
<!-- <el-table-column v-if=" state.searchName == '1' " prop="title" label="Title"
show-overflow-tooltip></el-table-column> -->
<el-table-column prop="content" label="Content" show-overflow-tooltip></el-table-column>
<el-table-column prop="type" label="Type" show-overflow-tooltip>
<template #default=" scope ">
@ -69,6 +69,7 @@
<a :href=" scope.row.link " target="_blank">Read more</a>
</template>
</el-table-column>
<el-table-column prop="createTime" label="Create Time" show-overflow-tooltip sortable></el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default=" scope ">
<el-button size="small" text type="info" v-if=" scope.row.status == 0 "
@ -255,6 +256,10 @@ const getTableData = () => {
state.tableData.loading = true;
getNewsList(state.tableData.param.pageNum, state.tableData.param.pageSize, { "disasterId": state.disasterId, "isDeleted": 0, status: state.srarchType, title: state.queryTitle }, state.searchName == '1' ? true : false).then(res => {
state.tableData.data = res.records;
state.tableData.data.forEach(item => {
let date = item.createTime.slice(0, 10);
item.createTime = date;
})
state.tableData.total = res.total;
})
/* state.tableData.data = data;

View File

@ -504,6 +504,7 @@ defineExpose({
border: 1px solid #f7f7fa;
height: 52rem;
span {
display: block;
margin-bottom: 3%;
@ -548,5 +549,6 @@ defineExpose({
#map {
height: 52rem;
margin-left: 5px;
}
</style>