修正接口请求

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>