feat: complete admin panel and backend admin api migration
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user