登记归档信息-业务表单
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/djfDjGd.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class djfDjGd { | ||
5 | // 登记归档信息-业务表单 | ||
6 | async getDjfDjGdById(bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/detail", | ||
9 | method: "get", | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb, | ||
12 | }, | ||
13 | }); | ||
14 | } | ||
15 | // 登记归档信息-业务-修改 | ||
16 | async updateDjfDjGd(data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/edit", | ||
19 | method: "put", | ||
20 | data, | ||
21 | }); | ||
22 | } | ||
23 | } | ||
24 | export default new djfDjGd(); |
... | @@ -144,7 +144,7 @@ | ... | @@ -144,7 +144,7 @@ |
144 | </div> | 144 | </div> |
145 | </template> | 145 | </template> |
146 | <script> | 146 | <script> |
147 | import business from '@/api/business' | 147 | import djfDjGd from '@/api/djfDjGd' |
148 | import ruleMixin from '@/mixins/ruleMixin.js' | 148 | import ruleMixin from '@/mixins/ruleMixin.js' |
149 | // 登记归档信息 | 149 | // 登记归档信息 |
150 | export default { | 150 | export default { |
... | @@ -180,7 +180,7 @@ export default { | ... | @@ -180,7 +180,7 @@ export default { |
180 | methods: { | 180 | methods: { |
181 | async featchData () { | 181 | async featchData () { |
182 | try { | 182 | try { |
183 | let { result: res } = await business.getDjfDjGdById(this.bsmSjsb) | 183 | let { result: res } = await djfDjGd.getDjfDjGdById(this.bsmSjsb) |
184 | this.ruleForm = res | 184 | this.ruleForm = res |
185 | //this.featchRule() | 185 | //this.featchRule() |
186 | } catch (error) { | 186 | } catch (error) { |
... | @@ -190,7 +190,7 @@ export default { | ... | @@ -190,7 +190,7 @@ export default { |
190 | handleUpdateForm () { | 190 | handleUpdateForm () { |
191 | return new Promise(async (resolve) => { | 191 | return new Promise(async (resolve) => { |
192 | try { | 192 | try { |
193 | let res = await business.updateDjfDjGd(this.ruleForm) | 193 | let res = await djfDjGd.updateDjfDjGd(this.ruleForm) |
194 | // this.$refs['formList'].resetFields(); | 194 | // this.$refs['formList'].resetFields(); |
195 | resolve(res.code) | 195 | resolve(res.code) |
196 | } catch (error) { | 196 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment