import { stationurl,brigade } from "../../public/js/url.js"; import { layuiObj} from "../../pages/cmddispatch/js/index.js" import {getCurrData} from "../../public/js/timestamp.js"; import {getSchoolOptions} from "../cmddispatch/js/tree.js" import {stationInfoTableList} from "../cmddispatch/js/index.js" import {getSchoolInfoDiv,getGradeValue} from "../cmddispatch/js/schoolBaseInfo.js" function showlegalitySchool(){ layuiObj.layer.open({ type: 1, title: '法制校园', //不显示标题栏 area: ['1100px', '700px'], shade: 0.6, id:new Date().getTime(), //设定一个id,防止重复弹出 btnAlign: 'c', moveType: 1, //拖拽模式,0或者1 content: `
`, success: function(layero){ legalitySchoolFromRender(); } }); } function legalitySchoolFromRender(){ $("#legalitySchoolSelect").html(getSchoolOptions()); layuiObj.layuiForm.render("select","legalitySchoolForm"); $("#legalitySchoolBtn").on('click',function(e){ e.preventDefault(); var name=$("#legalitySchoolSelect").find("option:selected").val(); for(var i=0;i ${schooldiv}
` $(".legalitySchoolContent").html(div); } export {showlegalitySchool}