From 7fc5da5eed50e13987bd694612524e8227d41450 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Fri, 12 Apr 2024 10:02:47 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/tb/{table => zbdc}/base.html | 30 ++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) rename WebRoot/view/tb/{table => zbdc}/base.html (85%) diff --git a/WebRoot/view/tb/table/base.html b/WebRoot/view/tb/zbdc/base.html similarity index 85% rename from WebRoot/view/tb/table/base.html rename to WebRoot/view/tb/zbdc/base.html index d197d5af..81f3c1cb 100644 --- a/WebRoot/view/tb/table/base.html +++ b/WebRoot/view/tb/zbdc/base.html @@ -42,7 +42,7 @@ display: block; padding: 9px 15px; - width: 80px; + width: 230px; font-weight: 400; line-height: 20px; @@ -60,7 +60,7 @@
- 单位名称 +
@@ -68,7 +68,7 @@
- 单位类型 + 单位类型
@@ -204,6 +204,30 @@ layui.use(function () { var form = layui.form; var $ = layui.jquery; + + $.ajax({ + type: "GET", + async: false, + url: "/QingLong/zbdc/getSchoolBase", + success: function (res) { + + $("#org_name").html(res.bureau_name); + $("#org_type").html(res.school_type_name); + + if(res.hasOwnProperty('xx_student_count')){ + $("input[name='xx_student_count']").val(res.xx_student_count); + $("input[name='cz_student_count']").val(res.cz_student_count); + $("input[name='gz_student_count']").val(res.gz_student_count); + $("input[name='xx_class_count']").val(res.xx_class_count); + $("input[name='cz_class_count']").val(res.cz_class_count); + $("input[name='gz_class_count']").val(res.gz_class_count); + $("input[name='xx_teacher_count']").val(res.xx_teacher_count); + $("input[name='cz_teacher_count']").val(res.cz_teacher_count); + $("input[name='gz_teacher_count']").val(res.gz_teacher_count); + } + } + }); + form.on('submit(save)', function (data) { console.log(data.field); $.ajax({