From 410d68c849410b4aa28be97bf60eb3af77641aa1 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 08 八月 2023 11:12:47 +0800
Subject: [PATCH] yxh
---
src/utils/request.js | 35 ++++++++++++++++++++---------------
src/views/project/fund/expertFeeFundApply/index.vue | 6 +++---
src/api/project/fund.js | 4 ++--
3 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/src/api/project/fund.js b/src/api/project/fund.js
index 6cdd4e2..abef398 100644
--- a/src/api/project/fund.js
+++ b/src/api/project/fund.js
@@ -51,8 +51,8 @@
// 淇敼璐圭敤鐢宠涓�
export function updateFund(data) {
return request({
- url: '/project/fund',
- method: 'put',
+ url: '/project/fund/fundEdit',
+ method: 'post',
data: data
})
}
diff --git a/src/utils/request.js b/src/utils/request.js
index c3acfca..f0efe10 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -69,15 +69,17 @@
}).catch(() => {});
return Promise.reject('鏃犳晥鐨勪細璇濓紝鎴栬�呬細璇濆凡杩囨湡锛岃閲嶆柊鐧诲綍銆�')
} else if (code === 500) {
- Message({
- message: msg,
- type: 'error'
- })
+ // Message({
+ // message: msg,
+ // type: 'error'
+ // })
+ console.log(msg);
return Promise.reject(new Error(msg))
} else if (code !== 200) {
- Notification.error({
- title: msg
- })
+ // Notification.error({
+ // title: msg
+ // })
+ console.log(msg);
return Promise.reject('error')
} else {
return res.data
@@ -87,19 +89,22 @@
console.log('err' + error)
let { message } = error;
if (message == "Network Error") {
- message = "鍚庣鎺ュ彛杩炴帴寮傚父";
+ // message = "鍚庣鎺ュ彛杩炴帴寮傚父";
+ console.log("Network Erro",message);
}
else if (message.includes("timeout")) {
- message = "绯荤粺鎺ュ彛璇锋眰瓒呮椂";
+ // message = "绯荤粺鎺ュ彛璇锋眰瓒呮椂";
+ console.log("timeout",message);
}
else if (message.includes("Request failed with status code")) {
- message = "绯荤粺鎺ュ彛" + message.substr(message.length - 3) + "寮傚父";
+ // message = "绯荤粺鎺ュ彛" + message.substr(message.length - 3) + "寮傚父";
+ console.log("Request failed with status code",message);
}
- Message({
- message: message,
- type: 'error',
- duration: 10* 1000
- })
+ // Message({
+ // message: message,
+ // type: 'error',
+ // duration: 10* 1000
+ // })
return Promise.reject(error)
}
)
diff --git a/src/views/project/fund/expertFeeFundApply/index.vue b/src/views/project/fund/expertFeeFundApply/index.vue
index b3f77d6..be82940 100644
--- a/src/views/project/fund/expertFeeFundApply/index.vue
+++ b/src/views/project/fund/expertFeeFundApply/index.vue
@@ -866,7 +866,7 @@
this.form.donorno = this.curCase.donorno;
this.form.name = this.curCase.name;
this.form.infoid = this.curCase.id;
-
+
this.form.username = this.defaultperson.nickName;
this.form.userno = this.defaultperson.userName;
this.form.phone = this.defaultperson.phonenumber;
@@ -1022,7 +1022,7 @@
//鏌ユ壘鏄惁瀛樺湪鐧昏瀹屾垚璁板綍
//鍒ゆ柇鏄惁瀛樺湪涓婃姤璁板綍
row.recordstatus = 0;
-
+ console.log("updateFund", row);
updateFund(row).then((response) => {
if (response.code == 200) {
this.$message({
@@ -1496,7 +1496,7 @@
this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
}
// this.queryParams.residencetown = this.$refs.areaSelect.getQu();
-
+
console.log("111", this.queryParams);
listDonatebaseinfo(this.queryParams).then((response) => {
this.donatebaseinfoList = response.rows;
--
Gitblit v1.9.3