完全vue渲染列表的功能

去掉不必要的js函数定义
修改返回json的方式
This commit is contained in:
2021-03-15 06:12:12 +08:00
parent d795809fb3
commit 975be7cc91
135 changed files with 402 additions and 792 deletions
@@ -135,7 +135,7 @@ class LogisticsController extends DefaultController
$rows['total'] = $model->count();
$rows['data'] = $model->get();
}
return response()->json($rows);
return $rows;
}
return $this->render([
@@ -828,7 +828,7 @@ class OrderController extends WorkflowController
$item['text'] = $item['name'];
return $item;
});
return response()->json($items);
return $items;
}
return $this->render([
'search' => $search,
@@ -918,7 +918,7 @@ class OrderController extends WorkflowController
");
$rows = $model->get();
}
return response()->json(['data' => $rows]);
return ['data' => $rows];
}
return $this->render([
'search' => $search,
@@ -70,7 +70,7 @@ class PlanController extends DefaultController
}
$rows = ProduceService::getPlanDetail($sdate, $edate, $query['warehouse_id'], $query['category_id'], $query['type']);
$json = ['data' => $rows, 'status' => true];
return response()->json($json);
return $json;
}
$header = [
@@ -205,7 +205,7 @@ class PlanController extends DefaultController
});
}
$json = ['data' => $rows, 'status' => true];
return response()->json($json);
return $json;
}
$search['table'] = 'produce_plan';
@@ -298,7 +298,7 @@ class PlanController extends DefaultController
}
$rows = ProduceService::getPlanDetail($sdate, $edate, 0, $query['category_id'], $query['type']);
$json = ['columns' => $columns, 'data' => $rows, 'status' => true];
return response()->json($json);
return $json;
}
$header = [
@@ -111,7 +111,7 @@ class TypeController extends DefaultController
$item['text'] = $item['name'];
return $item;
});
return response()->json($items);
return $items;
}
$query['form_id'] = $query['jqgrid'] == '' ? $query['id'] : $query['jqgrid'];
return $this->render([
@@ -198,7 +198,7 @@ class WidgetController extends DefaultController
$json['total'] = sizeof($rows);
$json['data'] = $rows;
return response()->json($json);
return $json;
}
return $this->render();
}
@@ -225,7 +225,7 @@ class WidgetController extends DefaultController
->get();
$json['total'] = $rows->count();
$json['data'] = $rows;
return response()->json($json);
return $json;
}
return $this->render();
}
@@ -15,11 +15,6 @@
action.dialogType = 'layer';
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['table']}}-grid");
gridDiv.style.height = getPanelHeight(48);
@@ -108,11 +108,6 @@
}
}
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['master_table']}}-grid");
gridDiv.style.height = getPanelHeight(48);
@@ -17,11 +17,6 @@
action.dialogType = 'layer';
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['master_table']}}-grid");
gridDiv.style.height = getPanelHeight(48);
@@ -15,11 +15,6 @@
var search = config.search;
action.dialogType = 'layer';
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['master_table']}}-grid");
@@ -35,11 +35,6 @@
}
}
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['master_table']}}-grid");
gridDiv.style.height = getPanelHeight(48);
@@ -34,11 +34,6 @@
return;
}
}
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['master_table']}}-grid");
@@ -12,11 +12,6 @@
var config = gdoo.grids[table];
var action = config.action;
var search = config.search;
// 自定义搜索方法
search.searchInit = function (e) {
var self = this;
}
var options = new agGridOptions();
var gridDiv = document.querySelector("#{{$header['table']}}-grid");