|
@@ -5,7 +5,8 @@
|
|
|
<el-button size="mini" type="primary" @click="handleUploadModalVisible">上传{{mapTitle[type]}}</el-button>
|
|
|
</div>
|
|
|
<ex-table
|
|
|
- :columns="[...(isSelection ? [{type:'selection'}] : []), ...mapColumns[type || 'budget'], { label: '操作', _slot_: 'action', width:'100px',fixed:'right'}]"
|
|
|
+ :columns="[...(isSelection ? [{ type: 'selection' }] : []),
|
|
|
+ ...mapColumns[type || 'budget'], { label: '操作', _slot_: 'action', width: '100px',fixed:'right'}]"
|
|
|
@selection="handleSelection"
|
|
|
:table="table"
|
|
|
:data="tableData"
|
|
@@ -16,23 +17,30 @@
|
|
|
{{Number(scope.row.is_check) === mapCheck[type || 'budget'].ok ? "已选择" : "未选择"}}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
+
|
|
|
<!-- <template #letter="{}">
|
|
|
<a href="http://hwpro.test241.wanyuhengtong.com/storage/default/20230608/6916c8847df2d1ee629c3490fe43501003ef1e7a.xlsx">{{getFileNameWithUrl('http://hwpro.test241.wanyuhengtong.com/storage/default/20230608/6916c8847df2d1ee629c3490fe43501003ef1e7a.xlsx')}}</a>
|
|
|
</template> -->
|
|
|
+
|
|
|
<template #action="{ scope }">
|
|
|
<el-button type="text" size="mini" @click="openModal(scope.row)">查看</el-button>
|
|
|
- <el-button v-if="type === 'budget'" type="text" size="mini" @click="deleteItem(scope.row)">删除</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="type === 'budget' && Number(scope.row.is_check) !== mapCheck[type].ok"
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ @click="deleteItem(scope.row)"
|
|
|
+ >删除</el-button>
|
|
|
</template>
|
|
|
</ex-table>
|
|
|
|
|
|
<excel-upload-modal
|
|
|
- :visible.sync="xlsxVisible"
|
|
|
- :type="type"
|
|
|
:requsetMethod="requsetMethod"
|
|
|
+ :visible.sync="xlsxVisible"
|
|
|
@submit="handleSubmit"
|
|
|
@refresh="onSearch"
|
|
|
- :title="title"
|
|
|
:isFile="isFile"
|
|
|
+ :title="title"
|
|
|
+ :type="type"
|
|
|
/>
|
|
|
|
|
|
<preview-modal
|