修正接口请求
This commit is contained in:
@@ -161,7 +161,7 @@ export default {
|
||||
this.forms = JSON.parse(JSON.stringify(this.data))
|
||||
},
|
||||
getDetail(id) {
|
||||
this.instance.post(`/appcreditadminstrativelicense/queryDetailById?id=${id}`).then(res => {
|
||||
this.instance.post(`/app/appcreditadminstrativelicense/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.data = res.data
|
||||
}
|
||||
@@ -170,7 +170,7 @@ export default {
|
||||
confirm() {
|
||||
this.$refs.forms.validate((valid) => {
|
||||
if (valid) {
|
||||
this.instance.post(`/appcreditadminstrativelicense/addOrUpdate`, {
|
||||
this.instance.post(`/app/appcreditadminstrativelicense/addOrUpdate`, {
|
||||
...this.forms,
|
||||
id: this.params.id || '',
|
||||
}).then(res => {
|
||||
@@ -252,4 +252,4 @@ export default {
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -74,7 +74,7 @@ export default {
|
||||
// this.getTableData()
|
||||
// },
|
||||
getTableData() {
|
||||
this.instance.post("/appcreditadminstrativelicense/list", null, {
|
||||
this.instance.post("/app/appcreditadminstrativelicense/list", null, {
|
||||
params: {...this.page, ...this.search, ...this.select}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
},
|
||||
handleDelete(id) {
|
||||
this.$confirm("是否要删除?").then(() => {
|
||||
this.instance.post(`/appcreditadminstrativelicense/delete?ids=${id}`).then(res => {
|
||||
this.instance.post(`/app/appcreditadminstrativelicense/delete?ids=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success("删除成功")
|
||||
this.getTableData()
|
||||
|
||||
Reference in New Issue
Block a user