From e1bbf2e1ead77183e75aca8f511cf49ba53f8a74 Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期六, 02 十一月 2024 22:16:10 +0800
Subject: [PATCH] 1
---
src/views/tpm/machine/Dialog.vue | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/tpm/machine/Dialog.vue b/src/views/tpm/machine/Dialog.vue
index a518815..1127d07 100644
--- a/src/views/tpm/machine/Dialog.vue
+++ b/src/views/tpm/machine/Dialog.vue
@@ -480,7 +480,7 @@
}))
}
})
- this.$HTTP.get('/api/blade-cps/device-types/page?keyWord=¤t=1&size=-1').then(res => {
+ this.$HTTP.get('/api/smis/device-types/page?keyWord=¤t=1&size=-1').then(res => {
if (res.code === 200) {
this.options.machineTypeId = res.data.records.map(item => ({
label: item.name,
@@ -488,17 +488,17 @@
}))
}
})
- this.$HTTP.get('/api/blade-cps/employee/tree').then(res => {
+ this.$HTTP.get('/api/smis/employee/tree').then(res => {
if (res.code === 200) {
this.options.employeeId = res.data
}
})
- this.$HTTP.get('/api/blade-cps/group/tree?groupCategory=1&groupType=group_machine').then(res => {
+ this.$HTTP.get('/api/smis/group/tree?groupCategory=1&groupType=group_machine').then(res => {
if (res.code === 200) {
this.options.groupId = res.data
}
})
- this.$HTTP.get('/api/blade-cps/organization/tree?groupType=group_organization&groupCategory=1').then(res => {
+ this.$HTTP.get('/api/smis/organization/tree?groupType=group_organization&groupCategory=1').then(res => {
if (res.code === 200) {
this.options.organizationId = res.data
}
@@ -514,7 +514,7 @@
this.form[item] = ''
})
if (params.id) {
- this.$HTTP.get(`/api/blade-cps/machine/detail/${params.id}`).then(res => {
+ this.$HTTP.get(`/api/smis/machine/detail/${params.id}`).then(res => {
if (res.code === 200) {
this.form = {
...this.form,
@@ -542,11 +542,11 @@
let res
try {
if (this.form.id) {
- res = await this.$HTTP.put('/api/blade-cps/machine', data).catch(() => {
+ res = await this.$HTTP.put('/api/smis/machine', data).catch(() => {
throw new Error()
})
} else {
- res = await this.$HTTP.post('/api/blade-cps/machine', data).catch(() => {
+ res = await this.$HTTP.post('/api/smis/machine', data).catch(() => {
throw new Error()
})
}
--
Gitblit v1.9.3