fix 80326

This commit is contained in:
danshihao
2024-01-08 10:14:52 +08:00
parent 677bf4bc71
commit 8a4aa492cd
4 changed files with 15 additions and 3 deletions
@@ -164,6 +164,12 @@ export default {
this.$message.warning(this.$t('system.friendshipLink.shelfWarn'))
return
}
// 1开启 0未开启
if (this.dataSource.reduce((pre, cur) => pre += (cur.grounding ? 1 : 0), 0) > 6) {
this.$message.warning('最多上架六个友情链接')
record.grounding = false
return
}
console.log(record)
const param = Object.assign({}, record)
param.grounding = record.grounding === true ? '1' : '0'
@@ -7,6 +7,7 @@
switchFullscreen
@cancel="handleCancel"
@ok="handleOk"
:confirm-loading="confirmLoading"
:visible="visible">
<a-spin :spinning="confirmLoading">
@@ -129,7 +130,10 @@ export default {
this.$message.warning(res.message)
}
}).finally(() => {
this.confirmLoading = false
// 防止连点提交
setTimeout(() => {
this.confirmLoading = false
}, 700)
})
}
})