+ 干燥失重和炽灼残渣修复样品批号列表内容重复的问题
This commit is contained in:
3
lod.html
3
lod.html
@@ -131,7 +131,7 @@ ${m0r != '' && m1r != '' ? `第二组恒重后空瓶+样 = ${decimal.add(m0r, m1
|
||||
confirm("请输入或选择样品批号!")
|
||||
return
|
||||
}
|
||||
if (confirm("确认删除 " + id + " 的数据?")) {
|
||||
if (confirm(`确认删除 ${id} 的数据?`)) {
|
||||
io.remove(id)
|
||||
loadSavedContentsList()
|
||||
$("#clear").click()
|
||||
@@ -235,6 +235,7 @@ ${m0r != '' && m1r != '' ? `第二组恒重后空瓶+样 = ${decimal.add(m0r, m1
|
||||
|
||||
function loadSavedContentsList() {
|
||||
// load data from localStorage to input.
|
||||
$("#keys").empty()
|
||||
let keys = io.listKeys().sort()
|
||||
keys.forEach(key => {
|
||||
let timestamp = JSON.parse(io.read(key)).time
|
||||
|
||||
6
roi.html
6
roi.html
@@ -82,8 +82,11 @@
|
||||
confirm("请输入或选择样品批号!")
|
||||
return
|
||||
}
|
||||
if (confirm(`确认删除 ${id} 的数据?`)) {
|
||||
io.remove(id)
|
||||
loadSavedContentsList()
|
||||
$("#clear").click()
|
||||
}
|
||||
})
|
||||
|
||||
$("#restore").click(() => {
|
||||
@@ -146,7 +149,8 @@
|
||||
|
||||
function loadSavedContentsList() {
|
||||
// load data from localStorage to input.
|
||||
let keys = io.listKeys()
|
||||
$("#keys").empty()
|
||||
let keys = io.listKeys().sort()
|
||||
keys.forEach(key => {
|
||||
let timestamp = JSON.parse(io.read(key)).time
|
||||
let time = new Date(timestamp).format("yyyy-MM-dd hh:mm")
|
||||
|
||||
Reference in New Issue
Block a user