e29c8c44 by 任超

api修改

1 parent a1495fc5
import request from '@/utils/request'
import SERVER from './config'
class ktfZdbhqk {
//宗地变化情况
async getKtfZdbhqkById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
//修改宗地变化情况
async updateKtfZdbhqk (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/edit',
method: 'post',
data
})
}
}
export default new ktfZdbhqk()
\ No newline at end of file
......@@ -82,7 +82,7 @@
</template>
<script>
// 宗地变化情况
import business from '@/api/business'
import ktfZdbhqk from '@/api/ktfZdbhqk'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -112,7 +112,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKtfZdbhqkById(this.bsmSjsb)
let { result: res } = await ktfZdbhqk.getKtfZdbhqkById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -122,7 +122,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKtfZdbhqk(this.ruleForm)
let res = await ktfZdbhqk.updateKtfZdbhqk(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
<template>
<!-- 地图 -->
<Echart id="centreLeft2Chart" class="centreLeft2Chart" ref="centreLeft2ChartRef" width="100%" height="505px"
<Echart id="centreLeft2Chart" class="centreLeft2Chart" ref="centreLeft2ChartRef" width="100%" height="53vh"
:options="options"></Echart>
</template>
......
......@@ -39,7 +39,6 @@ export default {
background: url("~@/image/mapcenter.png") no-repeat;
background-size: 100% 100%;
position: relative;
height: 455px;
.title {
position: absolute;
......