From a751e547d67c4f8e2c6fddf958c1559f792515bd Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 27 六月 2025 16:11:50 +0800 Subject: [PATCH] 添加工作流 --- src/views/eam/ProjectMaintenanceOrderList.vue | 49 +++++++++++++++++++++++++++---------------------- 1 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/views/eam/ProjectMaintenanceOrderList.vue b/src/views/eam/ProjectMaintenanceOrderList.vue index 24aefee..e4d5f92 100644 --- a/src/views/eam/ProjectMaintenanceOrderList.vue +++ b/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", -- Gitblit v1.9.3