修正接口请求
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
||||
methods: {
|
||||
getDetail() {
|
||||
let {id} = this.$route.query
|
||||
this.instance.post("/appfinancingdemand/queryDetailById", null, {
|
||||
this.instance.post("/app/appfinancingdemand/queryDetailById", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
})
|
||||
},
|
||||
handleGrab() {
|
||||
this.instance.post("/appfinancingdemand/obtain", null, {
|
||||
this.instance.post("/app/appfinancingdemand/obtain", null, {
|
||||
params: {id: this.detail.id}
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
},
|
||||
handleCancel() {
|
||||
this.$confirm("是否要取消本次融资需求发布?").then(() => {
|
||||
this.instance.post("/appfinancingdemand/cancelObtain", null, {
|
||||
this.instance.post("/app/appfinancingdemand/cancelObtain", null, {
|
||||
params: {id: this.detail.id}
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/appfinancingdemand/list", null, {
|
||||
this.instance.post("/app/appfinancingdemand/list", null, {
|
||||
params: {...this.page, ...this.search, status: 0}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
methods: {
|
||||
getDetail() {
|
||||
let {id} = this.$route.query
|
||||
this.instance.post("/appfinancingdemand/queryDetailById", null, {
|
||||
this.instance.post("/app/appfinancingdemand/queryDetailById", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
},
|
||||
handleCancel() {
|
||||
this.$confirm("是否要回退本次融资需求订单?").then(() => {
|
||||
this.instance.post("/appfinancingdemand/cancelObtain", null, {
|
||||
this.instance.post("/app/appfinancingdemand/cancelObtain", null, {
|
||||
params: {id: this.detail.id}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
this.$refs.AuditForm.validate(v => {
|
||||
if (v) {
|
||||
let {id} = this.detail
|
||||
this.instance.post("/appfinancingdemand/confirmLoan", null, {
|
||||
this.instance.post("/app/appfinancingdemand/confirmLoan", null, {
|
||||
params: {id, ...this.form}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
|
||||
@@ -82,7 +82,7 @@ export default {
|
||||
methods: {
|
||||
getTableData() {
|
||||
let status = this.search.status || 999
|
||||
this.instance.post("/appfinancingdemand/list", null, {
|
||||
this.instance.post("/app/appfinancingdemand/list", null, {
|
||||
params: {...this.page, ...this.search, organizationId: this.user.financeUser?.organizationId, status}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
|
||||
@@ -134,7 +134,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post(`/appfinancingdemand/staticFinancialDemandByOrganization?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
this.instance.post(`/app/appfinancingdemand/staticFinancialDemandByOrganization?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
if (res?.data) {
|
||||
// if (res.data['对接成功率(%)']) {
|
||||
// res.data['对接成功率(%)'] = Number(res.data['对接成功率(%)'] * 100) + '%'
|
||||
@@ -142,13 +142,13 @@ export default {
|
||||
this.cloList = res.data
|
||||
}
|
||||
})
|
||||
this.instance.post(`/appfinancingdemand/staticFinancialDemandByApplyType?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
this.instance.post(`/app/appfinancingdemand/staticFinancialDemandByApplyType?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
if (res?.data) {
|
||||
this.applyInfo = res.data
|
||||
this.circleChartInit(this.applyInfo)
|
||||
}
|
||||
})
|
||||
this.instance.post(`/appfinancingdemand/staticFinancialDemandByHot?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
this.instance.post(`/app/appfinancingdemand/staticFinancialDemandByHot?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
if (res?.data) {
|
||||
var nameList = [], applyList = [], auditList = []
|
||||
res.data.map((item) => {
|
||||
@@ -159,7 +159,7 @@ export default {
|
||||
this.columnChartInit(nameList, applyList, auditList)
|
||||
}
|
||||
})
|
||||
this.instance.post(`/appfinancingdemand/staticFinancialDemandByMonth?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
this.instance.post(`/app/appfinancingdemand/staticFinancialDemandByMonth?areaId=${this.search.areaId}&organizationId=${this.search.organizationId}`).then(res => {
|
||||
if (res?.data) {
|
||||
var monthList = [], applyList = [], auditList = []
|
||||
res.data.map((item) => {
|
||||
@@ -174,7 +174,7 @@ export default {
|
||||
},
|
||||
getList() {
|
||||
let status = this.search.status || 999
|
||||
this.instance.post("/appfinancingdemand/list", null, {
|
||||
this.instance.post("/app/appfinancingdemand/list", null, {
|
||||
params: {...this.page, ...this.search, status}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
|
||||
Reference in New Issue
Block a user