From 268bf6cc684cac3180da119cd25992393cbec4c0 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Tue, 23 Jul 2024 15:44:30 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/jrgl/xtgl/index.html | 11 ++++----- WebRoot/view/jrgl/xtgl/subscribe.html | 33 ++++++++------------------- 2 files changed, 13 insertions(+), 31 deletions(-) diff --git a/WebRoot/view/jrgl/xtgl/index.html b/WebRoot/view/jrgl/xtgl/index.html index 8df0046f..7fd7ba5a 100644 --- a/WebRoot/view/jrgl/xtgl/index.html +++ b/WebRoot/view/jrgl/xtgl/index.html @@ -202,13 +202,10 @@ window.sub = function (obj) { layer.open({ type: 2, - title: '正在为 “' + obj.data.system_name + '” 设置订阅数据关系', - shadeClose: true, - shade: false, - maxmin: false, - move: false, - area: ['100%', '100%'], - content: "./already_sub_system.html?system_id=" + obj.data.system_id + title: '订阅', + shade: 0.1, + area: ['650px', '400px'], + content: './subscribe.html?system_id=' + obj.data.system_id }); } diff --git a/WebRoot/view/jrgl/xtgl/subscribe.html b/WebRoot/view/jrgl/xtgl/subscribe.html index d05042ad..c2c34588 100644 --- a/WebRoot/view/jrgl/xtgl/subscribe.html +++ b/WebRoot/view/jrgl/xtgl/subscribe.html @@ -48,10 +48,9 @@
- +
-
@@ -80,13 +79,7 @@ var systemSelect = xmSelect.render({ el: '#system', - name: 'system', - autoRow: true, - direction: 'auto', - tree: { - show: true, - expandedKeys: [5], - }, + name: 'subscribe_system_ids', theme: { color: localStorage.getItem("theme-color-color"), }, @@ -96,7 +89,8 @@ }, data: [], prop: { - value: "id" + value: "system_id", + name: "system_name" } }); @@ -104,11 +98,10 @@ $.ajax({ type: 'GET', async: false, - url: '/QingLong/base/getOrgTypePrincipalshipForTreeTable?bureau_id=' + bureauId, + url: '/QingLong/dataShare/listSystem?page=1&limit=100&exclude=' + systemId, success: function (res) { - modifyObject(res.data); systemSelect.update({ - data: [res.data] + data: res.data }); systemSelect.changeExpandedKeys(true); } @@ -117,19 +110,11 @@ form.on('submit(save)', function (data) { var _data = {}; - //获取标签信息 - var buttons = $('#tag button:not(.button-new-tag)'); - var ipArray = []; - buttons.each(function () { - var _ip = $(this).html().replace(/]*>.*<\/i>/g, ''); - ipArray.push(_ip); - }); - var ip = ipArray.join(','); - _data['table_names'] = ip; - _data['system_id'] = systemId; + _data.system_id = systemId; + _data.subscribe_system_ids = data.field['subscribe_system_ids']; $.ajax({ - url: '/QingLong/dataShare/share', + url: '/QingLong/dataShare/subscribe', data: _data, type: 'post', success: function (result) {