8048b302 by 任超

自然幢信息

1 parent 4e32d787
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class kttFwZrz {
5 // 自然幢信息
6 async getKttFwZrzById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 // 自然幢信息-修改
16 async updateKttFwZrz (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new kttFwZrz()
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
320 </template> 320 </template>
321 <script> 321 <script>
322 // 自然幢 322 // 自然幢
323 import business from '@/api/business' 323 import kttFwZrz from '@/api/kttFwZrz'
324 import ruleMixin from '@/mixins/ruleMixin.js' 324 import ruleMixin from '@/mixins/ruleMixin.js'
325 export default { 325 export default {
326 mixins: [ruleMixin], 326 mixins: [ruleMixin],
...@@ -372,7 +372,7 @@ export default { ...@@ -372,7 +372,7 @@ export default {
372 methods: { 372 methods: {
373 async featchData () { 373 async featchData () {
374 try { 374 try {
375 let { result: res } = await business.getKttFwZrzById(this.bsmSjsb) 375 let { result: res } = await kttFwZrz.getKttFwZrzById(this.bsmSjsb)
376 this.naturalForm.naturalList = res 376 this.naturalForm.naturalList = res
377 //this.featchRule() 377 //this.featchRule()
378 } catch (error) { 378 } catch (error) {
...@@ -382,7 +382,7 @@ export default { ...@@ -382,7 +382,7 @@ export default {
382 handleUpdateForm () { 382 handleUpdateForm () {
383 return new Promise(async (resolve) => { 383 return new Promise(async (resolve) => {
384 try { 384 try {
385 let res = await business.updateKttFwZrz(this.naturalForm.naturalList) 385 let res = await kttFwZrz.updateKttFwZrz(this.naturalForm.naturalList)
386 // this.$refs['formList'].resetFields(); 386 // this.$refs['formList'].resetFields();
387 resolve(res.code) 387 resolve(res.code)
388 } catch (error) { 388 } catch (error) {
......