13dacf08 by 任超

api:界址线信息

1 parent 46ef4eca
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class kttGyJzx {
5 //界址线信息
6 async getKttGyJzxById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 //修改界址线信息
16 async updateKttGyJzx (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new kttGyJzx()
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
151 </div> 151 </div>
152 </template> 152 </template>
153 <script> 153 <script>
154 import business from '@/api/business' 154 import kttGyJzx from '@/api/kttGyJzx'
155 import ruleMixin from '@/mixins/ruleMixin.js' 155 import ruleMixin from '@/mixins/ruleMixin.js'
156 // 界址线信息 156 // 界址线信息
157 export default { 157 export default {
...@@ -190,7 +190,7 @@ export default { ...@@ -190,7 +190,7 @@ export default {
190 methods: { 190 methods: {
191 async featchData () { 191 async featchData () {
192 try { 192 try {
193 let { result: res } = await business.getKttGyJzxById(this.bsmSjsb) 193 let { result: res } = await kttGyJzx.getKttGyJzxById(this.bsmSjsb)
194 this.boundaryLine.ruleForm = res 194 this.boundaryLine.ruleForm = res
195 //this.featchRule() 195 //this.featchRule()
196 } catch (error) { 196 } catch (error) {
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
200 handleUpdateForm () { 200 handleUpdateForm () {
201 return new Promise(async (resolve) => { 201 return new Promise(async (resolve) => {
202 try { 202 try {
203 let res = await business.updateKttGyJzx(this.boundaryLine.ruleForm) 203 let res = await kttGyJzx.updateKttGyJzx(this.boundaryLine.ruleForm)
204 resolve(res.code) 204 resolve(res.code)
205 } catch (error) { 205 } catch (error) {
206 this.$refs.msg.messageShow() 206 this.$refs.msg.messageShow()
......