File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 7272 <SelectProviderDialog
7373 v-if =" showFooter"
7474 ref =" selectProviderRef"
75- @change =" (provider, modelType) => openCreateModel(provider, modelType)"
75+ @change =" (provider: any , modelType: any ) => openCreateModel(provider, modelType)"
7676 />
7777 </div >
7878</template >
@@ -82,8 +82,6 @@ import type { Provider } from '@/api/type/model'
8282import { relatedObject } from ' @/utils/utils'
8383import CreateModelDialog from ' @/views/template/component/CreateModelDialog.vue'
8484import SelectProviderDialog from ' @/views/template/component/SelectProviderDialog.vue'
85-
86- import { t } from ' @/locales'
8785import useStore from ' @/stores'
8886
8987defineOptions ({ name: ' ModelSelect' })
Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ import useStore from '@/stores'
130130import authApi from ' @/api/auth-setting'
131131import useApi from ' @/api/user'
132132import { MsgConfirm , MsgError , MsgSuccess } from ' @/utils/message'
133-
134133import { t , getBrowserLang } from ' @/locales'
135134import QrCodeTab from ' @/views/login/components/QrCodeTab.vue'
136135import { useI18n } from ' vue-i18n'
Original file line number Diff line number Diff line change 4444 clearable
4545 >
4646 <template #prepend >
47- <el-select v-model =" searchType" placeholder =" Select" style =" width : 80px " >
47+ <el-select
48+ v-model =" searchType"
49+ placeholder =" Select"
50+ style =" width : 80px "
51+ @change =" searchTypeChange"
52+ >
4853 <el-option :label =" $t('common.title')" value =" title" />
4954 <el-option :label =" $t('common.content')" value =" content" />
5055 </el-select >
133138 <el-dropdown-menu >
134139 <el-dropdown-item @click =" openGenerateDialog(item)" >
135140 <el-icon ><Connection /></el-icon >
136- {{
137- $t('views.document.generateQuestion.title')
138- }}</el-dropdown-item
141+ {{ $t('views.document.generateQuestion.title') }}</el-dropdown-item
139142 >
140143 <el-dropdown-item @click =" openSelectDocumentDialog(item)" >
141144 <AppIcon iconName =" app-migrate" ></AppIcon >
@@ -207,6 +210,10 @@ const title = ref('')
207210const search = ref (' ' )
208211const searchType = ref (' title' )
209212
213+ const searchTypeChange = () => {
214+ search .value = ' '
215+ }
216+
210217// 批量操作
211218const isBatch = ref (false )
212219const multipleSelection = ref <any []>([])
@@ -313,7 +320,7 @@ function addParagraph() {
313320 ParagraphDialogRef .value .open ()
314321}
315322function editParagraph(row : any ) {
316- title .value = t (' views.paragraph.paragraphDetail' )
323+ title .value = t (' views.paragraph.paragraphDetail' )
317324 ParagraphDialogRef .value .open (row )
318325}
319326
You can’t perform that action at this time.
0 commit comments