list 图标路径方法

main
significative 4 months ago
parent c8f878454b
commit 45065a763a
  1. 9
      jeecgboot-vue3-master/src/views/awardpersion/AwardPersionList.vue

@ -80,7 +80,7 @@
<div style="width: 20px;height: 20px;position: relative;">
<Icon icon="mainHome-awPictureOutlined|svg" :size="25" v-if="!record.sczs"
style="position: absolute;inset: 0;z-index:8;" />
<ImagePreview :imageList="[{ src: record.sczs, width: 25 }]"
<ImagePreview :imageList="[{ src: getImgView(record.sczs), width: 25 }]"
style="position: absolute;inset: 0px;z-index:9;" />
</div>
</template>
@ -99,6 +99,13 @@
// ===========================================
import { Avatar } from 'ant-design-vue';
import { ImagePreview } from '/@/components/Preview/index';
import { getFileAccessHttpUrlzs } from '/@/utils/common/compUtils';
function getImgView(text) {
if (text && text.indexOf(',') > 0) {
text = text.substring(0, text.indexOf(','));
}
return getFileAccessHttpUrlzs(text)
}
// ===========================================^
import { ref, reactive } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';

Loading…
Cancel
Save