From a08a8766a0526a08dca2842da01711b4152db540 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期四, 22 五月 2025 15:39:15 +0800
Subject: [PATCH] 1
---
src/views/console/tooling/Tray.vue | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/views/console/tooling/Tray.vue b/src/views/console/tooling/Tray.vue
index 0ba4f14..7fcb504 100644
--- a/src/views/console/tooling/Tray.vue
+++ b/src/views/console/tooling/Tray.vue
@@ -42,8 +42,8 @@
<el-container v-if="selectNode.id">
<el-header>
<el-button @click="table_add" type="primary" icon="el-icon-plus"></el-button>
- <import-table style="margin:0 8px" exportUrl="/api/blade-cps/tray/excel/template"
- uploadUrl="/api/blade-cps/tray/import-tray"></import-table>
+ <import-table style="margin:0 8px" exportUrl="/api/smis/tray/excel/template"
+ uploadUrl="/api/smis/tray/import-tray"></import-table>
<el-button type="danger" plain icon="el-icon-delete" @click="batchDel"></el-button>
<el-input v-model="params.keyword" style="width: 240px;margin-left: auto;" placeholder="璇疯緭鍏ユ绱㈠唴瀹�"
clearable></el-input>
@@ -261,7 +261,7 @@
...data,
...this.params
}
- return await this.$HTTP.get(`/api/blade-cps/tray/page/${this.selectNode.id}`, {}, { params }).then(res => {
+ return await this.$HTTP.get(`/api/smis/tray/page/${this.selectNode.id}`, {}, { params }).then(res => {
return res
})
}
@@ -326,13 +326,13 @@
this.visibleGroup = true
},
delArea(data) {
- this.$HTTP.delete(`/api/blade-cps/tray/remove-tree?id=${data.id}`).then(res => {
+ this.$HTTP.delete(`/api/smis/tray/remove-tree?id=${data.id}`).then(res => {
this.init()
})
},
saveGroup() {
if (!this.formGroup.id) {
- this.$HTTP.post(`/api/blade-cps/group`, {
+ this.$HTTP.post(`/api/smis/group`, {
groupCategory: 1,
groupType: "group_tray",
parentId: this.selectNode.id,
@@ -342,7 +342,7 @@
this.init()
})
} else {
- this.$HTTP.put(`/api/blade-cps/group`, {
+ this.$HTTP.put(`/api/smis/group`, {
groupCategory: 1,
groupType: "group_tray",
parentId: this.selectNode.id,
@@ -375,7 +375,7 @@
this.trayForm.groupId = node.id
},
confirm() {
- this.$HTTP.post(`/api/blade-cps/tray/save`, {
+ this.$HTTP.post(`/api/smis/tray/save`, {
...this.trayForm
}).then(res => {
this.dialog = false
@@ -383,7 +383,7 @@
})
},
init() {
- this.$HTTP.post(`/api/blade-cps/tray/tooling-tree`, {
+ this.$HTTP.post(`/api/smis/tray/tooling-tree`, {
groupCategory: 1,
groupType: "group_tray"
}).then(res => {
@@ -394,10 +394,10 @@
queryInfo() {
if (!this.selectNode.id) return
this.$refs?.table?.reload()
- // this.$HTTP.get(`/api/blade-cps/tray/${this.selectNode.id}`).then(res => {
+ // this.$HTTP.get(`/api/smis/tray/${this.selectNode.id}`).then(res => {
// this.info = res.data
// })
- // this.$HTTP.get(`/api/blade-cps/tray-surface/list/${this.selectNode.id}`).then(res => {
+ // this.$HTTP.get(`/api/smis/tray-surface/list/${this.selectNode.id}`).then(res => {
// this.info = res.data
// })
},
@@ -411,10 +411,10 @@
async queryChildInfo(id) {
if (!id) return
this.showLoading = true
- await this.$HTTP.get(`/api/blade-cps/tray/${id}`).then(res => {
+ await this.$HTTP.get(`/api/smis/tray/${id}`).then(res => {
this.info = res.data
})
- await this.$HTTP.get(`/api/blade-cps/tray-surface/list/${id}`).then(res => {
+ await this.$HTTP.get(`/api/smis/tray-surface/list/${id}`).then(res => {
this.infoList = res.data
})
this.showLoading = false
@@ -435,19 +435,19 @@
this.visible = true
},
table_del1(row) {
- this.$HTTP.delete(`/api/blade-cps/tray-surface/remove-face/${this.info.id}?faceId=${row.id}`).then(res => {
+ this.$HTTP.delete(`/api/smis/tray-surface/remove-face/${this.info.id}?faceId=${row.id}`).then(res => {
this.$message.success('鎿嶄綔鎴愬姛')
this.queryChildInfo(this.info.id)
})
},
saveTray() {
if (this.form.id) {
- return this.$HTTP.put(`/api/blade-cps/tray-surface/update`, this.form).then(res => {
+ return this.$HTTP.put(`/api/smis/tray-surface/update`, this.form).then(res => {
this.visible = false
this.queryChildInfo(this.info.id)
})
}
- this.$HTTP.post(`/api/blade-cps/tray-surface/save`, this.form).then(res => {
+ this.$HTTP.post(`/api/smis/tray-surface/save`, this.form).then(res => {
this.visible = false
this.queryChildInfo(this.info.id)
})
--
Gitblit v1.9.3