@@ -7,6 +7,9 @@ import IconOpeDelete from '@/assets/svg/icon_delete.svg'
77import icon_searchOutline_outlined from ' @/assets/svg/icon_search-outline_outlined.svg'
88import EmptyBackground from ' @/views/dashboard/common/EmptyBackground.vue'
99import { useI18n } from ' vue-i18n'
10+ import field_text from ' @/assets/svg/field_text.svg'
11+ import field_time from ' @/assets/svg/field_time.svg'
12+ import field_value from ' @/assets/svg/field_value.svg'
1013import { cloneDeep } from ' lodash-es'
1114
1215interface Form {
@@ -21,6 +24,11 @@ const multipleSelectionAll = ref<any[]>([])
2124const keywords = ref (' ' )
2225const oldKeywords = ref (' ' )
2326const searchLoading = ref (false )
27+ const iconMap = {
28+ text: field_text ,
29+ number: field_value ,
30+ datetime: field_time ,
31+ }
2432
2533const selectable = (row : any ) => {
2634 return ! [1 , 2 , 3 ].includes (row .id )
@@ -322,7 +330,30 @@ const handleCurrentChange = (val: number) => {
322330 <el-table-column prop =" name" :label =" $t('variables.variable_name')" >
323331 <template #default =" scope " >
324332 <div style =" display : flex ; align-items : center " :title =" scope.row.name" >
325- <div class =" ellipsis" style =" max-width : calc (100% - 60px ); width : fit-content " >
333+ <div
334+ class =" ellipsis"
335+ style ="
336+ max-width : calc (100% - 60px );
337+ width : fit-content ;
338+ position : relative ;
339+ padding-left : 20px ;
340+ "
341+ >
342+ <el-icon
343+ :class =" `${scope.row.var_type}-variables`"
344+ size =" 16"
345+ style ="
346+ margin-right : 4px ;
347+ position : absolute ;
348+ left : 0 ;
349+ top : 50% ;
350+ transform : translateY (-50% );
351+ "
352+ >
353+ <component
354+ :is =" iconMap[scope.row.var_type as keyof typeof iconMap]"
355+ ></component >
356+ </el-icon >
326357 {{ scope.row.name }}
327358 </div >
328359 <div v-if =" scope.row.type === 'system'" class =" system-flag" >
@@ -629,8 +660,11 @@ const handleCurrentChange = (val: number) => {
629660 margin-left : 4px ;
630661 color : var (--ed-color-primary-15-d , #189e7a );
631662 }
632- .ed-icon {
633- color : #646a73 ;
663+
664+ & :not (:has(.ellipsis )) {
665+ .ed-icon {
666+ color : #646a73 ;
667+ }
634668 }
635669
636670 .field-comment {
0 commit comments