glj-代码提交
This commit is contained in:
parent
209340dbeb
commit
c81befc92e
|
@ -53,8 +53,8 @@
|
||||||
@selection-change=" handleSelectionChange " style="width: 100%; height: 600px;">
|
@selection-change=" handleSelectionChange " style="width: 100%; height: 600px;">
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column v-if=" state.searchName == '1' " prop="title" label="Title"
|
<!-- <el-table-column v-if=" state.searchName == '1' " prop="title" label="Title"
|
||||||
show-overflow-tooltip></el-table-column>
|
show-overflow-tooltip></el-table-column> -->
|
||||||
<el-table-column prop="content" label="Content" 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>
|
<el-table-column prop="type" label="Type" show-overflow-tooltip>
|
||||||
<template #default=" scope ">
|
<template #default=" scope ">
|
||||||
|
@ -69,6 +69,7 @@
|
||||||
<a :href=" scope.row.link " target="_blank">Read more</a>
|
<a :href=" scope.row.link " target="_blank">Read more</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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>
|
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
|
||||||
<template #default=" scope ">
|
<template #default=" scope ">
|
||||||
<el-button size="small" text type="info" v-if=" scope.row.status == 0 "
|
<el-button size="small" text type="info" v-if=" scope.row.status == 0 "
|
||||||
|
@ -255,6 +256,10 @@ const getTableData = () => {
|
||||||
state.tableData.loading = true;
|
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 => {
|
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 = res.records;
|
||||||
|
state.tableData.data.forEach(item => {
|
||||||
|
let date = item.createTime.slice(0, 10);
|
||||||
|
item.createTime = date;
|
||||||
|
})
|
||||||
state.tableData.total = res.total;
|
state.tableData.total = res.total;
|
||||||
})
|
})
|
||||||
/* state.tableData.data = data;
|
/* state.tableData.data = data;
|
||||||
|
|
|
@ -504,6 +504,7 @@ defineExpose({
|
||||||
border: 1px solid #f7f7fa;
|
border: 1px solid #f7f7fa;
|
||||||
height: 52rem;
|
height: 52rem;
|
||||||
|
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 3%;
|
margin-bottom: 3%;
|
||||||
|
@ -548,5 +549,6 @@ defineExpose({
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
height: 52rem;
|
height: 52rem;
|
||||||
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue