chore(aikefu): 更新UI: 会话管理
This commit is contained in:
@@ -232,7 +232,14 @@ class Kefu extends BaseShop
|
|||||||
}
|
}
|
||||||
|
|
||||||
$message_list = $kefu_message_model->getMessageList($condition, '*', 'create_time asc', $page, $limit);
|
$message_list = $kefu_message_model->getMessageList($condition, '*', 'create_time asc', $page, $limit);
|
||||||
|
// 适配layui table的返回格式
|
||||||
|
$result = [
|
||||||
|
'code' => 0, // layui table要求成功状态码为0
|
||||||
|
'msg' => '获取消息列表成功',
|
||||||
|
'count' => $message_list['total'], // 总记录数
|
||||||
|
'data' => $message_list['data'] // 数据列表
|
||||||
|
];
|
||||||
|
|
||||||
return $this->success('获取消息列表成功', null, $message_list);
|
return json($result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,12 +82,12 @@
|
|||||||
title: '会话管理',
|
title: '会话管理',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
cols: [[
|
cols: [[
|
||||||
{field: 'conversation_id', title: '会话ID', align: 'center'},
|
{field: 'conversation_id', title: '会话ID', width: 200, align: 'center'},
|
||||||
{field: 'user_id', title: '用户ID', align: 'center'},
|
{field: 'user_id', title: '用户ID', width: 150, align: 'center'},
|
||||||
{field: 'name', title: '会话名称', align: 'center'},
|
{field: 'name', title: '会话名称', width: 180, align: 'center'},
|
||||||
{field: 'status', title: '状态', align: 'center' },
|
{field: 'status', title: '状态', width: 100, align: 'center' },
|
||||||
{field: 'create_time', title: '创建时间', align: 'center'},
|
{field: 'create_time', title: '创建时间', width: 180, align: 'center'},
|
||||||
{field: 'update_time', title: '更新时间', align: 'center'},
|
{field: 'update_time', title: '更新时间', width: 180, align: 'center'},
|
||||||
{fixed: 'right', title: '操作', width: 200, align: 'center', toolbar: '#barDemo'}
|
{fixed: 'right', title: '操作', width: 200, align: 'center', toolbar: '#barDemo'}
|
||||||
]],
|
]],
|
||||||
page: true,
|
page: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user