146146 </div >
147147 </div >
148148
149- <el-form ref =" displayFormRef" :model =" form " >
149+ <el-form ref =" displayFormRef" :model =" xpackForm " >
150150 <el-row class =" w-full mb-8" >
151151 <el-col :span =" 12" >
152152 <h5 class =" mb-8" >
153153 {{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.customThemeColor') }}
154154 </h5 >
155155 <div >
156- <el-color-picker v-model =" form .custom_theme.theme_color" />
156+ <el-color-picker v-model =" xpackForm .custom_theme.theme_color" />
157157 {{
158- !form .custom_theme.theme_color
158+ !xpackForm .custom_theme.theme_color
159159 ? $t('views.applicationOverview.appInfo.SettingDisplayDialog.default')
160160 : ''
161161 }}
167167 $t('views.applicationOverview.appInfo.SettingDisplayDialog.headerTitleFontColor')
168168 }}
169169 </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" />
171171 </el-col >
172172 </el-row >
173173 <el-row class =" w-full mb-8" >
174174 <h5 class =" mb-8" >
175175 {{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.languageLabel') }}
176176 </h5 >
177- <el-select v-model =" form .language" clearable >
177+ <el-select v-model =" xpackForm .language" clearable >
178178 <el-option
179179 v-for =" item in langList"
180180 :key =" item.value"
256256 $t('views.applicationOverview.appInfo.SettingDisplayDialog.iconDefaultPosition')
257257 }}</span >
258258 <el-checkbox
259- v-model =" form .draggable"
259+ v-model =" xpackForm .draggable"
260260 :label ="
261261 $t('views.applicationOverview.appInfo.SettingDisplayDialog.draggablePosition')
262262 "
265265 <el-row :gutter =" 8" class =" w-full mb-8" >
266266 <el-col :span =" 12" >
267267 <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 " >
269269 <el-option
270270 :label ="
271271 $t(
284284 />
285285 </el-select >
286286 <el-input-number
287- v-model =" form .float_location.x.value"
287+ v-model =" xpackForm .float_location.x.value"
288288 :min =" 0"
289289 :step =" 1"
290290 :precision =" 0"
297297 </el-col >
298298 <el-col :span =" 12" >
299299 <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 " >
301301 <el-option
302302 :label ="
303303 $t(
316316 />
317317 </el-select >
318318 <el-input-number
319- v-model =" form .float_location.y.value"
319+ v-model =" xpackForm .float_location.y.value"
320320 :min =" 0"
321321 :step =" 1"
322322 :precision =" 0"
333333
334334 <el-space direction =" vertical" alignment =" start" :size =" 2" >
335335 <el-checkbox
336- v-model =" form .show_source"
336+ v-model =" xpackForm .show_source"
337337 :label ="
338338 isWorkFlow(detail.type)
339339 ? $t('views.applicationOverview.appInfo.SettingDisplayDialog.showExecutionDetail')
340340 : $t('views.applicationOverview.appInfo.SettingDisplayDialog.showSourceLabel')
341341 "
342342 />
343343 <el-checkbox
344- v-model =" form .show_history"
344+ v-model =" xpackForm .show_history"
345345 :label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.showHistory')"
346346 />
347347 <el-checkbox
348- v-model =" form .show_guide"
348+ v-model =" xpackForm .show_guide"
349349 :label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.displayGuide')"
350350 />
351351 <el-checkbox
352- v-model =" form .disclaimer"
352+ v-model =" xpackForm .disclaimer"
353353 :label =" $t('views.applicationOverview.appInfo.SettingDisplayDialog.disclaimer')"
354354 @change =" changeDisclaimer"
355355 />
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" >
358358 <el-input
359- v-model =" form .disclaimer_value"
359+ v-model =" xpackForm .disclaimer_value"
360360 style =" width : 422px ; margin-bottom : 10px "
361361 @change =" changeValue"
362362 :maxlength =" 128"
@@ -421,9 +421,6 @@ const defaultSetting = {
421421}
422422
423423const displayFormRef = ref ()
424- const form = ref <any >({
425- show_source: false
426- })
427424
428425const xpackForm = ref <any >({
429426 show_source: false ,
@@ -468,7 +465,6 @@ const customStyle = computed(() => {
468465})
469466
470467function resetForm() {
471- form .value = cloneDeep (defaultSetting )
472468 xpackForm .value = cloneDeep (defaultSetting )
473469 imgUrl .value = {
474470 avatar: ' ' ,
@@ -503,7 +499,6 @@ const open = (data: any, content: any) => {
503499 imgUrl .value .user_avatar = data .user_avatar
504500 xpackForm .value .disclaimer = data .disclaimer
505501 xpackForm .value .disclaimer_value = data .disclaimer_value
506- console .log (xpackForm .value .disclaimer_value )
507502 if (
508503 xpackForm .value .disclaimer_value ===
509504 t (' views.applicationOverview.appInfo.SettingDisplayDialog.disclaimerValue' )
@@ -520,7 +515,6 @@ const open = (data: any, content: any) => {
520515 header_font_color: data .custom_theme ?.header_font_color || ' #1f2329'
521516 }
522517 xpackForm .value .float_location = data .float_location
523- form .value = xpackForm .value
524518 dialogVisible .value = true
525519}
526520
0 commit comments