Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
2 changed files
with
37 additions
and
0 deletions
src/api/zdy.js
0 → 100644
| 1 | import request from '@/plugin/axios' | ||
| 2 | |||
| 3 | /** | ||
| 4 | * 查询幢单元基本信息 | ||
| 5 | */ | ||
| 6 | export function getQjZdyDetailById(data) { | ||
| 7 | return request({ | ||
| 8 | url: '/system/qjZdy/getQjZdyDetailById', | ||
| 9 | method: 'get', | ||
| 10 | params: { | ||
| 11 | id: data, | ||
| 12 | } | ||
| 13 | }) | ||
| 14 | } | ||
| 15 | |||
| 16 | /** | ||
| 17 | * 更新保存幢单元基本信息 | ||
| 18 | */ | ||
| 19 | export function updateQjZdy(data) { | ||
| 20 | return request({ | ||
| 21 | url: '/system/qjZdy/updateQjZdy', | ||
| 22 | method: 'put', | ||
| 23 | data: data, | ||
| 24 | }) | ||
| 25 | } | ||
| 26 |
| ... | @@ -46,6 +46,7 @@ | ... | @@ -46,6 +46,7 @@ |
| 46 | <script> | 46 | <script> |
| 47 | 47 | ||
| 48 | import {insertZdyInfo} from "@api/lpb" | 48 | import {insertZdyInfo} from "@api/lpb" |
| 49 | import {getQjZdyDetailById,updateQjZdy} from "@api/zdy" | ||
| 49 | export default { | 50 | export default { |
| 50 | name: "index", | 51 | name: "index", |
| 51 | components: {}, | 52 | components: {}, |
| ... | @@ -113,10 +114,20 @@ | ... | @@ -113,10 +114,20 @@ |
| 113 | }); | 114 | }); |
| 114 | }else{ | 115 | }else{ |
| 115 | //编辑幢单元接口 | 116 | //编辑幢单元接口 |
| 117 | updateQjZdy(this.form).then((res)=>{ | ||
| 118 | if(res.code === 200){ | ||
| 119 | this.$message.success("保存成功") | ||
| 120 | } | ||
| 121 | }) | ||
| 116 | } | 122 | } |
| 117 | }, | 123 | }, |
| 118 | getZdyInfo(bsm){ | 124 | getZdyInfo(bsm){ |
| 119 | //查询幢单元信息接口 | 125 | //查询幢单元信息接口 |
| 126 | getQjZdyDetailById(bsm).then((res)=>{ | ||
| 127 | if(res.code === 200){ | ||
| 128 | this.form = res.result; | ||
| 129 | } | ||
| 130 | }) | ||
| 120 | 131 | ||
| 121 | }, | 132 | }, |
| 122 | reset(){ | 133 | reset(){ | ... | ... |
-
Please register or sign in to post a comment