// Ported from legacy henza_admin/src/views/city/CityListModel.js // // Note the 'level' column: legacy declares it but the cities payload has no such // field, so the cell always rendered blank. Preserved — see the port plan. import XTbl, { Xtc } from '../../components/x-table/model'; export function buildCityListModel(): XTbl { const tbl = new XTbl('admin/misc/cities/list', 'لیست شهر ها'); tbl.add(new Xtc('title', 'نام شهر').filterKey('name').filterText()); tbl.add(new Xtc('level', 'سطح').filterNumber().noSort()); tbl.add(new Xtc('percent', 'درصد مشتری عمده').renderSlot('percent').noSort()); tbl.add(new Xtc('percent_aux', 'درصد کارشناس فروش').renderSlot('percent_aux').noSort()); tbl.add(new Xtc('opt', 'عملیات').noSort().renderSlot('opt')); return tbl; } export default buildCityListModel;