提交 a9032111 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 6cebe2f0
......@@ -5,8 +5,6 @@
:default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@sort-change="onSortChange($event)"
:border="isDragendCol"
:show-summary="true && items.length > 0"
:summary-method="getSummaries"
:highlight-current-row ="isSingleSelect"
:row-class-name="getRowClassName"
size="mini"
......@@ -1282,21 +1280,6 @@ export default class ByAccountBase extends Vue implements ControlInterface {
*/
public stopRowClick: boolean = false;
/**
* 表格聚合行为
*
* @type {string}
* @memberof ByAccount
*/
public aggAction:string ='Get';
/**
* 远程数据
*
* @type {any}
* @memberof ByAccount
*/
public remoteData:any = {};
/**
* 工具栏模型
......@@ -1348,7 +1331,7 @@ export default class ByAccountBase extends Vue implements ControlInterface {
* @type {boolean}
* @memberof ByAccount
*/
public isDisplay:boolean = false;
public isDisplay:boolean = true;
/**
* 部件刷新
......@@ -1565,7 +1548,6 @@ export default class ByAccountBase extends Vue implements ControlInterface {
}
}
}, 300);
this.getAggData();
}).catch((response: any) => {
if (response && response.status === 401) {
return;
......@@ -2141,53 +2123,7 @@ export default class ByAccountBase extends Vue implements ControlInterface {
return index !== -1 ? 'grid-row-select' : '';
}
/**
* 合计行绘制
*
* @param {any} param
* @memberof ByAccount
*/
public getSummaries(param:any){
const { columns } = param;
const sums:Array<any> = [];
columns.forEach((column:any, index:number) => {
if (index === 0) {
sums[index] = '合计';
return;
}else if(index === (columns.length - 1)){
sums[index] = '';
return;
}else{
sums[index] = 'N/A';
}
});
return sums;
}
/**
* 远程获取合计行数据
*
* @memberof ByAccount
*/
public getAggData(){
this.service.getAggData(this.aggAction,JSON.parse(JSON.stringify(this.context)),this.showBusyIndicator).then((response:any) =>{
if (!response.status || response.status !== 200) {
if (response.errorMessage) {
this.$Notice.error({ title: '错误', desc: response.errorMessage });
}
return;
}
this.remoteData = response.data;
this.isDisplay = true;
}).catch((response:any) =>{
if (response && response.status === 401) {
return;
}
this.remoteData = {};
this.isDisplay = true;
this.$Notice.error({ title: '错误', desc: response.errorMessage });
})
}
/**
* 界面行为
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册