api引入及文件规范
Showing
10 changed files
with
117 additions
and
17 deletions
src/api/qlfFwFdcqQfsyq.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class qlfFwFdcqQfsyq { | ||
5 | // 建筑物区分所有权业主共有部分信息 | ||
6 | async getQlfFwFdcqQfsyqList(data) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/getDataPage", | ||
9 | method: "post", | ||
10 | data, | ||
11 | }); | ||
12 | } | ||
13 | //建筑物区分所有权业主共有部分信息 | ||
14 | async getQlfFwFdcqQfsyqById(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/detail", | ||
17 | method: "get", | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb, | ||
20 | }, | ||
21 | }); | ||
22 | } | ||
23 | //修改建筑物区分所有权业主共有部分信息 | ||
24 | async updateQlfFwFdcqQfsyq(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/edit", | ||
27 | method: "post", | ||
28 | data, | ||
29 | }); | ||
30 | } | ||
31 | } | ||
32 | export default new qlfFwFdcqQfsyq(); |
... | @@ -10,5 +10,23 @@ class qlfQlJsydsyq { | ... | @@ -10,5 +10,23 @@ class qlfQlJsydsyq { |
10 | data, | 10 | data, |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //建设用地、宅基地使用权 | ||
14 | async getQlfQlJsydsyqById(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/detail', | ||
17 | method: 'get', | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb | ||
20 | } | ||
21 | }) | ||
22 | } | ||
23 | //修改建设用地、宅基地使用权 | ||
24 | async updateQlfQlJsydsyq(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/edit', | ||
27 | method: 'post', | ||
28 | data | ||
29 | }) | ||
30 | } | ||
13 | } | 31 | } |
14 | export default new qlfQlJsydsyq(); | 32 | export default new qlfQlJsydsyq(); | ... | ... |
... | @@ -10,5 +10,23 @@ class qlfQlTdsyq { | ... | @@ -10,5 +10,23 @@ class qlfQlTdsyq { |
10 | data, | 10 | data, |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //土地所有权 | ||
14 | async getQlfQlTdsyqById(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/detail', | ||
17 | method: 'get', | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb | ||
20 | } | ||
21 | }) | ||
22 | } | ||
23 | //修改土地所有权 | ||
24 | async updateQlfQlTdsyq(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/edit', | ||
27 | method: 'post', | ||
28 | data | ||
29 | }) | ||
30 | } | ||
13 | } | 31 | } |
14 | export default new qlfQlTdsyq(); | 32 | export default new qlfQlTdsyq(); | ... | ... |
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class qltFwFdcqDz { | ||
5 | // 房地产权_项目内多幢房屋信息 | ||
6 | async getQltFwFdcqDzList(data) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqDz/getDataPage", | ||
9 | method: "post", | ||
10 | data, | ||
11 | }); | ||
12 | } | ||
13 | //房地产权_项目内多幢房屋信息 | ||
14 | async getQltFwFdcqDzById(bsmSjsb) { | ||
15 | return request({ | ||
16 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/detail', | ||
17 | method: 'get', | ||
18 | params: { | ||
19 | bsmSjsb: bsmSjsb | ||
20 | } | ||
21 | }) | ||
22 | } | ||
23 | //修改房地产权_项目内多幢房屋信息 | ||
24 | async updateQltFwFdcqDz(data) { | ||
25 | return request({ | ||
26 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/edit', | ||
27 | method: 'post', | ||
28 | data | ||
29 | }) | ||
30 | } | ||
31 | } | ||
32 | export default new qltFwFdcqDz(); | ... | ... |
... | @@ -182,7 +182,7 @@ | ... | @@ -182,7 +182,7 @@ |
182 | </template> | 182 | </template> |
183 | <script> | 183 | <script> |
184 | // 建筑物区分所有权业主共有部分信息 | 184 | // 建筑物区分所有权业主共有部分信息 |
185 | import business from '@/api/business' | 185 | import qlfFwFdcqQfsyq from '@/api/qlfFwFdcqQfsyq' |
186 | import ruleMixin from '@/mixins/ruleMixin.js' | 186 | import ruleMixin from '@/mixins/ruleMixin.js' |
187 | export default { | 187 | export default { |
188 | mixins: [ruleMixin], | 188 | mixins: [ruleMixin], |
... | @@ -220,7 +220,7 @@ export default { | ... | @@ -220,7 +220,7 @@ export default { |
220 | methods: { | 220 | methods: { |
221 | async featchData () { | 221 | async featchData () { |
222 | try { | 222 | try { |
223 | let { result: res } = await business.getQlfFwFdcqQfsyqById(this.bsmSjsb) | 223 | let { result: res } = await qlfFwFdcqQfsyq.getQlfFwFdcqQfsyqById(this.bsmSjsb) |
224 | this.ruleForm = res | 224 | this.ruleForm = res |
225 | //this.featchRule() | 225 | //this.featchRule() |
226 | } catch (error) { | 226 | } catch (error) { |
... | @@ -230,7 +230,7 @@ export default { | ... | @@ -230,7 +230,7 @@ export default { |
230 | handleUpdateForm () { | 230 | handleUpdateForm () { |
231 | return new Promise(async (resolve, reject) => { | 231 | return new Promise(async (resolve, reject) => { |
232 | try { | 232 | try { |
233 | let res = await business.updateQlfFwFdcqQfsyq(this.ruleForm) | 233 | let res = await qlfFwFdcqQfsyq.updateQlfFwFdcqQfsyq(this.ruleForm) |
234 | // this.$refs['formList'].resetFields(); | 234 | // this.$refs['formList'].resetFields(); |
235 | resolve(res.code) | 235 | resolve(res.code) |
236 | } catch (error) { | 236 | } catch (error) { | ... | ... |
... | @@ -214,7 +214,7 @@ | ... | @@ -214,7 +214,7 @@ |
214 | </template> | 214 | </template> |
215 | <script> | 215 | <script> |
216 | // 建设用地、宅基地使用权信息 | 216 | // 建设用地、宅基地使用权信息 |
217 | import business from '@/api/business' | 217 | import qlfQlJsydsyq from '@/api/qlfQlJsydsyq' |
218 | import ruleMixin from '@/mixins/ruleMixin.js' | 218 | import ruleMixin from '@/mixins/ruleMixin.js' |
219 | export default { | 219 | export default { |
220 | mixins: [ruleMixin], | 220 | mixins: [ruleMixin], |
... | @@ -275,7 +275,7 @@ export default { | ... | @@ -275,7 +275,7 @@ export default { |
275 | methods: { | 275 | methods: { |
276 | async featchData () { | 276 | async featchData () { |
277 | try { | 277 | try { |
278 | let { result: res } = await business.getQlfQlJsydsyqById(this.bsmSjsb) | 278 | let { result: res } = await qlfQlJsydsyq.getQlfQlJsydsyqById(this.bsmSjsb) |
279 | this.ruleForm = res | 279 | this.ruleForm = res |
280 | //this.featchRule() | 280 | //this.featchRule() |
281 | } catch (error) { | 281 | } catch (error) { |
... | @@ -285,7 +285,7 @@ export default { | ... | @@ -285,7 +285,7 @@ export default { |
285 | handleUpdateForm () { | 285 | handleUpdateForm () { |
286 | return new Promise(async (resolve, reject) => { | 286 | return new Promise(async (resolve, reject) => { |
287 | try { | 287 | try { |
288 | let res = await business.updateQlfQlJsydsyq(this.ruleForm) | 288 | let res = await qlfQlJsydsyq.updateQlfQlJsydsyq(this.ruleForm) |
289 | // this.$refs['formList'].resetFields(); | 289 | // this.$refs['formList'].resetFields(); |
290 | resolve(res.code) | 290 | resolve(res.code) |
291 | } catch (error) { | 291 | } catch (error) { | ... | ... |
... | @@ -262,7 +262,7 @@ | ... | @@ -262,7 +262,7 @@ |
262 | </template> | 262 | </template> |
263 | <script> | 263 | <script> |
264 | // 土地所有权信息 | 264 | // 土地所有权信息 |
265 | import business from '@/api/business' | 265 | import qlfQlTdsyq from '@/api/qlfQlTdsyq' |
266 | import ruleMixin from '@/mixins/ruleMixin.js' | 266 | import ruleMixin from '@/mixins/ruleMixin.js' |
267 | export default { | 267 | export default { |
268 | mixins: [ruleMixin], | 268 | mixins: [ruleMixin], |
... | @@ -307,7 +307,7 @@ export default { | ... | @@ -307,7 +307,7 @@ export default { |
307 | methods: { | 307 | methods: { |
308 | async featchData () { | 308 | async featchData () { |
309 | try { | 309 | try { |
310 | let { result: res } = await business.getQlfQlTdsyqById(this.bsmSjsb) | 310 | let { result: res } = await qlfQlTdsyq.getQlfQlTdsyqById(this.bsmSjsb) |
311 | this.ruleForm = res | 311 | this.ruleForm = res |
312 | //this.featchRule() | 312 | //this.featchRule() |
313 | } catch (error) { | 313 | } catch (error) { |
... | @@ -317,7 +317,7 @@ export default { | ... | @@ -317,7 +317,7 @@ export default { |
317 | handleUpdateForm () { | 317 | handleUpdateForm () { |
318 | return new Promise(async (resolve, reject) => { | 318 | return new Promise(async (resolve, reject) => { |
319 | try { | 319 | try { |
320 | let res = await business.updateQlfQlTdsyq(this.ruleForm) | 320 | let res = await qlfQlTdsyq.updateQlfQlTdsyq(this.ruleForm) |
321 | // this.$refs['formList'].resetFields(); | 321 | // this.$refs['formList'].resetFields(); |
322 | resolve(res.code) | 322 | resolve(res.code) |
323 | } catch (error) { | 323 | } catch (error) { | ... | ... |
... | @@ -248,7 +248,7 @@ | ... | @@ -248,7 +248,7 @@ |
248 | </template> | 248 | </template> |
249 | <script> | 249 | <script> |
250 | // 房地产权_项目内多幢房屋信息 | 250 | // 房地产权_项目内多幢房屋信息 |
251 | import business from '@/api/business' | 251 | import qltFwFdcqDz from '@/api/qltFwFdcqDz' |
252 | import ruleMixin from '@/mixins/ruleMixin.js' | 252 | import ruleMixin from '@/mixins/ruleMixin.js' |
253 | export default { | 253 | export default { |
254 | mixins: [ruleMixin], | 254 | mixins: [ruleMixin], |
... | @@ -312,7 +312,7 @@ export default { | ... | @@ -312,7 +312,7 @@ export default { |
312 | methods: { | 312 | methods: { |
313 | async featchData () { | 313 | async featchData () { |
314 | try { | 314 | try { |
315 | let { result: res } = await business.getQltFwFdcqDzById(this.bsmSjsb) | 315 | let { result: res } = await qltFwFdcqDz.getQltFwFdcqDzById(this.bsmSjsb) |
316 | this.ruleForm = res | 316 | this.ruleForm = res |
317 | // this.featchRule() | 317 | // this.featchRule() |
318 | } catch (error) { | 318 | } catch (error) { |
... | @@ -322,7 +322,7 @@ export default { | ... | @@ -322,7 +322,7 @@ export default { |
322 | handleUpdateForm () { | 322 | handleUpdateForm () { |
323 | return new Promise(async (resolve, reject) => { | 323 | return new Promise(async (resolve, reject) => { |
324 | try { | 324 | try { |
325 | let res = await business.updateQltFwFdcqDz(this.ruleForm) | 325 | let res = await qltFwFdcqDz.updateQltFwFdcqDz(this.ruleForm) |
326 | // this.$refs['formList'].resetFields(); | 326 | // this.$refs['formList'].resetFields(); |
327 | resolve(res.code) | 327 | resolve(res.code) |
328 | } catch (error) { | 328 | } catch (error) { | ... | ... |
... | @@ -70,7 +70,7 @@ | ... | @@ -70,7 +70,7 @@ |
70 | <script> | 70 | <script> |
71 | // 房地产权(项目内多幢房屋) | 71 | // 房地产权(项目内多幢房屋) |
72 | import data from "./data" | 72 | import data from "./data" |
73 | import business from '@/api/business' | 73 | import qltFwFdcqDz from '@/api/qltFwFdcqDz' |
74 | import sjsbFunctionOper from '@/api/sjsbFunctionOper' | 74 | import sjsbFunctionOper from '@/api/sjsbFunctionOper' |
75 | import tableMixin from '@/mixins/tableMixin.js' | 75 | import tableMixin from '@/mixins/tableMixin.js' |
76 | import treeSelect from '@/components/treeSelect/index.vue' | 76 | import treeSelect from '@/components/treeSelect/index.vue' |
... | @@ -140,7 +140,7 @@ export default { | ... | @@ -140,7 +140,7 @@ export default { |
140 | try { | 140 | try { |
141 | this.form = Object.assign(this.form, this.formData) | 141 | this.form = Object.assign(this.form, this.formData) |
142 | let { result: { list, total, pages: pageSize, pageNum: current } | 142 | let { result: { list, total, pages: pageSize, pageNum: current } |
143 | } = await business.getQltFwFdcqDzList(this.form) | 143 | } = await qltFwFdcqDz.getQltFwFdcqDzList(this.form) |
144 | this.tableData.data = list | 144 | this.tableData.data = list |
145 | this.pageData = { | 145 | this.pageData = { |
146 | pageSize, | 146 | pageSize, |
... | @@ -157,7 +157,7 @@ export default { | ... | @@ -157,7 +157,7 @@ export default { |
157 | if (res != null) { | 157 | if (res != null) { |
158 | this.diaData = res | 158 | this.diaData = res |
159 | this.bsmSjsb = row.BSM_SJSB | 159 | this.bsmSjsb = row.BSM_SJSB |
160 | this.$store.dispatch('business/setEdit'); this.$refs.editLog.isShow() | 160 | this.$store.dispatch('qltFwFdcqDz/setEdit'); this.$refs.editLog.isShow() |
161 | } else { | 161 | } else { |
162 | this.$message(message); | 162 | this.$message(message); |
163 | } | 163 | } | ... | ... |
... | @@ -42,7 +42,7 @@ | ... | @@ -42,7 +42,7 @@ |
42 | <script> | 42 | <script> |
43 | // 建筑物区分所有权业主共有部分 | 43 | // 建筑物区分所有权业主共有部分 |
44 | import data from "./data" | 44 | import data from "./data" |
45 | import business from '@/api/business' | 45 | import qlfFwFdcqQfsyq from '@/api/qlfFwFdcqQfsyq' |
46 | import sjsbFunctionOper from '@/api/sjsbFunctionOper' | 46 | import sjsbFunctionOper from '@/api/sjsbFunctionOper' |
47 | import tableMixin from '@/mixins/tableMixin.js' | 47 | import tableMixin from '@/mixins/tableMixin.js' |
48 | import treeSelect from '@/components/treeSelect/index.vue' | 48 | import treeSelect from '@/components/treeSelect/index.vue' |
... | @@ -107,7 +107,7 @@ export default { | ... | @@ -107,7 +107,7 @@ export default { |
107 | try { | 107 | try { |
108 | this.form = Object.assign(this.form, this.formData) | 108 | this.form = Object.assign(this.form, this.formData) |
109 | let { result: { list, total, pages: pageSize, pageNum: current } | 109 | let { result: { list, total, pages: pageSize, pageNum: current } |
110 | } = await business.getQlfFwFdcqQfsyqList(this.form) | 110 | } = await qlfFwFdcqQfsyq.getQlfFwFdcqQfsyqList(this.form) |
111 | this.tableData.data = list | 111 | this.tableData.data = list |
112 | this.pageData = { | 112 | this.pageData = { |
113 | pageSize, | 113 | pageSize, | ... | ... |
-
Please register or sign in to post a comment