From 2eb86c41b90a299341013d7b3dce3d07106a2eb1 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Wed, 15 Apr 2020 23:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E4=B8=9A=E6=80=A7=E8=B4=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterpriseofgridoperator-mapper.xml | 32 +-- .../list-industrycheckitem.html | 12 +- .../list-tree-industrycheckitem.html | 2 +- .../save-industrycheckitem.html | 166 --------------- .../update-industrycheckitem.html | 198 ------------------ 5 files changed, 9 insertions(+), 401 deletions(-) delete mode 100644 src/main/resources/static/route/industrycheckitem/save-industrycheckitem.html delete mode 100644 src/main/resources/static/route/industrycheckitem/update-industrycheckitem.html diff --git a/src/main/resources/mybatis/mapper/enterpriseofgridoperator/enterpriseofgridoperator-mapper.xml b/src/main/resources/mybatis/mapper/enterpriseofgridoperator/enterpriseofgridoperator-mapper.xml index fb96449..cdd123d 100644 --- a/src/main/resources/mybatis/mapper/enterpriseofgridoperator/enterpriseofgridoperator-mapper.xml +++ b/src/main/resources/mybatis/mapper/enterpriseofgridoperator/enterpriseofgridoperator-mapper.xml @@ -135,42 +135,12 @@ t1.enterprise_of_grid_operator_id FROM gen_enterprise_of_grid_operator t1 - LEFT JOIN + INNER JOIN gen_enterprise jt1 ON t1.enterprise_id = jt1.enterprise_id AND jt1.is_delete = 0 - LEFT JOIN - data_dictionary dt1 - ON - dt1.dictionary_id = jt1.area1 - AND - dt1.is_delete = 0 - LEFT JOIN - data_dictionary dt2 - ON - dt2.dictionary_id = jt1.area2 - AND - dt2.is_delete = 0 - LEFT JOIN - data_dictionary dt3 - ON - dt3.dictionary_id = jt1.area3 - AND - dt3.is_delete = 0 - LEFT JOIN - data_dictionary dt4 - ON - dt4.dictionary_id = jt1.area4 - AND - dt4.is_delete = 0 - LEFT JOIN - data_dictionary dt5 - ON - dt5.dictionary_id = jt1.area5 - AND - dt5.is_delete = 0 WHERE t1.is_delete = 0 diff --git a/src/main/resources/static/route/industrycheckitem/list-industrycheckitem.html b/src/main/resources/static/route/industrycheckitem/list-industrycheckitem.html index 8d7db13..6cd5dcd 100644 --- a/src/main/resources/static/route/industrycheckitem/list-industrycheckitem.html +++ b/src/main/resources/static/route/industrycheckitem/list-industrycheckitem.html @@ -41,6 +41,7 @@ var $ = layui.$; var $win = $(window); var admin = layui.admin; + var form = layui.form; var treeTable = layui.treeTable; var resizeTimeout = null; var natureId = top.restAjax.params(window.location.href).natureId; @@ -56,6 +57,7 @@ $('input[name="'+ item.checkItemId +'_type"][value='+ item.type +']').attr('checked', true); } treeTableObj.setChecked(checkCheckItemIdArray); + form.render('radio', 'dataTable'); }, function(code, data) { top.dialog.msg(data.msg); }, function() { @@ -105,6 +107,7 @@ }, ] }); + treeTableObj.expandAll(); initData(); }, function(code, data) { top.dialog.msg(data.msg); @@ -117,6 +120,8 @@ width: admin.screen() > 1 ? '100%' : '', height: ($win.height() - 140) +'px', }); + treeTableObj.expandAll(); + initData(); } initTable(); @@ -157,16 +162,13 @@ top.restAjax.post(top.restAjax.path('api/industrycheckitem/saveindustrycheckitembynatureid/{natureId}', [natureId]), { natureCheckItems: natureCheckItemArray }, null, function(code, data) { - var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, { + var layerIndex = top.dialog.msg('提交成功', { time: 0, - btn: [top.dataMessage.button.yes, top.dataMessage.button.no], + btn: [top.dataMessage.button.yes], shade: 0.3, yes: function(index) { top.dialog.close(index); window.location.reload(); - }, - btn2: function() { - closeBox(); } }); }, function(code, data) { diff --git a/src/main/resources/static/route/industrycheckitem/list-tree-industrycheckitem.html b/src/main/resources/static/route/industrycheckitem/list-tree-industrycheckitem.html index 9895851..3cd5fa0 100644 --- a/src/main/resources/static/route/industrycheckitem/list-tree-industrycheckitem.html +++ b/src/main/resources/static/route/industrycheckitem/list-tree-industrycheckitem.html @@ -75,7 +75,7 @@ }, callback: { onClick: function (event, treeId, treeNode) { - parentId = treeNode.id; + parentId = treeNode.dictionaryId; initIFrame(); return false; } diff --git a/src/main/resources/static/route/industrycheckitem/save-industrycheckitem.html b/src/main/resources/static/route/industrycheckitem/save-industrycheckitem.html deleted file mode 100644 index 2324b8f..0000000 --- a/src/main/resources/static/route/industrycheckitem/save-industrycheckitem.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - -
-
- -
-
-
- -
- -
-
- -
- -
-
- -
- - -
-
-
-
- -
-
-
-
-
-
- - - - - \ No newline at end of file diff --git a/src/main/resources/static/route/industrycheckitem/update-industrycheckitem.html b/src/main/resources/static/route/industrycheckitem/update-industrycheckitem.html deleted file mode 100644 index 3f31ab2..0000000 --- a/src/main/resources/static/route/industrycheckitem/update-industrycheckitem.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - - - - - - - -
-
- -
-
-
- -
- -
-
- -
- -
-
- -
- - -
-
-
-
- -
-
-
-
-
-
- - - - - \ No newline at end of file