Adapt to mobile style (#259)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2025-08-17 01:15:42 +08:00
1 parent 88c34c9c9d
commit e5c177efcb
24 files changed
+208 -431

No files matched your search

+4 -4
View File
@@ -204,7 +204,7 @@ export default defineComponent({
console.debug('onRestart!', this.question, JSON.stringify(this.references));
// 2. Update the messages
const token = this.credential?.token;
const question = this.question;
const question = this.question.trim();
// reset question and references
if (!token || !question) {
console.error('no token or endpoint or question');
@@ -336,7 +336,7 @@ export default defineComponent({
let content = [];
content.push({
type: 'text',
text: this.question
text: this.question.trim()
});
for (let i = 0; i < this.references.length; i++) {
if (isImageUrl(this.references[i])) {
@@ -358,7 +358,7 @@ export default defineComponent({
});
} else {
this.messages.push({
content: this.question,
content: this.question.trim(),
role: ROLE_USER
});
}
@@ -369,7 +369,7 @@ export default defineComponent({
async onRequest() {
console.debug('start to get answer', this.messages);
const token = this.credential?.token;
const question = this.question;
const question = this.question.trim();
const references = this.references;
console.debug('validated', question, references);
// reset question and references
+1
View File
@@ -13,6 +13,7 @@
v-loading="loading"
:data="applications"
stripe
class="!h-[calc(100vh-250px)]"
table-layout="fixed"
:empty-text="$t('common.message.noData')"
>
+1 -1
View File
@@ -9,7 +9,7 @@
<el-row>
<el-col :span="24">
<el-card shadow="hover">
<el-table v-loading="loading" :data="orders" stripe>
<el-table v-loading="loading" :data="orders" stripe class="!h-[calc(100vh-250px)]">
<el-table-column prop="id" :label="$t('order.field.id')" class-name="text-center" width="190px">
<template #default="scope">
<span class="key">{{ scope.row.id }}</span>
+5 -12
View File
@@ -8,8 +8,8 @@
</el-col>
</el-row>
<el-row>
<el-col :md="8" :sm="12" class="mb-4">
<span class="inline-block mr-3"> {{ $t('usage.field.application') }} </span>
<el-col :md="8" :sm="12" class="flex items-center px-2 mb-4">
<span class="inline-block mr-3 text-sm w-10"> {{ $t('usage.field.application') }} </span>
<el-select
v-model="applicationId"
:placeholder="$t('usage.field.application')"
@@ -19,8 +19,8 @@
<el-option v-for="item in applications" :key="item.id" :label="item.service?.title" :value="item?.id!" />
</el-select>
</el-col>
<el-col :md="8" :sm="12" class="mb-4">
<span class="inline-block mr-3"> {{ $t('usage.field.api') }} </span>
<el-col :md="8" :sm="12" class="flex items-center px-2 mb-4">
<span class="inline-block mr-3 text-sm w-10"> {{ $t('usage.field.api') }} </span>
<el-select v-model="apiId" :placeholder="$t('usage.field.api')" clearable @change="onApiChange">
<el-option v-for="item in apis" :key="item?.id" :label="item?.title" :value="item?.id!" />
</el-select>
@@ -34,6 +34,7 @@
:data="apiUsages"
stripe
table-layout="fixed"
class="!h-[calc(100vh-350px)]"
:empty-text="$t('common.message.noData')"
>
<el-table-column :label="$t('application.field.name')" width="140px">
@@ -262,11 +263,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.panel {
.el-table {
height: calc(100vh - 300px) !important;
}
}
</style>