From b27efc697f2f81e0d0f247a2708e58af52a5df9b Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 23 十月 2025 15:14:33 +0800
Subject: [PATCH] bug修改,后台新增修改用户积分

---
 cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js b/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js
index b89d9de..edf6462 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js
@@ -106,6 +106,25 @@
         }
     }
 };
+TQuestion.changeIntegral = function () {
+    var selected = $('#' + this.id).bootstrapTable('getSelections');
+    if(selected.length >1 ){
+        Feng.info("只能选择一个用户进行修改!");
+    }else {
+        if (this.check()){
+            var selected = $('#' + this.id).bootstrapTable('getSelections');
+            var index = layer.open({
+                type: 2,
+                title: '修改积分',
+                area: ['100%', '100%'], //宽高
+                fix: false, //不固定
+                maxmin: true,
+                content: Feng.ctxPath + '/appUser/changeIntegral/' + TQuestion.seItem.id
+            });
+            this.layerIndex = index;
+        }
+    }
+};
 
 /**
  * 查看详情
@@ -380,6 +399,32 @@
     });
 
 };
+TQuestion.updateIntegral = function(){
+
+    if (    $("#changeType").val()==null ||$("#changeType").val()==""){
+        Feng.info("请选择变动类型")
+        return;
+    }
+    if (    $("#integral").val()==null ||$("#integral").val()==""){
+        Feng.info("请输入变动积分数")
+        return;
+    }
+
+    //提交信息
+    var ajax = new $ax(Feng.ctxPath + "/appUser/updateIntegral", function(data){
+        Feng.success("添加成功!")
+        TQuestion.close();
+
+    },function(data){
+        Feng.error("添加失败!" + data.responseJSON.message + "!");
+    });
+    ajax.set("changeType",$("#changeType").val());
+    ajax.set("integral",$("#integral").val());
+    ajax.set("remark",$("#remark").val());
+    ajax.set("id",$("#id").val());
+    ajax.start();
+
+};
 TQuestion.addStudentSubmit = function(){
     var data = {
         appUserId:null,

--
Gitblit v1.7.1