新增分区逻辑
This commit is contained in:
@@ -119,7 +119,9 @@ export default {
|
||||
columns: [
|
||||
{ field: 'id', title: 'ID', align: 'center', valign: 'middle', width: '10%' },
|
||||
{ field: 'dressId', title: '装扮id', align: 'center', valign: 'middle', width: '10%' },
|
||||
{ field: 'name', title: '装扮名称', align: 'left', valign: 'middle', width: '10%' },
|
||||
{field: 'name.zh', title: '装扮名称', align: 'left', valign: 'middle', width: '10%'},
|
||||
{field: 'name.ar', title: '阿语装扮名称', align: 'left', valign: 'middle', width: '10%'},
|
||||
{field: 'name.en', title: '英语装扮名称', align: 'left', valign: 'middle', width: '10%'},
|
||||
{
|
||||
field: 'pic', title: '装扮图片', align: 'left', valign: 'middle', width: '10%',
|
||||
formatter: function (val, row, index) {
|
||||
@@ -212,9 +214,13 @@ export default {
|
||||
data: request.data,
|
||||
success: function (res) {
|
||||
apiResult(res);
|
||||
console.log(res)
|
||||
request.success({
|
||||
rows: res.data.rows,
|
||||
total: res.data.total,
|
||||
"rows": res.data.rows.map(i=>{
|
||||
i.name = JSON.parse(i.name);
|
||||
return i;
|
||||
}),
|
||||
"total": res.total
|
||||
});
|
||||
},
|
||||
error: function (req) {
|
||||
|
Reference in New Issue
Block a user