|
@@ -1410,9 +1410,25 @@ $(document).ready(function() {
|
|
|
$(this.setting.list).html(html.join(''));
|
|
|
$('#user-select-all')[0].checked = false;
|
|
|
}
|
|
|
+ refreshBtn() {
|
|
|
+ const self = this;
|
|
|
+ const filing = this.permissionTree.nodes.find(x => { return x.filing_type === self.curFiling; });
|
|
|
+ if (!filing || (filing.children && filing.children.length > 0)) {
|
|
|
+ $('#filing-add-user').hide();
|
|
|
+ $('#batch-del-filing').hide();
|
|
|
+ $('#batch-add-filing').hide();
|
|
|
+ $('#sync-filing').hide();
|
|
|
+ } else {
|
|
|
+ $('#filing-add-user').show();
|
|
|
+ $('#batch-del-filing').show();
|
|
|
+ $('#batch-add-filing').show();
|
|
|
+ $('#sync-filing').show();
|
|
|
+ }
|
|
|
+ }
|
|
|
setCurFiling(filingType) {
|
|
|
this.curFiling = filingType;
|
|
|
this.loadCurFiling();
|
|
|
+ this.refreshBtn();
|
|
|
}
|
|
|
loadPermissionUser() {
|
|
|
const html = [];
|
|
@@ -1693,9 +1709,8 @@ $(document).ready(function() {
|
|
|
spreadSetting: {
|
|
|
cols: [
|
|
|
{title: '名称', field: 'name', hAlign: 0, width: 300, formatter: '@', cellType: 'tree', wordWrap: true},
|
|
|
- {title: '备注', field: 'remark', hAlign: 1, width: 150, formatter: '@', wordWrap: true}
|
|
|
+ {title: '备注', field: 'remark', hAlign: 1, width: 150, formatter: '@'}
|
|
|
],
|
|
|
- treeCol: 0,
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
|
headRowHeight: [32],
|