mirror of https://github.com/halo-dev/halo-admin
parent
4444f27030
commit
febf008624
|
@ -640,7 +640,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleEditStatusMore(status) {
|
handleEditStatusMore(status) {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.info('请至少选择一项!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
commentApi.updateStatusInBatch(this.type, this.selectedRowKeys, status).then(response => {
|
commentApi.updateStatusInBatch(this.type, this.selectedRowKeys, status).then(response => {
|
||||||
|
@ -651,7 +651,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleDeleteMore() {
|
handleDeleteMore() {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.info('请至少选择一项!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
commentApi.deleteInBatch(this.type, this.selectedRowKeys).then(response => {
|
commentApi.deleteInBatch(this.type, this.selectedRowKeys).then(response => {
|
||||||
|
|
|
@ -722,7 +722,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleEditStatusMore(status) {
|
handleEditStatusMore(status) {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.info('请至少选择一项!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
postApi.updateStatusInBatch(this.selectedRowKeys, status).then(response => {
|
postApi.updateStatusInBatch(this.selectedRowKeys, status).then(response => {
|
||||||
|
@ -733,7 +733,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleDeleteMore() {
|
handleDeleteMore() {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.info('请至少选择一项!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
postApi.deleteInBatch(this.selectedRowKeys).then(response => {
|
postApi.deleteInBatch(this.selectedRowKeys).then(response => {
|
||||||
|
|
|
@ -82,7 +82,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleRestartApplication() {
|
handleRestartApplication() {
|
||||||
adminApi.restartApplication().then(response => {
|
adminApi.restartApplication().then(response => {
|
||||||
this.$message.success(`重启中...`)
|
this.$message.info(`重启中...`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,7 +154,7 @@ export default {
|
||||||
adminApi
|
adminApi
|
||||||
.sendResetCode(this.resetParam)
|
.sendResetCode(this.resetParam)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$message.info('邮件发送成功,五分钟内有效')
|
this.$message.success('邮件发送成功,五分钟内有效')
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hide()
|
hide()
|
||||||
|
@ -204,7 +204,7 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
adminApi.resetPassword(this.resetParam).then(response => {
|
adminApi.resetPassword(this.resetParam).then(response => {
|
||||||
this.$message.info('密码重置成功!')
|
this.$message.success('密码重置成功!')
|
||||||
this.$router.push({ name: 'Login' })
|
this.$router.push({ name: 'Login' })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue