api修改
Showing
4 changed files
with
28 additions
and
5 deletions
src/api/ktfZdbhqk.js
0 → 100644
1 | import request from '@/utils/request' | ||
2 | import SERVER from './config' | ||
3 | |||
4 | class ktfZdbhqk { | ||
5 | //宗地变化情况 | ||
6 | async getKtfZdbhqkById (bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/detail', | ||
9 | method: 'get', | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb | ||
12 | } | ||
13 | }) | ||
14 | } | ||
15 | //修改宗地变化情况 | ||
16 | async updateKtfZdbhqk (data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/edit', | ||
19 | method: 'post', | ||
20 | data | ||
21 | }) | ||
22 | } | ||
23 | } | ||
24 | export default new ktfZdbhqk() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -82,7 +82,7 @@ | ... | @@ -82,7 +82,7 @@ |
82 | </template> | 82 | </template> |
83 | <script> | 83 | <script> |
84 | // 宗地变化情况 | 84 | // 宗地变化情况 |
85 | import business from '@/api/business' | 85 | import ktfZdbhqk from '@/api/ktfZdbhqk' |
86 | import ruleMixin from '@/mixins/ruleMixin.js' | 86 | import ruleMixin from '@/mixins/ruleMixin.js' |
87 | export default { | 87 | export default { |
88 | mixins: [ruleMixin], | 88 | mixins: [ruleMixin], |
... | @@ -112,7 +112,7 @@ export default { | ... | @@ -112,7 +112,7 @@ export default { |
112 | methods: { | 112 | methods: { |
113 | async featchData () { | 113 | async featchData () { |
114 | try { | 114 | try { |
115 | let { result: res } = await business.getKtfZdbhqkById(this.bsmSjsb) | 115 | let { result: res } = await ktfZdbhqk.getKtfZdbhqkById(this.bsmSjsb) |
116 | this.ruleForm = res | 116 | this.ruleForm = res |
117 | //this.featchRule() | 117 | //this.featchRule() |
118 | } catch (error) { | 118 | } catch (error) { |
... | @@ -122,7 +122,7 @@ export default { | ... | @@ -122,7 +122,7 @@ export default { |
122 | handleUpdateForm () { | 122 | handleUpdateForm () { |
123 | return new Promise(async (resolve) => { | 123 | return new Promise(async (resolve) => { |
124 | try { | 124 | try { |
125 | let res = await business.updateKtfZdbhqk(this.ruleForm) | 125 | let res = await ktfZdbhqk.updateKtfZdbhqk(this.ruleForm) |
126 | // this.$refs['formList'].resetFields(); | 126 | // this.$refs['formList'].resetFields(); |
127 | resolve(res.code) | 127 | resolve(res.code) |
128 | } catch (error) { | 128 | } catch (error) { | ... | ... |
1 | <template> | 1 | <template> |
2 | <!-- 地图 --> | 2 | <!-- 地图 --> |
3 | <Echart id="centreLeft2Chart" class="centreLeft2Chart" ref="centreLeft2ChartRef" width="100%" height="505px" | 3 | <Echart id="centreLeft2Chart" class="centreLeft2Chart" ref="centreLeft2ChartRef" width="100%" height="53vh" |
4 | :options="options"></Echart> | 4 | :options="options"></Echart> |
5 | </template> | 5 | </template> |
6 | 6 | ... | ... |
... | @@ -39,7 +39,6 @@ export default { | ... | @@ -39,7 +39,6 @@ export default { |
39 | background: url("~@/image/mapcenter.png") no-repeat; | 39 | background: url("~@/image/mapcenter.png") no-repeat; |
40 | background-size: 100% 100%; | 40 | background-size: 100% 100%; |
41 | position: relative; | 41 | position: relative; |
42 | height: 455px; | ||
43 | 42 | ||
44 | .title { | 43 | .title { |
45 | position: absolute; | 44 | position: absolute; | ... | ... |
-
Please register or sign in to post a comment