7731ab99 by 任超

用海,用岛坐标

1 parent 6594fbfa
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class ktfZhYhydzb {
5 // 用海,用岛坐标
6 async getKtfZhYhydzbById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 // 用海,用岛坐标-修改
16 async updateKtfZhYhydzb (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new ktfZhYhydzb()
...\ No newline at end of file ...\ No newline at end of file
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
19 序号: <br /> 19 序号: <br />
20 <p class="label-detail">(XH)</p> 20 <p class="label-detail">(XH)</p>
21 </span> 21 </span>
22 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.XH" type="number" 22 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
23 v-only-number="{ max: 999999, min: 0, precision: 0 }" placeholder="序号"></el-input-number> 23 v-model.number="ruleForm.XH" type="number" v-only-number="{ max: 999999, min: 0, precision: 0 }"
24 placeholder="序号"></el-input-number>
24 </el-form-item> 25 </el-form-item>
25 </el-col> 26 </el-col>
26 27
...@@ -30,8 +31,9 @@ ...@@ -30,8 +31,9 @@
30 北纬: <br /> 31 北纬: <br />
31 <p class="label-detail">(BW)</p> 32 <p class="label-detail">(BW)</p>
32 </span> 33 </span>
33 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.BW" type="number" 34 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
34 v-only-number="{ max: 999999999999999, min: 0, precision: 8 }" placeholder="北纬"></el-input-number> 35 v-model.number="ruleForm.BW" type="number" v-only-number="{ max: 999999999999999, min: 0, precision: 8 }"
36 placeholder="北纬"></el-input-number>
35 </el-form-item> 37 </el-form-item>
36 </el-col> 38 </el-col>
37 </el-row> 39 </el-row>
...@@ -43,8 +45,9 @@ ...@@ -43,8 +45,9 @@
43 东经: <br /> 45 东经: <br />
44 <p class="label-detail">(DJ)</p> 46 <p class="label-detail">(DJ)</p>
45 </span> 47 </span>
46 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.DJ" type="number" 48 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
47 v-only-number="{ max: 999999999999999, min: 0, precision: 8 }" placeholder="东经"></el-input-number> 49 v-model.number="ruleForm.DJ" type="number" v-only-number="{ max: 999999999999999, min: 0, precision: 8 }"
50 placeholder="东经"></el-input-number>
48 </el-form-item> 51 </el-form-item>
49 </el-col> 52 </el-col>
50 53
...@@ -64,7 +67,7 @@ ...@@ -64,7 +67,7 @@
64 </template> 67 </template>
65 <script> 68 <script>
66 // 用海、用岛坐标 69 // 用海、用岛坐标
67 import business from '@/api/business' 70 import ktfZhYhydzb from '@/api/ktfZhYhydzb'
68 import ruleMixin from '@/mixins/ruleMixin.js' 71 import ruleMixin from '@/mixins/ruleMixin.js'
69 export default { 72 export default {
70 mixins: [ruleMixin], 73 mixins: [ruleMixin],
...@@ -92,7 +95,7 @@ export default { ...@@ -92,7 +95,7 @@ export default {
92 methods: { 95 methods: {
93 async featchData () { 96 async featchData () {
94 try { 97 try {
95 let { result: res } = await business.getKtfZhYhydzbById(this.bsmSjsb) 98 let { result: res } = await ktfZhYhydzb.getKtfZhYhydzbById(this.bsmSjsb)
96 this.ruleForm = res 99 this.ruleForm = res
97 //this.featchRule() 100 //this.featchRule()
98 } catch (error) { 101 } catch (error) {
...@@ -102,7 +105,7 @@ export default { ...@@ -102,7 +105,7 @@ export default {
102 handleUpdateForm () { 105 handleUpdateForm () {
103 return new Promise(async (resolve, reject) => { 106 return new Promise(async (resolve, reject) => {
104 try { 107 try {
105 let res = await business.updateKtfZhYhydzb(this.ruleForm) 108 let res = await ktfZhYhydzb.updateKtfZhYhydzb(this.ruleForm)
106 // this.$refs['formList'].resetFields(); 109 // this.$refs['formList'].resetFields();
107 resolve(res.code) 110 resolve(res.code)
108 } catch (error) { 111 } catch (error) {
......