Browse Source

bidding竞标显示处理

develop
李可松 4 years ago
parent
commit
5c737b50cf
  1. 12
      app/AdminSupplier/Controllers/DemandController.php

12
app/AdminSupplier/Controllers/DemandController.php

@ -3,9 +3,7 @@
namespace App\AdminSupplier\Controllers; namespace App\AdminSupplier\Controllers;
use App\AdminSupplier\Lazys\DemandBiddingLazys; use App\AdminSupplier\Lazys\DemandBiddingLazys;
use App\Models\AgentProduct;
use App\Models\DemandProduct; use App\Models\DemandProduct;
use App\Models\Product;
use App\Traits\ResponseHelper; use App\Traits\ResponseHelper;
use App\AdminAgent\Repositories\Demand; use App\AdminAgent\Repositories\Demand;
use App\Models\DemandBidding; use App\Models\DemandBidding;
@ -15,12 +13,6 @@ use Dcat\Admin\Grid;
use Dcat\Admin\Show; use Dcat\Admin\Show;
use Dcat\Admin\Http\Controllers\AdminController; use Dcat\Admin\Http\Controllers\AdminController;
use App\Traits\DemandTraits; use App\Traits\DemandTraits;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\URL;
class DemandController extends AdminController class DemandController extends AdminController
{ {
@ -77,7 +69,9 @@ class DemandController extends AdminController
}) })
->then(function (Grid\Column $column) { ->then(function (Grid\Column $column) {
$column->append('<a class="btn btn-sm btn-primary" href="' . admin_url('/demand_bidding/create?demand_id=' . $this->id) . '">发起竞标</a>'); $column->append('<a class="btn btn-sm btn-primary" href="' . admin_url('/demand_bidding/create?demand_id=' . $this->id) . '">发起竞标</a>');
});
})
->else()
->display('');
} }
$grid->column('created_at')->sortable(); $grid->column('created_at')->sortable();

Loading…
Cancel
Save