| | |
| | | @change="handleImportExcel"> |
| | | <a-button v-has="'standard:pointInspection'" type="primary" icon="import">点检标准导入</a-button> |
| | | </a-upload> |
| | | <a-button v-has="'standard:pointInspectionDownload'" type="primary" icon="download" @click="handleTemplateXlsDownload(url.inspectionXlsDownloadUrl)"> |
| | | <a-button v-has="'standard:pointInspectionDownload'" type="primary" icon="download" |
| | | @click="handleTemplateXlsDownload(url.inspectionXlsDownloadUrl)"> |
| | | 点检标准模板下载 |
| | | </a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" |
| | | :action="secondMaintenanceImportExcel" |
| | | @change="handleImportExcel"> |
| | | <a-button v-has="'standard:secondMaintenance'" type="primary" icon="import">二保标准导入</a-button> |
| | | <a-button v-has="'standard:secondMaintenance'" type="primary" icon="import">二保标准导入</a-button> |
| | | </a-upload> |
| | | <a-button v-has="'standard:secondMaintenanceDownload'" type="primary" icon="download" |
| | | <a-button v-has="'standard:secondMaintenanceDownload'" type="primary" icon="download" |
| | | @click="handleTemplateXlsDownload(url.secondMaintenanceXlsDownloadUrl)">二保标准模板下载 |
| | | </a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" |
| | |
| | | @change="handleImportExcel"> |
| | | <a-button v-has="'standard:ThirdMaintenance'" type="primary" icon="import">三保标准导入</a-button> |
| | | </a-upload> |
| | | <a-button v-has="'standard:ThirdMaintenanceDownload'" type="primary" icon="download" @click="handleTemplateXlsDownload(url.thirdMaintenanceXlsDownloadUrl)"> |
| | | <a-button v-has="'standard:ThirdMaintenanceDownload'" type="primary" icon="download" |
| | | @click="handleTemplateXlsDownload(url.thirdMaintenanceXlsDownloadUrl)"> |
| | | 三保标准模板下载 |
| | | </a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | |
| | | </div> |
| | | |
| | | <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource" |
| | | :pagination="ipagination" :loading="loading" class="j-table-force-nowrap" |
| | | :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :customRow='clickThenSelect' |
| | | @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a v-has="'standard:upgrade'" v-if="record.standardStatus === 'START'" @click.stop="handleUpgrade(record)">升版</a> |
| | | <a v-has="'standard:upgrade'" v-if="record.standardStatus === 'START'" |
| | | @click.stop="handleUpgrade(record)">升版</a> |
| | | |
| | | <template v-if="record.standardStatus === 'WAIT_SUBMIT'"> |
| | | <a v-has="'standard:edit'" @click.stop="handleEdit(record)">编辑</a> |
| | |
| | | <a-divider v-has="'standard:saveFlow'" type="vertical"/> |
| | | |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a v-has="'standard:del'" @click.stop="event=>event.stopPropagation()">删除</a> |
| | | <a v-has="'standard:del'" @click.stop="event=>event.stopPropagation()">删除</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | |
| | |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' } |
| | | scopedSlots: { customRender: 'action' }, |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | this.loadData(1) |