| | |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | |
| | | v-if="record.status === '4'" |
| | | @click="handleFinal(record)" |
| | | >录入结果</a> |
| | | <!-- v-if="record.status === '5'" --> |
| | | <a-divider |
| | | v-if="record.status === '4'" |
| | | type="vertical" |
| | | /> |
| | | <a-dropdown> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | disableMixinCreated:true, |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " 共" + total + "条" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | title: "检定工单执行", |
| | | visible: false, |
| | | maskClosable: true, |
| | |
| | | this.dataSource = [] |
| | | this.visible = true; |
| | | this.queryParam.calibrationOrderId = record.id |
| | | this.loadData1(1) |
| | | }, |
| | | |
| | | loadData1(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error("请设置url.list属性!") |
| | | return |
| | | } |
| | | //加载数据 若传入参数1则加载第一页的内容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams();//查询条件 |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records || res.result; |
| | | if (res.result.total) { |
| | | this.ipagination.total = res.result.total; |
| | | } else { |
| | | this.ipagination.total = 0; |
| | | } |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | |
| | | loadData() { |
| | | this.loadData(1) |
| | | }, |
| | | getBackground() { |
| | | return "background-color:rgba(127, 127, 127,0.08)"; |