资源池启用校验优化
This commit is contained in:
parent
4f13120d31
commit
247bb88666
|
@ -364,12 +364,16 @@
|
|||
this.form = {};
|
||||
},
|
||||
changeSwitch(row) {
|
||||
this.result = this.$get('/testresourcepool/update/' + row.id + '/' + row.status)
|
||||
this.result.loading = true;
|
||||
this.$info(this.$t('test_resource_pool.check_in'), 1000);
|
||||
this.$get('/testresourcepool/update/' + row.id + '/' + row.status)
|
||||
.then(() => {
|
||||
this.$success(this.$t('test_resource_pool.status_change_success'));
|
||||
this.result.loading = false;
|
||||
}).catch(() => {
|
||||
this.$error(this.$t('test_resource_pool.status_change_failed'));
|
||||
row.status = 'INVALID';
|
||||
this.result.loading = false;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,12 +16,12 @@ export default {
|
|||
})
|
||||
};
|
||||
|
||||
Vue.prototype.$info = function (message) {
|
||||
Vue.prototype.$info = function (message, duration) {
|
||||
Message.info({
|
||||
message: message,
|
||||
type: "info",
|
||||
showClose: true,
|
||||
duration: 3000
|
||||
duration: duration || 3000
|
||||
})
|
||||
};
|
||||
|
||||
|
|
|
@ -532,6 +532,7 @@ export default {
|
|||
'delete_prompt': 'This operation will permanently delete the resource pool, continue?',
|
||||
'status_change_success': 'Successfully changed the status!',
|
||||
'status_change_failed': 'Failed to change the status, resource pool is invalid!',
|
||||
'check_in': 'Check in',
|
||||
},
|
||||
system_parameter_setting: {
|
||||
'mailbox_service_settings': 'Mailbox Service Settings',
|
||||
|
|
|
@ -531,6 +531,7 @@ export default {
|
|||
'delete_prompt': '此操作将永久删除该资源池, 是否继续?',
|
||||
'status_change_success': '状态修改成功!',
|
||||
'status_change_failed': '状态修改失败, 校验不通过!',
|
||||
'check_in': '校验中',
|
||||
},
|
||||
system_parameter_setting: {
|
||||
'mailbox_service_settings': '邮件服务设置',
|
||||
|
|
|
@ -530,6 +530,7 @@ export default {
|
|||
'delete_prompt': '此操作將永久刪除該資源池, 是否繼續?',
|
||||
'status_change_success': '狀態修改成功!',
|
||||
'status_change_failed': '狀態修改失敗, 校驗不通過!',
|
||||
'check_in': '校驗中',
|
||||
},
|
||||
system_parameter_setting: {
|
||||
'mailbox_service_settings': '郵件服務設定',
|
||||
|
|
Loading…
Reference in New Issue