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/product.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/console/basic-data/product.vue b/src/views/console/basic-data/product.vue index 86bbbb8..3dc9972 100644 --- a/src/views/console/basic-data/product.vue +++ b/src/views/console/basic-data/product.vue @@ -204,8 +204,8 @@ direction: "rtl", drawer: false, testList: [], - uploadUrl: "/api/blade-cps/employee/import-employee", - exportUrl: "/api/blade-cps/employee/export-template", + uploadUrl: "/api/smis/employee/import-employee", + exportUrl: "/api/smis/employee/export-template", activeName: 'first', selection0: [], selection1: [], @@ -240,7 +240,7 @@ methods: { tableLoad(row,treeNode,resolve) { this.searchData.parentId= row.id; - this.$HTTP.post(`/api/blade-cps/product/lazy/tree?current=1&size=-1&id=${row.id}`).then(res=> { + this.$HTTP.post(`/api/smis/product/lazy/tree?current=1&size=-1&id=${row.id}`).then(res=> { if(res.code == 200) { resolve(res.data.records); } @@ -261,11 +261,11 @@ }, delTypeDataSingle(type) { if(this.delTypeNum == 0) { //鍒犻櫎浜у搧 - var url = "/api/blade-cps/product/remove"; - var stopUrl = "/api/blade-cps/product/change-status"; + var url = "/api/smis/product/remove"; + var stopUrl = "/api/smis/product/change-status"; }else if(this.delTypeNum == 1) { //鍒犻櫎浜у搧绫诲瀷 - var url = "/api/blade-cps/product-type/remove"; - var stopUrl = "/api/blade-cps/product-type/change-status"; + var url = "/api/smis/product-type/remove"; + var stopUrl = "/api/smis/product-type/change-status"; } if(type == 0) { //鍒犻櫎 this.$HTTP.delete(url,[this.id]).then(res=> { @@ -293,7 +293,7 @@ this.getProductTypeSelect(); }, addTypeDataSubmit() { - this.$HTTP.post(`/api/blade-cps/product-type/saveOrUpdate`,this.typeData).then(res => { + this.$HTTP.post(`/api/smis/product-type/saveOrUpdate`,this.typeData).then(res => { if (res.code == 200) { this.getProductType(); this.clearTypeData(); @@ -312,7 +312,7 @@ } }, getProductType() { - this.$HTTP.get(`/api/blade-cps/product-type/page?current=1&size=10`).then(res => { + this.$HTTP.get(`/api/smis/product-type/page?current=1&size=10`).then(res => { if (res.code == 200) { this.productTypeTableData = res.data.records; } @@ -324,7 +324,7 @@ this.delTypeModel = true; }, getProductTypeSelect() { - this.$HTTP.get(`/api/blade-cps/product-type/page?size=-1`).then(res => { + this.$HTTP.get(`/api/smis/product-type/page?size=-1`).then(res => { if (res.code == 200) { this.typeIdList = res.data.records; } @@ -360,7 +360,7 @@ done(); }, getExport() { - this.$HTTP.post(`/api/blade-cps/product/export-product`,this.searchData).then(res => { + this.$HTTP.post(`/api/smis/product/export-product`,this.searchData).then(res => { if (res.code == 200) { window.open(res.data.link); } @@ -398,7 +398,7 @@ this.searchBtn0(); }, searchBtn0() { - this.$HTTP.post("/api/blade-cps/product/lazy/tree?current=1&size=15&id=0",this.searchData).then(res=> { + this.$HTTP.post("/api/smis/product/lazy/tree?current=1&size=15&id=0",this.searchData).then(res=> { if(res.code == 200) { this.productTableData = res.data.records; this.total0 = res.data.total; @@ -437,7 +437,7 @@ }, table_edit(row){ this.dialog.save = true - this.$HTTP.get(`/api/blade-cps/product/get/${row.id}`).then(res=> { + this.$HTTP.get(`/api/smis/product/get/${row.id}`).then(res=> { if(res.code == 200) { this.dialog.save = true; this.$nextTick(() => { -- Gitblit v1.9.3