a1495fc5 by 任超

宗海基本信息

1 parent 8048b302
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class kttZhjbxx {
5 //宗海基本信息
6 async getKttZhjbxxById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 //修改宗海基本信息
16 async updateKttZhjbxx (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new kttZhjbxx()
...\ No newline at end of file ...\ No newline at end of file
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class zdK103 {
5 //宗地空间属性
6 async getZdK103ById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/ZdK103/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 //修改宗地空间属性
16 async updateZdK103 (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/ZdK103/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new zdK103()
...\ No newline at end of file ...\ No newline at end of file
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
378 </template> 378 </template>
379 <script> 379 <script>
380 // 宗海基本信息 380 // 宗海基本信息
381 import business from '@/api/business' 381 import kttZhjbxx from '@/api/kttZhjbxx'
382 import ruleMixin from '@/mixins/ruleMixin.js' 382 import ruleMixin from '@/mixins/ruleMixin.js'
383 export default { 383 export default {
384 mixins: [ruleMixin], 384 mixins: [ruleMixin],
...@@ -434,7 +434,7 @@ export default { ...@@ -434,7 +434,7 @@ export default {
434 methods: { 434 methods: {
435 async featchData () { 435 async featchData () {
436 try { 436 try {
437 let { result: res } = await business.getKttZhjbxxById(this.bsmSjsb) 437 let { result: res } = await kttZhjbxx.getKttZhjbxxById(this.bsmSjsb)
438 this.ruleForm = res 438 this.ruleForm = res
439 //this.featchRule() 439 //this.featchRule()
440 } catch (error) { 440 } catch (error) {
...@@ -444,7 +444,7 @@ export default { ...@@ -444,7 +444,7 @@ export default {
444 handleUpdateForm () { 444 handleUpdateForm () {
445 return new Promise(async (resolve) => { 445 return new Promise(async (resolve) => {
446 try { 446 try {
447 let res = await business.updateKttZhjbxx(this.ruleForm) 447 let res = await kttZhjbxx.updateKttZhjbxx(this.ruleForm)
448 // this.$refs['formList'].resetFields(); 448 // this.$refs['formList'].resetFields();
449 resolve(res.code) 449 resolve(res.code)
450 } catch (error) { 450 } catch (error) {
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
88 </template> 88 </template>
89 <script> 89 <script>
90 // 宗地空间属性 90 // 宗地空间属性
91 import business from "@/api/business"; 91 import zdK103 from "@/api/zdK103";
92 import ruleMixin from "@/mixins/ruleMixin.js"; 92 import ruleMixin from "@/mixins/ruleMixin.js";
93 export default { 93 export default {
94 mixins: [ruleMixin], 94 mixins: [ruleMixin],
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
102 default: "", 102 default: "",
103 }, 103 },
104 }, 104 },
105 data() { 105 data () {
106 return { 106 return {
107 ruleForm: { 107 ruleForm: {
108 BDCDYH: "", 108 BDCDYH: "",
...@@ -114,19 +114,19 @@ export default { ...@@ -114,19 +114,19 @@ export default {
114 }; 114 };
115 }, 115 },
116 methods: { 116 methods: {
117 async featchData() { 117 async featchData () {
118 try { 118 try {
119 let { result: res } = await business.getZdK103ById(this.bsmSjsb); 119 let { result: res } = await zdK103.getZdK103ById(this.bsmSjsb);
120 this.ruleForm = res; 120 this.ruleForm = res;
121 //this.featchRule() 121 //this.featchRule()
122 } catch (error) { 122 } catch (error) {
123 this.$refs.msg.messageShow(); 123 this.$refs.msg.messageShow();
124 } 124 }
125 }, 125 },
126 handleUpdateForm() { 126 handleUpdateForm () {
127 return new Promise(async (resolve) => { 127 return new Promise(async (resolve) => {
128 try { 128 try {
129 let res = await business.updateZdK103(this.ruleForm); 129 let res = await zdK103.updateZdK103(this.ruleForm);
130 // this.$refs['formList'].resetFields(); 130 // this.$refs['formList'].resetFields();
131 resolve(res.code); 131 resolve(res.code);
132 } catch (error) { 132 } catch (error) {
......