完全vue渲染列表的功能
去掉不必要的js函数定义 修改返回json的方式
This commit is contained in:
@@ -174,10 +174,10 @@ class AttachmentController extends DefaultController
|
||||
|
||||
$insert_id = DB::table($table)->insertGetId($data);
|
||||
$data['id'] = $insert_id;
|
||||
return response()->json($data);
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
return response()->json([]);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
$query = Request::all();
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
|
||||
action.dialogType = 'layer';
|
||||
|
||||
// 自定义搜索方法
|
||||
search.searchInit = function (e) {
|
||||
var self = this;
|
||||
}
|
||||
|
||||
action.create = function(data) {
|
||||
var me = this;
|
||||
var grid = config.grid;
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
|
||||
action.dialogType = 'layer';
|
||||
|
||||
// 自定义搜索方法
|
||||
search.searchInit = function (e) {
|
||||
var self = this;
|
||||
}
|
||||
|
||||
action.create = function(data) {
|
||||
var me = this;
|
||||
var grid = config.grid;
|
||||
|
||||
Reference in New Issue
Block a user