4545 @submitDialog =" submitDialog"
4646 />
4747 </el-form-item >
48- <el-form-item >
48+ <el-form-item >
4949 <template #label >
5050 <div class =" flex-between" >
5151 <div class =" flex align-center" >
7070 <Setting />
7171 </el-icon >
7272 </el-button >
73- <el-switch size =" small" v-model =" form_data.file_upload_enable" @change =" switchFileUpload" />
73+ <el-switch
74+ size =" small"
75+ v-model =" form_data.file_upload_enable"
76+ @change =" switchFileUpload"
77+ />
7478 </div >
7579 </div >
7680 </template >
9094 <AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
9195 </el-tooltip> -->
9296 </div >
93- <el-switch size =" small" v-model =" form_data.stt_model_enable" @change =" sttModelEnableChange" />
97+ <el-switch
98+ size =" small"
99+ v-model =" form_data.stt_model_enable"
100+ @change =" sttModelEnableChange"
101+ />
94102 </div >
95103 </template >
96104
97105 <el-select
98106 v-show =" form_data.stt_model_enable"
99107 v-model =" form_data.stt_model_id"
100108 class =" w-full"
109+ @wheel =" wheel"
101110 popper-class =" select-model"
102111 placeholder =" 请选择语音识别模型"
103112 >
170179 <Setting />
171180 </el-icon >
172181 </el-button >
173- <el-switch size =" small" v-model =" form_data.tts_model_enable" @change =" ttsModelEnableChange" />
182+ <el-switch
183+ size =" small"
184+ v-model =" form_data.tts_model_enable"
185+ @change =" ttsModelEnableChange"
186+ />
174187 </div >
175188 </div >
176189 </template >
182195 v-if =" form_data.tts_type === 'TTS' && form_data.tts_model_enable"
183196 v-model =" form_data.tts_model_id"
184197 class =" w-full"
198+ @wheel =" wheel"
185199 popper-class =" select-model"
186200 @change =" ttsModelChange()"
187201 placeholder =" 请选择语音合成模型"
241255 </el-form-item >
242256 </el-form >
243257 <TTSModeParamSettingDialog ref =" TTSModeParamSettingDialogRef" @refresh =" refreshTTSForm" />
244- <FileUploadSettingDialog ref =" FileUploadSettingDialogRef" :node-model =" nodeModel" @refresh =" refreshFileUploadForm" />
258+ <FileUploadSettingDialog
259+ ref =" FileUploadSettingDialogRef"
260+ :node-model =" nodeModel"
261+ @refresh =" refreshFileUploadForm"
262+ />
245263 </NodeContainer >
246264</template >
247265<script setup lang="ts">
@@ -368,7 +386,6 @@ function sttModelEnableChange() {
368386 }
369387}
370388
371-
372389const openTTSParamSettingDialog = () => {
373390 const model_id = form_data .value .tts_model_id
374391 if (! model_id ) {
@@ -382,7 +399,6 @@ const refreshTTSForm = (data: any) => {
382399 form_data .value .tts_model_params_setting = data
383400}
384401
385-
386402const switchFileUpload = () => {
387403 const default_upload_setting = {
388404 maxFiles: 3 ,
@@ -394,7 +410,8 @@ const switchFileUpload = () => {
394410 }
395411
396412 if (form_data .value .file_upload_enable ) {
397- form_data .value .file_upload_setting = form_data .value .file_upload_setting || default_upload_setting
413+ form_data .value .file_upload_setting =
414+ form_data .value .file_upload_setting || default_upload_setting
398415 }
399416 props .nodeModel .graphModel .eventCenter .emit (' refreshFileUploadConfig' )
400417}
0 commit comments