Commit 2471c31c by 杨树贤

优化

parent 628ae389
...@@ -15,8 +15,10 @@ class SupplierShareApplyTransformer ...@@ -15,8 +15,10 @@ class SupplierShareApplyTransformer
$item['create_time'] = date('Y-m-d H:i:s', $item['create_time']); $item['create_time'] = date('Y-m-d H:i:s', $item['create_time']);
$item['status_name'] = array_get(config('field.SupplierShareApplyStatus'), $item['status']); $item['status_name'] = array_get(config('field.SupplierShareApplyStatus'), $item['status']);
$item['yunxin_channel_name'] = (new AdminUserService())->getAdminUserNameByCodeId($item['supplier']['yunxin_channel_uid']); $item['yunxin_channel_name'] = (new AdminUserService())->getAdminUserNameByCodeId($item['supplier']['yunxin_channel_uid']);
$item['apply_user_name'] = $item['apply_user']['name'];
unset($item['apply_user']);
} }
unset($item); unset($item);
return $list; return $list;
} }
} }
\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
}, },
{ {
field: 'apply_user_name', title: '申请人', width: 150, align: 'center', templet: function (d) { field: 'apply_user_name', title: '申请人', width: 150, align: 'center', templet: function (d) {
return d.apply_user ? d.apply_user.name : ''; return d.apply_user_name;
} }
}, },
{ {
...@@ -97,4 +97,4 @@ ...@@ -97,4 +97,4 @@
} }
}); });
}); });
</script> </script>
\ No newline at end of file
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 sign in to comment