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