zhangherong
2025-03-06 0b22c1255437bc6f0170355dad2a35172e0eddfd
src/views/eam/ProjectMaintenanceOrderList.vue
@@ -1,6 +1,6 @@
<template>
  <a-card
    title="项目性维修"
    title=""
    :bordered='false'
  >
    <!-- 查询区域 -->
@@ -76,7 +76,7 @@
                icon='search'
              >查询</a-button>
              <a-button
                type='primary'
                type='info'
                @click='searchReset'
                icon='reload'
                style='margin-left: 8px'
@@ -132,22 +132,21 @@
        @change='handleTableChange'
      >
        <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'checkbox'}" -->
        <template
          slot='imgSlot'
          slot-scope='text,record'
        >
          <span
            v-if='!text'
            style='font-size: 12px;font-style: italic;'
          >无图片</span>
          <img
        <template slot="imgSlot" slot-scope="text,record">
          <span v-if="!record.path" style="font-size: 12px;font-style: italic;">无图片</span>
          <img v-else :src="getImgView(record.path)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
        </template>
        <template slot="fileSlot" slot-scope="text">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
          <a-button
            v-else
            :src='getImgView(text)'
            :preview='record.id'
            height='25px'
            alt=''
            style='max-width:80px;font-size: 12px;font-style: italic;'
          />
            :ghost="true"
            type="primary"
            icon="download"
            size="small"
            @click="downloadFile(text)">
            下载
          </a-button>
        </template>
        <span
@@ -324,11 +323,17 @@
          // }
        },
        {
          title: '附件',
          align: "center",
          dataIndex: 'annex',
          scopedSlots: { customRender: 'imgSlot' }
        },
            title:'附件',
            align:"center",
            dataIndex: 'annex',
            scopedSlots: {customRender: 'fileSlot'}
          },
          // {
          //   title:'图片预览',
          //   align:"center",
          //   dataIndex: 'annex',
          //   scopedSlots: {customRender: 'imgSlot'}
          // },
        // {
        //   title:'变动方式',
        //   align:"center",