|
|
|
@ -54,9 +54,9 @@
|
|
|
|
|
style="border-style:dashed;border-width:1px;border-color: #CCCCCC;height: 100px;width: 445px;padding: 10px;overflow: auto;">
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table id="data-table"></table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -106,6 +106,57 @@
|
|
|
|
|
tag.add('orgs', { text: '新选项', id: 12 });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function tableRender() {
|
|
|
|
|
table.render({
|
|
|
|
|
elem: '#data-table',
|
|
|
|
|
url: '/QingLong/collect/getBureauList',
|
|
|
|
|
where: {
|
|
|
|
|
org_type_id: "-1",
|
|
|
|
|
org_name: ""
|
|
|
|
|
},
|
|
|
|
|
height: 'full-130',
|
|
|
|
|
page: {
|
|
|
|
|
limit: 15
|
|
|
|
|
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
|
|
|
|
, prev: "上一页"
|
|
|
|
|
, next: "下一页"
|
|
|
|
|
},
|
|
|
|
|
cols: [[
|
|
|
|
|
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
|
|
|
|
{ title: '单位名称', field: 'org_name', align: 'center' },
|
|
|
|
|
{ title: '单位类型', field: 'org_type_name', align: 'center', width: "10%" },
|
|
|
|
|
{ title: '操作', align: 'center', width: "25%", toolbar: '#table-bar' }
|
|
|
|
|
]],
|
|
|
|
|
skin: 'line',
|
|
|
|
|
toolbar: '#table-toolbar',
|
|
|
|
|
defaultToolbar: [],
|
|
|
|
|
parseData: function (res) {
|
|
|
|
|
var data = res.data;
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
switch (array[i].type_id) {
|
|
|
|
|
case 0:
|
|
|
|
|
res.data[i].sub_scope = '全部';
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
res.data[i].sub_scope = '本市';
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
res.data[i].sub_scope = '本区(县)';
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
res.data[i].sub_scope = '本单位(校)';
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
res.data[i].sub_scope = '--';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.on('submit(publish)', function (data) {
|
|
|
|
|