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