8e79d28b by yangwei

地役权

1 parent 0ca0cae3
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class qlfQlDyiq {
5 // 地役权
6 async getQlfQlDyiqList(data) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage",
9 method: "post",
10 data,
11 });
12 }
13 // 地役权信息
14 async getQlfQlDyiqById(bsmSjsb) {
15 return request({
16 url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail",
17 method: "get",
18 params: {
19 bsmSjsb: bsmSjsb,
20 },
21 });
22 }
23 // 地役权信息-修改
24 async updateQlfQlDyiq(data) {
25 return request({
26 url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit",
27 method: "post",
28 data,
29 });
30 }
31 }
32 export default new qlfQlDyiq();
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
275 </template> 275 </template>
276 <script> 276 <script>
277 // 地役权信息 277 // 地役权信息
278 import business from '@/api/business' 278 import qlfQlDyiq from '@/api/qlfQlDyiq'
279 import ruleMixin from '@/mixins/ruleMixin.js' 279 import ruleMixin from '@/mixins/ruleMixin.js'
280 export default { 280 export default {
281 mixins: [ruleMixin], 281 mixins: [ruleMixin],
...@@ -341,7 +341,7 @@ export default { ...@@ -341,7 +341,7 @@ export default {
341 methods: { 341 methods: {
342 async featchData () { 342 async featchData () {
343 try { 343 try {
344 let { result: res } = await business.getQlfQlDyiqById(this.bsmSjsb) 344 let { result: res } = await qlfQlDyiq.getQlfQlDyiqById(this.bsmSjsb)
345 this.ruleForm = res 345 this.ruleForm = res
346 //this.featchRule() 346 //this.featchRule()
347 } catch (error) { 347 } catch (error) {
...@@ -351,7 +351,7 @@ export default { ...@@ -351,7 +351,7 @@ export default {
351 handleUpdateForm () { 351 handleUpdateForm () {
352 return new Promise(async (resolve) => { 352 return new Promise(async (resolve) => {
353 try { 353 try {
354 let res = await business.updateQlfQlDyiq(this.ruleForm) 354 let res = await qlfQlDyiq.updateQlfQlDyiq(this.ruleForm)
355 // this.$refs['formList'].resetFields(); 355 // this.$refs['formList'].resetFields();
356 resolve(res.code) 356 resolve(res.code)
357 } catch (error) { 357 } catch (error) {
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
80 <script> 80 <script>
81 // 地役权登记 81 // 地役权登记
82 import data from "./data" 82 import data from "./data"
83 import business from '@/api/business' 83 import qlfQlDyiq from '@/api/qlfQlDyiq'
84 import tableMixin from '@/mixins/tableMixin.js' 84 import tableMixin from '@/mixins/tableMixin.js'
85 import treeSelect from '@/components/treeSelect/index.vue' 85 import treeSelect from '@/components/treeSelect/index.vue'
86 export default { 86 export default {
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
143 try { 143 try {
144 this.form = Object.assign(this.form, this.formData) 144 this.form = Object.assign(this.form, this.formData)
145 let { result: { list, total, pages: pageSize, pageNum: current } 145 let { result: { list, total, pages: pageSize, pageNum: current }
146 } = await business.getQlfQlDyiqList(this.form) 146 } = await qlfQlDyiq.getQlfQlDyiqList(this.form)
147 this.tableData.data = list 147 this.tableData.data = list
148 this.pageData = { 148 this.pageData = {
149 pageSize, 149 pageSize,
......