From f8897345227f7455132c82abc909cf6ed96e1d40 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 09 六月 2020 09:51:34 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/staDesc/staDesc.js | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/staDesc/staDesc.js b/src/main/webapp/static/js/staDesc/staDesc.js
index 48b0723..efc906c 100644
--- a/src/main/webapp/static/js/staDesc/staDesc.js
+++ b/src/main/webapp/static/js/staDesc/staDesc.js
@@ -66,6 +66,36 @@
}
});
+ // 椤甸潰淇敼
+ table.on('edit(staDesc)', function (obj) {
+ $('body').keydown(function () {
+ if (event.keyCode === 13) {
+ layer.confirm('淇濆瓨淇敼?', function(){
+ $.ajax({
+ url: baseUrl+"/staDesc/update/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: top.reObject({
+ typeId: obj.data.typeId,
+ stnDesc: obj.value
+ }),
+ method: 'POST',
+ async: false,
+ success: function (res) {
+ if (res.code === 200){
+ console.log(res);
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg)
+ }
+ }
+ })
+ console.log(obj);
+ });
+ }
+ });
+ });
+
// 鐩戝惉鎺掑簭浜嬩欢
table.on('sort(staDesc)', function (obj) {
var searchData = {};
--
Gitblit v1.9.1