|
|
|
@ -336,14 +336,13 @@
|
|
|
|
|
<label class="layui-form-label"><span class="require-star"></span>教室分类:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-inline" style="width: 230px;">
|
|
|
|
|
<select>
|
|
|
|
|
<select id="defaultSelect">
|
|
|
|
|
<option value="xx_ldjyqlhwsrshu">清洁与卫生</option>
|
|
|
|
|
<option value="xx_ldjyzyhwsrshu">整理与收纳</option>
|
|
|
|
|
<option value="xx_ldjyprwywsrshu">烹饪与营养</option>
|
|
|
|
|
<option value="xx_ldjyjyqyqsyyh">家用器具使用与维护</option>
|
|
|
|
|
<option value="xx_ldjynyscld">农业生产劳动</option>
|
|
|
|
|
<option value="xx_ldjyccgyz">传统工艺制作</option>
|
|
|
|
|
|
|
|
|
|
<option value="xx_ldjygyscld">工业生产劳动</option>
|
|
|
|
|
<option value="xx_ldjyxjstyyyy">新技术体验与应用</option>
|
|
|
|
|
<option value="xx_ldjyxdfwyld">现代服务业劳动</option>
|
|
|
|
@ -356,7 +355,7 @@
|
|
|
|
|
<label class="layui-form-label"><span class="require-star"></span>室数:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
|
<input type="text" temp="ljCount" lay-verify="required|number"
|
|
|
|
|
<input type="text" id="defaultInput" temp="ljCount" lay-verify="required|number"
|
|
|
|
|
autocomplete="off" value="0" class="layui-input input-width">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -540,7 +539,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="layui-card-header header_top">卫生室</div>
|
|
|
|
|
<div class="layui-card-body">
|
|
|
|
|
<div class="layui-row" style="margin-top: 10px;">
|
|
|
|
|
<div class="layui-row">
|
|
|
|
|
<div class="layui-col-xs4">
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
<label class="layui-form-label"><span class="require-star"></span>卫生室(室数):
|
|
|
|
@ -662,69 +661,66 @@
|
|
|
|
|
url: "/QingLong/zbdc/getSchoolCgzb",
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
|
|
|
|
if (res.hasOwnProperty('ty_gs')) {
|
|
|
|
|
form.val("myForm", {
|
|
|
|
|
"wl_cgss": res.wl_cgss
|
|
|
|
|
, "wl_cgmj": res.wl_cgmj
|
|
|
|
|
, "wl_tjss": res.wl_tjss
|
|
|
|
|
, "wl_tjmj": res.wl_tjmj
|
|
|
|
|
, "wl_yqsss": res.wl_yqsss
|
|
|
|
|
, "wl_yqsmj": res.wl_yqsmj
|
|
|
|
|
, "hx_cgss": res.hx_cgss
|
|
|
|
|
, "hx_cgmj": res.hx_cgmj
|
|
|
|
|
, "hx_tjss": res.hx_tjss
|
|
|
|
|
, "hx_tjmj": res.hx_tjmj
|
|
|
|
|
, "hx_yqsss": res.hx_yqsss
|
|
|
|
|
, "hx_yqsmj": res.hx_yqsmj
|
|
|
|
|
, "sw_cgss": res.sw_cgss
|
|
|
|
|
, "sw_cgmj": res.sw_cgmj
|
|
|
|
|
, "sw_tjss": res.sw_tjss
|
|
|
|
|
, "sw_tjmj": res.sw_tjmj
|
|
|
|
|
, "sw_yqsss": res.sw_yqsss
|
|
|
|
|
, "sw_yqsmj": res.sw_yqsmj
|
|
|
|
|
, "dljs": res.dljs
|
|
|
|
|
, "lsjs": res.lsjs
|
|
|
|
|
, "tyjsjs": res.tyjsjs
|
|
|
|
|
, "xlfds": res.xlfds
|
|
|
|
|
, "aqtyjs": res.aqtyjs
|
|
|
|
|
, "yy_jssj": res.yy_jssj
|
|
|
|
|
, "yy_mj": res.yy_mj
|
|
|
|
|
, "yy_qckjs": res.yy_qckjs
|
|
|
|
|
, "yy_qcyppz": res.yy_qcyppz
|
|
|
|
|
, "yy_qcypjs": res.yy_qcypjs
|
|
|
|
|
, "ty_gs": res.ty_gs
|
|
|
|
|
, "ty_qckjs": res.ty_qckjs
|
|
|
|
|
, "ty_qcyppz": res.ty_qcyppz
|
|
|
|
|
, "ty_qcypj": res.ty_qcypj
|
|
|
|
|
, "ms_jsss": res.ms_jsss
|
|
|
|
|
, "ms_qckjs": res.ms_qckjs
|
|
|
|
|
, "ms_qcyppz": res.ms_qcyppz
|
|
|
|
|
, "ms_qcypj": res.ms_qcypj
|
|
|
|
|
, "sfjs": res.sfjs
|
|
|
|
|
, "wsbj": res.wsbj
|
|
|
|
|
, "lj_qjywsss": res.lj_qjywsss
|
|
|
|
|
, "lj_zlysnss": res.lj_zlysnss
|
|
|
|
|
, "lj_pryyyss": res.lj_pryyyss
|
|
|
|
|
, "lj_jyqjsyywhss": res.lj_jyqjsyywhss
|
|
|
|
|
, "lj_nyscldss": res.lj_nyscldss
|
|
|
|
|
, "lj_ctgyzzss": res.lj_ctgyzzss
|
|
|
|
|
, "lj_gyscldss": res.lj_gyscldss
|
|
|
|
|
, "lj_xjstyyyyss": res.lj_xjstyyyyss
|
|
|
|
|
, "lj_xdfwyldss": res.lj_xdfwyldss
|
|
|
|
|
, "tsg_cssss": res.tsg_cssss
|
|
|
|
|
, "tsg_zztscs": res.tsg_zztscs
|
|
|
|
|
, "tsg_dztscs": res.tsg_dztscs
|
|
|
|
|
, "tsg_jsylsss": res.tsg_jsylsss
|
|
|
|
|
, "tsg_xsylsss": res.tsg_xsylsss
|
|
|
|
|
, "tsg_dzylsss": res.tsg_dzylsss
|
|
|
|
|
, "hyd_ygzjss": res.hyd_ygzjss
|
|
|
|
|
, "hyd_wgzjss": res.hyd_wgzjss
|
|
|
|
|
, "xxkx_cgss": res.xxkx_cgss
|
|
|
|
|
, "xxkx_cgmj": res.xxkx_cgmj
|
|
|
|
|
, "xxkx_yqsss": res.xxkx_yqsss
|
|
|
|
|
, "xxkx_yqsmj": res.xxkx_yqsmj
|
|
|
|
|
if (!typeof res.xx_kxsysshshu === 'undefined') {
|
|
|
|
|
|
|
|
|
|
var arr = ["xx_ldjyqlhwsrshu", "xx_ldjyzyhwsrshu", "xx_ldjyprwywsrshu", "xx_ldjyjyqyqsyyh", "xx_ldjynyscld", "xx_ldjyccgyz", "xx_ldjygyscld", "xx_ldjyxjstyyyy", "xx_ldjyxdfwyld"];
|
|
|
|
|
var ljRes = arr.filter(function (key) {
|
|
|
|
|
return res[key] !== 0;
|
|
|
|
|
});
|
|
|
|
|
if (ljRes.length > 0) {
|
|
|
|
|
ljRes.forEach(function (item, index) {
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
$('#defaultSelect').val(item);
|
|
|
|
|
$('#defaultInput').val(res[item]);
|
|
|
|
|
form.render();
|
|
|
|
|
} else {
|
|
|
|
|
var id = generateRandomString();
|
|
|
|
|
appendLjItem(id);
|
|
|
|
|
$('#select_' + id).val(item);
|
|
|
|
|
$('#input_' + id).val(res[item]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
form.render();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form.val("myForm", {
|
|
|
|
|
"xx_kxsysshshu": res.xx_kxsysshshu
|
|
|
|
|
, "xx_kxsysjsny": res.xx_kxsysjsny
|
|
|
|
|
, "xx_kxsysmj": res.xx_kxsysmj
|
|
|
|
|
, "xx_kxqqrshshu": res.xx_kxqqrshshu
|
|
|
|
|
, "xx_kxqqrsmj": res.xx_kxqqrsmj
|
|
|
|
|
, "xx_kxzbrshshu": res.xx_kxzbrshshu
|
|
|
|
|
, "xx_kxzbrsmj": res.xx_kxzbrsmj
|
|
|
|
|
, "xx_yqjtrshshu": res.xx_yqjtrshshu
|
|
|
|
|
, "xx_yqjtrmj": res.xx_yqjtrmj
|
|
|
|
|
, "xx_yqqjkkjshu": res.xx_yqqjkkjshu
|
|
|
|
|
, "xx_tygyshshu": res.xx_tygyshshu
|
|
|
|
|
, "xx_tyqjkkjshu": res.xx_tyqjkkjshu
|
|
|
|
|
, "xx_msjtrshshu": res.xx_msjtrshshu
|
|
|
|
|
, "xx_msjtrmj": res.xx_msjtrmj
|
|
|
|
|
, "xx_msqjkkjshu": res.xx_msqjkkjshu
|
|
|
|
|
, "xx_msfsjtrshshu": res.xx_msfsjtrshshu
|
|
|
|
|
, "xx_msfsjtrmj": res.xx_msfsjtrmj
|
|
|
|
|
, "xx_tsgcsshshu": res.xx_tsgcsshshu
|
|
|
|
|
, "xx_tsgcssmj": res.xx_tsgcssmj
|
|
|
|
|
, "xx_tsgzjtsjcshu": res.xx_tsgzjtsjcshu
|
|
|
|
|
, "xx_tsgdztsjcshu": res.xx_tsgdztsjcshu
|
|
|
|
|
, "xx_tsglsyysrshu": res.xx_tsglsyysrshu
|
|
|
|
|
, "xx_tsglsyysmj": res.xx_tsglsyysmj
|
|
|
|
|
, "xx_tsgsyysrshu": res.xx_tsgsyysrshu
|
|
|
|
|
, "xx_tsgsyysmj": res.xx_tsgsyysmj
|
|
|
|
|
, "xx_tsgdzyysrshu": res.xx_tsgdzyysrshu
|
|
|
|
|
, "xx_tsgdzyysmj": res.xx_tsgdzyysmj
|
|
|
|
|
, "xx_xldfshshu": res.xx_xldfshshu
|
|
|
|
|
, "xx_xldfsmj": res.xx_xldfsmj
|
|
|
|
|
, "xx_wsrshu": res.xx_wsrshu
|
|
|
|
|
, "xx_wsrmj": res.xx_wsrmj
|
|
|
|
|
, "xx_hjddjzsks": res.xx_hjddjzsks
|
|
|
|
|
, "xx_hjddwjzsks": res.xx_hjddwjzsks
|
|
|
|
|
, "xx_hjddjzgnqshu": res.xx_hjddjzgnqshu
|
|
|
|
|
, "xx_hjddwjzgnqshu": res.xx_hjddwjzgnqshu
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -732,8 +728,6 @@
|
|
|
|
|
|
|
|
|
|
form.on('submit(save)', function (data) {
|
|
|
|
|
|
|
|
|
|
console.log(data.field);
|
|
|
|
|
|
|
|
|
|
var selectValues = [];
|
|
|
|
|
var inputValues = [];
|
|
|
|
|
|
|
|
|
@ -784,9 +778,6 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -799,15 +790,20 @@
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#addLjItem").click(function () {
|
|
|
|
|
|
|
|
|
|
var id = generateRandomString();
|
|
|
|
|
appendLjItem(id);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function appendLjItem(id) {
|
|
|
|
|
|
|
|
|
|
var str = '<div class="layui-row" style="margin-top: 10px;" id="div_' + id + '">' +
|
|
|
|
|
'<div class="layui-col-xs4">' +
|
|
|
|
|
'<div class="layui-form-item">' +
|
|
|
|
|
'<label class="layui-form-label"><span class="require-star"></span>教室分类:' +
|
|
|
|
|
'</label>' +
|
|
|
|
|
'<div class="layui-input-inline" style="width: 230px;">' +
|
|
|
|
|
'<select>' +
|
|
|
|
|
'<select id="select_' + id + '">' +
|
|
|
|
|
'<option value="xx_ldjyqlhwsrshu">清洁与卫生</option>' +
|
|
|
|
|
'<option value="xx_ldjyzyhwsrshu">整理与收纳</option>' +
|
|
|
|
|
'<option value="xx_ldjyprwywsrshu">烹饪与营养</option>' +
|
|
|
|
@ -826,7 +822,7 @@
|
|
|
|
|
'<label class="layui-form-label"><span class="require-star"></span>室数:' +
|
|
|
|
|
'</label>' +
|
|
|
|
|
'<div class="layui-input-block">' +
|
|
|
|
|
'<input type="text" temp="ljCount" lay-verify="required|number"' +
|
|
|
|
|
'<input type="text" id="input_' + id + '" temp="ljCount" lay-verify="required|number"' +
|
|
|
|
|
'autocomplete="off" value="0" class="layui-input input-width">' +
|
|
|
|
|
'</div>' +
|
|
|
|
|
'</div>' +
|
|
|
|
@ -842,8 +838,7 @@
|
|
|
|
|
$('#ljItmes').append(str);
|
|
|
|
|
|
|
|
|
|
form.render();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function generateRandomString() {
|
|
|
|
|
let result = '';
|
|
|
|
|