main
kgdxpr 2 years ago
parent 04b6a40177
commit dd6d9bf0cb

@ -95,7 +95,7 @@
<div class="layui-tab-item"> <div class="layui-tab-item">
<table id="group-table"></table> <table id="group-table"></table>
<script type="text/html" id="group-bar"> <script type="text/html" id="group-bar">
<button type="button" class="layui-btn layui-btn-xs layui-btn-danger"> <button type="button" class="pear-btn pear-btn-danger pear-btn-xs">
<i class="layui-icon layui-icon-delete"></i> 删除 <i class="layui-icon layui-icon-delete"></i> 删除
</button> </button>
</script> </script>
@ -221,7 +221,7 @@
{ type: 'checkbox', width: "5%" }, { type: 'checkbox', width: "5%" },
{ title: '序号', align: 'center', width: "5%", type: 'numbers' }, { title: '序号', align: 'center', width: "5%", type: 'numbers' },
{ title: '分名称', field: 'group_name', align: 'center' }, { title: '分名称', field: 'group_name', align: 'center' },
{ title: '操作', toolbar: '#group-bar',align: 'center', width: "25%" } { title: '操作', toolbar: '#group-bar', align: 'center', width: "25%" }
]], ]],
skin: 'line', skin: 'line',
defaultToolbar: [] defaultToolbar: []
@ -280,6 +280,11 @@
form.on('submit(publish)', function (data) { form.on('submit(publish)', function (data) {
var checkStatus = table.checkStatus('group-table');
var groupIds = checkStatus.data.map(function (item) {
return item.group_id;
});
var shiZhiSchool = 0; var shiZhiSchool = 0;
var shiZhiJiaoFu = 0; var shiZhiJiaoFu = 0;
var quXiaoJiaoYuJu = 0; var quXiaoJiaoYuJu = 0;
@ -298,7 +303,7 @@
} }
}); });
if (shiZhiSchool === 0 && shiZhiJiaoFu === 0 && quXiaoJiaoYuJu === 0 && Array.isArray(bureauIds) && bureauIds.length === 0) { if (shiZhiSchool === 0 && shiZhiJiaoFu === 0 && quXiaoJiaoYuJu === 0 && Array.isArray(bureauIds) && bureauIds.length === 0 && Array.isArray(groupIds) && groupIds.length === 0) {
layer.msg("请选择发布范围!", { layer.msg("请选择发布范围!", {
icon: 3, icon: 3,
time: 1500 time: 1500

Loading…
Cancel
Save