抵押权登记
Showing
3 changed files
with
37 additions
and
5 deletions
src/api/qlfQlDyaq.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class qlfQlDyaq { | ||
5 | // 抵押权登记 | ||
6 | async getQlfQlDyaqList(data) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage", | ||
9 | method: "post", | ||
10 | data, | ||
11 | }); | ||
12 | } | ||
13 | // 抵押权 | ||
14 | async getQlfQlDyaqById(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail", | ||
17 | method: "get", | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb, | ||
20 | }, | ||
21 | }); | ||
22 | } | ||
23 | // 抵押权-修改 | ||
24 | async updateQlfQlDyaq(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit", | ||
27 | method: "post", | ||
28 | data, | ||
29 | }); | ||
30 | } | ||
31 | } | ||
32 | export default new qlfQlDyaq(); |
... | @@ -255,7 +255,7 @@ | ... | @@ -255,7 +255,7 @@ |
255 | </template> | 255 | </template> |
256 | <script> | 256 | <script> |
257 | // 抵押权信息 | 257 | // 抵押权信息 |
258 | import business from '@/api/business' | 258 | import qlfQlDyaq from '@/api/qlfQlDyaq' |
259 | import ruleMixin from '@/mixins/ruleMixin.js' | 259 | import ruleMixin from '@/mixins/ruleMixin.js' |
260 | export default { | 260 | export default { |
261 | mixins: [ruleMixin], | 261 | mixins: [ruleMixin], |
... | @@ -325,7 +325,7 @@ export default { | ... | @@ -325,7 +325,7 @@ export default { |
325 | methods: { | 325 | methods: { |
326 | async featchData () { | 326 | async featchData () { |
327 | try { | 327 | try { |
328 | let { result: res } = await business.getQlfQlDyaqById(this.bsmSjsb) | 328 | let { result: res } = await qlfQlDyaq.getQlfQlDyaqById(this.bsmSjsb) |
329 | this.ruleForm = res | 329 | this.ruleForm = res |
330 | //this.featchRule() | 330 | //this.featchRule() |
331 | } catch (error) { | 331 | } catch (error) { |
... | @@ -335,7 +335,7 @@ export default { | ... | @@ -335,7 +335,7 @@ export default { |
335 | handleUpdateForm () { | 335 | handleUpdateForm () { |
336 | return new Promise(async (resolve, reject) => { | 336 | return new Promise(async (resolve, reject) => { |
337 | try { | 337 | try { |
338 | let res = await business.updateQlfQlDyaq(this.ruleForm) | 338 | let res = await qlfQlDyaq.updateQlfQlDyaq(this.ruleForm) |
339 | // this.$refs['formList'].resetFields(); | 339 | // this.$refs['formList'].resetFields(); |
340 | resolve(res.code) | 340 | resolve(res.code) |
341 | } catch (error) { | 341 | } catch (error) { | ... | ... |
... | @@ -78,7 +78,7 @@ | ... | @@ -78,7 +78,7 @@ |
78 | <script> | 78 | <script> |
79 | // 抵押权登记 | 79 | // 抵押权登记 |
80 | import data from "./data" | 80 | import data from "./data" |
81 | import business from '@/api/business' | 81 | import qlfQlDyaq from '@/api/qlfQlDyaq' |
82 | import tableMixin from '@/mixins/tableMixin.js' | 82 | import tableMixin from '@/mixins/tableMixin.js' |
83 | import treeSelect from '@/components/treeSelect/index.vue' | 83 | import treeSelect from '@/components/treeSelect/index.vue' |
84 | export default { | 84 | export default { |
... | @@ -138,7 +138,7 @@ export default { | ... | @@ -138,7 +138,7 @@ export default { |
138 | async featchData () { | 138 | async featchData () { |
139 | try { | 139 | try { |
140 | let { result: { list, total, pages: pageSize, pageNum: current } | 140 | let { result: { list, total, pages: pageSize, pageNum: current } |
141 | } = await business.getQlfQlDyaqList(this.form) | 141 | } = await qlfQlDyaq.getQlfQlDyaqList(this.form) |
142 | this.tableData.data = list; | 142 | this.tableData.data = list; |
143 | this.pageData = { | 143 | this.pageData = { |
144 | pageSize, | 144 | pageSize, | ... | ... |
-
Please register or sign in to post a comment