feat: complete admin panel and backend admin api migration
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// The sent-SMS log. Legacy read it from `POST sms/table` inline in sms/create.vue
|
||||
// rather than through a table model file.
|
||||
import XTbl, { Xtc } from '../../components/x-table/model';
|
||||
|
||||
export function buildSmsModel(): XTbl {
|
||||
const tbl = new XTbl('admin/misc/sms/list', 'لیست پیامک ها');
|
||||
tbl.add(new Xtc('id', 'شماره'));
|
||||
tbl.add(new Xtc('text', 'متن پیامک').filterKey('body').filterText());
|
||||
tbl.add(new Xtc('mobile', 'گیرندگان').noSort());
|
||||
tbl.add(new Xtc('sent_count', 'تعداد').noSort());
|
||||
tbl.add(new Xtc('sender', 'ارسال کننده').noSort());
|
||||
tbl.add(new Xtc('caj', 'تاریخ').filterKey('createdAt').filterDate().noSort());
|
||||
return tbl;
|
||||
}
|
||||
|
||||
export default buildSmsModel;
|
||||
Reference in New Issue
Block a user