From 8feb7c37b59fd09de53b6cd76eddfe0cf59ddd55 Mon Sep 17 00:00:00 2001 From: zhangchao <zc857179121@qq.com> Date: 星期六, 23 十一月 2024 08:38:39 +0800 Subject: [PATCH] 修改定时任务触发方式,不是以固定时间执行,以执行完成任务,间隔多少时间在此执行 --- src/main/webapp/static/js/basSte/basSte.js | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/basSte/basSte.js b/src/main/webapp/static/js/basSte/basSte.js index 90cc02f..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: '娣诲姞鏃堕棿'} @@ -105,6 +106,15 @@ }) }) + 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}); + }) + }) + // 鐩戝惉澶村伐鍏锋爮浜嬩欢 table.on('toolbar(basSte)', function (obj) { var checkStatus = table.checkStatus(obj.config.id).data; -- Gitblit v1.9.1