fix: generate question components style
parent
adbee39082
commit
aba254c907
|
|
@ -13,7 +13,7 @@
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
require-asterisk-position="right"
|
hide-required-asterisk
|
||||||
>
|
>
|
||||||
<div class="update-info flex border-r-6 mb-16 p-8-12">
|
<div class="update-info flex border-r-6 mb-16 p-8-12">
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
|
|
@ -31,7 +31,12 @@
|
||||||
<el-form-item prop="model_id">
|
<el-form-item prop="model_id">
|
||||||
<template #label>
|
<template #label>
|
||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<span>{{ $t('views.application.form.aiModel.label') }}</span>
|
<div>
|
||||||
|
<span
|
||||||
|
>{{ $t('views.application.form.aiModel.label') }}
|
||||||
|
<span class="color-danger">*</span></span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
|
|
@ -52,6 +57,16 @@
|
||||||
></ModelSelect>
|
></ModelSelect>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('views.application.form.prompt.label')" prop="prompt">
|
<el-form-item :label="$t('views.application.form.prompt.label')" prop="prompt">
|
||||||
|
<template #label>
|
||||||
|
<div class="flex-between">
|
||||||
|
<div>
|
||||||
|
<span
|
||||||
|
>{{ $t('views.application.form.prompt.label') }}
|
||||||
|
<span class="color-danger">*</span></span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.prompt"
|
v-model="form.prompt"
|
||||||
:placeholder="$t('views.application.form.prompt.placeholder')"
|
:placeholder="$t('views.application.form.prompt.placeholder')"
|
||||||
|
|
@ -83,7 +98,6 @@
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<AIModeParamSettingDialog ref="AIModeParamSettingDialogRef" @refresh="refreshForm" />
|
<AIModeParamSettingDialog ref="AIModeParamSettingDialogRef" @refresh="refreshForm" />
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, watch, computed } from 'vue'
|
import { reactive, ref, watch, computed } from 'vue'
|
||||||
|
|
@ -94,7 +108,7 @@ import { MsgSuccess } from '@/utils/message'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import type { FormInstance } from 'element-plus'
|
import type { FormInstance } from 'element-plus'
|
||||||
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
|
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
|
||||||
import AIModeParamSettingDialog from "@/views/application/component/AIModeParamSettingDialog.vue";
|
import AIModeParamSettingDialog from '@/views/application/component/AIModeParamSettingDialog.vue'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
apiType: 'systemShare' | 'workspace' | 'systemManage' | 'workspaceShare'
|
apiType: 'systemShare' | 'workspace' | 'systemManage' | 'workspaceShare'
|
||||||
|
|
@ -162,7 +176,6 @@ function refreshForm(data: any) {
|
||||||
form.value.model_params_setting = data
|
form.value.model_params_setting = data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const open = (ids: string[], type: string, _knowledge?: any) => {
|
const open = (ids: string[], type: string, _knowledge?: any) => {
|
||||||
currentKnowledge.value = _knowledge
|
currentKnowledge.value = _knowledge
|
||||||
getModelFn()
|
getModelFn()
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
></span>
|
></span>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
|
|
||||||
<el-tag v-if="item.type === 'share'" type="info" class="info-tag ml-8 mt-4">
|
<el-tag v-if="item.type === 'share'" type="info" class="info-tag ml-8" style="margin-top: 7px;">
|
||||||
{{ t('views.shared.title') }}
|
{{ t('views.shared.title') }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue