From 9cd9dff5747427fd3230b42ef66308f4fb6efb27 Mon Sep 17 00:00:00 2001 From: lijiahang Date: Fri, 3 Jun 2022 00:11:48 +0800 Subject: [PATCH] modify style. --- .../src/components/app/AppBuildConfigForm.vue | 26 +++++----- .../components/app/AppReleaseConfigForm.vue | 51 ++++++++++++------- .../src/components/app/AppReleaseModal.vue | 16 +++--- orion-ops-vue/src/lib/utils.js | 44 ++++++++-------- orion-ops-vue/src/views/app/AppConfig.vue | 7 +-- 5 files changed, 80 insertions(+), 64 deletions(-) diff --git a/orion-ops-vue/src/components/app/AppBuildConfigForm.vue b/orion-ops-vue/src/components/app/AppBuildConfigForm.vue index d2999fb1..315956b9 100644 --- a/orion-ops-vue/src/components/app/AppBuildConfigForm.vue +++ b/orion-ops-vue/src/components/app/AppBuildConfigForm.vue @@ -55,12 +55,12 @@ @@ -94,6 +94,14 @@ export default { this.actions.map(s => s.type).filter(t => t === this.$enum.BUILD_ACTION_TYPE.CHECKOUT.value).length < 1 } }, + watch: { + detail(e) { + this.initData(e) + }, + dataLoading(e) { + this.loading = e + } + }, data() { return { loading: false, @@ -104,14 +112,6 @@ export default { editorConfig } }, - watch: { - detail(e) { - this.initData(e) - }, - dataLoading(e) { - this.loading = e - } - }, methods: { initData(detail) { this.profileId = detail.profileId @@ -189,6 +189,7 @@ export default { buildActions: this.actions }).then(() => { this.$message.success('保存成功') + this.$emit('updated') this.loading = false }).catch(() => { this.loading = false @@ -204,7 +205,7 @@ export default {