@@ -7,7 +7,9 @@ import IconOpeDelete from '@/assets/svg/icon_delete.svg'
77import icon_close_outlined from ' @/assets/svg/operate/ope-close.svg'
88import EmptyBackground from ' @/views/dashboard/common/EmptyBackground.vue'
99import icon_down_outlined from ' @/assets/svg/icon_down_outlined.svg'
10+ import ICON_TABLE from ' @/assets/svg/chart/icon_form_outlined.svg'
1011import Card from ' ./Card.vue'
12+ import { dsTypeWithImg } from ' @/views/ds/js/ds-type'
1113import SelectPermission from ' ./SelectPermission.vue'
1214import AuthTree from ' ./auth-tree/RowAuth.vue'
1315import { getList , savePermissions , delPermissions } from ' @/api/permissions'
@@ -211,6 +213,10 @@ const handleColumnPermission = (row: any) => {
211213 : t (' permission.add_column_permission' )
212214}
213215
216+ const icon = (item : any ) => {
217+ return (dsTypeWithImg .find ((ele ) => item .type === ele .type ) || {}).img
218+ }
219+
214220const handleInitDsIdChange = (val : any ) => {
215221 columnForm .ds_id = val .id
216222 columnForm .ds_name = val .name
@@ -800,7 +806,12 @@ const columnRules = {
800806 :key =" item.id"
801807 :label =" item.name"
802808 :value =" item"
803- />
809+ >
810+ <div style =" display : flex ; align-items : center " >
811+ <img :src =" icon(item)" width =" 24" height =" 24" style =" margin-right : 8px " />
812+ {{ item.name }}
813+ </div >
814+ </el-option >
804815 </el-select >
805816 <el-select
806817 v-model =" activeTable"
@@ -818,7 +829,14 @@ const columnRules = {
818829 :key =" item.id"
819830 :label =" item.table_name"
820831 :value =" item"
821- />
832+ >
833+ <div style =" display : flex ; align-items : center " >
834+ <el-icon size =" 16" style =" margin-right : 8px ; color : #646a73 " >
835+ <ICON _TABLE />
836+ </el-icon >
837+ {{ item.table_name }}
838+ </div >
839+ </el-option >
822840 </el-select >
823841 </el-form-item >
824842 <el-form-item :label =" $t('permission.set_rule')" >
0 commit comments