修改定时上传逻辑,修改铲车页面样式

This commit is contained in:
liuwu 2024-04-02 09:17:01 +08:00
parent 6448cf693a
commit 09cdf209dc
2 changed files with 31 additions and 29 deletions

View File

@ -346,32 +346,33 @@
}
var data = ret.data
if (data.length > 0) {
data.forEach(d => {
var r = JSON.parse(d.text);
api.ajax({
url: 'https://tmr.nxcyx.com/api/app/tmr/resultUpload',
// url: 'http://192.168.0.107:8081/api/resultUpload',
headers: {
'Content-Type': 'application/json;charset=utf-8' //建议key使用首字母大写的形式如 User-Agent
},
method: 'post',
data: {
body: r
}
}, function (ret, err) {
if (ret.code === 200) {
//上传成功后删除
execute(db, "delete from t_tmr_result where id = '" + d.id + "'", function (ret, err) {
if (!ret.status) {
console.log(JSON.stringify(err))
}
})
} else {
console.log(r.name + '上传失败')
addNotice(4, 'red', 'submitData,' + err.msg);
}
});
})
var d = data[0]
var r = JSON.parse(d.text);
api.ajax({
url: 'https://tmr.nxcyx.com/api/app/tmr/resultUpload',
headers: {
'Content-Type': 'application/json;charset=utf-8' //建议key使用首字母大写的形式如 User-Agent
},
method: 'post',
data: {
body: r
}
}, function (ret, err) {
if (ret.code === 200) {
//上传成功后删除
execute(db, "delete from t_tmr_result where id = '" + d.id + "'", function (ret, err) {
if (!ret.status) {
console.log(JSON.stringify(err))
}
})
} else {
console.log(r.name + '上传失败')
addNotice(4, 'red', 'submitData,' + err.msg);
}
});
// data.forEach(d => {
//
// })
}
})
}, 3000);

View File

@ -462,7 +462,7 @@ export default {
/* background-color: #407ae6; */
width: 100%;
color: #000000;
font-size: 30px;
font-size: 35px;
height: 60px;
font-weight: 900;
border-radius: 20px;
@ -518,10 +518,11 @@ export default {
background-color: white;
}
.next_btn_text {
margin-top: 40px;
/* margin-top: 40px; */
height: 100px;
color: #ffffff;
background-color: #407ae6;
font-size: 60px;
font-size: 40px;
font-weight: 900;
border-radius: 20%;
}