Browse Source

优化服务商系统详情字段显示

master
lanzu_qsy 5 years ago
parent
commit
ae3cc70a00
  1. 32
      app/Admin/Controllers/ImsCjdcMarketController.php
  2. 1
      app/Admin/Controllers/ImsCjdcStoreController.php
  3. 28
      app/Admin/Controllers/LanzuMmInfoController.php
  4. 20
      app/Admin/Controllers/LanzuMmWithdrawController.php
  5. 16
      app/Admin/Controllers/LanzuMpInfoController.php
  6. 18
      app/Admin/Controllers/LanzuMpWithdrawController.php
  7. 18
      app/Admin/Controllers/LanzuServiceSpeakerController.php

32
app/Admin/Controllers/ImsCjdcMarketController.php

@ -84,14 +84,13 @@ class ImsCjdcMarketController extends AdminController
});
}
$show->id;
$show->name;
$show->logo->image();
$show->introduce;
$show->imgs->image();
$show->addtime('创建时间');
$show->sort;
$show->status;
$show->status()->using([0=>'禁用',1=>'正常']);
$show->coordinates;
$show->remark;
$show->address;
@ -99,13 +98,32 @@ class ImsCjdcMarketController extends AdminController
$show->dn_poundage;
$show->dm_poundage;
$show->yd_poundage;
$show->dada_number;
$show->is_open_dada;
$show->loudspeaker_imei;
$show->dishes_menu_intro;
$show->create_time;
$show->created_at;
$show->updated_at;
$show->create_time->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
$show->created_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
$show->updated_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
});
}

1
app/Admin/Controllers/ImsCjdcStoreController.php

@ -58,7 +58,6 @@ class ImsCjdcStoreController extends AdminController
protected function detail($id)
{
return Show::make($id, new ImsCjdcStore(), function (Show $show) {
$show->id;
$show->name;
$show->tel;
$show->is_rest;

28
app/Admin/Controllers/LanzuMmInfoController.php

@ -82,18 +82,32 @@ class LanzuMmInfoController extends AdminController
protected function detail($id)
{
return Show::make($id, new LanzuMmInfo(), function (Show $show) {
$show->id;
$show->name;
$show->phone;
$show->market_id;
$show->market_id()->as(function ($id){
$market = ImsCjdcMarket::find($id);
return $market->name;
});
$show->id_frond->image();
$show->id_back->image();
$show->id_number;
$show->admin_user_id;
$show->status;
$show->is_del;
$show->created_at;
$show->updated_at;
$show->status()->using([1=>'正常',0=>'禁用']);
$show->created_at()->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
$show->updated_at()->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
});
}

20
app/Admin/Controllers/LanzuMmWithdrawController.php

@ -81,6 +81,8 @@ class LanzuMmWithdrawController extends AdminController
$grid->disableEditButton();
$grid->disableDeleteButton();
}
$grid->disableDeleteButton();
$grid->disableViewButton();
});
}
@ -98,8 +100,22 @@ class LanzuMmWithdrawController extends AdminController
$show->mm_id;
$show->money;
$show->status;
$show->created_at;
$show->updated_at;
$show->created_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
$show->updated_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
});
}

16
app/Admin/Controllers/LanzuMpInfoController.php

@ -82,19 +82,21 @@ class LanzuMpInfoController extends AdminController
protected function detail($id)
{
return Show::make($id, new LanzuMpInfo(), function (Show $show) {
$show->id;
$show->name;
$show->phone;
$show->bank_name;
$show->bank_card;
$show->bank_addr;
$show->id_frond;
$show->id_back;
$show->id_frond()->image();
$show->id_back()->image();
$show->id_number;
$show->admin_user_id;
$show->status;
$show->created_at;
$show->updated_at;
$show->status()->using([1=>'正常',0=>'禁用']);
$show->created_at()->as(function ($time){
return date('Y-m-d H:i',$time);
});
$show->updated_at()->as(function ($time){
return date('Y-m-d H:i',$time);
});
});
}

18
app/Admin/Controllers/LanzuMpWithdrawController.php

@ -70,8 +70,22 @@ class LanzuMpWithdrawController extends AdminController
$show->column('服务商名称','mpInfo.name');
$show->money;
$show->status;
$show->created_at;
$show->updated_at;
$show->created_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
$show->updated_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
});
}

18
app/Admin/Controllers/LanzuServiceSpeakerController.php

@ -50,8 +50,22 @@ class LanzuServiceSpeakerController extends AdminController
{
return Show::make($id, new LanzuServiceSpeaker(), function (Show $show) {
$show->id;
$show->created_at;
$show->updated_at;
$show->created_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
$show->updated_at->as(function ($time){
if ($time){
return date('Y-m-d H:i',$time);
}else{
return '-';
}
});
});
}

Loading…
Cancel
Save