修正接口请求
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user