提交 1dccdc24 编写于 作者: Skyeye云's avatar Skyeye云

更新

上级 e3c96a19
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -8,7 +8,10 @@
a.project_name projectName,
a.project_desc projectDesc,
a.is_share isShare,
CONVERT(a.create_time, char) createTime
CONVERT(a.create_time, char) createTime,
(SELECT COUNT(*) FROM plan_project_flow b WHERE b.project_id = a.id) childsNum,
(SELECT COUNT(*) FROM plan_project_flow b WHERE b.project_id = a.id AND b.type = '1') childsTypeOneNum,
(SELECT COUNT(*) FROM plan_project_flow b WHERE b.project_id = a.id AND b.type = '2') childsTypeTwoNum
FROM
plan_project a
WHERE 1 = 1
......
......@@ -36,6 +36,8 @@ layui.config({
return '公开分享';
}
}},
{ field:'childsTypeOneNum', width:140, title: '目录数量'},
{ field:'childsTypeTwoNum', width:140, title: '流程图数量'},
{ field: 'createTime', title: '创建时间', width: 180 },
{ title: '操作', fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
]]
......
......@@ -36,7 +36,9 @@
<script type="text/html" id="tableBar">
<a class="layui-btn layui-btn-xs" lay-event="flowChart">流程图设计</a>
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
{{# if(d.childsNum == 0){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册