From f639f2c6b4ea5a4b58af4f8266f9cd9823247fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E8=BF=9E=E5=B7=B4=E6=8E=8C?= Date: Sun, 17 Dec 2023 14:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AD=A6=E5=8F=B7=E4=B8=8D=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/student/controller/Index.php | 2 +- app/student/view/index/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {