|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
<label class="layui-form-label" style="width: 100px !important;"></span>本级填报要求:</label>
|
|
|
|
|
<div class="layui-input-block" style="margin-left: 90px !important;">
|
|
|
|
|
<textarea name="memo" placeholder="请输入填报要求" class="layui-textarea input-width"></textarea>
|
|
|
|
|
<textarea name="memo" placeholder="请输入本级填报要求" class="layui-textarea input-width"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
@ -53,7 +53,7 @@
|
|
|
|
|
class="require-star"></span>本级截止日期:</label>
|
|
|
|
|
<div class="layui-input-block" style="margin-left: 90px !important;">
|
|
|
|
|
<input type="text" class="layui-input input-width" lay-verify="required" name="deadline_time"
|
|
|
|
|
id="endDate" placeholder="请选择截止日期">
|
|
|
|
|
id="endDate" placeholder="请选择本级截止日期">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item" style="margin-bottom: 0 !important;">
|
|
|
|
@ -69,8 +69,8 @@
|
|
|
|
|
<div class="layui-tab-content">
|
|
|
|
|
|
|
|
|
|
<div class="layui-tab-item layui-show">
|
|
|
|
|
<input type="checkbox" id="xsxx" lay-skin="tag" title="下属学校">
|
|
|
|
|
<input type="checkbox" id="xsjf" lay-skin="tag" title="下属教辅单位">
|
|
|
|
|
<input type="checkbox" id="zsxx" lay-skin="tag" title="下属学校">
|
|
|
|
|
<input type="checkbox" id="szjf" lay-skin="tag" title="下属教辅单位">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="layui-tab-item">
|
|
|
|
@ -91,8 +91,8 @@
|
|
|
|
|
<div class="layui-input-inline" style="margin-left: -16px;width: 150px !important;">
|
|
|
|
|
<select id="orgTypeId" lay-filter="orgTypeId">
|
|
|
|
|
<option value="-1">全部</option>
|
|
|
|
|
<option value="9">学校</option>
|
|
|
|
|
<option value="5">教辅单位</option>
|
|
|
|
|
<option value="16">学校</option>
|
|
|
|
|
<option value="14">教辅单位</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-input-group" style="margin-left: -16px;">
|
|
|
|
@ -210,10 +210,10 @@
|
|
|
|
|
var data = res.data;
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
switch (data[i].org_type_id) {
|
|
|
|
|
case 5:
|
|
|
|
|
case 14:
|
|
|
|
|
res.data[i].org_type_name = '教辅单位';
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
case 16:
|
|
|
|
|
res.data[i].org_type_name = '学校';
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
@ -290,7 +290,7 @@
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0,
|
|
|
|
|
area: ['600px', '200px'],
|
|
|
|
|
content: './save_group.html?bureau_ids=' + bureauIds.join(",")
|
|
|
|
|
content: '../org/save_group.html?bureau_ids=' + bureauIds.join(",")
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -337,6 +337,8 @@
|
|
|
|
|
function tableReload() {
|
|
|
|
|
table.reloadData('myTable', {
|
|
|
|
|
where: {
|
|
|
|
|
query_type_id: 2,
|
|
|
|
|
exclude_self: 1,
|
|
|
|
|
org_type_id: $("#orgTypeId").val(),
|
|
|
|
|
org_name: $("#org_name").val()
|
|
|
|
|
},
|
|
|
|
@ -371,13 +373,11 @@
|
|
|
|
|
shiZhiSchool = 1;
|
|
|
|
|
} else if (checkboxText == 'szjf') {
|
|
|
|
|
shiZhiJiaoFu = 1;
|
|
|
|
|
} else if (checkboxText == 'xqjyj') {
|
|
|
|
|
quXiaoJiaoYuJu = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (shiZhiSchool === 0 && shiZhiJiaoFu === 0 && quXiaoJiaoYuJu === 0 && Array.isArray(bureauIds) && bureauIds.length === 0 && Array.isArray(groupIds) && groupIds.length === 0) {
|
|
|
|
|
if (shiZhiSchool === 0 && shiZhiJiaoFu === 0 && Array.isArray(bureauIds) && bureauIds.length === 0 && Array.isArray(groupIds) && groupIds.length === 0) {
|
|
|
|
|
layer.msg("请选择发布范围!", {
|
|
|
|
|
icon: 3,
|
|
|
|
|
time: 1500
|
|
|
|
@ -393,71 +393,40 @@
|
|
|
|
|
publishData.groupIds = groupIds.join(",");
|
|
|
|
|
publishData.deadline_time = data.field.deadline_time;
|
|
|
|
|
publishData.memo = data.field.memo;
|
|
|
|
|
|
|
|
|
|
var flag = false;
|
|
|
|
|
|
|
|
|
|
if (publishData.bureauIds.length > 0 || publishData.groupIds.length > 0) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/QingLong/collect/isExistXianQuJiaoYuJu?bureauIds=" + publishData.bureauIds + "&groupIds=" + publishData.groupIds,
|
|
|
|
|
async: false,
|
|
|
|
|
type: 'GET',
|
|
|
|
|
success: function (res) {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
flag = res.exist;
|
|
|
|
|
}
|
|
|
|
|
}, error: function (xhr, status, error) {
|
|
|
|
|
layer.msg("获取联系方式异常!", {
|
|
|
|
|
icon: 2,
|
|
|
|
|
publishData.fill_type_id = 1;
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '/QingLong/collect/publishJob',
|
|
|
|
|
type: 'post',
|
|
|
|
|
data: publishData,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.success) {
|
|
|
|
|
layer.msg("发布成功!", {
|
|
|
|
|
icon: 1,
|
|
|
|
|
time: 1000
|
|
|
|
|
}, function () {
|
|
|
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
|
|
|
parent.refresh();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(result.message, {
|
|
|
|
|
icon: 2,
|
|
|
|
|
time: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (quXiaoJiaoYuJu == 1) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (flag) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '提示',
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
area: ['475px', '300px'],
|
|
|
|
|
content: './publish_type.html'
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
publish_save(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.publish_save = function (param) {
|
|
|
|
|
publishData.fill_type_id = param;
|
|
|
|
|
console.log(publishData);
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '/QingLong/collect/publishJob',
|
|
|
|
|
type: 'post',
|
|
|
|
|
data: publishData,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.success) {
|
|
|
|
|
layer.msg("发布成功!", {
|
|
|
|
|
icon: 1,
|
|
|
|
|
time: 1000
|
|
|
|
|
}, function () {
|
|
|
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
|
|
|
parent.refresh();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(result.message, {
|
|
|
|
|
icon: 2,
|
|
|
|
|
time: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function GetQueryString(name, istop) {
|
|
|
|
|