Merge pull request #10510 from dataease/pr@dev-v2@fix_share_ticket_exp

fix: 修复分享-Ticket设置有效期可以设置为小数
This commit is contained in:
fit2cloud-chenyw 2024-06-26 10:29:14 +08:00 committed by GitHub
commit 93a052959d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -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

@ -1 +1 @@
Subproject commit 2e3a15d62588fe0b3b23f2f78c67f78a2653432a
Subproject commit 365b26a0184732715ebcec96518c7b18e10d8442