8e79d28b by yangwei

地役权

1 parent 0ca0cae3
import request from "@/utils/request";
import SERVER from "./config";
class qlfQlDyiq {
// 地役权
async getQlfQlDyiqList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage",
method: "post",
data,
});
}
// 地役权信息
async getQlfQlDyiqById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 地役权信息-修改
async updateQlfQlDyiq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit",
method: "post",
data,
});
}
}
export default new qlfQlDyiq();
......@@ -275,7 +275,7 @@
</template>
<script>
// 地役权信息
import business from '@/api/business'
import qlfQlDyiq from '@/api/qlfQlDyiq'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -341,7 +341,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlDyiqById(this.bsmSjsb)
let { result: res } = await qlfQlDyiq.getQlfQlDyiqById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -351,7 +351,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlDyiq(this.ruleForm)
let res = await qlfQlDyiq.updateQlfQlDyiq(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -80,7 +80,7 @@
<script>
// 地役权登记
import data from "./data"
import business from '@/api/business'
import qlfQlDyiq from '@/api/qlfQlDyiq'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -143,7 +143,7 @@ export default {
try {
this.form = Object.assign(this.form, this.formData)
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQlfQlDyiqList(this.form)
} = await qlfQlDyiq.getQlfQlDyiqList(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......