Commit 4c54b1e7 authored by 罗林杰's avatar 罗林杰

修改动态

parent 95429c71
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询动态表列表
export function listOpmArticle(query) {
return request({
url: '/opmarticle/list',
method: 'get',
params: query
})
}
// 2. 查询动态表详细信息
export function getOpmArticle(businessId) {
return request({
url: '/opmarticle/detail/' + businessId,
method: 'get'
})
}
// 3. 新增动态表
export function addOpmArticle(data) {
data = Qs.stringify(data)
return request({
url: '/opmarticle/add',
method: 'post',
data: data
})
}
// 4. 修改动态表
export function updateOpmArticle(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/opmarticle/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除动态表
export function delOpmArticle(businessId) {
return request({
url: '/opmarticle/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出动态表
export function exportOpmArticle(query) {
return request({
url: '/opmarticle/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
......@@ -126,9 +126,9 @@
:data="tableList"
>
<el-table-column type="index" label="序号" width="55" />
<el-table-column label="发布人" prop="userName" />
<el-table-column label="话题" prop="leaveTitle" />
<el-table-column label="发布时间" prop="leaveDate" />
<el-table-column label="发布人" prop="createUser" />
<el-table-column label="话题" prop="topic" />
<el-table-column label="发布时间" prop="createDate" />
<el-table-column
label="操作"
width="150"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment