|
|
|
@ -36,17 +36,29 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-toolbar">
|
|
|
|
|
<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
|
|
|
|
|
<i class="layui-icon layui-icon-add-1"></i>
|
|
|
|
|
新增
|
|
|
|
|
</button>
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
|
|
|
|
|
<i class="layui-icon layui-icon-add-1"></i>
|
|
|
|
|
新增
|
|
|
|
|
</button>
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/html" id="person_count_templet">
|
|
|
|
|
{{# if(d.is_finish == 0){ }}
|
|
|
|
|
<span>--</span>
|
|
|
|
|
{{# } else { }}
|
|
|
|
|
<span style="cursor: pointer;"><a>{{d.person_count}}</a></span>
|
|
|
|
|
{{# } }}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-bar">
|
|
|
|
|
|
|
|
|
|
{{# if(d.is_finish == 0) { }}
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" data-tool-sort="120" lay-event="chouqu"><a
|
|
|
|
|
class="woo-theme-color">抽取</a></span>
|
|
|
|
|
{{# } else { }}
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" data-tool-sort="120" lay-event="chouqu"><a
|
|
|
|
|
class="woo-theme-color">重新抽取</a></span>
|
|
|
|
|
{{# } }}
|
|
|
|
|
|
|
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" data-tool-sort="120" lay-event="remove"><a
|
|
|
|
@ -65,7 +77,7 @@
|
|
|
|
|
<script src="../../component/pear/pear.js"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
layui.use(['table', 'form', 'jquery', 'common', 'dtree', 'laytpl', 'tab'], function () {
|
|
|
|
|
layui.use(['table', 'form', 'jquery', 'common', 'dtree', 'laytpl'], function () {
|
|
|
|
|
var table = layui.table;
|
|
|
|
|
var form = layui.form;
|
|
|
|
|
var $ = layui.jquery;
|
|
|
|
@ -91,7 +103,7 @@
|
|
|
|
|
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
|
|
|
|
{ title: '名称', field: 'ys_name', align: 'center' },
|
|
|
|
|
{ title: '日期', field: 'ys_date', align: 'center', width: "20%" },
|
|
|
|
|
{ title: '专家人数', field: 'person_count', align: 'center', width: "10%" },
|
|
|
|
|
{ title: '专家人数', align: 'center', width: "10%", templet: '#person_count_templet' },
|
|
|
|
|
{ title: '状态', field: 'status_name', align: 'center', width: "20%" },
|
|
|
|
|
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "20%" }
|
|
|
|
|
]],
|
|
|
|
@ -105,10 +117,6 @@
|
|
|
|
|
} else {
|
|
|
|
|
res.data[i].status_name = '已抽取';
|
|
|
|
|
}
|
|
|
|
|
if (res.data[i].person_count === 0) {
|
|
|
|
|
res.data[i].person_count = '--';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|