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

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

View File

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