Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcjg-web
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/ktfQtXzdzw.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | import SERVER from './config' | ||
3 | |||
4 | class ktfQtXzdzw { | ||
5 | // 线状定着物 | ||
6 | async getKtfQtXzdzwById (bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/detail', | ||
9 | method: 'get', | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb | ||
12 | } | ||
13 | }) | ||
14 | } | ||
15 | // 线状定着物-修改 | ||
16 | async updateKtfQtXzdzw (data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/edit', | ||
19 | method: 'post', | ||
20 | data | ||
21 | }) | ||
22 | } | ||
23 | } | ||
24 | export default new ktfQtXzdzw() | ||
... | \ 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 ktfQtXzdzw from '@/api/ktfQtXzdzw' |
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], |
... | @@ -167,7 +167,7 @@ export default { | ... | @@ -167,7 +167,7 @@ export default { |
167 | methods: { | 167 | methods: { |
168 | async featchData () { | 168 | async featchData () { |
169 | try { | 169 | try { |
170 | let { result: res } = await business.getKtfQtXzdzwById(this.bsmSjsb) | 170 | let { result: res } = await ktfQtXzdzw.getKtfQtXzdzwById(this.bsmSjsb) |
171 | this.ruleForm = res | 171 | this.ruleForm = res |
172 | //this.featchRule() | 172 | //this.featchRule() |
173 | } catch (error) { | 173 | } catch (error) { |
... | @@ -177,7 +177,7 @@ export default { | ... | @@ -177,7 +177,7 @@ export default { |
177 | handleUpdateForm () { | 177 | handleUpdateForm () { |
178 | return new Promise(async (resolve, reject) => { | 178 | return new Promise(async (resolve, reject) => { |
179 | try { | 179 | try { |
180 | let res = await business.updateKtfQtXzdzw(this.ruleForm) | 180 | let res = await ktfQtXzdzw.updateKtfQtXzdzw(this.ruleForm) |
181 | // this.$refs['formList'].resetFields(); | 181 | // this.$refs['formList'].resetFields(); |
182 | resolve(res.code) | 182 | resolve(res.code) |
183 | } catch (error) { | 183 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment