146
146
</div >
147
147
</div >
148
148
149
- <el-form ref =" displayFormRef" :model =" form " >
149
+ <el-form ref =" displayFormRef" :model =" xpackForm " >
150
150
<el-row class =" w-full mb-8" >
151
151
<el-col :span =" 12" >
152
152
<h5 class =" mb-8" >
153
153
{{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.customThemeColor') }}
154
154
</h5 >
155
155
<div >
156
- <el-color-picker v-model =" form .custom_theme.theme_color" />
156
+ <el-color-picker v-model =" xpackForm .custom_theme.theme_color" />
157
157
{{
158
- !form .custom_theme.theme_color
158
+ !xpackForm .custom_theme.theme_color
159
159
? $t('views.applicationOverview.appInfo.SettingDisplayDialog.default')
160
160
: ''
161
161
}}
167
167
$t('views.applicationOverview.appInfo.SettingDisplayDialog.headerTitleFontColor')
168
168
}}
169
169
</h5 >
170
- <el-color-picker v-model =" form .custom_theme.header_font_color" />
170
+ <el-color-picker v-model =" xpackForm .custom_theme.header_font_color" />
171
171
</el-col >
172
172
</el-row >
173
173
<el-row class =" w-full mb-8" >
174
174
<h5 class =" mb-8" >
175
175
{{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.languageLabel') }}
176
176
</h5 >
177
- <el-select v-model =" form .language" clearable >
177
+ <el-select v-model =" xpackForm .language" clearable >
178
178
<el-option
179
179
v-for =" item in langList"
180
180
:key =" item.value"
256
256
$t('views.applicationOverview.appInfo.SettingDisplayDialog.iconDefaultPosition')
257
257
}}</span >
258
258
<el-checkbox
259
- v-model =" form .draggable"
259
+ v-model =" xpackForm .draggable"
260
260
:label ="
261
261
$t('views.applicationOverview.appInfo.SettingDisplayDialog.draggablePosition')
262
262
"
265
265
<el-row :gutter =" 8" class =" w-full mb-8" >
266
266
<el-col :span =" 12" >
267
267
<div class =" flex align-center" >
268
- <el-select v-model =" form .float_location.x.type" style =" width : 80px " >
268
+ <el-select v-model =" xpackForm .float_location.x.type" style =" width : 80px " >
269
269
<el-option
270
270
:label ="
271
271
$t(
284
284
/>
285
285
</el-select >
286
286
<el-input-number
287
- v-model =" form .float_location.x.value"
287
+ v-model =" xpackForm .float_location.x.value"
288
288
:min =" 0"
289
289
:step =" 1"
290
290
:precision =" 0"
297
297
</el-col >
298
298
<el-col :span =" 12" >
299
299
<div class =" flex align-center" >
300
- <el-select v-model =" form .float_location.y.type" style =" width : 80px " >
300
+ <el-select v-model =" xpackForm .float_location.y.type" style =" width : 80px " >
301
301
<el-option
302
302
:label ="
303
303
$t(
316
316
/>
317
317
</el-select >
318
318
<el-input-number
319
- v-model =" form .float_location.y.value"
319
+ v-model =" xpackForm .float_location.y.value"
320
320
:min =" 0"
321
321
:step =" 1"
322
322
:precision =" 0"
333
333
334
334
<el-space direction =" vertical" alignment =" start" :size =" 2" >
335
335
<el-checkbox
336
- v-model =" form .show_source"
336
+ v-model =" xpackForm .show_source"
337
337
:label ="
338
338
isWorkFlow(detail.type)
339
339
? $t('views.applicationOverview.appInfo.SettingDisplayDialog.showExecutionDetail')
340
340
: $t('views.applicationOverview.appInfo.SettingDisplayDialog.showSourceLabel')
341
341
"
342
342
/>
343
343
<el-checkbox
344
- v-model =" form .show_history"
344
+ v-model =" xpackForm .show_history"
345
345
:label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.showHistory')"
346
346
/>
347
347
<el-checkbox
348
- v-model =" form .show_guide"
348
+ v-model =" xpackForm .show_guide"
349
349
:label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.displayGuide')"
350
350
/>
351
351
<el-checkbox
352
- v-model =" form .disclaimer"
352
+ v-model =" xpackForm .disclaimer"
353
353
:label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.disclaimer')"
354
354
@change =" changeDisclaimer"
355
355
/>
356
- <span v-if =" form .disclaimer"
357
- ><el-tooltip :content =" form .disclaimer_value" placement =" top" >
356
+ <span v-if =" xpackForm .disclaimer"
357
+ ><el-tooltip :content =" xpackForm .disclaimer_value" placement =" top" >
358
358
<el-input
359
- v-model =" form .disclaimer_value"
359
+ v-model =" xpackForm .disclaimer_value"
360
360
style =" width : 422px ; margin-bottom : 10px "
361
361
@change =" changeValue"
362
362
:maxlength =" 128"
@@ -421,9 +421,6 @@ const defaultSetting = {
421
421
}
422
422
423
423
const displayFormRef = ref ()
424
- const form = ref <any >({
425
- show_source: false
426
- })
427
424
428
425
const xpackForm = ref <any >({
429
426
show_source: false ,
@@ -468,7 +465,6 @@ const customStyle = computed(() => {
468
465
})
469
466
470
467
function resetForm() {
471
- form .value = cloneDeep (defaultSetting )
472
468
xpackForm .value = cloneDeep (defaultSetting )
473
469
imgUrl .value = {
474
470
avatar: ' ' ,
@@ -503,7 +499,6 @@ const open = (data: any, content: any) => {
503
499
imgUrl .value .user_avatar = data .user_avatar
504
500
xpackForm .value .disclaimer = data .disclaimer
505
501
xpackForm .value .disclaimer_value = data .disclaimer_value
506
- console .log (xpackForm .value .disclaimer_value )
507
502
if (
508
503
xpackForm .value .disclaimer_value ===
509
504
t (' views.applicationOverview.appInfo.SettingDisplayDialog.disclaimerValue' )
@@ -520,7 +515,6 @@ const open = (data: any, content: any) => {
520
515
header_font_color: data .custom_theme ?.header_font_color || ' #1f2329'
521
516
}
522
517
xpackForm .value .float_location = data .float_location
523
- form .value = xpackForm .value
524
518
dialogVisible .value = true
525
519
}
526
520
0 commit comments