From b5a8a482a5eede229ffea6b8de6ba2b8f06ac0c4 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期日, 30 七月 2023 18:12:04 +0800
Subject: [PATCH] 除健康外,点击详情页可以获取对应数据
---
ruoyi-ui/src/api/selfeconomy/index.js | 6 +-
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue | 2
ruoyi-ui/src/api/secret/index.js | 6 +-
ruoyi-ui/src/api/healthy/index.js | 8 +-
ruoyi-ui/src/api/honor/index.js | 6 +-
ruoyi-ui/src/api/wish/index.js | 8 +-
ruoyi-ui/src/views/secret/secretInfo.vue | 2
ruoyi-ui/src/views/healthy/healthyInfo.vue | 2
ruoyi-ui/src/views/honor/honorInfo.vue | 83 +++++++--------------------
ruoyi-ui/src/views/wish/wishInfo.vue | 2
10 files changed, 43 insertions(+), 82 deletions(-)
diff --git a/ruoyi-ui/src/api/healthy/index.js b/ruoyi-ui/src/api/healthy/index.js
index 770e8bc..b3ba306 100644
--- a/ruoyi-ui/src/api/healthy/index.js
+++ b/ruoyi-ui/src/api/healthy/index.js
@@ -12,12 +12,12 @@
}
-// // 鏍规嵁id鏌ヨ鎵�鏈夊搴澶囪缁嗕俊鎭�
-export function getHealthInfo(id) {
+// // 鏍规嵁id鏌ヨ璇︾粏淇℃伅
+export function getHealthInfo(query) {
return request({
- url: '/zYearInfo/' + id,
+ url: '/zYearInfo' ,
method: 'get',
-
+ params: query
})
}
diff --git a/ruoyi-ui/src/api/honor/index.js b/ruoyi-ui/src/api/honor/index.js
index 254df54..d2567e5 100644
--- a/ruoyi-ui/src/api/honor/index.js
+++ b/ruoyi-ui/src/api/honor/index.js
@@ -9,11 +9,11 @@
})
}
// 鏍规嵁id鏌ヨ璁板綍
-export function getHonor(id) {
+export function getHonor(query) {
return request({
- url: '/zHonor/'+ id,
+ url: '/zHonor',
method: 'get',
-
+ params: query
})
}
//鏂板鑽h獕璇佷功
diff --git a/ruoyi-ui/src/api/secret/index.js b/ruoyi-ui/src/api/secret/index.js
index 5a4677e..36d54b7 100644
--- a/ruoyi-ui/src/api/secret/index.js
+++ b/ruoyi-ui/src/api/secret/index.js
@@ -13,11 +13,11 @@
// 鏍规嵁id鏌ヨ鎵�鏈夋敹鏀彴璐︿俊鎭�
-export function getSecretInfo(id) {
+export function getSecretInfo(query) {
return request({
- url: '/zSecret/' + id,
+ url: '/zSecret',
method: 'get',
-
+ params: query
})
}
//鏂板鏀舵敮鍙拌处
diff --git a/ruoyi-ui/src/api/selfeconomy/index.js b/ruoyi-ui/src/api/selfeconomy/index.js
index a7afd80..8428225 100644
--- a/ruoyi-ui/src/api/selfeconomy/index.js
+++ b/ruoyi-ui/src/api/selfeconomy/index.js
@@ -13,11 +13,11 @@
// 鏍规嵁id鏌ヨ鎵�鏈変釜浜鸿储浜т俊鎭�
-export function getSelfEconomyInfo(id) {
+export function getSelfEconomyInfo(queryParameters) {
return request({
- url: '/zProperty/'+ id,
+ url: '/zProperty',
method: 'get',
- params: query
+ params: queryParameters
})
}
//鏂板
diff --git a/ruoyi-ui/src/api/wish/index.js b/ruoyi-ui/src/api/wish/index.js
index 55a43de..ba437c6 100644
--- a/ruoyi-ui/src/api/wish/index.js
+++ b/ruoyi-ui/src/api/wish/index.js
@@ -10,12 +10,12 @@
}
// 鏍规嵁id鏌ヨ
-export function getWish(id) {
+export function getWish(queryParameters) {
return request({
- url: '/zIdea/' + id,
+ url: '/zIdea',
method: 'get',
-
- })
+ params: queryParameters
+ });
}
//鏂板
diff --git a/ruoyi-ui/src/views/healthy/healthyInfo.vue b/ruoyi-ui/src/views/healthy/healthyInfo.vue
index 232c9cb..2cc224b 100644
--- a/ruoyi-ui/src/views/healthy/healthyInfo.vue
+++ b/ruoyi-ui/src/views/healthy/healthyInfo.vue
@@ -259,7 +259,7 @@
if (id) {
this.loading = true;
- getSecretInfo(query).then((response) => {
+ getSecretInfo({id}).then((response) => {
this.formData = response.data;
let paths = response.data.url.split(",");
for(let i = 0; i < paths.length; i++)
diff --git a/ruoyi-ui/src/views/honor/honorInfo.vue b/ruoyi-ui/src/views/honor/honorInfo.vue
index 429a7a9..8003196 100644
--- a/ruoyi-ui/src/views/honor/honorInfo.vue
+++ b/ruoyi-ui/src/views/honor/honorInfo.vue
@@ -307,72 +307,33 @@
let _this = this
if (id) {
this.loading = true;
- // getHonor(id).then((response) => {
- // this.formData = response.data;
- // let paths = response.data.url.split(",");
- // for(let i = 0; i < paths.length; i++)
- // {
- // if(paths[i]!="") {
- //
- // let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
- //
- // if (_this.fot.includes(pth) === true)
- // _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
- // else {
- // // alert(paths[i])
- // let nms = paths[i].split("\/")
- // let nm = nms[nms.length - 1]
- // _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
- // }
- // }
- // }
- // this.loading = false;
- // });
+ getHonor({id}).then((response) => {
+ this.formData = response.data;
+ let paths = response.data.url.split(",");
+ for(let i = 0; i < paths.length; i++)
+ {
+ if(paths[i]!="") {
+
+ let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
+
+ if (_this.fot.includes(pth) === true)
+ _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
+ else {
+ // alert(paths[i])
+ let nms = paths[i].split("\/")
+ let nm = nms[nms.length - 1]
+ _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
+ }
+ }
+ }
+ this.loading = false;
+ });
this.fetchData()
this.getCateInfor()
}
- //浠ヤ笅涓簍est
- // if (id){
- // this.loading =true;
- // getHonor(id).then((response)=> {
- // this.formData =response.data;
- // let paths=response.data.url.split(" ");
- // for(let i = 0; i < paths.length; i++){
- // if(paths[i]!=""){
- // let pth = paths[i].substr(paths[i].length - 4, paths[i].length);
- // if (_this.fot.includes(pth)) {
- // _this.fileList.push({
- // name: paths[i],
- // url: process.env.VUE_APP_BASE_TRUE_API + paths[i],
- // });
- // } else {
- // // alert(paths[i])
- // let nms = paths[i].split("\/")
- // let nm = nms[nms.length - 1]
- // _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
- // }
- // }
- // }
- // this.loading = false;
- // });
- //
- // // getHonor(id).then(response => {
- // // // alert(123)
- // // // alert(123)
- // // // console.log(response.data)
- // // // alert(90)
- // // this.formData = response.data;
- // // this.isShow_1=true
- // // // alert(this.rootList[0].url)
- // // // this.total = response.data.total;
- // // this.loading = false;
- // // }
- // // );
- // this.getCateInfor()
- //
- // }
+
},
mounted() {},
methods: {
diff --git a/ruoyi-ui/src/views/secret/secretInfo.vue b/ruoyi-ui/src/views/secret/secretInfo.vue
index 9b65ef2..0a40f0d 100644
--- a/ruoyi-ui/src/views/secret/secretInfo.vue
+++ b/ruoyi-ui/src/views/secret/secretInfo.vue
@@ -266,7 +266,7 @@
let _this = this
if (id) {
this.loading = true;
- getSecretInfo(id).then((response) => {
+ getSecretInfo({id}).then((response) => {
this.formData = response.data;
let paths = response.data.url.split(",");
for(let i = 0; i < paths.length; i++)
diff --git a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
index b660b35..849a329 100644
--- a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
+++ b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -332,7 +332,7 @@
let _this = this
if (id) {
this.loading = true;
- getSelfEconomyInfo(id).then((response) => {
+ getSelfEconomyInfo({id}).then((response) => {
this.formData = response.data;
let paths = response.data.url.split(",");
for(let i = 0; i < paths.length; i++)
diff --git a/ruoyi-ui/src/views/wish/wishInfo.vue b/ruoyi-ui/src/views/wish/wishInfo.vue
index 61fa40f..9d4bc4f 100644
--- a/ruoyi-ui/src/views/wish/wishInfo.vue
+++ b/ruoyi-ui/src/views/wish/wishInfo.vue
@@ -294,7 +294,7 @@
let _this = this
if (id) {
this.loading = true;
- getWish(id).then((response) => {
+ getWish({id}).then((response) => {
this.formData = response.data;
let paths = response.data.url.split(",");
for(let i = 0; i < paths.length; i++)
--
Gitblit v1.9.1