|
@@ -73,9 +73,9 @@ module.exports = app => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- async _list(view, renderData, modal = '') {
|
|
|
+ async _list(view, renderData, modal = '', list_status = '') {
|
|
|
try {
|
|
|
- renderData.tenderList = await this.ctx.service.tender.getList('', renderData.userPermission);
|
|
|
+ renderData.tenderList = await this.ctx.service.tender.getList(list_status, renderData.userPermission);
|
|
|
|
|
|
for (const t of renderData.tenderList) {
|
|
|
if (t.ledger_status === auditConst.ledger.status.checked) {
|
|
@@ -145,9 +145,9 @@ module.exports = app => {
|
|
|
if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) {
|
|
|
const renderData = {
|
|
|
accountInfo,
|
|
|
- userPermission
|
|
|
+ userPermission,
|
|
|
};
|
|
|
- await this._list('tender/manage.ejs', renderData, 'tender/manage_modal.ejs')
|
|
|
+ await this._list('tender/manage.ejs', renderData, 'tender/manage_modal.ejs', 'manage');
|
|
|
// 获取用户新建标段权利
|
|
|
// const accountInfo = await this.ctx.service.projectAccount.getDataById(this.ctx.session.sessionUser.accountId);
|
|
|
// const userPermission = accountInfo !== undefined && accountInfo.permission !== '' ? JSON.parse(accountInfo.permission) : null;
|