学校周边重点人员
涉及师生安全的案(事)件 以上两项内容与学校绑定
This commit is contained in:
parent
fc7a3eaf64
commit
9bdbed5175
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.bos.schoolkey;
|
||||
public class SchoolKeyBO {
|
||||
|
||||
private String schoolKeyId;
|
||||
private String schoolId;
|
||||
private String baseId;
|
||||
private String degreeOfHarm;
|
||||
private String degreeOfHarmName;
|
||||
@ -25,6 +26,14 @@ public class SchoolKeyBO {
|
||||
this.schoolKeyId = schoolKeyId;
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getBaseId() {
|
||||
return baseId == null ? "" : baseId.trim();
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.bos.stuteasafe;
|
||||
public class StuTeaSafeBO {
|
||||
|
||||
private String stuTeaSafeId;
|
||||
private String schoolId;
|
||||
private String caseCode;
|
||||
private String caseName;
|
||||
private String happenTime;
|
||||
@ -41,6 +42,14 @@ public class StuTeaSafeBO {
|
||||
this.stuTeaSafeId = stuTeaSafeId;
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getCaseCode() {
|
||||
return caseCode == null ? "" : caseCode.trim();
|
||||
}
|
||||
|
@ -16,6 +16,8 @@ public class SchoolKeyDTO {
|
||||
|
||||
@ApiModelProperty(name = "schoolKeyId", value = "主键UUID")
|
||||
private String schoolKeyId;
|
||||
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||
private String schoolId;
|
||||
@ApiModelProperty(name = "baseId", value = "基础人员信息表ID")
|
||||
private String baseId;
|
||||
@ApiModelProperty(name = "degreeOfHarm", value = "危害程度字典表ID")
|
||||
@ -35,6 +37,14 @@ public class SchoolKeyDTO {
|
||||
this.schoolKeyId = schoolKeyId;
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getBaseId() {
|
||||
return baseId == null ? "" : baseId.trim();
|
||||
}
|
||||
|
@ -16,6 +16,8 @@ public class StuTeaSafeDTO {
|
||||
|
||||
@ApiModelProperty(name = "stuTeaSafeId", value = "主键UUID")
|
||||
private String stuTeaSafeId;
|
||||
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||
private String schoolId;
|
||||
@ApiModelProperty(name = "caseCode", value = "案(事)件编号")
|
||||
private String caseCode;
|
||||
@ApiModelProperty(name = "caseName", value = "案(事)件名称")
|
||||
@ -59,6 +61,14 @@ public class StuTeaSafeDTO {
|
||||
@ApiModelProperty(name = "caseSolve", value = "案件侦破情况")
|
||||
private String caseSolve;
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getStuTeaSafeId() {
|
||||
return stuTeaSafeId == null ? "" : stuTeaSafeId.trim();
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.pos.schoolkey;
|
||||
public class SchoolKeyPO {
|
||||
|
||||
private String schoolKeyId;
|
||||
private String schoolId;
|
||||
private String baseId;
|
||||
private String degreeOfHarm;
|
||||
private String degreeOfHarmName;
|
||||
@ -25,6 +26,14 @@ public class SchoolKeyPO {
|
||||
this.schoolKeyId = schoolKeyId;
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getBaseId() {
|
||||
return baseId == null ? "" : baseId.trim();
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.pos.stuteasafe;
|
||||
public class StuTeaSafePO {
|
||||
|
||||
private String stuTeaSafeId;
|
||||
private String schoolId;
|
||||
private String caseCode;
|
||||
private String caseName;
|
||||
private String happenTime;
|
||||
@ -41,6 +42,14 @@ public class StuTeaSafePO {
|
||||
this.stuTeaSafeId = stuTeaSafeId;
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getCaseCode() {
|
||||
return caseCode == null ? "" : caseCode.trim();
|
||||
}
|
||||
|
@ -16,6 +16,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel
|
||||
public class SchoolKeyVO {
|
||||
|
||||
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||
private String schoolId;
|
||||
@ApiModelProperty(name = "baseId", value = "基础人员信息表ID")
|
||||
private String baseId;
|
||||
@ApiModelProperty(name = "degreeOfHarm", value = "危害程度字典表ID")
|
||||
@ -28,6 +30,14 @@ public class SchoolKeyVO {
|
||||
@CheckNumberAnnotation(name = "是否关注")
|
||||
private Integer isFollow;
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getBaseId() {
|
||||
return baseId == null ? "" : baseId.trim();
|
||||
}
|
||||
|
@ -16,6 +16,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel
|
||||
public class StuTeaSafeVO {
|
||||
|
||||
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||
private String schoolId;
|
||||
@ApiModelProperty(name = "caseCode", value = "案(事)件编号")
|
||||
private String caseCode;
|
||||
@ApiModelProperty(name = "caseName", value = "案(事)件名称")
|
||||
@ -64,6 +66,14 @@ public class StuTeaSafeVO {
|
||||
@ApiModelProperty(name = "caseSolve", value = "案件侦破情况")
|
||||
private String caseSolve;
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId;
|
||||
}
|
||||
|
||||
public String getCaseCode() {
|
||||
return caseCode == null ? "" : caseCode.trim();
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
<resultMap id="schoolKeyDTO" type="cn.com.tenlion.systembase.pojo.dtos.schoolkey.SchoolKeyDTO">
|
||||
<result column="school_key_id" property="schoolKeyId"/>
|
||||
<result column="school_id" property="schoolId"/>
|
||||
<result column="base_id" property="baseId"/>
|
||||
<result column="degree_of_harm" property="degreeOfHarm"/>
|
||||
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
||||
@ -13,6 +14,7 @@
|
||||
|
||||
<resultMap id="schoolKeyBO" type="cn.com.tenlion.systembase.pojo.bos.schoolkey.SchoolKeyBO">
|
||||
<result column="school_key_id" property="schoolKeyId"/>
|
||||
<result column="school_id" property="schoolId"/>
|
||||
<result column="base_id" property="baseId"/>
|
||||
<result column="degree_of_harm" property="degreeOfHarm"/>
|
||||
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
||||
@ -22,6 +24,7 @@
|
||||
|
||||
<resultMap id="schoolKeyPO" type="cn.com.tenlion.systembase.pojo.pos.schoolkey.SchoolKeyPO">
|
||||
<result column="school_key_id" property="schoolKeyId"/>
|
||||
<result column="school_id" property="schoolId"/>
|
||||
<result column="base_id" property="baseId"/>
|
||||
<result column="degree_of_harm" property="degreeOfHarm"/>
|
||||
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
||||
@ -38,6 +41,7 @@
|
||||
degree_of_harm_name,
|
||||
degree_of_harm_code,
|
||||
is_follow,
|
||||
school_id,
|
||||
creator,
|
||||
gmt_create,
|
||||
modifier,
|
||||
@ -50,6 +54,7 @@
|
||||
#{degreeOfHarmName},
|
||||
#{degreeOfHarmCode},
|
||||
#{isFollow},
|
||||
#{schoolId},
|
||||
#{creator},
|
||||
#{gmtCreate},
|
||||
#{modifier},
|
||||
@ -89,6 +94,9 @@
|
||||
UPDATE
|
||||
data_school_key
|
||||
SET
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
school_id = #{schoolId},
|
||||
</if>
|
||||
<if test="baseId != null and baseId != ''">
|
||||
base_id = #{baseId},
|
||||
</if>
|
||||
@ -115,6 +123,7 @@
|
||||
<select id="get" parameterType="map" resultMap="schoolKeyDTO">
|
||||
SELECT
|
||||
t1.base_id,
|
||||
t1.school_id,
|
||||
t1.degree_of_harm,
|
||||
t1.degree_of_harm_name,
|
||||
t1.degree_of_harm_code,
|
||||
@ -134,6 +143,7 @@
|
||||
<select id="getBO" parameterType="map" resultMap="schoolKeyBO">
|
||||
SELECT
|
||||
t1.school_key_id,
|
||||
t1.school_id,
|
||||
t1.base_id,
|
||||
t1.degree_of_harm,
|
||||
t1.degree_of_harm_name,
|
||||
@ -153,6 +163,7 @@
|
||||
<select id="getPO" parameterType="map" resultMap="schoolKeyPO">
|
||||
SELECT
|
||||
t1.school_key_id,
|
||||
t1.school_id,
|
||||
t1.base_id,
|
||||
t1.degree_of_harm,
|
||||
t1.degree_of_harm_name,
|
||||
@ -172,6 +183,7 @@
|
||||
<select id="list" parameterType="map" resultMap="schoolKeyDTO">
|
||||
SELECT
|
||||
t1.school_key_id,
|
||||
t1.school_id,
|
||||
t1.base_id,
|
||||
t1.degree_of_harm,
|
||||
t1.degree_of_harm_name,
|
||||
@ -188,6 +200,10 @@
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
AND
|
||||
t1.school_id = #{schoolId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
@ -209,6 +225,7 @@
|
||||
<select id="listBO" parameterType="map" resultMap="schoolKeyBO">
|
||||
SELECT
|
||||
t1.school_key_id,
|
||||
t1.school_id,
|
||||
t1.base_id,
|
||||
t1.degree_of_harm,
|
||||
t1.degree_of_harm_name,
|
||||
@ -224,6 +241,10 @@
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
AND
|
||||
t1.school_id = #{schoolId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
@ -245,6 +266,7 @@
|
||||
<select id="listPO" parameterType="map" resultMap="schoolKeyPO">
|
||||
SELECT
|
||||
t1.school_key_id,
|
||||
t1.school_id,
|
||||
t1.base_id,
|
||||
t1.degree_of_harm,
|
||||
t1.degree_of_harm_name,
|
||||
@ -260,6 +282,10 @@
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
AND
|
||||
t1.school_id = #{schoolId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
<resultMap id="stuTeaSafeDTO" type="cn.com.tenlion.systembase.pojo.dtos.stuteasafe.StuTeaSafeDTO">
|
||||
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
||||
<result column="school_id" property="schoolId"/>
|
||||
<result column="case_code" property="caseCode"/>
|
||||
<result column="case_name" property="caseName"/>
|
||||
<result column="happen_time" property="happenTime"/>
|
||||
@ -29,6 +30,7 @@
|
||||
|
||||
<resultMap id="stuTeaSafeBO" type="cn.com.tenlion.systembase.pojo.bos.stuteasafe.StuTeaSafeBO">
|
||||
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
||||
<result column="school_id" property="schoolId"/>
|
||||
<result column="case_code" property="caseCode"/>
|
||||
<result column="case_name" property="caseName"/>
|
||||
<result column="happen_time" property="happenTime"/>
|
||||
@ -54,6 +56,7 @@
|
||||
|
||||
<resultMap id="stuTeaSafePO" type="cn.com.tenlion.systembase.pojo.pos.stuteasafe.StuTeaSafePO">
|
||||
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
||||
<result column="school_id" property="schoolId"/>
|
||||
<result column="case_code" property="caseCode"/>
|
||||
<result column="case_name" property="caseName"/>
|
||||
<result column="happen_time" property="happenTime"/>
|
||||
@ -81,6 +84,7 @@
|
||||
<insert id="save" parameterType="map">
|
||||
INSERT INTO data_stu_tea_safe(
|
||||
stu_tea_safe_id,
|
||||
school_id,
|
||||
case_code,
|
||||
case_name,
|
||||
happen_time,
|
||||
@ -109,6 +113,7 @@
|
||||
is_delete
|
||||
) VALUES(
|
||||
#{stuTeaSafeId},
|
||||
#{schoolId},
|
||||
#{caseCode},
|
||||
#{caseName},
|
||||
#{happenTime},
|
||||
@ -169,6 +174,9 @@
|
||||
UPDATE
|
||||
data_stu_tea_safe
|
||||
SET
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
school_id = #{schoolId},
|
||||
</if>
|
||||
<if test="caseCode != null and caseCode != ''">
|
||||
case_code = #{caseCode},
|
||||
</if>
|
||||
@ -242,6 +250,7 @@
|
||||
<!-- 涉及师生安全的案(事)件详情 -->
|
||||
<select id="get" parameterType="map" resultMap="stuTeaSafeDTO">
|
||||
SELECT
|
||||
t1.school_id,
|
||||
t1.case_code,
|
||||
t1.case_name,
|
||||
t1.happen_time,
|
||||
@ -278,6 +287,7 @@
|
||||
<select id="getBO" parameterType="map" resultMap="stuTeaSafeBO">
|
||||
SELECT
|
||||
t1.stu_tea_safe_id,
|
||||
t1.school_id,
|
||||
t1.case_code,
|
||||
t1.case_name,
|
||||
t1.happen_time,
|
||||
@ -313,6 +323,7 @@
|
||||
<select id="getPO" parameterType="map" resultMap="stuTeaSafePO">
|
||||
SELECT
|
||||
t1.stu_tea_safe_id,
|
||||
t1.school_id,
|
||||
t1.case_code,
|
||||
t1.case_name,
|
||||
t1.happen_time,
|
||||
@ -348,6 +359,7 @@
|
||||
<select id="list" parameterType="map" resultMap="stuTeaSafeDTO">
|
||||
SELECT
|
||||
t1.stu_tea_safe_id,
|
||||
t1.school_id,
|
||||
t1.case_code,
|
||||
t1.case_name,
|
||||
t1.happen_time,
|
||||
@ -380,6 +392,10 @@
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
AND
|
||||
t1.school_id = #{schoolId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
@ -401,6 +417,7 @@
|
||||
<select id="listBO" parameterType="map" resultMap="stuTeaSafeBO">
|
||||
SELECT
|
||||
t1.stu_tea_safe_id,
|
||||
t1.school_id,
|
||||
t1.case_code,
|
||||
t1.case_name,
|
||||
t1.happen_time,
|
||||
@ -432,6 +449,10 @@
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
AND
|
||||
t1.school_id = #{schoolId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
@ -453,6 +474,7 @@
|
||||
<select id="listPO" parameterType="map" resultMap="stuTeaSafePO">
|
||||
SELECT
|
||||
t1.stu_tea_safe_id,
|
||||
t1.school_id,
|
||||
t1.case_code,
|
||||
t1.case_name,
|
||||
t1.happen_time,
|
||||
@ -484,6 +506,10 @@
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
AND
|
||||
t1.school_id = #{schoolId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
|
@ -247,6 +247,18 @@
|
||||
}
|
||||
return rowData;
|
||||
}
|
||||
},
|
||||
{field: 'schoolKey', fixed: 'right', width: 150, title: '周边重点人员', align:'center',
|
||||
templet: function(row) {
|
||||
var rowData = '<a class="layui-btn layui-btn-xs" lay-event="schoolKey">添加重点人员</a>';
|
||||
return rowData;
|
||||
}
|
||||
},
|
||||
{field: 'stuteasafe', fixed: 'right', width: 150, title: '涉及师生安全案件', align:'center',
|
||||
templet: function(row) {
|
||||
var rowData = '<a class="layui-btn layui-btn-xs" lay-event="stuteasafe">添加案件</a>';
|
||||
return rowData;
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
@ -261,6 +273,46 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 巡查记录
|
||||
function schoolKey(data) {
|
||||
top.dialog.open({
|
||||
url: top.restAjax.path('route/schoolkey/list?schoolId={schoolId}', [data.schoolId]),
|
||||
title: "巡查记录列表",
|
||||
width: '80%',
|
||||
height: '80%',
|
||||
onClose: function() {
|
||||
reloadTable();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 巡查记录
|
||||
function stuteasafe(data) {
|
||||
top.dialog.open({
|
||||
url: top.restAjax.path('route/stuteasafe/list?schoolId={schoolId}', [data.schoolId]),
|
||||
title: "巡查记录列表",
|
||||
width: '80%',
|
||||
height: '80%',
|
||||
onClose: function() {
|
||||
reloadTable();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//监听行单击事件
|
||||
table.on('tool(dataTable)', function(obj){
|
||||
var data = obj.data;
|
||||
console.log(data)
|
||||
// 周边重点人员
|
||||
if('schoolKey' == obj.event) {
|
||||
schoolKey(data);
|
||||
}else if('stuteasafe' == obj.event) {
|
||||
stuteasafe(data);
|
||||
}
|
||||
});
|
||||
|
||||
// 重载表格
|
||||
function reloadTable(currentPage) {
|
||||
table.reload('dataTable', {
|
||||
|
@ -65,14 +65,15 @@
|
||||
var laydate = layui.laydate;
|
||||
var common = layui.common;
|
||||
var resizeTimeout = null;
|
||||
var tableUrl = 'api/schoolkey/listpage';
|
||||
var tableUrl = 'api/schoolkey/listpage?schoolId={schoolId}';
|
||||
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
elem: '#dataTable',
|
||||
id: 'dataTable',
|
||||
url: top.restAjax.path(tableUrl, []),
|
||||
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||
width: admin.screen() > 1 ? '100%' : '',
|
||||
height: $win.height() - 90,
|
||||
limit: 20,
|
||||
@ -129,7 +130,7 @@
|
||||
// 重载表格
|
||||
function reloadTable(currentPage) {
|
||||
table.reload('dataTable', {
|
||||
url: top.restAjax.path(tableUrl, []),
|
||||
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||
where: {
|
||||
keywords: $('#keywords').val(),
|
||||
startTime: $('#startTime').val(),
|
||||
@ -201,7 +202,7 @@
|
||||
area: ['100%', '100%'],
|
||||
shadeClose: true,
|
||||
anim: 2,
|
||||
content: top.restAjax.path('route/schoolkey/save', []),
|
||||
content: top.restAjax.path('route/schoolkey/save?schoolId={schoolId}', [schoolId]),
|
||||
end: function() {
|
||||
reloadTable();
|
||||
}
|
||||
|
@ -137,6 +137,7 @@
|
||||
var wangEditor = window.wangEditor;
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||
|
||||
$(document).on('click','#search',function(){
|
||||
queryBasePopulationInfo($('#idCardNumber').val());
|
||||
@ -232,6 +233,7 @@
|
||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||
top.dialog.close(index);
|
||||
var loadLayerIndex;
|
||||
formData.field['schoolId'] = schoolId;
|
||||
top.restAjax.post(top.restAjax.path('api/schoolkey/save', []), formData.field, null, function(code, data) {
|
||||
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
||||
time: 0,
|
||||
|
@ -65,14 +65,15 @@
|
||||
var laydate = layui.laydate;
|
||||
var common = layui.common;
|
||||
var resizeTimeout = null;
|
||||
var tableUrl = 'api/stuteasafe/listpage';
|
||||
var tableUrl = 'api/stuteasafe/listpage?schoolId={schoolId}';
|
||||
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
table.render({
|
||||
elem: '#dataTable',
|
||||
id: 'dataTable',
|
||||
url: top.restAjax.path(tableUrl, []),
|
||||
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||
width: admin.screen() > 1 ? '100%' : '',
|
||||
height: $win.height() - 90,
|
||||
limit: 20,
|
||||
@ -264,7 +265,7 @@
|
||||
// 重载表格
|
||||
function reloadTable(currentPage) {
|
||||
table.reload('dataTable', {
|
||||
url: top.restAjax.path(tableUrl, []),
|
||||
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||
where: {
|
||||
keywords: $('#keywords').val(),
|
||||
startTime: $('#startTime').val(),
|
||||
@ -336,7 +337,7 @@
|
||||
area: ['100%', '100%'],
|
||||
shadeClose: true,
|
||||
anim: 2,
|
||||
content: top.restAjax.path('route/stuteasafe/save', []),
|
||||
content: top.restAjax.path('route/stuteasafe/save?schoolId={schoolId}', [schoolId]),
|
||||
end: function() {
|
||||
reloadTable();
|
||||
}
|
||||
|
@ -160,6 +160,7 @@
|
||||
var wangEditor = window.wangEditor;
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||
|
||||
// 初始化备注富文本
|
||||
function initCaseSituationRichText() {
|
||||
@ -342,6 +343,7 @@
|
||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||
top.dialog.close(index);
|
||||
var loadLayerIndex;
|
||||
formData.field['schoolId'] = schoolId;
|
||||
top.restAjax.post(top.restAjax.path('api/stuteasafe/save', []), formData.field, null, function(code, data) {
|
||||
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
||||
time: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user