From ad81eebcc8d98ad2c0bf85e2125f363e789fa3c7 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 二月 2021 16:36:22 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/area/area.js | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/static/js/area/area.js b/src/main/webapp/static/js/area/area.js
index 7fbafe3..14626a3 100644
--- a/src/main/webapp/static/js/area/area.js
+++ b/src/main/webapp/static/js/area/area.js
@@ -1,4 +1,18 @@
var pageCurr;
+var tableIns;
+
+getParentNode();
+function getParentNode(el) {
+ http.post(baseUrl + "/parent/node/group", {type: 1}, function (res) {
+ if (res.data != null) {
+ var tpl = $("#parentNodeGroup").html();
+ var template = Handlebars.compile(tpl);
+ var html = template(res);
+ $('#parentId').append(html);
+ }
+ });
+}
+
layui.use(['table','laydate', 'form'], function(){
var table = layui.table;
var $ = layui.jquery;
@@ -22,9 +36,9 @@
{type: 'checkbox'}
// ,{field: 'id', align: 'center',title: 'ID'}
,{field: 'uuid', align: 'center',title: '缂栧彿'}
- ,{field: 'name', align: 'center',title: '浠撳簱鍚嶇О'}
+ ,{field: 'name', align: 'center',title: '搴撳尯鍚嶇О'}
// ,{field: 'parentId', align: 'center',title: '鐖剁骇'}
- // ,{field: 'parentName', align: 'center',title: '鐖剁骇鍚嶇О'}
+ ,{field: 'parentName', align: 'center',title: '鎵�灞炰粨搴�'}
// ,{field: 'type$', align: 'center',title: '绫诲瀷'}
// ,{field: 'path', align: 'center',title: '鍏宠仈璺緞'}
// ,{field: 'namePath', align: 'center',title: '鍏宠仈璺緞鍚�'}
@@ -105,8 +119,7 @@
layer.open({
type: 2,
title: '鏂板',
- maxmin: true,
- area: [top.detailWidth, top.detailHeight],
+ area: ['30%', top.detailHeight],
content: 'area_detail.html',
success: function(layero, index){
layer.getChildFrame('#data-detail-submit-edit', index).hide();
@@ -191,8 +204,7 @@
layer.open({
type: 2,
title: '淇敼',
- maxmin: true,
- area: [top.detailWidth, top.detailHeight],
+ area: ['30%', top.detailHeight],
content: 'area_detail.html',
success: function(layero, index){
layer.getChildFrame('#data-detail-submit-save', index).hide();
@@ -304,9 +316,10 @@
type: 'datetime'
});
-
});
+
+
// 鍏抽棴鍔ㄤ綔
$(document).on('click','#data-detail-close', function () {
parent.layer.closeAll();
--
Gitblit v1.9.1