登记审核信息
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/djfDjSh.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class djfDjSh { | ||
5 | //登记审核信息 | ||
6 | async getDjfDjShById(bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/detail", | ||
9 | method: "get", | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb, | ||
12 | }, | ||
13 | }); | ||
14 | } | ||
15 | //修改登记审核信息 | ||
16 | async updateDjfDjSh(data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/edit", | ||
19 | method: "post", | ||
20 | data, | ||
21 | }); | ||
22 | } | ||
23 | } | ||
24 | export default new djfDjSh(); |
... | @@ -145,7 +145,7 @@ | ... | @@ -145,7 +145,7 @@ |
145 | </div> | 145 | </div> |
146 | </template> | 146 | </template> |
147 | <script> | 147 | <script> |
148 | import business from '@/api/business' | 148 | import djfDjSh from '@/api/djfDjSh' |
149 | import ruleMixin from '@/mixins/ruleMixin.js' | 149 | import ruleMixin from '@/mixins/ruleMixin.js' |
150 | // 审核信息 | 150 | // 审核信息 |
151 | export default { | 151 | export default { |
... | @@ -209,7 +209,7 @@ export default { | ... | @@ -209,7 +209,7 @@ export default { |
209 | }, | 209 | }, |
210 | async featchData () { | 210 | async featchData () { |
211 | try { | 211 | try { |
212 | let { result: res } = await business.getDjfDjShById(this.bsmSjsb) | 212 | let { result: res } = await djfDjSh.getDjfDjShById(this.bsmSjsb) |
213 | this.form.auditInfo = res | 213 | this.form.auditInfo = res |
214 | //this.featchRule() | 214 | //this.featchRule() |
215 | } catch (error) { | 215 | } catch (error) { |
... | @@ -219,7 +219,7 @@ export default { | ... | @@ -219,7 +219,7 @@ export default { |
219 | handleUpdateForm () { | 219 | handleUpdateForm () { |
220 | return new Promise(async (resolve) => { | 220 | return new Promise(async (resolve) => { |
221 | try { | 221 | try { |
222 | let res = await business.updateDjfDjSh(this.form.auditInfo) | 222 | let res = await djfDjSh.updateDjfDjSh(this.form.auditInfo) |
223 | // this.$refs['formList'].resetFields(); | 223 | // this.$refs['formList'].resetFields(); |
224 | resolve(res.code) | 224 | resolve(res.code) |
225 | } catch (error) { | 225 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment