| | |
| | | icon="plus" |
| | | :hidden="disabled" |
| | | >新增</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import" >导入</a-button> |
| | | <a-upload |
| | | name="file" |
| | | :showUploadList="false" |
| | | :multiple="false" |
| | | :headers="tokenHeader" |
| | | :action="importExcelUrl" |
| | | @change="handleImportExcel" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | icon="import" |
| | | >导入</a-button> |
| | | </a-upload> |
| | | <a-button |
| | | type="primary" |
| | |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange" |
| | | :scroll="{ x: 'calc(1400px + 50%)', y: 900 }" |
| | | :scroll="{ x: 'calc(1000px + 50%)', y: 900 }" |
| | | > |
| | | <!--字符串超长截取省略号显示--> |
| | | <span |
| | |
| | | align: "center", |
| | | dataIndex: 'detectionStandard', |
| | | }, |
| | | { |
| | | title: '合格范围 ', |
| | | align: "center", |
| | | dataIndex: 'acceptabilityLimit', |
| | | }, |
| | | { |
| | | title: '点检方法', |
| | | align: "center", |
| | | dataIndex: 'inspectionMethod_dictText', |
| | | }, |
| | | { |
| | | title: '检验值类型', |
| | | align: "center", |
| | | dataIndex: 'testValueType_dictText', |
| | | }, |
| | | { |
| | | title: '计量单位', |
| | | align: 'center', |
| | | dataIndex: 'unitId_dictText', |
| | | }, |
| | | // { |
| | | // title: '合格范围 ', |
| | | // align: "center", |
| | | // dataIndex: 'acceptabilityLimit', |
| | | // }, |
| | | // { |
| | | // title: '点检方法', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionMethod_dictText', |
| | | // }, |
| | | // { |
| | | // title: '检验值类型', |
| | | // align: "center", |
| | | // dataIndex: 'testValueType_dictText', |
| | | // }, |
| | | // { |
| | | // title: '计量单位', |
| | | // align: 'center', |
| | | // dataIndex: 'unitId_dictText', |
| | | // }, |
| | | // { |
| | | // title: '点检工具', |
| | | // align: "center", |
| | |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | }, |
| | | width: 150, |
| | | fixed: 'right', |
| | | }, |
| | | // width: 150, |
| | | ], |
| | | url: { |
| | | list: '/eam/inspectionProject/list', |
| | |
| | | }, |
| | | |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | handleAdd: function () { |
| | | this.$refs.modalForm.add({ inspectionProjectCategoryNumName: this.inspectionProjectCategoryNumName }); |