fix: 修复分享-Ticket设置有效期可以设置为小数
This commit is contained in:
parent
9807e5c2df
commit
be23d80162
@ -80,6 +80,7 @@
|
||||
min="0"
|
||||
max="1440"
|
||||
size="small"
|
||||
@input="v => handleInput(v, scope.$index)"
|
||||
@change="val => validateExp(val, scope.$index)"
|
||||
/>
|
||||
<span v-else>
|
||||
@ -251,7 +252,12 @@ const refreshTicket = row => {
|
||||
row.ticket = res.data
|
||||
})
|
||||
}
|
||||
|
||||
const handleInput = (val, index) => {
|
||||
if (val === null || val === '') {
|
||||
return
|
||||
}
|
||||
state.tableData[index]['exp'] = val.replace(/[^\d]/g, '')
|
||||
}
|
||||
const validateExp = (val, index) => {
|
||||
const cref = expRefs.value[index]
|
||||
const e = cref.input
|
||||
|
||||
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
||||
Subproject commit 2e3a15d62588fe0b3b23f2f78c67f78a2653432a
|
||||
Subproject commit 365b26a0184732715ebcec96518c7b18e10d8442
|
||||
Loading…
Reference in New Issue
Block a user