查封登记信息
Showing
3 changed files
with
37 additions
and
5 deletions
src/api/qlfQlCfdj.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class qlfQlCfdj { | ||
5 | // 查封登记信息 | ||
6 | async getQlfQlCfdjList(data) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage", | ||
9 | method: "post", | ||
10 | data, | ||
11 | }); | ||
12 | } | ||
13 | // 查封登记信息 | ||
14 | async getQlfQlCfdjById(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail", | ||
17 | method: "get", | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb, | ||
20 | }, | ||
21 | }); | ||
22 | } | ||
23 | // 查封登记信息-修改 | ||
24 | async updateQlfQlCfdj(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit", | ||
27 | method: "post", | ||
28 | data, | ||
29 | }); | ||
30 | } | ||
31 | } | ||
32 | export default new qlfQlCfdj(); |
... | @@ -248,7 +248,7 @@ | ... | @@ -248,7 +248,7 @@ |
248 | </template> | 248 | </template> |
249 | <script> | 249 | <script> |
250 | // 查封登记信息 | 250 | // 查封登记信息 |
251 | import business from '@/api/business' | 251 | import qlfQlCfdj from '@/api/qlfQlCfdj' |
252 | import ruleMixin from '@/mixins/ruleMixin.js' | 252 | import ruleMixin from '@/mixins/ruleMixin.js' |
253 | export default { | 253 | export default { |
254 | mixins: [ruleMixin], | 254 | mixins: [ruleMixin], |
... | @@ -312,7 +312,7 @@ export default { | ... | @@ -312,7 +312,7 @@ export default { |
312 | methods: { | 312 | methods: { |
313 | async featchData () { | 313 | async featchData () { |
314 | try { | 314 | try { |
315 | let { result: res } = await business.getQlfQlCfdjById(this.bsmSjsb) | 315 | let { result: res } = await qlfQlCfdj.getQlfQlCfdjById(this.bsmSjsb) |
316 | this.ruleForm = res | 316 | this.ruleForm = res |
317 | //this.featchRule() | 317 | //this.featchRule() |
318 | } catch (error) { | 318 | } catch (error) { |
... | @@ -322,7 +322,7 @@ export default { | ... | @@ -322,7 +322,7 @@ export default { |
322 | handleUpdateForm () { | 322 | handleUpdateForm () { |
323 | return new Promise(async (resolve) => { | 323 | return new Promise(async (resolve) => { |
324 | try { | 324 | try { |
325 | let res = await business.updateQlfQlCfdj(this.ruleForm) | 325 | let res = await qlfQlCfdj.updateQlfQlCfdj(this.ruleForm) |
326 | // this.$refs['formList'].resetFields(); | 326 | // this.$refs['formList'].resetFields(); |
327 | resolve(res.code) | 327 | resolve(res.code) |
328 | } catch (error) { | 328 | } catch (error) { | ... | ... |
... | @@ -71,7 +71,7 @@ | ... | @@ -71,7 +71,7 @@ |
71 | <script> | 71 | <script> |
72 | // 查封登记 | 72 | // 查封登记 |
73 | import data from "./data" | 73 | import data from "./data" |
74 | import business from '@/api/business' | 74 | import qlfQlCfdj from '@/api/qlfQlCfdj' |
75 | import tableMixin from '@/mixins/tableMixin.js' | 75 | import tableMixin from '@/mixins/tableMixin.js' |
76 | export default { | 76 | export default { |
77 | name: "Cfdj", | 77 | name: "Cfdj", |
... | @@ -129,7 +129,7 @@ export default { | ... | @@ -129,7 +129,7 @@ export default { |
129 | async featchData () { | 129 | async featchData () { |
130 | try { | 130 | try { |
131 | let { result: { list, total, pages: pageSize, pageNum: current } | 131 | let { result: { list, total, pages: pageSize, pageNum: current } |
132 | } = await business.getQlfQlCfdjList(this.form) | 132 | } = await qlfQlCfdj.getQlfQlCfdjList(this.form) |
133 | this.tableData.data = list | 133 | this.tableData.data = list |
134 | this.pageData = { | 134 | this.pageData = { |
135 | pageSize, | 135 | pageSize, | ... | ... |
-
Please register or sign in to post a comment