diff --git a/src/assets/scss/_common.scss b/src/assets/scss/_common.scss index 156104fa..f0dc8790 100644 --- a/src/assets/scss/_common.scss +++ b/src/assets/scss/_common.scss @@ -43,3 +43,7 @@ body { } } } + +.color-primary { + color: var(--el-color-primary); +} diff --git a/src/components/api/Form.vue b/src/components/api/Form.vue index 92d96f26..c6d093f4 100644 --- a/src/components/api/Form.vue +++ b/src/components/api/Form.vue @@ -13,26 +13,48 @@
- -

{{ $t('application.message.notApplied') }}

- +

+ {{ $t('application.message.notApplied') }} +

+

+ {{ $t('common.button.apply') }} + }" + class="inline-block" + target="_blank" + > + {{ $t('common.button.apply') }} + + {{ + $t('common.button.refresh') + }} +

- + {{ appliedApplication?.api_key }} {{ $t('application.message.yourApplication') }} @@ -44,7 +66,7 @@ v-if="item?.enum" v-model="value[itemKey?.toString()]" clearable - :placeholder="$t('common.title.select')" + :placeholder="$t('common.title.placeholderOfSelect')" > @@ -60,7 +82,7 @@ import { defineComponent } from 'vue'; import { ISchema } from '@/operators/api/models'; import { IService } from '@/operators/service/models'; import { applicationOperator, IApplication, IApplicationListResponse } from '@/operators'; -import application from '@/i18n/zh/application'; +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; interface IData { value: { @@ -70,6 +92,9 @@ interface IData { export default defineComponent({ name: 'ApiForm', + components: { + FontAwesomeIcon + }, props: { schema: { type: Object as () => ISchema | undefined, @@ -84,7 +109,7 @@ export default defineComponent({ required: true } }, - emits: ['update:form'], + emits: ['update:form', 'refresh-applications'], data(): IData { return { value: {} @@ -114,6 +139,9 @@ export default defineComponent({ onChange(key: string, val: string) { console.log('key', key, val); this.value[key] = val; + }, + onRefreshApplications() { + this.$emit('refresh-applications'); } } }); diff --git a/src/components/api/Try.vue b/src/components/api/Try.vue index a4a35555..7a8db4bb 100644 --- a/src/components/api/Try.vue +++ b/src/components/api/Try.vue @@ -1,7 +1,9 @@