fix 80326
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user