|
|
|
@ -95,7 +95,7 @@
|
|
|
|
|
<div class="layui-tab-item">
|
|
|
|
|
<table id="group-table"></table>
|
|
|
|
|
<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> 删除
|
|
|
|
|
</button>
|
|
|
|
|
</script>
|
|
|
|
@ -221,7 +221,7 @@
|
|
|
|
|
{ type: 'checkbox', width: "5%" },
|
|
|
|
|
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
|
|
|
|
{ title: '分名称', field: 'group_name', align: 'center' },
|
|
|
|
|
{ title: '操作', toolbar: '#group-bar',align: 'center', width: "25%" }
|
|
|
|
|
{ title: '操作', toolbar: '#group-bar', align: 'center', width: "25%" }
|
|
|
|
|
]],
|
|
|
|
|
skin: 'line',
|
|
|
|
|
defaultToolbar: []
|
|
|
|
@ -280,6 +280,11 @@
|
|
|
|
|
|
|
|
|
|
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 shiZhiJiaoFu = 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("请选择发布范围!", {
|
|
|
|
|
icon: 3,
|
|
|
|
|
time: 1500
|
|
|
|
|