面状定着物
Showing
3 changed files
with
27 additions
and
21 deletions
| ... | @@ -945,23 +945,5 @@ class business { | ... | @@ -945,23 +945,5 @@ class business { |
| 945 | data | 945 | data |
| 946 | }) | 946 | }) |
| 947 | } | 947 | } |
| 948 | // 面状定着物 | ||
| 949 | async getKtfQtMzdzwById (bsmSjsb) { | ||
| 950 | return request({ | ||
| 951 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail', | ||
| 952 | method: 'get', | ||
| 953 | params: { | ||
| 954 | bsmSjsb: bsmSjsb | ||
| 955 | } | ||
| 956 | }) | ||
| 957 | } | ||
| 958 | // 面状定着物-修改 | ||
| 959 | async updateKtfQtMzdzw (data) { | ||
| 960 | return request({ | ||
| 961 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit', | ||
| 962 | method: 'post', | ||
| 963 | data | ||
| 964 | }) | ||
| 965 | } | ||
| 966 | } | 948 | } |
| 967 | export default new business() | 949 | export default new business() | ... | ... |
src/api/ktfQtMzdzw.js
0 → 100644
| 1 | import request from '@/utils/request' | ||
| 2 | import SERVER from './config' | ||
| 3 | |||
| 4 | class ktfQtMzdzw { | ||
| 5 | // 面状定着物 | ||
| 6 | async getKtfQtMzdzwById (bsmSjsb) { | ||
| 7 | return request({ | ||
| 8 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail', | ||
| 9 | method: 'get', | ||
| 10 | params: { | ||
| 11 | bsmSjsb: bsmSjsb | ||
| 12 | } | ||
| 13 | }) | ||
| 14 | } | ||
| 15 | // 面状定着物-修改 | ||
| 16 | async updateKtfQtMzdzw (data) { | ||
| 17 | return request({ | ||
| 18 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit', | ||
| 19 | method: 'post', | ||
| 20 | data | ||
| 21 | }) | ||
| 22 | } | ||
| 23 | } | ||
| 24 | export default new ktfQtMzdzw() | ||
| ... | \ 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 ktfQtMzdzw from '@/api/ktfQtMzdzw' |
| 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,7 +166,7 @@ export default { | ... | @@ -166,7 +166,7 @@ export default { |
| 166 | methods: { | 166 | methods: { |
| 167 | async featchData () { | 167 | async featchData () { |
| 168 | try { | 168 | try { |
| 169 | let { result: res } = await business.getKtfQtMzdzwById(this.bsmSjsb) | 169 | let { result: res } = await ktfQtMzdzw.getKtfQtMzdzwById(this.bsmSjsb) |
| 170 | this.ruleForm = res | 170 | this.ruleForm = res |
| 171 | //this.featchRule() | 171 | //this.featchRule() |
| 172 | } catch (error) { | 172 | } catch (error) { |
| ... | @@ -176,7 +176,7 @@ export default { | ... | @@ -176,7 +176,7 @@ export default { |
| 176 | handleUpdateForm () { | 176 | handleUpdateForm () { |
| 177 | return new Promise(async (resolve) => { | 177 | return new Promise(async (resolve) => { |
| 178 | try { | 178 | try { |
| 179 | let res = await business.updateKtfQtMzdzw(this.ruleForm) | 179 | let res = await ktfQtMzdzw.updateKtfQtMzdzw(this.ruleForm) |
| 180 | // this.$refs['formList'].resetFields(); | 180 | // this.$refs['formList'].resetFields(); |
| 181 | resolve(res.code) | 181 | resolve(res.code) |
| 182 | } catch (error) { | 182 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment