From e1c7f150792a5085dd64e86e6af82820ab34dc05 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 03 九月 2024 08:06:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/tzskasrs-2' into tzskasrs-2
---
src/main/webapp/static/js/basSte/basSte.js | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/static/js/basSte/basSte.js b/src/main/webapp/static/js/basSte/basSte.js
index 8da4147..45397a8 100644
--- a/src/main/webapp/static/js/basSte/basSte.js
+++ b/src/main/webapp/static/js/basSte/basSte.js
@@ -38,7 +38,8 @@
,{field: 'hisLev', align: 'center',title: '鍘嗗彶灞�', hide: true}
,{field: 'idleLoc', align: 'center',title: '鏆傚瓨搴撲綅'}
,{field: 'steErr', align: 'center',title: '閿欒鐮�'}
- ,{field: 'pakMk', align: 'center',title: '鏍囪', hide: true}
+ ,{field: 'chargeLine', align: 'center',title: '鏈�浣庣數閲�%'}
+ ,{field: 'autoCharge', align: 'center',title: '鑷姩鍏呯數', templet: '#autoChargeTpl'}
// ,{field: 'status$', align: 'center',title: '鐘舵��'}
// ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'}
// ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
@@ -101,6 +102,15 @@
let data = tableData[index];
data[this.name] = obj.elem.checked?'Y':'N';
http.post(baseUrl+"/basSte/update/auth", {steNo: data.steNo, outEnable: data[this.name]}, function (res) {
+ layer.msg(res.msg, {icon: 1});
+ })
+ })
+
+ form.on('switch(autoChargeSwitch)', function (obj) {
+ let index = obj.othis.parents('tr').attr("data-index");
+ let data = tableData[index];
+ data[this.name] = obj.elem.checked?'Y':'N';
+ http.post(baseUrl+"/basSte/update/auth", {steNo: data.steNo, autoCharge: data[this.name]}, function (res) {
layer.msg(res.msg, {icon: 1});
})
})
@@ -186,9 +196,10 @@
layDateRender(mData);
form.val('detail', mData);
form.on('submit(editSubmit)', function (data) {
- if (!isEmpty(data.idleLoc)) {
- if (data.idleLoc) {
-
+ if (!isEmpty(data.field.idleLoc)) {
+ if (data.field.idleLoc.length !== 7) {
+ layer.msg("鏆傚瓨搴撳瓨涓嶅悎娉�", {icon: 2});
+ return false;
}
}
var loadIndex = layer.load(2);
--
Gitblit v1.9.1