Commit 8b760a47 by liuchenxi

update: 通道管理排序

parent 8791a0cc
......@@ -36,16 +36,20 @@ export default {
{ label: '通道名称', prop: 'channelName' },
{
label: '发送优先级',
prop: 'enterpriseName',
prop: '',
formatter(row) {
return `P${row.sendSort}`;
return `P${row.index + 1}`;
}
}
];
},
async getTableData() {
const result = await getAllChannel();
this.tableData.data = result.result || [];
const arr = result.result || [];
this.tableData.data = arr.map((el, index) => {
el.index = index;
return el;
});
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment