update model selector

This commit is contained in:
AceDataCloud committed 2023-10-02 00:28:16 +08:00
1 parent aef00375d7
commit 48e6d1bfb4
3 files changed
+25 -5

No files matched your search

+5 -1
View File
@@ -85,6 +85,9 @@ export default defineComponent({
},
methods: {
onSwitchGroup(group: any) {
if (this.activeGroup === group.value) {
return;
}
this.activeGroup = group.value;
const options = group.options;
if (options && options.length > 0) {
@@ -105,8 +108,9 @@ export default defineComponent({
<style lang="scss" scoped>
.model-selector {
background-color: #ececf1;
padding: 7px;
padding: 7px 6px;
border-radius: 15px;
margin-bottom: 5px;
.group {
padding: 20px 30px;
color: black;
+15 -3
View File
@@ -1,5 +1,5 @@
<template>
<span v-if="application">
<span v-if="application && !initializing" class="info">
{{ $t('conversation.message.usedCount') }}: {{ application?.used_amount }}
{{ $t('conversation.message.remainingCount') }}: {{ application?.remaining_amount }}
</span>
@@ -8,14 +8,21 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { IApplication } from '@/operators';
import { ElSkeleton } from 'element-plus';
export default defineComponent({
name: 'ApiStatus',
components: {},
components: {
ElSkeleton
},
props: {
application: {
type: Object as () => IApplication,
required: true
},
initializing: {
type: Boolean,
required: true
}
},
data() {
@@ -26,4 +33,9 @@ export default defineComponent({
});
</script>
<style lang="scss"></style>
<style lang="scss">
.info {
font-size: 14px;
color: var(--el-color-black);
}
</style>