| | |
| | | <template> |
| | | <a-card |
| | | title="项目性维修" |
| | | title="" |
| | | :bordered='false' |
| | | > |
| | | <!-- 查询区域 --> |
| | |
| | | icon='search' |
| | | >查询</a-button> |
| | | <a-button |
| | | type='primary' |
| | | type='info' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | |
| | | @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 |
| | |
| | | // } |
| | | }, |
| | | { |
| | | 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", |