diff --git a/app/student/controller/Index.php b/app/student/controller/Index.php index 0c769827..96ddaedb 100755 --- a/app/student/controller/Index.php +++ b/app/student/controller/Index.php @@ -572,7 +572,7 @@ class Index extends AdminBase { // 获取表单数据 $list = request()->only([ - 'kaohao' + 'xuehao' ], 'PUT'); $list['id'] = $id; diff --git a/app/student/view/index/index.html b/app/student/view/index/index.html index 4c73851a..b94d6c10 100755 --- a/app/student/view/index/index.html +++ b/app/student/view/index/index.html @@ -209,7 +209,7 @@ layui.use(['table', 'mytable', 'createInput', 'form'], function() { // 单元格编辑 table.on('edit(mytable)', function(obj) { // 声明变量 - var kaohao = obj.value, + var xuehao = obj.value, rowdata = obj.data; // 修改服务器数据 @@ -217,7 +217,7 @@ layui.use(['table', 'mytable', 'createInput', 'form'], function() { url: "/student/index/onekaohao/" + rowdata.id, type: 'PUT', data: { - "kaohao": kaohao + "xuehao": xuehao }, success: function(result, objs) { if (result.val == 0 || result.code == 0) {