修正接口请求

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

@@ -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) {