|
|
|
@ -48,10 +48,9 @@
|
|
|
|
|
<div class="mainBox">
|
|
|
|
|
<div class="main-container">
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
<label class="layui-form-label" style="width: auto !important;">共享表:</label>
|
|
|
|
|
<label class="layui-form-label" style="width: auto !important;">订阅系统:</label>
|
|
|
|
|
<div class="layui-input-inline" id="system" style="width: 455px;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -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[^>]*>.*<\/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) {
|
|
|
|
|