1313 :model =" form"
1414 :rules =" rules"
1515 label-position =" top"
16- require-asterisk-position = " right "
16+ hide-required-asterisk
1717 >
1818 <div class =" update-info flex border-r-6 mb-16 p-8-12" >
1919 <div class =" mt-4" >
3131 <el-form-item prop =" model_id" >
3232 <template #label >
3333 <div class =" flex-between" >
34- <span >{{ $t('views.application.form.aiModel.label') }}</span >
34+ <div >
35+ <span
36+ >{{ $t('views.application.form.aiModel.label') }}
37+ <span class =" color-danger" >*</span ></span
38+ >
39+ </div >
3540 <el-button
3641 type =" primary"
3742 link
5257 ></ModelSelect >
5358 </el-form-item >
5459 <el-form-item :label =" $t('views.application.form.prompt.label')" prop =" prompt" >
60+ <template #label >
61+ <div class =" flex-between" >
62+ <div >
63+ <span
64+ >{{ $t('views.application.form.prompt.label') }}
65+ <span class =" color-danger" >*</span ></span
66+ >
67+ </div >
68+ </div >
69+ </template >
5570 <el-input
5671 v-model =" form.prompt"
5772 :placeholder =" $t('views.application.form.prompt.placeholder')"
8398 </template >
8499 </el-dialog >
85100 <AIModeParamSettingDialog ref =" AIModeParamSettingDialogRef" @refresh =" refreshForm" />
86-
87101</template >
88102<script setup lang="ts">
89103import { reactive , ref , watch , computed } from ' vue'
@@ -94,7 +108,7 @@ import { MsgSuccess } from '@/utils/message'
94108import { t } from ' @/locales'
95109import type { FormInstance } from ' element-plus'
96110import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
97- import AIModeParamSettingDialog from " @/views/application/component/AIModeParamSettingDialog.vue" ;
111+ import AIModeParamSettingDialog from ' @/views/application/component/AIModeParamSettingDialog.vue'
98112
99113const props = defineProps <{
100114 apiType: ' systemShare' | ' workspace' | ' systemManage' | ' workspaceShare'
@@ -162,7 +176,6 @@ function refreshForm(data: any) {
162176 form .value .model_params_setting = data
163177}
164178
165-
166179const open = (ids : string [], type : string , _knowledge ? : any ) => {
167180 currentKnowledge .value = _knowledge
168181 getModelFn ()
0 commit comments