Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcjg-web
Showing
2 changed files
with
27 additions
and
5 deletions
src/api/ktfQtDzdzw.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | import SERVER from './config' | ||
3 | |||
4 | class ktfQtDzdzw { | ||
5 | // 点状定着物信息 | ||
6 | async getKtfQtDzdzwById (bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/detail', | ||
9 | method: 'get', | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb | ||
12 | } | ||
13 | }) | ||
14 | } | ||
15 | // 点状定着物信息-修改 | ||
16 | async updateKtfQtDzdzw (data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/edit', | ||
19 | method: 'post', | ||
20 | data | ||
21 | }) | ||
22 | } | ||
23 | } | ||
24 | export default new ktfQtDzdzw() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -134,7 +134,7 @@ | ... | @@ -134,7 +134,7 @@ |
134 | </template> | 134 | </template> |
135 | <script> | 135 | <script> |
136 | // 点状定着物信息 | 136 | // 点状定着物信息 |
137 | import business from '@/api/business' | 137 | import ktfQtDzdzw from '@/api/ktfQtDzdzw' |
138 | import ruleMixin from '@/mixins/ruleMixin.js' | 138 | import ruleMixin from '@/mixins/ruleMixin.js' |
139 | export default { | 139 | export default { |
140 | mixins: [ruleMixin], | 140 | mixins: [ruleMixin], |
... | @@ -166,9 +166,8 @@ export default { | ... | @@ -166,9 +166,8 @@ export default { |
166 | methods: { | 166 | methods: { |
167 | async featchData () { | 167 | async featchData () { |
168 | try { | 168 | try { |
169 | let { result: res } = await business.getKtfQtDzdzwById(this.bsmSjsb) | 169 | let { result: res } = await ktfQtDzdzw.getKtfQtDzdzwById(this.bsmSjsb) |
170 | this.ruleForm = res | 170 | this.ruleForm = res |
171 | //this.featchRule() | ||
172 | } catch (error) { | 171 | } catch (error) { |
173 | this.$refs.msg.messageShow() | 172 | this.$refs.msg.messageShow() |
174 | } | 173 | } |
... | @@ -176,8 +175,7 @@ export default { | ... | @@ -176,8 +175,7 @@ export default { |
176 | handleUpdateForm () { | 175 | handleUpdateForm () { |
177 | return new Promise(async (resolve) => { | 176 | return new Promise(async (resolve) => { |
178 | try { | 177 | try { |
179 | let res = await business.updateKtfQtDzdzw(this.ruleForm) | 178 | let res = await ktfQtDzdzw.updateKtfQtDzdzw(this.ruleForm) |
180 | // this.$refs['formList'].resetFields(); | ||
181 | resolve(res.code) | 179 | resolve(res.code) |
182 | } catch (error) { | 180 | } catch (error) { |
183 | this.$refs.msg.messageShow() | 181 | this.$refs.msg.messageShow() | ... | ... |
-
Please register or sign in to post a comment