权利人 -- 业务表单
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/zttGyQlr.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class zttGyQlr { | ||
5 | // 权利人 -- 业务表单 | ||
6 | async getZttGyQlrById(bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail", | ||
9 | method: "get", | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb, | ||
12 | }, | ||
13 | }); | ||
14 | } | ||
15 | // 权利人 -- 业务表单修改 | ||
16 | async updateZttGyQlr(data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit", | ||
19 | method: "post", | ||
20 | data, | ||
21 | }); | ||
22 | } | ||
23 | } | ||
24 | export default new zttGyQlr(); |
... | @@ -319,7 +319,7 @@ | ... | @@ -319,7 +319,7 @@ |
319 | </div> | 319 | </div> |
320 | </template> | 320 | </template> |
321 | <script> | 321 | <script> |
322 | import business from '@/api/business' | 322 | import zttGyQlr from '@/api/zttGyQlr' |
323 | import ruleMixin from '@/mixins/ruleMixin.js' | 323 | import ruleMixin from '@/mixins/ruleMixin.js' |
324 | import treeSelect from '../treeSelect/index.vue' | 324 | import treeSelect from '../treeSelect/index.vue' |
325 | // 权利人 | 325 | // 权利人 |
... | @@ -376,7 +376,7 @@ export default { | ... | @@ -376,7 +376,7 @@ export default { |
376 | methods: { | 376 | methods: { |
377 | async featchData () { | 377 | async featchData () { |
378 | try { | 378 | try { |
379 | let { result: res } = await business.getZttGyQlrById(this.bsmSjsb) | 379 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb) |
380 | this.obligeeForm.obligeeList = res | 380 | this.obligeeForm.obligeeList = res |
381 | //this.featchRule() | 381 | //this.featchRule() |
382 | } catch (error) { | 382 | } catch (error) { |
... | @@ -386,7 +386,7 @@ export default { | ... | @@ -386,7 +386,7 @@ export default { |
386 | handleUpdateForm () { | 386 | handleUpdateForm () { |
387 | return new Promise(async (resolve) => { | 387 | return new Promise(async (resolve) => { |
388 | try { | 388 | try { |
389 | let res = await business.updateZttGyQlr(this.obligeeForm.obligeeList) | 389 | let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList) |
390 | // this.$refs['formList'].resetFields(); | 390 | // this.$refs['formList'].resetFields(); |
391 | resolve(res.code) | 391 | resolve(res.code) |
392 | } catch (error) { | 392 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment