17 lines
735 B
TypeScript
17 lines
735 B
TypeScript
// 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;
|