From dd97e71285d9210c4655a0ead49c1064742d8ee7 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期四, 27 三月 2025 14:50:47 +0800
Subject: [PATCH] 1
---
src/views/console/basic-data/tpmComp1.vue | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/views/console/basic-data/tpmComp1.vue b/src/views/console/basic-data/tpmComp1.vue
index 3a5590f..f3b5978 100644
--- a/src/views/console/basic-data/tpmComp1.vue
+++ b/src/views/console/basic-data/tpmComp1.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-06-23 19:58:50
- * @LastEditors: Sneed
- * @LastEditTime: 2024-06-23 21:07:31
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-12-18 15:16:47
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/basic-data/tpmComp1.vue
-->
<template>
@@ -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,9 +264,9 @@
},
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)
+ this.$TOOL.downFile(res.data.link,res.data.originalName);
}
})
},
@@ -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