From a6e0f471a612b413e2721af284f0a66c03c03b3d Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Tue, 4 May 2021 14:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A5=E7=A7=8D=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/classplan/class-plan-mapper.xml | 3 +- .../static/route/classplan/save.html | 24 ++++- .../static/route/classplan/select-tree.html | 101 ++++++++++++++++++ 3 files changed, 122 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/static/route/classplan/select-tree.html diff --git a/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml b/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml index 55585ca..40b8454 100644 --- a/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml +++ b/src/main/resources/mybatis/mapper/classplan/class-plan-mapper.xml @@ -4,7 +4,7 @@ - + @@ -265,6 +265,7 @@ + +
@@ -216,11 +219,22 @@ } initData(); + $(document).on('click', '#workerCatalog', function() { + layer.open({ + type: 2, + title: '选择工种', + closeBtn: 1, + area: ['200px', '400px'], + shadeClose: false, + anim: 2, + content: top.restAjax.path('route/classplan/select-tree.html', []), + end: function() { + } + }); + }); + // 初始化培训工种下拉选择 function initWorkerCatalogSelect() { - laytpl(document.getElementById('workerCatalogSelectTemplate').innerHTML).render([], function(html) { - document.getElementById('workerCatalogSelectTemplateBox').innerHTML = html; - }); /*top.restAjax.get(top.restAjax.path('api/datadictionary/listdictionarybyparentid/cbb5f8a8-595c-4df4-b38e-7cbb715f754f', []), {}, null, function(code, data, args) { laytpl(document.getElementById('workerCatalogSelectTemplate').innerHTML).render(data, function(html) { document.getElementById('workerCatalogSelectTemplateBox').innerHTML = html; diff --git a/src/main/resources/static/route/classplan/select-tree.html b/src/main/resources/static/route/classplan/select-tree.html new file mode 100644 index 0000000..6923fc1 --- /dev/null +++ b/src/main/resources/static/route/classplan/select-tree.html @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + +
+
+
+
+
    +
    +
    +
    +
    + + + + + + + \ No newline at end of file