4141 <el-card shadow =" hover" class =" application-card-add" style =" --el-card-padding : 8px " >
4242 <div class =" card-add-button flex align-center cursor p-8" @click =" openCreateDialog" >
4343 <AppIcon iconName =" app-add-application" class =" mr-8" ></AppIcon >
44- 创建应用
44+ {{ $t('views.application.applicationList.createApplication') }}
4545 </div >
4646 <el-divider style =" margin : 8px 0 " />
4747 <el-upload
5656 class =" card-add-button"
5757 >
5858 <div class =" flex align-center cursor p-8" >
59- <AppIcon iconName =" app-import" class =" mr-8" ></AppIcon >导入应用
59+ <AppIcon iconName =" app-import" class =" mr-8" ></AppIcon >
60+ {{ $t('views.application.applicationList.importApplication') }}
6061 </div >
6162 </el-upload >
6263 </el-card >
99100 <template #subTitle >
100101 <el-text class =" color-secondary" size =" small" >
101102 <auto-tooltip :content =" item.username" >
102- 创建者 : {{ item.username }}
103+ {{ $t('views.application.applicationList.creator') }} : {{ item.username }}
103104 </auto-tooltip >
104105 </el-text >
105106 </template >
106107 <div class =" status-tag" >
107- <el-tag type =" warning" v-if =" isWorkFlow(item.type)" style =" height : 22px "
108- >高级编排 </el-tag
108+ <el-tag type =" warning" v-if =" isWorkFlow(item.type)" style =" height : 22px " >
109+ {{ $t('views.application.applicationList.workflow') }} </el-tag
109110 >
110- <el-tag class =" blue-tag" v-else style =" height : 22px " >简单配置</el-tag >
111+ <el-tag class =" blue-tag" v-else style =" height : 22px " >
112+ {{ $t('views.application.applicationList.simple') }}
113+ </el-tag >
111114 </div >
112115
113116 <template #footer >
114117 <div class =" footer-content" >
115118 <el-tooltip
116119 effect =" dark"
117- :content =" $t('views.application.applicationList.card .demo')"
120+ :content =" $t('views.application.applicationList.setting .demo')"
118121 placement =" top"
119122 >
120123 <el-button text @click.stop @click =" getAccessToken(item.id)" >
121124 <AppIcon iconName =" app-view" ></AppIcon >
122125 </el-button >
123126 </el-tooltip >
124127 <el-divider direction =" vertical" />
125- <el-tooltip
126- effect =" dark"
127- :content =" $t('views.application.applicationList.card.setting')"
128- placement =" top"
129- >
128+ <el-tooltip effect =" dark" :content =" $t('common.setting')" placement =" top" >
130129 <el-button text @click.stop =" settingApplication(item)" >
131130 <AppIcon iconName =" Setting" ></AppIcon >
132131 </el-button >
144143 @click =" copyApplication(item)"
145144 >
146145 <AppIcon iconName =" app-copy" ></AppIcon >
147- 复制</ el-dropdown-item
148- >
146+ {{ $t('views.application.applicationList.setting.copy') }}
147+ </ el-dropdown-item >
149148 <el-dropdown-item @click.stop =" exportApplication(item)" >
150149 <AppIcon iconName =" app-export" ></AppIcon >
151- 导出
150+
151+ {{ $t('views.application.applicationList.setting.import') }}
152152 </el-dropdown-item >
153153 <el-dropdown-item icon =" Delete" @click.stop =" deleteApplication(item)" >{{
154- $t('views.application.applicationList.card. delete.tooltip ')
154+ $t('common. delete')
155155 }}</el-dropdown-item >
156156 </el-dropdown-menu >
157157 </template >
@@ -228,7 +228,9 @@ const exportApplication = (application: any) => {
228228 applicationApi .exportApplication (application .id , application .name , loading ).catch ((e ) => {
229229 if (e .response .status !== 403 ) {
230230 e .response .data .text ().then ((res : string ) => {
231- MsgError (` 导出失败:${JSON .parse (res ).message } ` )
231+ MsgError (
232+ ` ${t (' views.application.applicationList.tip.importError' )}:${JSON .parse (res ).message } `
233+ )
232234 })
233235 }
234236 })
@@ -245,10 +247,14 @@ function openCreateDialog() {
245247 if (user .isEnterprise ()) {
246248 CreateApplicationDialogRef .value .open ()
247249 } else {
248- MsgConfirm (` 提示 ` , ' 社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。' , {
249- cancelButtonText: ' 确定' ,
250- confirmButtonText: ' 购买专业版'
251- })
250+ MsgConfirm (
251+ ` ${t (' common.tip' )} ` ,
252+ ` ${t (' views.application.applicationList.tip.professionalMessage' )} ` ,
253+ {
254+ cancelButtonText: ` ${t (' common.confirm' )} ` ,
255+ confirmButtonText: ` ${t (' common.professional' )} `
256+ }
257+ )
252258 .then (() => {
253259 window .open (' https://maxkb.cn/pricing.html' , ' _blank' )
254260 })
@@ -319,19 +325,19 @@ function getAccessToken(id: string) {
319325function deleteApplication(row : any ) {
320326 MsgConfirm (
321327 // @ts-ignore
322- ` ${t (' views.application.applicationList.card. delete.confirmTitle' )}${row .name } ? ` ,
323- t (' views.application.applicationList.card. delete.confirmMessage' ),
328+ ` ${t (' views.application.applicationList.delete.confirmTitle' )}${row .name } ? ` ,
329+ t (' views.application.applicationList.delete.confirmMessage' ),
324330 {
325- confirmButtonText: t (' views.application.applicationList.card.delete.confirmButton ' ),
326- cancelButtonText: t (' views.application.applicationList.card.delete.cancelButton ' ),
331+ confirmButtonText: t (' common.confirm ' ),
332+ cancelButtonText: t (' common.cancel ' ),
327333 confirmButtonClass: ' danger'
328334 }
329335 )
330336 .then (() => {
331337 applicationApi .delApplication (row .id , loading ).then (() => {
332338 const index = applicationList .value .findIndex ((v ) => v .id === row .id )
333339 applicationList .value .splice (index , 1 )
334- MsgSuccess (t (' views.application.applicationList.card.delete.successMessage ' ))
340+ MsgSuccess (t (' common.deleteSuccess ' ))
335341 })
336342 })
337343 .catch (() => {})
0 commit comments