| | |
| | | this.data.splice(index, 1) |
| | | }, |
| | | getList() { |
| | | this.$HTTP.get('/api/blade-cps/global_wcs/wcs-achievements').then(res => { |
| | | this.$HTTP.get('/api/smis/global_wcs/wcs-achievements').then(res => { |
| | | if (res.code === 200) { |
| | | this.data = res.data.filter(v => v.type === 1) |
| | | this.Tabledata = res.data.filter(v => v.type === 4) |
| | |
| | | }) |
| | | }, |
| | | save() { |
| | | this.$HTTP.post('/api/blade-cps/global_wcs/update-wcs-seq', this.data.map(v => v.code)).then(res => { |
| | | this.$HTTP.post('/api/smis/global_wcs/update-wcs-seq', this.data.map(v => v.code)).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success(`操作成功`) |
| | | this.getList() |
| | |
| | | name: row.name, |
| | | rps: row.rps |
| | | } |
| | | this.$HTTP.post('/api/blade-cps/global_wcs/update-wcs-achievements', data).then(res => { |
| | | this.$HTTP.post('/api/smis/global_wcs/update-wcs-achievements', data).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success(`操作成功`) |
| | | this.getList() |
| | |
| | | rps: row.rps, |
| | | type: 4, |
| | | } |
| | | this.$HTTP.post('/api/blade-cps/global_wcs/add-wcs-achievements', data).then(res => { |
| | | this.$HTTP.post('/api/smis/global_wcs/add-wcs-achievements', data).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success(`操作成功`) |
| | | this.getList() |
| | |
| | | }) |
| | | }, |
| | | remove(row) { |
| | | this.$HTTP.delete(`/api/blade-cps/global_wcs/delete-wcs-achievements/${row.code}`).then(res => { |
| | | this.$HTTP.delete(`/api/smis/global_wcs/delete-wcs-achievements/${row.code}`).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success(`操作成功`) |
| | | this.getList() |
| | |
| | | }) |
| | | }, |
| | | rowDrop(arr) { |
| | | this.$HTTP.post(`/api/blade-cps/global_wcs/update-wcs-seq`, arr.map(v => v.code)).then(res => { |
| | | this.$HTTP.post(`/api/smis/global_wcs/update-wcs-seq`, arr.map(v => v.code)).then(res => { |
| | | if (res.success) { |
| | | this.$message.success(res.msg) |
| | | } else { |