1717 <div class =" flex align-center" >
1818 <el-button type =" primary" @click.prevent =" resetForm" link >
1919 <el-icon class =" mr-4" >
20- <Refresh />
20+ <Refresh />
2121 </el-icon >
2222 {{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.restoreDefault') }}
2323 </el-button >
24- <el-divider direction =" vertical" />
24+ <el-divider direction =" vertical" />
2525 </div >
2626 </div >
2727 </template >
3939 :size =" 32"
4040 style =" background : none "
4141 >
42- <img :src =" detail?.icon" alt =" " />
42+ <img :src =" detail?.icon" alt =" " />
4343 </el-avatar >
4444 <el-avatar
4545 v-else-if =" detail?.name"
7272 color: xpackForm.custom_theme?.header_font_color
7373 }"
7474 >
75- <Close />
75+ <Close />
7676 </el-icon >
7777 </el-button >
7878 </div >
134134 style =" width : 28px ; height : 28px ; display : block "
135135 />
136136 <el-avatar v-else >
137- <img src =" @/assets/user-icon.svg" style =" width : 54% " alt =" " />
137+ <img src =" @/assets/user-icon.svg" style =" width : 54% " alt =" " />
138138 </el-avatar >
139139 </div >
140140 </div >
143143 style =" position : absolute ; bottom : 0 ; padding-bottom : 8px ; box-sizing : border-box "
144144 class =" p-16 text-center w-full"
145145 >
146- <img src =" @/assets/display-bg1.png" alt =" " class =" w-full" />
146+ <img src =" @/assets/display-bg1.png" alt =" " class =" w-full" />
147147 <el-text type =" info" v-if =" xpackForm.disclaimer" class =" mt-8" style =" font-size : 12px " >
148148 <auto-tooltip :content =" xpackForm.disclaimer_value" >
149149 {{ xpackForm.disclaimer_value }}
177177 {{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.customThemeColor') }}
178178 </h5 >
179179 <div >
180- <el-color-picker v-model =" xpackForm.custom_theme.theme_color" />
180+ <el-color-picker v-model =" xpackForm.custom_theme.theme_color" />
181181 {{
182182 !xpackForm.custom_theme.theme_color
183183 ? $t('views.applicationOverview.appInfo.SettingDisplayDialog.default')
191191 $t('views.applicationOverview.appInfo.SettingDisplayDialog.headerTitleFontColor')
192192 }}
193193 </h5 >
194- <el-color-picker v-model =" xpackForm.custom_theme.header_font_color" />
194+ <el-color-picker v-model =" xpackForm.custom_theme.header_font_color" />
195195 </el-col >
196196 </el-row >
197197 <el-row class =" w-full mb-8" >
210210 <el-card shadow =" never" class =" mb-8" >
211211 <div class =" flex-between mb-8" >
212212 <span class =" lighter" >{{
213- $t('views.applicationOverview.appInfo.SettingDisplayDialog.AIAvatar')
214- }}</span >
213+ $t('views.applicationOverview.appInfo.SettingDisplayDialog.AIAvatar')
214+ }}</span >
215215 <span class =" flex align-center" >
216216 <el-checkbox v-model =" xpackForm.show_avatar" >{{
217- $t('views.applicationOverview.appInfo.SettingDisplayDialog.display')
218- }}</el-checkbox >
217+ $t('views.applicationOverview.appInfo.SettingDisplayDialog.display')
218+ }}</el-checkbox >
219219 <el-upload
220220 class =" ml-8"
221221 ref =" uploadRef"
238238 <el-card shadow =" never" class =" mb-8" >
239239 <div class =" flex-between mb-8" >
240240 <span class =" lighter" >{{
241- $t('views.applicationOverview.appInfo.SettingDisplayDialog.askUserAvatar')
242- }}</span >
241+ $t('views.applicationOverview.appInfo.SettingDisplayDialog.askUserAvatar')
242+ }}</span >
243243 <span class =" flex align-center" >
244244 <el-checkbox v-model =" xpackForm.show_user_avatar" >
245245 {{
262262 </span >
263263 </div >
264264 <el-text type =" info" size =" small"
265- >{{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.imageMessage') }}
265+ >{{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.imageMessage') }}
266266 </el-text >
267267 </el-card >
268268 <el-card shadow =" never" class =" mb-8" >
269269 <div class =" flex-between mb-8" >
270270 <span class =" lighter" >{{
271- $t('views.applicationOverview.appInfo.SettingDisplayDialog.floatIcon')
272- }}</span >
271+ $t('views.applicationOverview.appInfo.SettingDisplayDialog.floatIcon')
272+ }}</span >
273273 <el-upload
274274 ref =" uploadRef"
275275 action =" #"
289289 <div class =" border-t mt-8" >
290290 <div class =" flex-between mb-8" >
291291 <span class =" lighter" >{{
292- $t('views.applicationOverview.appInfo.SettingDisplayDialog.iconDefaultPosition')
293- }}</span >
292+ $t('views.applicationOverview.appInfo.SettingDisplayDialog.iconDefaultPosition')
293+ }}</span >
294294 <el-checkbox
295295 v-model =" xpackForm.draggable"
296296 :label ="
370370 <el-space direction =" vertical" alignment =" start" :size =" 2" >
371371 <el-checkbox
372372 v-model =" xpackForm.show_source"
373- :label ="
374- isWorkFlow(detail.type)
375- ? $t('views.applicationOverview.appInfo.SettingDisplayDialog.showExecutionDetail')
376- : $t('views.applicationOverview.appInfo.SettingDisplayDialog.showSourceLabel')
377- "
373+ :label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.showSourceLabel') "
374+ />
375+ < el-checkbox
376+ v-model = " xpackForm.show_exec "
377+ :label = " $t('views.applicationOverview.appInfo.SettingDisplayDialog.showExecutionDetail') "
378378 />
379379 <el-checkbox
380380 v-model =" xpackForm.show_history"
390390 @change =" changeDisclaimer"
391391 />
392392 <span v-if =" xpackForm.disclaimer"
393- ><el-tooltip :content =" xpackForm.disclaimer_value" placement =" top" >
393+ ><el-tooltip :content =" xpackForm.disclaimer_value" placement =" top" >
394394 <el-input
395395 v-model =" xpackForm.disclaimer_value"
396396 style =" width : 422px ; margin-bottom : 10px "
413413 </el-dialog >
414414</template >
415415<script setup lang="ts">
416- import { computed , ref , watch } from ' vue'
417- import { useRoute } from ' vue-router'
418- import type { FormInstance , FormRules , UploadFiles } from ' element-plus'
419- import { isWorkFlow } from ' @/utils/application'
420- import { isAppIcon } from ' @/utils/common'
416+ import {computed , ref , watch } from ' vue'
417+ import {useRoute } from ' vue-router'
418+ import type {FormInstance , FormRules , UploadFiles } from ' element-plus'
419+ import {isAppIcon } from ' @/utils/common'
421420import applicationXpackApi from ' @/api/application/application-xpack'
422- import { MsgSuccess , MsgError } from ' @/utils/message'
423- import { langList , t } from ' @/locales'
421+ import {MsgSuccess , MsgError } from ' @/utils/message'
422+ import {langList , t } from ' @/locales'
424423import useStore from ' @/stores'
425- import { cloneDeep } from ' lodash'
424+ import {cloneDeep } from ' lodash'
426425
427- const { user } = useStore ()
426+ const {user} = useStore ()
428427
429428const route = useRoute ()
430429const {
431- params : { id }
430+ params : {id }
432431} = route
433432
434433const emit = defineEmits ([' refresh' ])
435434
436435const defaultSetting = {
437436 show_source: false ,
437+ show_exec: false ,
438438 language: ' ' ,
439439 show_history: true ,
440440 draggable: true ,
@@ -452,8 +452,8 @@ const defaultSetting = {
452452 header_font_color: ' #1f2329'
453453 },
454454 float_location: {
455- y: { type: ' bottom' , value: 30 },
456- x: { type: ' right' , value: 0 }
455+ y: {type: ' bottom' , value: 30 },
456+ x: {type: ' right' , value: 0 }
457457 },
458458 show_avatar: true ,
459459 show_user_avatar: false
@@ -463,6 +463,7 @@ const displayFormRef = ref()
463463
464464const xpackForm = ref <any >({
465465 show_source: false ,
466+ show_exec: false ,
466467 language: ' ' ,
467468 show_history: false ,
468469 draggable: false ,
@@ -480,8 +481,8 @@ const xpackForm = ref<any>({
480481 header_font_color: ' #1f2329'
481482 },
482483 float_location: {
483- y: { type: ' bottom' , value: 30 },
484- x: { type: ' right' , value: 0 }
484+ y: {type: ' bottom' , value: 30 },
485+ x: {type: ' right' , value: 0 }
485486 },
486487 show_avatar: true ,
487488 show_user_avatar: false
@@ -531,6 +532,7 @@ const onChange = (file: any, fileList: UploadFiles, attr: string) => {
531532const open = (data : any , content : any ) => {
532533 detail .value = content
533534 xpackForm .value .show_source = data .show_source
535+ xpackForm .value .show_exec = data .show_exec
534536 xpackForm .value .show_history = data .show_history
535537 xpackForm .value .language = data .language
536538 xpackForm .value .draggable = data .draggable
@@ -591,7 +593,7 @@ const submit = async (formEl: FormInstance | undefined) => {
591593 })
592594}
593595
594- defineExpose ({ open })
596+ defineExpose ({open })
595597 </script >
596598<style lang="scss">
597599.setting-preview {
0 commit comments