You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App\Admin\Extensions;
use App\Models\ImsCjdcOrderMain;use Dcat\Admin\Admin;use Dcat\Admin\Support\LazyRenderable;
class MyDetailPage extends LazyRenderable{
protected static $js = ['https://cdn.jsdelivr.net/npm/vue']; protected static $css = ['css/deatail.css'];
public function render() { $order = ImsCjdcOrderMain::where('id',$this->order_id)->first()->toArray();
// Admin::script(
// <<<JS
//
// var app = new Vue({
// el:"#detail",
// data:{
// order_num: "{$order['order_num']}"
// }
// });
//
//JS
//
// );
return view('orderdetail',['order_num'=>'000000000000000000000009999']); }
}
|