chore(aikefu): 更新UI: 会话管理
This commit is contained in:
@@ -58,14 +58,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" id="statusTpl">
|
|
||||||
{{# if(d.status === 1) {
|
|
||||||
return '<span class="status-active">活跃</span>';
|
|
||||||
} else {
|
|
||||||
return '<span class="status-inactive">已结束</span>';
|
|
||||||
}}}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/html" id="barDemo">
|
<script type="text/html" id="barDemo">
|
||||||
<a class="layui-btn layui-btn-xs" lay-event="view">查看消息</a>
|
<a class="layui-btn layui-btn-xs" lay-event="view">查看消息</a>
|
||||||
<a class="layui-btn layui-btn-xs layui-btn-warning" lay-event="end">结束会话</a>
|
<a class="layui-btn layui-btn-xs layui-btn-warning" lay-event="end">结束会话</a>
|
||||||
@@ -91,7 +83,7 @@
|
|||||||
{field: 'conversation_id', title: '会话ID', width: 200, align: 'center'},
|
{field: 'conversation_id', title: '会话ID', width: 200, align: 'center'},
|
||||||
{field: 'user_id', title: '用户ID', width: 150, align: 'center'},
|
{field: 'user_id', title: '用户ID', width: 150, align: 'center'},
|
||||||
{field: 'name', title: '会话名称', width: 180, align: 'center'},
|
{field: 'name', title: '会话名称', width: 180, align: 'center'},
|
||||||
{field: 'status', title: '状态', width: 100, align: 'center', templet: '#statusTpl'},
|
{field: 'status', title: '状态', width: 100, align: 'center' },
|
||||||
{field: 'create_time', title: '创建时间', width: 180, align: 'center'},
|
{field: 'create_time', title: '创建时间', width: 180, align: 'center'},
|
||||||
{field: 'update_time', title: '更新时间', width: 180, 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'}
|
||||||
|
|||||||
Reference in New Issue
Block a user