From c978996d3e0390c0050479be4684af895cfb72cd Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期二, 18 三月 2025 17:17:39 +0800
Subject: [PATCH] 1
---
src/views/console/basic-data/product.vue | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/views/console/basic-data/product.vue b/src/views/console/basic-data/product.vue
index 86bbbb8..4ad8fd7 100644
--- a/src/views/console/basic-data/product.vue
+++ b/src/views/console/basic-data/product.vue
@@ -2,7 +2,7 @@
* @Author: lzhe lzhe@example.com
* @Date: 2024-03-26 10:28:33
* @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-04-02 17:48:31
+ * @LastEditTime: 2024-12-18 15:21:16
* @FilePath: /smart-web/src/views/master/person/main/index.vue
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -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,9 +360,9 @@
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);
+ this.$TOOL.downFile(res.data.link,res.data.originalName);
}
})
},
@@ -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