农用地使用权(非林地)
Showing
3 changed files
with
37 additions
and
5 deletions
src/api/qlfQlNydsyq.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class qlfQlNydsyq { | ||
5 | // 农用地使用权(非林地) | ||
6 | async getQlfQlNydsyqByConditon(data) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage", | ||
9 | method: "post", | ||
10 | data, | ||
11 | }); | ||
12 | } | ||
13 | //农用地使用权(非林地) | ||
14 | async getQlfQlNydsyqByID(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail", | ||
17 | method: "get", | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb, | ||
20 | }, | ||
21 | }); | ||
22 | } | ||
23 | //修改农用地使用权(非林地) | ||
24 | async updateQlfQlNydsyq(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit", | ||
27 | method: "post", | ||
28 | data, | ||
29 | }); | ||
30 | } | ||
31 | } | ||
32 | export default new qlfQlNydsyq(); |
... | @@ -290,7 +290,7 @@ | ... | @@ -290,7 +290,7 @@ |
290 | </template> | 290 | </template> |
291 | <script> | 291 | <script> |
292 | // 农用地使用权(非林地) | 292 | // 农用地使用权(非林地) |
293 | import business from '@/api/business' | 293 | import qlfQlNydsyq from '@/api/qlfQlNydsyq' |
294 | import ruleMixin from '@/mixins/ruleMixin.js' | 294 | import ruleMixin from '@/mixins/ruleMixin.js' |
295 | export default { | 295 | export default { |
296 | mixins: [ruleMixin], | 296 | mixins: [ruleMixin], |
... | @@ -357,7 +357,7 @@ export default { | ... | @@ -357,7 +357,7 @@ export default { |
357 | methods: { | 357 | methods: { |
358 | async featchData () { | 358 | async featchData () { |
359 | try { | 359 | try { |
360 | let { result: res } = await business.getQlfQlNydsyqByID(this.bsmSjsb) | 360 | let { result: res } = await qlfQlNydsyq.getQlfQlNydsyqByID(this.bsmSjsb) |
361 | this.ruleForm = res | 361 | this.ruleForm = res |
362 | //this.featchRule() | 362 | //this.featchRule() |
363 | } catch (error) { | 363 | } catch (error) { |
... | @@ -367,7 +367,7 @@ export default { | ... | @@ -367,7 +367,7 @@ export default { |
367 | handleUpdateForm () { | 367 | handleUpdateForm () { |
368 | return new Promise(async (resolve) => { | 368 | return new Promise(async (resolve) => { |
369 | try { | 369 | try { |
370 | let res = await business.updateQlfQlNydsyq(this.ruleForm) | 370 | let res = await qlfQlNydsyq.updateQlfQlNydsyq(this.ruleForm) |
371 | // this.$refs['formList'].resetFields(); | 371 | // this.$refs['formList'].resetFields(); |
372 | resolve(res.code) | 372 | resolve(res.code) |
373 | } catch (error) { | 373 | } catch (error) { | ... | ... |
... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
67 | <script> | 67 | <script> |
68 | // 农用地使用权(非林地) | 68 | // 农用地使用权(非林地) |
69 | import data from "./data" | 69 | import data from "./data" |
70 | import business from '@/api/business' | 70 | import qlfQlNydsyq from '@/api/qlfQlNydsyq' |
71 | import tableMixin from '@/mixins/tableMixin.js' | 71 | import tableMixin from '@/mixins/tableMixin.js' |
72 | import treeSelect from '@/components/treeSelect/index.vue' | 72 | import treeSelect from '@/components/treeSelect/index.vue' |
73 | export default { | 73 | export default { |
... | @@ -131,7 +131,7 @@ export default { | ... | @@ -131,7 +131,7 @@ export default { |
131 | try { | 131 | try { |
132 | this.form = Object.assign(this.form, this.formData) | 132 | this.form = Object.assign(this.form, this.formData) |
133 | let { result: { list, total, pages: pageSize, pageNum: current } | 133 | let { result: { list, total, pages: pageSize, pageNum: current } |
134 | } = await business.getQlfQlNydsyqByConditon(this.form) | 134 | } = await qlfQlNydsyq.getQlfQlNydsyqByConditon(this.form) |
135 | this.tableData.data = list | 135 | this.tableData.data = list |
136 | this.pageData = { | 136 | this.pageData = { |
137 | pageSize, | 137 | pageSize, | ... | ... |
-
Please register or sign in to post a comment