修正接口请求

This commit is contained in:
aixianling
2022-08-26 14:24:34 +08:00
parent 44ca30cbf3
commit ce1fd46b7e
53 changed files with 151 additions and 151 deletions

View File

@@ -86,7 +86,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appfinancialorganization/list", null, {
this.instance.post("/app/appfinancialorganization/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -100,7 +100,7 @@ export default {
this.$refs.addAccountForm.validate(v => {
if (v) {
let {form: {logoUrl: logo}} = this, logoUrl = logo?.[0]?.url
this.instance.post("/appfinancialorganization/addOrUpdate", {...this.form, logoUrl}).then(res => {
this.instance.post("/app/appfinancialorganization/addOrUpdate", {...this.form, logoUrl}).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.dialog = false
@@ -117,7 +117,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该机构?").then(() => {
this.instance.post("/appfinancialorganization/delete", null, {
this.instance.post("/app/appfinancialorganization/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {

View File

@@ -85,7 +85,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appfinancialorganizationuser/list", null, {
this.instance.post("/app/appfinancialorganizationuser/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -97,7 +97,7 @@ export default {
submitAddAcount() {
this.$refs.addAccountForm.validate(v => {
if (v) {
this.instance.post("/appfinancialorganizationuser/addOrUpdate", this.form).then(res => {
this.instance.post("/app/appfinancialorganizationuser/addOrUpdate", this.form).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.dialog = false
@@ -113,7 +113,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该成员?").then(() => {
this.instance.post("/appfinancialorganizationuser/delete", null, {
this.instance.post("/app/appfinancialorganizationuser/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {

View File

@@ -155,7 +155,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
id && this.instance.post("/appfinancialproduct/queryDetailById", null, {
id && this.instance.post("/app/appfinancialproduct/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -171,7 +171,7 @@ export default {
let {form} = this
form.faceUser = form.faceUser?.toString()
form.guaranteeMode = form.guaranteeMode?.toString()
this.instance.post("/appfinancialproduct/addOrUpdate", form).then(res => {
this.instance.post("/app/appfinancialproduct/addOrUpdate", form).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.back()

View File

@@ -118,7 +118,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
this.instance.post("/appfinancialproduct/queryDetailById", null, {
this.instance.post("/app/appfinancialproduct/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -135,7 +135,7 @@ export default {
},
getZWSP(id) {
//贷款联审信息
return this.instance.post("/approval-process-def/info-id", null, {params: {id}}).then(res => {
return this.instance.post("/app/approval-process-def/info-id", null, {params: {id}}).then(res => {
if (res?.data) {
return res.data
}
@@ -145,7 +145,7 @@ export default {
this.$refs.AuditForm.validate(v => {
if (v) {
let {id} = this.detail
this.instance.post("/appfinancialproduct/auditProduct", null, {
this.instance.post("/app/appfinancialproduct/auditProduct", null, {
params: {id, ...this.form}
}).then(res => {
if (res?.code == 0) {

View File

@@ -99,7 +99,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appfinancialproduct/list", null, {
this.instance.post("/app/appfinancialproduct/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -119,7 +119,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该产品?").then(() => {
this.instance.post("/appfinancialproduct/delete", null, {
this.instance.post("/app/appfinancialproduct/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {

View File

@@ -87,7 +87,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appfinancialproductrecommend/list", null, {
this.instance.post("/app/appfinancialproductrecommend/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -103,7 +103,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该推荐?").then(() => {
this.instance.post("/appfinancialproductrecommend/delete", null, {
this.instance.post("/app/appfinancialproductrecommend/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {
@@ -116,7 +116,7 @@ export default {
submitAudit() {
this.$refs.PRForm.validate(v => {
if (v) {
this.instance.post("/appfinancialproductrecommend/addOrUpdate", this.form).then(res => {
this.instance.post("/app/appfinancialproductrecommend/addOrUpdate", this.form).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.getTableData()
@@ -128,7 +128,7 @@ export default {
},
getProducts() {
let {organizationType} = this.form
this.instance.post("/appfinancialproduct/list", null, {
this.instance.post("/app/appfinancialproduct/list", null, {
params: {organizationType, size: 999, status: 1}
}).then(res => {
if (res?.data) {

View File

@@ -97,7 +97,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
id && this.instance.post("/appfinancialproduct/queryDetailById", null, {
id && this.instance.post("/app/appfinancialproduct/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -113,7 +113,7 @@ export default {
let {form} = this
form.faceUser = form.faceUser?.toString()
form.guaranteeMode = form.guaranteeMode?.toString()
this.instance.post("/appfinancialproduct/addOrUpdate", form).then(res => {
this.instance.post("/app/appfinancialproduct/addOrUpdate", form).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.back()

View File

@@ -90,7 +90,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
this.instance.post("/appfinancialproduct/queryDetailById", null, {
this.instance.post("/app/appfinancialproduct/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -107,7 +107,7 @@ export default {
},
getZWSP(id) {
//贷款联审信息
return this.instance.post("/approval-process-def/info-id", null, {params: {id}}).then(res => {
return this.instance.post("/app/approval-process-def/info-id", null, {params: {id}}).then(res => {
if (res?.data) {
return res.data
}
@@ -117,7 +117,7 @@ export default {
this.$refs.AuditForm.validate(v => {
if (v) {
let {id} = this.detail
this.instance.post("/appfinancialproduct/auditProduct", null, {
this.instance.post("/app/appfinancialproduct/auditProduct", null, {
params: {id, ...this.form}
}).then(res => {
if (res?.code == 0) {

View File

@@ -80,7 +80,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appfinancialproduct/list", null, {
this.instance.post("/app/appfinancialproduct/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -100,7 +100,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该产品?").then(() => {
this.instance.post("/appfinancialproduct/delete", null, {
this.instance.post("/app/appfinancialproduct/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {

View File

@@ -87,7 +87,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appfinancialproductrecommend/list", null, {
this.instance.post("/app/appfinancialproductrecommend/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -103,7 +103,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该推荐?").then(() => {
this.instance.post("/appfinancialproductrecommend/delete", null, {
this.instance.post("/app/appfinancialproductrecommend/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {
@@ -116,7 +116,7 @@ export default {
submitAudit() {
this.$refs.PRForm.validate(v => {
if (v) {
this.instance.post("/appfinancialproductrecommend/addOrUpdate", this.form).then(res => {
this.instance.post("/app/appfinancialproductrecommend/addOrUpdate", this.form).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.getTableData()
@@ -128,7 +128,7 @@ export default {
},
getProducts() {
let {organizationType} = this.form
this.instance.post("/appfinancialproduct/list", null, {
this.instance.post("/app/appfinancialproduct/list", null, {
params: {organizationType, size: 999, status: 1}
}).then(res => {
if (res?.data) {

View File

@@ -214,7 +214,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
this.instance.post("/appfinancialloanapply/queryDetailById", null, {
this.instance.post("/app/appfinancialloanapply/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -226,7 +226,7 @@ export default {
this.$refs.AuditForm.validate(v => {
if (v) {
let {id} = this.detail
this.instance.post("/appfinancialloanapply/auditLoanApply", null, {
this.instance.post("/app/appfinancialloanapply/auditLoanApply", null, {
params: {id, ...this.form}
}).then(res => {
if (res?.code == 0) {

View File

@@ -104,7 +104,7 @@ export default {
methods: {
getTableData() {
let status = this.search.status || 999
this.instance.post("/appfinancialloanapply/list", null, {
this.instance.post("/app/appfinancialloanapply/list", null, {
params: {...this.page, ...this.search, status}
}).then(res => {
if (res?.data) {

View File

@@ -192,7 +192,7 @@ export default {
this.getApply()
},
getApply() {
this.instance.post("/appfinancialloanapply/staticFinancialLoanApplyByMainbody", null, {
this.instance.post("/app/appfinancialloanapply/staticFinancialLoanApplyByMainbody", null, {
params: {...this.search}
}).then(res => {
if (res?.data) {
@@ -201,7 +201,7 @@ export default {
})
},
getOverviews() {
this.instance.post("/appfinancialloanapply/staticFinancialLoanApplyByOrganization", null, {
this.instance.post("/app/appfinancialloanapply/staticFinancialLoanApplyByOrganization", null, {
params: {...this.search}
}).then(res => {
if (res?.data) {
@@ -210,7 +210,7 @@ export default {
})
},
getProductTop10() {
this.instance.post("/appfinancialloanapply/queryHotFinancialProduct", null, {
this.instance.post("/app/appfinancialloanapply/queryHotFinancialProduct", null, {
params: {...this.search}
}).then(res => {
if (res?.data) {
@@ -219,7 +219,7 @@ export default {
})
},
getTradeTrend() {
this.instance.post("/appfinancialloanapply/queryFinancialLoanApplyByMonth", null, {
this.instance.post("/app/appfinancialloanapply/queryFinancialLoanApplyByMonth", null, {
params: {...this.search}
}).then(res => {
if (res?.data) {