7731ab99 by 任超

用海,用岛坐标

1 parent 6594fbfa
import request from '@/utils/request'
import SERVER from './config'
class ktfZhYhydzb {
// 用海,用岛坐标
async getKtfZhYhydzbById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 用海,用岛坐标-修改
async updateKtfZhYhydzb (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/edit',
method: 'post',
data
})
}
}
export default new ktfZhYhydzb()
\ No newline at end of file
......@@ -19,8 +19,9 @@
序号: <br />
<p class="label-detail">(XH)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.XH" type="number"
v-only-number="{ max: 999999, min: 0, precision: 0 }" placeholder="序号"></el-input-number>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.XH" type="number" v-only-number="{ max: 999999, min: 0, precision: 0 }"
placeholder="序号"></el-input-number>
</el-form-item>
</el-col>
......@@ -30,8 +31,9 @@
北纬: <br />
<p class="label-detail">(BW)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.BW" type="number"
v-only-number="{ max: 999999999999999, min: 0, precision: 8 }" placeholder="北纬"></el-input-number>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.BW" type="number" v-only-number="{ max: 999999999999999, min: 0, precision: 8 }"
placeholder="北纬"></el-input-number>
</el-form-item>
</el-col>
</el-row>
......@@ -43,8 +45,9 @@
东经: <br />
<p class="label-detail">(DJ)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.DJ" type="number"
v-only-number="{ max: 999999999999999, min: 0, precision: 8 }" placeholder="东经"></el-input-number>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.DJ" type="number" v-only-number="{ max: 999999999999999, min: 0, precision: 8 }"
placeholder="东经"></el-input-number>
</el-form-item>
</el-col>
......@@ -64,7 +67,7 @@
</template>
<script>
// 用海、用岛坐标
import business from '@/api/business'
import ktfZhYhydzb from '@/api/ktfZhYhydzb'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -92,7 +95,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKtfZhYhydzbById(this.bsmSjsb)
let { result: res } = await ktfZhYhydzb.getKtfZhYhydzbById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -102,7 +105,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateKtfZhYhydzb(this.ruleForm)
let res = await ktfZhYhydzb.updateKtfZhYhydzb(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......