修改bug

This commit is contained in:
haozq 2026-01-26 18:31:19 +08:00
parent d113295c7c
commit 3eb87ee820
3 changed files with 7 additions and 4 deletions

View File

@ -233,7 +233,7 @@
let login_url = dataUrl + 'login/userLogin' let login_url = dataUrl + 'login/userLogin'
const params = { const params = {
"username": 'sa', "username": 'sa',
"password": 'ebbd6ea34bbab2b0813afcf59c8c9556', "password": '44b572eb0784cccd96cde6f09e724e58',
// "username": 'bns', // "username": 'bns',
// "password": '1769fb2837e10e9d22c1c25add76355a', // "password": '1769fb2837e10e9d22c1c25add76355a',
} }

View File

@ -191,9 +191,12 @@ function addFitDatas(data, planIdArr) {
let money = 0; let money = 0;
$.each(jjDataArr, function (index, item) { $.each(jjDataArr, function (index, item) {
money += parseInt(item.money ? item.money : 0); const dataNum = item.money?item.money:0;
const num = Number(dataNum);
const cents = Math.round(num * 1000);
money += cents;
}) })
$('#money').val(money); $('#money').val(money/1000);
if (!planId) { if (!planId) {
$('#chooseValue').val('选择数据(已选择 ' + planIdArr.length + ' 条)'); $('#chooseValue').val('选择数据(已选择 ' + planIdArr.length + ' 条)');
$('#no_data_title').css({ 'display': 'none' }); $('#no_data_title').css({ 'display': 'none' });

View File

@ -108,7 +108,7 @@ function initTable() {
templet: function (d) { templet: function (d) {
if(d.status === '已生效'){ if(d.status === '已生效'){
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px'>●</span>生效中"; return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px'>●</span>生效中";
}else if(d.status === '未生效'){ }else if(d.status === '已失效'){
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>已失效"; return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>已失效";
} }
}, },