| | |
| | | dicts: ['sys_normal_disable'], |
| | | data(){ |
| | | return{ |
| | | |
| | | loading: false,//刷新修改 |
| | | |
| | | activeName: 'first', |
| | | |
| | | // 返修记录表格数据 |
| | |
| | | if(this.ids.length === 0){ |
| | | this.$modal.msgSuccess('未选择'); |
| | | }else { |
| | | this.loading = true; // 开始加载数据 |
| | | this.$modal.msgSuccess('标记完成'); |
| | | let queryParams = { |
| | | ids: this.ids |
| | | } |
| | | this.repairRecordList = [] |
| | | insertRepairRecordByIds(queryParams).then(response => { |
| | | |
| | | this.initRepairRecord(); // 刷新返修记录 |
| | | this.loading = false; // 结束加载数据 |
| | | }).catch(() => { |
| | | this.loading = false; // 结束加载数据 |
| | | }); |
| | | // this.initRepairRecord() |
| | | // this.getList(); |
| | |
| | | type: 'warning' |
| | | }); |
| | | }else { |
| | | this.$modal.msgSuccess('搜索'); |
| | | // this.$modal.msgSuccess('搜索'); |
| | | this.getList(); |
| | | this.initRepairRecord(); |
| | | } |