| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" |
| | | <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" |
| | | :action="importSafetyEquipmentCheck" |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | <a-button type="primary" icon="import">安全装置检查导入</a-button> |
| | | </a-upload> |
| | | <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" |
| | | :action="importPrecisionCheck" |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">设备精度检查导入</a-button> |
| | | </a-upload> |
| | | <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" |
| | | :action="importOtherCheck" |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">其他检查导入</a-button> |
| | | </a-upload> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | |
| | | align: 'center', |
| | | dataIndex: 'standardName' |
| | | }, |
| | | { |
| | | title: '鉴定周期(年)', |
| | | align: 'center', |
| | | dataIndex: 'evaluationPeriod', |
| | | width: 150 |
| | | }, |
| | | // { |
| | | // title: '鉴定周期(年)', |
| | | // align: 'center', |
| | | // dataIndex: 'evaluationPeriod', |
| | | // width: 150 |
| | | // }, |
| | | { |
| | | title: '规范状态', |
| | | align: 'center', |
| | | dataIndex: 'standardStatus_dictText', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '版本', |
| | | align: 'center', |
| | | dataIndex: 'standardVersion', |
| | | }, |
| | | { |
| | | title: '是否有安全装置检查', |
| | |
| | | url: { |
| | | list: '/eam/eamTechnicalStatusEvaluationStandard/list', |
| | | submit: '/eam/eamTechnicalStatusEvaluationStandard/submit', |
| | | importExcelUrl: 'eam/eamTechnicalStatusEvaluationStandard/importExcel' |
| | | importSafetyEquipmentCheck: 'eam/eamTechnicalStatusEvaluationStandard/importSafetyEquipmentCheck', |
| | | importPrecisionCheck: 'eam/eamTechnicalStatusEvaluationStandard/importPrecisionCheck', |
| | | importOtherCheck: 'eam/eamTechnicalStatusEvaluationStandard/importOtherCheck', |
| | | |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | importSafetyEquipmentCheck: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importSafetyEquipmentCheck}` |
| | | }, |
| | | importPrecisionCheck: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importPrecisionCheck}` |
| | | }, |
| | | importOtherCheck: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importOtherCheck}` |
| | | } |
| | | }, |
| | | methods: { |