From a231cbeed9bd212618ad54a1e25a28e148cf8528 Mon Sep 17 00:00:00 2001 From: erdanergou Date: Wed, 15 Mar 2023 16:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E9=97=A8=E3=80=81?= =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=8D=95=E4=BD=8D=E6=A0=91=E4=B8=8E=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PageController.java | 2 +- .../application-out_back.html | 80 +++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java b/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java index b4c7dc32..bbf94f0d 100644 --- a/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java +++ b/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java @@ -832,7 +832,7 @@ public class PageController { } UserByPort userToken = AuthenticationTokenPool.getUserToken(token); if (Integer.compare(userToken.getMaindeparment(), 361) == 0) { - mv.setViewName("pages/applicationForStorageCenter/application-out"); + mv.setViewName("pages/applicationForStorageCenter/application-out_back"); } InventoryP inventoryP = new InventoryP(); if (code != null) { diff --git a/src/main/resources/templates/pages/applicationForStorageCenter/application-out_back.html b/src/main/resources/templates/pages/applicationForStorageCenter/application-out_back.html index 0493704c..768ab45d 100644 --- a/src/main/resources/templates/pages/applicationForStorageCenter/application-out_back.html +++ b/src/main/resources/templates/pages/applicationForStorageCenter/application-out_back.html @@ -89,6 +89,32 @@ +
+ +
+ + +
+
+
+ +
+ + +
+
@@ -143,6 +169,15 @@ function selectMaterial() { } + // 用于获取施工单位 + function selectConstructionUnit() { + + } + + // 用于获取部门树 + function selectPost() { + + } layui.use(['form', 'step', 'layer', 'jquery'], function () { var $ = layui.$, form = layui.form, @@ -389,6 +424,51 @@ } }; + + selectPost = function (obj) { + let id = obj.id; + layer.open({ + type: 2, + title: '弹窗内容', + skin: 'layui-layer-rim', + maxmin: true, + shadeClose: true, //点击遮罩关闭层 + area: ['70%', '70%'], + content: '/selectPost?id=' + id, + move: '.layui-layer-title', + fixed: false, + success: function (layero, index) { + var children = layero.children(); + var content = $(children[1]); + var iframeChildren = $(content.children()); + content.css('height', '100%'); + iframeChildren.css('height', '100%'); + } + }); + }; + + selectConstructionUnit = function (obj) { + let id = obj.id; + layer.open({ + type: 2, + title: '弹窗内容', + skin: 'layui-layer-rim', + maxmin: true, + shadeClose: true, //点击遮罩关闭层 + area: ['70%', '70%'], + content: '/selectConstructionUnit?id=' + id, + move: '.layui-layer-title', + fixed: false, + success: function (layero, index) { + var children = layero.children(); + var content = $(children[1]); + var iframeChildren = $(content.children()); + content.css('height', '100%'); + iframeChildren.css('height', '100%'); + } + }); + } + })