|
|
|
@ -44,7 +44,7 @@
@@ -44,7 +44,7 @@
|
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
<template v-else-if="column.key === 'avatar'"> |
|
|
|
|
<TableImg :size="60" :simpleShow="true" :imgList="getOssImgUrl(text)"/> |
|
|
|
|
<TableImg :size="60" :simpleShow="true" :imgList="[getOSSProxyUrl(text)]"/> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</BasicTable> |
|
|
|
@ -69,7 +69,7 @@
@@ -69,7 +69,7 @@
|
|
|
|
|
import SsoModal from './SsoModal.vue'; |
|
|
|
|
import { columns, searchFormSchema } from './sso.data'; |
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'; |
|
|
|
|
import { isUrl } from '/@/utils/is'; |
|
|
|
|
import { getOSSProxyUrl } from '/@/utils'; |
|
|
|
|
import { useGlobSetting } from '/@/hooks/setting'; |
|
|
|
|
|
|
|
|
|
interface TableState { |
|
|
|
@ -120,14 +120,13 @@
@@ -120,14 +120,13 @@
|
|
|
|
|
clickToRowSelect: false, |
|
|
|
|
showIndexColumn: false, |
|
|
|
|
actionColumn: { |
|
|
|
|
width: 220, |
|
|
|
|
width: 240, |
|
|
|
|
title: '操作', |
|
|
|
|
dataIndex: 'action', |
|
|
|
|
fixed: false |
|
|
|
|
}, |
|
|
|
|
handleSearchInfoFn: () => clearSelectedRowKeys() |
|
|
|
|
}); |
|
|
|
|
const getOssImgUrl = (url: string) => isUrl(url) ? [url] : [apiUrl + url]; |
|
|
|
|
|
|
|
|
|
/** 处理多选框选中数据 */ |
|
|
|
|
function handleSelectionChange(selection?: Recordable) { |
|
|
|
@ -185,7 +184,7 @@
@@ -185,7 +184,7 @@
|
|
|
|
|
handleSelectionChange, |
|
|
|
|
handleRefreshTable, |
|
|
|
|
handleResetPassword, |
|
|
|
|
getOssImgUrl |
|
|
|
|
getOSSProxyUrl |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|