房地产权_项目内多幢房屋项目属性
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/qlfFwFdcqDzXm.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | import SERVER from './config' | ||
3 | |||
4 | class qlfFwFdcqDzXm { | ||
5 | // 房地产权_项目内多幢房屋项目属性 | ||
6 | async getQlfFwFdcqDzXmById (bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/detail', | ||
9 | method: 'get', | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb | ||
12 | } | ||
13 | }) | ||
14 | } | ||
15 | // 房地产权_项目内多幢房屋项目属性-修改 | ||
16 | async updateQlfFwFdcqDzXm (data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/edit', | ||
19 | method: 'post', | ||
20 | data | ||
21 | }) | ||
22 | } | ||
23 | } | ||
24 | export default new qlfFwFdcqDzXm() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -131,7 +131,7 @@ | ... | @@ -131,7 +131,7 @@ |
131 | </template> | 131 | </template> |
132 | <script> | 132 | <script> |
133 | // 房地产权(项目内多幢房屋)项目属性 | 133 | // 房地产权(项目内多幢房屋)项目属性 |
134 | import business from '@/api/business' | 134 | import qlfFwFdcqDzXm from '@/api/qlfFwFdcqDzXm' |
135 | import ruleMixin from '@/mixins/ruleMixin.js' | 135 | import ruleMixin from '@/mixins/ruleMixin.js' |
136 | export default { | 136 | export default { |
137 | mixins: [ruleMixin], | 137 | mixins: [ruleMixin], |
... | @@ -168,7 +168,7 @@ export default { | ... | @@ -168,7 +168,7 @@ export default { |
168 | methods: { | 168 | methods: { |
169 | async featchData () { | 169 | async featchData () { |
170 | try { | 170 | try { |
171 | let { result: res } = await business.getQlfFwFdcqDzXmById(this.bsmSjsb) | 171 | let { result: res } = await qlfFwFdcqDzXm.getQlfFwFdcqDzXmById(this.bsmSjsb) |
172 | this.ruleForm.itemList = res | 172 | this.ruleForm.itemList = res |
173 | //this.featchRule() | 173 | //this.featchRule() |
174 | } catch (error) { | 174 | } catch (error) { |
... | @@ -178,7 +178,7 @@ export default { | ... | @@ -178,7 +178,7 @@ export default { |
178 | handleUpdateForm () { | 178 | handleUpdateForm () { |
179 | return new Promise(async (resolve, reject) => { | 179 | return new Promise(async (resolve, reject) => { |
180 | try { | 180 | try { |
181 | let res = await business.updateQlfFwFdcqDzXm(this.ruleForm.itemList) | 181 | let res = await qlfFwFdcqDzXm.updateQlfFwFdcqDzXm(this.ruleForm.itemList) |
182 | // this.$refs['formList'].resetFields(); | 182 | // this.$refs['formList'].resetFields(); |
183 | resolve(res.code) | 183 | resolve(res.code) |
184 | } catch (error) { | 184 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment