Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcjg-web
Showing
3 changed files
with
27 additions
and
39 deletions
... | @@ -919,41 +919,5 @@ class business { | ... | @@ -919,41 +919,5 @@ class business { |
919 | data | 919 | data |
920 | }) | 920 | }) |
921 | } | 921 | } |
922 | // 面状定着物 | ||
923 | async getKtfQtMzdzwById(bsmSjsb) { | ||
924 | return request({ | ||
925 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail', | ||
926 | method: 'get', | ||
927 | params: { | ||
928 | bsmSjsb: bsmSjsb | ||
929 | } | ||
930 | }) | ||
931 | } | ||
932 | // 面状定着物-修改 | ||
933 | async updateKtfQtMzdzw(data) { | ||
934 | return request({ | ||
935 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit', | ||
936 | method: 'post', | ||
937 | data | ||
938 | }) | ||
939 | } | ||
940 | // 点状定着物信息 | ||
941 | async getKtfQtDzdzwById(bsmSjsb) { | ||
942 | return request({ | ||
943 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/detail', | ||
944 | method: 'get', | ||
945 | params: { | ||
946 | bsmSjsb: bsmSjsb | ||
947 | } | ||
948 | }) | ||
949 | } | ||
950 | // 点状定着物信息-修改 | ||
951 | async updateKtfQtDzdzw(data) { | ||
952 | return request({ | ||
953 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/edit', | ||
954 | method: 'post', | ||
955 | data | ||
956 | }) | ||
957 | } | ||
958 | } | 922 | } |
959 | export default new business() | 923 | 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