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