Files
hedena_gold/apps/admin-panel/src/views/promotion/promotionListModel.ts
T

18 lines
875 B
TypeScript

// Ported from legacy henza_admin/src/table/promotion.js
import XTbl, { Xtc } from '../../components/x-table/model';
export function buildPromotionListModel(): XTbl {
const tbl = new XTbl('admin/promotions/list', 'لیست تخفیف ها');
tbl.add(new Xtc('id', 'کد').filterNumber());
tbl.add(new Xtc('title', 'نام پروموشن').filterText());
tbl.add(new Xtc('promotion_type_str', 'نوع پروموشن').noSort());
tbl.add(new Xtc('platform', 'پلتفرم نمایش ').noSort());
tbl.add(new Xtc('status', 'وضعیت').renderSlot('sts').noSort());
tbl.add(new Xtc('start', 'تاریخ شروع').renderSlot('startDate').noSort());
tbl.add(new Xtc('end', 'تاریخ پایان ').renderSlot('endDate').noSort());
tbl.add(new Xtc('action', 'عملیات').renderSlot('op').noSort());
return tbl;
}
export default buildPromotionListModel;