src/views/eam/ProjectMaintenanceOrderList.vue
@@ -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",