style:更正登记信息
Showing
2 changed files
with
30 additions
and
6 deletions
src/api/qlfQlGzdj.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | import SERVER from './config' | ||
3 | |||
4 | class qlfQlGzdj { | ||
5 | // 更正登记信息 | ||
6 | async getQlfQlGzdjById (bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail', | ||
9 | method: 'get', | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb | ||
12 | } | ||
13 | }) | ||
14 | } | ||
15 | // 更正登记信息-修改 | ||
16 | async updateQlfQlGzdj (data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit', | ||
19 | method: 'post', | ||
20 | data | ||
21 | }) | ||
22 | } | ||
23 | } | ||
24 | export default new qlfQlGzdj() |
... | @@ -172,7 +172,7 @@ | ... | @@ -172,7 +172,7 @@ |
172 | </template> | 172 | </template> |
173 | <script> | 173 | <script> |
174 | // 归档信息 | 174 | // 归档信息 |
175 | import business from "@/api/business"; | 175 | import qlfQlGzdj from "@/api/qlfQlGzdj"; |
176 | import ruleMixin from "@/mixins/ruleMixin.js"; | 176 | import ruleMixin from "@/mixins/ruleMixin.js"; |
177 | export default { | 177 | export default { |
178 | mixins: [ruleMixin], | 178 | mixins: [ruleMixin], |
... | @@ -186,7 +186,7 @@ export default { | ... | @@ -186,7 +186,7 @@ export default { |
186 | default: "", | 186 | default: "", |
187 | }, | 187 | }, |
188 | }, | 188 | }, |
189 | data() { | 189 | data () { |
190 | return { | 190 | return { |
191 | ruleForm: { | 191 | ruleForm: { |
192 | YSDM: "", | 192 | YSDM: "", |
... | @@ -205,19 +205,19 @@ export default { | ... | @@ -205,19 +205,19 @@ export default { |
205 | }; | 205 | }; |
206 | }, | 206 | }, |
207 | methods: { | 207 | methods: { |
208 | async featchData() { | 208 | async featchData () { |
209 | try { | 209 | try { |
210 | let { result: res } = await business.getQlfQlGzdjById(this.bsmSjsb); | 210 | let { result: res } = await qlfQlGzdj.getQlfQlGzdjById(this.bsmSjsb); |
211 | this.ruleForm = res; | 211 | this.ruleForm = res; |
212 | //this.featchRule() | 212 | //this.featchRule() |
213 | } catch (error) { | 213 | } catch (error) { |
214 | this.$refs.msg.messageShow(); | 214 | this.$refs.msg.messageShow(); |
215 | } | 215 | } |
216 | }, | 216 | }, |
217 | handleUpdateForm() { | 217 | handleUpdateForm () { |
218 | return new Promise(async (resolve) => { | 218 | return new Promise(async (resolve) => { |
219 | try { | 219 | try { |
220 | let res = await business.updateQlfQlGzdj(this.ruleForm); | 220 | let res = await qlfQlGzdj.updateQlfQlGzdj(this.ruleForm); |
221 | // this.$refs['formList'].resetFields(); | 221 | // this.$refs['formList'].resetFields(); |
222 | resolve(res.code); | 222 | resolve(res.code); |
223 | } catch (error) { | 223 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment