From 3e091224ab26252d8624b42b461ba773ee8bee0f Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 03 十一月 2024 19:16:31 +0800
Subject: [PATCH] update

---
 src/views/console/basic-data/tpmComp1.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/views/console/basic-data/tpmComp1.vue b/src/views/console/basic-data/tpmComp1.vue
index 3a5590f..dac37fb 100644
--- a/src/views/console/basic-data/tpmComp1.vue
+++ b/src/views/console/basic-data/tpmComp1.vue
@@ -132,8 +132,8 @@
             form: {},
             selection: [],
             visible: false,
-            exportUrlTpl: '/api/blade-cps/check-project/excel/template',
-            uploadUrl: '/api/blade-cps/check-project/excel/import',
+            exportUrlTpl: '/api/smis/check-project/excel/template',
+            uploadUrl: '/api/smis/check-project/excel/import',
             config: {
                 labelWidth: 120,
                 formItems: [
@@ -202,7 +202,7 @@
                         ...data,
                         ...this.params
                     }
-                    return await this.$HTTP.get(`/api/blade-cps/check-project/page`, {}, { params }).then(res => {
+                    return await this.$HTTP.get(`/api/smis/check-project/page`, {}, { params }).then(res => {
                         res.data.records = res?.data?.records.map(v => {
                             return {
                                 ...v,
@@ -247,14 +247,14 @@
         },
         submit() {
             if (!this.form.id) {
-                this.$HTTP.post(`/api/blade-cps/check-project`, this.form).then(res => {
+                this.$HTTP.post(`/api/smis/check-project`, this.form).then(res => {
                     if (res.success) {
                         this.visible = false
                         this.search()
                     }
                 })
             } else {
-                this.$HTTP.put(`/api/blade-cps/check-project`, this.form).then(res => {
+                this.$HTTP.put(`/api/smis/check-project`, this.form).then(res => {
                     if (res.success) {
                         this.visible = false
                         this.search()
@@ -264,7 +264,7 @@
 
         },
         exportData() {
-            this.$HTTP.post(`/api/blade-cps/check-project/excel/export`, {}, { params: this.params }).then(res => {
+            this.$HTTP.post(`/api/smis/check-project/excel/export`, {}, { params: this.params }).then(res => {
                 if (res.success) {
                     window.open(res.data.link)
                 }
@@ -274,7 +274,7 @@
             this.$refs.table.reload()
         },
         table_del(selection, type) {
-            this.$HTTP.delete(`/api/blade-cps/check-project?type=${type}`, {}, {
+            this.$HTTP.delete(`/api/smis/check-project?type=${type}`, {}, {
                 data: {
                     ids: selection.map(v => v.id),
                 }
@@ -294,14 +294,14 @@
         },
         getList() {
             let row = this.selectRow
-            return this.$HTTP.get(`/api/blade-cps/check-item/list?projectId=${row.id}`).then(res => {
+            return this.$HTTP.get(`/api/smis/check-item/list?projectId=${row.id}`).then(res => {
                 if (res.success) {
                     this.tabledata = res.data
                 }
             })
         },
         del(row) {
-            this.$HTTP.delete(`/api/blade-cps/check-item`, {}, {
+            this.$HTTP.delete(`/api/smis/check-item`, {}, {
                 data: {
                     ids: [row.id]
                 }
@@ -322,7 +322,7 @@
         },
         add(row) {
             if (!row.id) {
-                this.$HTTP.post(`/api/blade-cps/check-item`, {
+                this.$HTTP.post(`/api/smis/check-item`, {
                     checkProjectId: this.selectRow.id,
                     items: [{
                         ...row,
@@ -337,7 +337,7 @@
                     this.getList()
                 })
             } else {
-                this.$HTTP.put(`/api/blade-cps/check-item`, {
+                this.$HTTP.put(`/api/smis/check-item`, {
                     ...row,
                     name: row.name,
                     requirement: row.requirement,

--
Gitblit v1.9.3