feat:宗地基本信息
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/kttZdjbxx.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | import SERVER from './config' | ||
3 | |||
4 | class kttZdjbxx { | ||
5 | // 宗地基本信息 | ||
6 | async kttZdjbxxDetail (bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/detail', | ||
9 | method: 'get', | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb | ||
12 | } | ||
13 | }) | ||
14 | } | ||
15 | // 宗地基本信息-修改 | ||
16 | async updateKttZdjbxx (data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/edit', | ||
19 | method: 'post', | ||
20 | data | ||
21 | }) | ||
22 | } | ||
23 | } | ||
24 | export default new kttZdjbxx() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -433,7 +433,7 @@ | ... | @@ -433,7 +433,7 @@ |
433 | </template> | 433 | </template> |
434 | <script> | 434 | <script> |
435 | // 宗地基本信息 | 435 | // 宗地基本信息 |
436 | import business from '@/api/business' | 436 | import kttZdjbxx from '@/api/kttZdjbxx' |
437 | import ruleMixin from '@/mixins/ruleMixin.js' | 437 | import ruleMixin from '@/mixins/ruleMixin.js' |
438 | import treeSelect from '@/components/treeSelect/index.vue' | 438 | import treeSelect from '@/components/treeSelect/index.vue' |
439 | export default { | 439 | export default { |
... | @@ -496,7 +496,7 @@ export default { | ... | @@ -496,7 +496,7 @@ export default { |
496 | methods: { | 496 | methods: { |
497 | async featchData () { | 497 | async featchData () { |
498 | try { | 498 | try { |
499 | let { result: res } = await business.kttZdjbxxDetail(this.bsmSjsb) | 499 | let { result: res } = await kttZdjbxx.kttZdjbxxDetail(this.bsmSjsb) |
500 | this.ruleForm = res | 500 | this.ruleForm = res |
501 | //this.featchRule() | 501 | //this.featchRule() |
502 | } catch (error) { | 502 | } catch (error) { |
... | @@ -506,7 +506,7 @@ export default { | ... | @@ -506,7 +506,7 @@ export default { |
506 | handleUpdateForm () { | 506 | handleUpdateForm () { |
507 | return new Promise(async (resolve) => { | 507 | return new Promise(async (resolve) => { |
508 | try { | 508 | try { |
509 | let res = await business.updateKttZdjbxx(this.ruleForm) | 509 | let res = await kttZdjbxx.updateKttZdjbxx(this.ruleForm) |
510 | // this.$refs['formList'].resetFields(); | 510 | // this.$refs['formList'].resetFields(); |
511 | resolve(res.code) | 511 | resolve(res.code) |
512 | } catch (error) { | 512 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment