| | |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | <!-- <a-col |
| | | :md="8" |
| | | :sm="8" |
| | | > |
| | |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col |
| | | :md="8" |
| | | :sm="8" |
| | |
| | | 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> |
| | | <a-button |
| | | type="primary" |
| | | icon="download" |
| | |
| | | }, |
| | | width: 50, |
| | | }, |
| | | // { |
| | | // title: '项目编码', |
| | | // align: 'center', |
| | | // dataIndex: 'num', |
| | | // scopedSlots: { |
| | | // customRender: 'num' |
| | | // }, |
| | | // }, |
| | | { |
| | | title: '项目编码', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | scopedSlots: { |
| | | customRender: 'num' |
| | | }, |
| | | }, |
| | | { |
| | | title: '项目名称', |
| | | title: '点检项目', |
| | | align: 'center', |
| | | dataIndex: 'name', |
| | | scopedSlots: { |
| | | customRender: 'name' |
| | | }, |
| | | }, |
| | | { |
| | | title: '计量单位', |
| | | align: 'center', |
| | | dataIndex: 'unitId_dictText', |
| | | }, |
| | | { |
| | | title: '分析方法', |
| | | align: 'center', |
| | | dataIndex: 'analysisMethod_dictText', |
| | | }, |
| | | { |
| | | title: '检验值类型', |
| | | align: "center", |
| | | dataIndex: 'testValueType_dictText', |
| | | }, |
| | | |
| | | // { |
| | | // title: '分析方法', |
| | | // align: 'center', |
| | | // dataIndex: 'analysisMethod_dictText', |
| | | // }, |
| | | { |
| | | title: '检测标准', |
| | | align: "center", |
| | |
| | | dataIndex: 'inspectionMethod_dictText', |
| | | }, |
| | | { |
| | | title: '点检工具', |
| | | title: '检验值类型', |
| | | align: "center", |
| | | dataIndex: 'inspectionTool', |
| | | dataIndex: 'testValueType_dictText', |
| | | }, |
| | | { |
| | | title: '计量单位', |
| | | align: 'center', |
| | | dataIndex: 'unitId_dictText', |
| | | }, |
| | | // { |
| | | // title: '点检工具', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionTool', |
| | | // }, |
| | | { |
| | | title: '创建人', |
| | | align: "center", |
| | |
| | | } |
| | | }, |
| | | |
| | | |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | handleAdd: function () { |
| | | this.$refs.modalForm.add({ inspectionProjectCategoryNumName: this.inspectionProjectCategoryNumName }); |