修正接口请求

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

@@ -34,7 +34,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="12">
<el-form-item label="股权证编号" prop="stockCertificateCode">
@@ -56,7 +56,7 @@
<template #content>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getDetail" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="操作" align="center" v-if="!id || isEdit==true">
<template slot-scope="{row,$index}">
<el-button type="text" @click="editBtn(row,$index)">编辑</el-button>
@@ -114,7 +114,7 @@
</template>
</el-table-column>
</ai-table>
</template>
</ai-card>
</template>
@@ -155,7 +155,7 @@ export default {
params: Object,
},
data() {
return {
return {
id: '',
form: {
organizationName: '',
@@ -179,7 +179,7 @@ export default {
isEditSys: false,
sysIndex: ''
}
},
},
computed: {
rules() {
return {
@@ -240,7 +240,7 @@ export default {
this.tableData.splice(index, 1)
},
getDetail(id) {
this.instance.post(`/appcollectiveeconomyequity/queryDetailById`,null, {
this.instance.post(`/app/appcollectiveeconomyequity/queryDetailById`,null, {
params: {
id: id,
...this.page,
@@ -262,7 +262,7 @@ export default {
}else{//新增
this.tableData.push(this.table)
}
this.sysInfoDialog = false
this.$forceUpdate()
}
@@ -271,7 +271,7 @@ export default {
confirm() {
this.$refs.form.validate((valid) => {
if (valid) {
this.instance.post(`/appcollectiveeconomyequity/addOrUpdate`, {
this.instance.post(`/app/appcollectiveeconomyequity/addOrUpdate`, {
...this.form,
id: this.params.id || '',
shareholderList: this.tableData,
@@ -291,7 +291,7 @@ export default {
this.table = JSON.parse(JSON.stringify(row))
this.sysInfoDialog = true
this.isEditSys = true
this.sysIndex = index
this.sysIndex = index
}
},
}
@@ -306,4 +306,4 @@ export default {
background: #FFF;
}
}
</style>
</style>

View File

@@ -9,7 +9,7 @@
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
</template>
<template #right>
<el-input size="small" placeholder="组织名称/持证人/身份证号/股权证编号" v-model="search.organizationName" clearable @clear="page.current = 1, search.organizationName = '',getTableData()"
<el-input size="small" placeholder="组织名称/持证人/身份证号/股权证编号" v-model="search.organizationName" clearable @clear="page.current = 1, search.organizationName = '',getTableData()"
suffix-icon="iconfont iconSearch" v-throttle="() => {(page.current = 1), getTableData();}"/>
<!-- 导入导出 -->
<ai-import :instance="instance" :dict="dict" importUrl="/appcollectiveeconomyequity/import" url="/appcollectiveeconomyequity/downloadTemplate" name="集体经济组织股权管理信息" @success="getTableData(), $message.success('导入成功!')">
@@ -70,7 +70,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appcollectiveeconomyequity/list", null, {
this.instance.post("/app/appcollectiveeconomyequity/list", null, {
params: {...this.page, ...this.search,...this.select}
}).then(res => {
if (res?.data) {
@@ -89,7 +89,7 @@ export default {
},
handleDelete(id) {
this.$confirm("是否要删除?").then(() => {
this.instance.post(`/appcollectiveeconomyequity/delete?ids=${id}`).then(res => {
this.instance.post(`/app/appcollectiveeconomyequity/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success("删除成功")
this.getTableData()
@@ -106,4 +106,4 @@ export default {
height: 100%;
background: #f3f4f5;
}
</style>
</style>