39d36fc8 by yangwei

构(建)筑物所有权

1 parent 161972d7
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class qltQlGjzwsyq {
5 // 构(建)筑物所有权
6 async getQltQlGjzwsyqList(data) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage",
9 method: "post",
10 data,
11 });
12 }
13 // 构(建)筑物所有权
14 async getQltQlGjzwsyqById(bsmSjsb) {
15 return request({
16 url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail",
17 method: "get",
18 params: {
19 bsmSjsb: bsmSjsb,
20 },
21 });
22 }
23 //构(建)筑物所有权 - 修改
24 async updateQltQlGjzwsyq(data) {
25 return request({
26 url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit",
27 method: "post",
28 data,
29 });
30 }
31 }
32 export default new qltQlGjzwsyq();
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
278 </template> 278 </template>
279 <script> 279 <script>
280 // 构(建)筑物所有权信息 280 // 构(建)筑物所有权信息
281 import business from '@/api/business' 281 import qltQlGjzwsyq from '@/api/qltQlGjzwsyq'
282 import ruleMixin from '@/mixins/ruleMixin.js' 282 import ruleMixin from '@/mixins/ruleMixin.js'
283 export default { 283 export default {
284 mixins: [ruleMixin], 284 mixins: [ruleMixin],
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
344 methods: { 344 methods: {
345 async featchData () { 345 async featchData () {
346 try { 346 try {
347 let { result: res } = await business.getQltQlGjzwsyqById(this.bsmSjsb) 347 let { result: res } = await qltQlGjzwsyq.getQltQlGjzwsyqById(this.bsmSjsb)
348 this.ruleForm = res 348 this.ruleForm = res
349 //this.featchRule() 349 //this.featchRule()
350 } catch (error) { 350 } catch (error) {
...@@ -354,7 +354,7 @@ export default { ...@@ -354,7 +354,7 @@ export default {
354 handleUpdateForm () { 354 handleUpdateForm () {
355 return new Promise(async (resolve) => { 355 return new Promise(async (resolve) => {
356 try { 356 try {
357 let res = await business.updateQltQlGjzwsyq(this.ruleForm) 357 let res = await qltQlGjzwsyq.updateQltQlGjzwsyq(this.ruleForm)
358 // this.$refs['formList'].resetFields(); 358 // this.$refs['formList'].resetFields();
359 resolve(res.code) 359 resolve(res.code)
360 } catch (error) { 360 } catch (error) {
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
67 <script> 67 <script>
68 // 构(建)筑物所有权 68 // 构(建)筑物所有权
69 import data from "./data" 69 import data from "./data"
70 import business from '@/api/business' 70 import qltQlGjzwsyq from '@/api/qltQlGjzwsyq'
71 import tableMixin from '@/mixins/tableMixin.js' 71 import tableMixin from '@/mixins/tableMixin.js'
72 import treeSelect from '@/components/treeSelect/index.vue' 72 import treeSelect from '@/components/treeSelect/index.vue'
73 export default { 73 export default {
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
134 try { 134 try {
135 this.form = Object.assign(this.form, this.formData) 135 this.form = Object.assign(this.form, this.formData)
136 let { result: { list, total, pages: pageSize, pageNum: current } 136 let { result: { list, total, pages: pageSize, pageNum: current }
137 } = await business.getQltQlGjzwsyqList(this.form) 137 } = await qltQlGjzwsyq.getQltQlGjzwsyqList(this.form)
138 this.tableData.data = list 138 this.tableData.data = list
139 this.pageData = { 139 this.pageData = {
140 pageSize, 140 pageSize,
......