|
|
|
@ -75,6 +75,11 @@ |
|
|
|
|
</el-form> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" min-width="100" fixed="right" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" size="small" @click="handleDelete(scope.row.notice_id, scope.$index)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="block"> |
|
|
|
|
<el-pagination |
|
|
|
@ -163,9 +168,10 @@ |
|
|
|
|
// +---------------------------------------------------------------------- |
|
|
|
|
// | Author: CRMEB Team <admin@crmeb.com> |
|
|
|
|
// +---------------------------------------------------------------------- |
|
|
|
|
import { stationNewsList, createNotice } from '@/api/system' |
|
|
|
|
import {stationNewsList, createNotice, deleteNotice} from '@/api/system' |
|
|
|
|
import { merCategoryListApi, merSelectApi } from '@/api/product' |
|
|
|
|
import { fromList } from "@/libs/constants.js"; |
|
|
|
|
import {expressDeleteApi} from "@/api/freight"; |
|
|
|
|
export default { |
|
|
|
|
name: 'SystemLog', |
|
|
|
|
data() { |
|
|
|
@ -246,6 +252,17 @@ export default { |
|
|
|
|
this.timeVal = []; |
|
|
|
|
this.getList(1); |
|
|
|
|
}, |
|
|
|
|
// 删除 |
|
|
|
|
handleDelete(id, idx) { |
|
|
|
|
this.$modalSure().then(() => { |
|
|
|
|
deleteNotice({notice_id: id}).then(({ message }) => { |
|
|
|
|
this.$message.success(message) |
|
|
|
|
this.tableData.data.splice(idx, 1) |
|
|
|
|
}).catch(({ message }) => { |
|
|
|
|
this.$message.error(message) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 列表 |
|
|
|
|
getList(num) { |
|
|
|
|
this.listLoading = true |
|
|
|
|