修复在线修改学号不成功

This commit is contained in:
大连巴掌 committed 2023-12-17 14:32:21 +08:00
1 parent 0fa84c2a58
commit f639f2c6b4
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -572,7 +572,7 @@ class Index extends AdminBase
{
// 获取表单数据
$list = request()->only([
'kaohao'
'xuehao'
], 'PUT');
$list['id'] = $id;
+2 -2
View File
@@ -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) {