gaoshp
2024-11-03 3931e2728f618d0090f129b2665bc1285c4440c3
src/views/mdc/configComp/Status.vue
@@ -181,7 +181,7 @@
            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)
@@ -189,7 +189,7 @@
            })
        },
        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()
@@ -208,7 +208,7 @@
                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()
@@ -231,7 +231,7 @@
                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()
@@ -239,7 +239,7 @@
            })
        },
        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()
@@ -247,7 +247,7 @@
            })
        },
        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 {