| | |
| | | fun: this.addOrUpdateHandle |
| | | }, |
| | | { |
| | | text: '同步IFS', |
| | | text: '获取IFS零件', |
| | | type: 'primary', |
| | | fun: this.syncISDate, |
| | | loading: false |
| | |
| | | syncPart(datas) |
| | | .then((res) => { |
| | | const data = res.data |
| | | console.log(data); |
| | | if (data.code === 0) { |
| | | this.$message.success('同步成功!') |
| | | if(data.data>0){ |
| | | this.$message.success('同步成功'+data.data+"条数据") |
| | | } |
| | | if(data.data<1){ |
| | | this.$message.warning("该日期没有新的零件数据"); |
| | | } |
| | | this.table.toolbar.find((e) => e.text === '同步IFS').loading = false |
| | | this.getData() |
| | | } else { |
| | | this.$message.error('同步IFS失败') |
| | | this.table.toolbar.find((e) => e.text === '同步IFS').loading = false |
| | | this.getData() |
| | | } |
| | | }) |
| | | .catch((e) => { |