feat(lpbContent):上下左右移动户联调接口
Showing
3 changed files
with
116 additions
and
4 deletions
... | @@ -106,4 +106,16 @@ export function getLpbFwytAndQlxz (data) { | ... | @@ -106,4 +106,16 @@ export function getLpbFwytAndQlxz (data) { |
106 | method: 'get', | 106 | method: 'get', |
107 | data:data | 107 | data:data |
108 | }) | 108 | }) |
109 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
109 | } | ||
110 | |||
111 | /** | ||
112 | * 上下左右移动户 | ||
113 | * @param data | ||
114 | */ | ||
115 | export function moveH(data) { | ||
116 | return request({ | ||
117 | url:'fw/lpbright/insertMoveH', | ||
118 | method:'post', | ||
119 | data:data | ||
120 | }) | ||
121 | } | ... | ... |
src/components/moveH/moveH.vue
0 → 100644
1 | <template> | ||
2 | <div> | ||
3 | <el-dialog | ||
4 | title="移动户" | ||
5 | :visible.sync="isVisible" | ||
6 | width="50%" | ||
7 | @close="close" | ||
8 | :modal-append-to-body="false" | ||
9 | center> | ||
10 | <div> | ||
11 | <el-radio-group v-model="moveHdata.sxzylx"> | ||
12 | <el-radio label="up">向上</el-radio> | ||
13 | <el-radio label="down">向下</el-radio> | ||
14 | <el-radio label="left">向左</el-radio> | ||
15 | <el-radio label="right">向右</el-radio> | ||
16 | </el-radio-group> | ||
17 | <div class=""> | ||
18 | <el-button type="primary" @click="save">确认</el-button> | ||
19 | <el-button type="primary" @click="cacel">取消</el-button> | ||
20 | </div> | ||
21 | </div> | ||
22 | </el-dialog> | ||
23 | </div> | ||
24 | </template> | ||
25 | |||
26 | <script> | ||
27 | import {moveH} from './../../api/lpb' | ||
28 | import {Message} from 'element-ui' | ||
29 | export default { | ||
30 | name: "moveH", | ||
31 | data() { | ||
32 | return { | ||
33 | isVisible:false, | ||
34 | moveHdata: { | ||
35 | hbsm: "", | ||
36 | sxzylx: "", | ||
37 | type:"" | ||
38 | } | ||
39 | } | ||
40 | }, | ||
41 | props: { | ||
42 | moveHvisible: { | ||
43 | type: Boolean, | ||
44 | default: false | ||
45 | }, | ||
46 | hbsm: { | ||
47 | type: String | ||
48 | }, | ||
49 | type:{ | ||
50 | type:String | ||
51 | } | ||
52 | }, | ||
53 | methods: { | ||
54 | loading:function(){ | ||
55 | this.$emit('loading') | ||
56 | }, | ||
57 | save() { | ||
58 | this.moveHdata.hbsm=this.hbsm | ||
59 | this.moveHdata.type=this.type | ||
60 | moveH(this.moveHdata).then(res=>{ | ||
61 | console.log(res) | ||
62 | if (res.success) { | ||
63 | this.loading(); | ||
64 | this.close(); | ||
65 | Message.success("移动成功") | ||
66 | }else{ | ||
67 | Message.error(res.message) | ||
68 | } | ||
69 | }) | ||
70 | }, | ||
71 | cacel(){ | ||
72 | this.close() | ||
73 | }, | ||
74 | close() { | ||
75 | this.$emit('close'); | ||
76 | } | ||
77 | }, | ||
78 | watch: { | ||
79 | moveHvisible(val) { | ||
80 | this.isVisible = val | ||
81 | } | ||
82 | } | ||
83 | } | ||
84 | </script> | ||
85 | |||
86 | <style scoped> | ||
87 | |||
88 | </style> |
... | @@ -94,16 +94,19 @@ | ... | @@ -94,16 +94,19 @@ |
94 | <li v-show='rightClickFlag=="c"' @click="handleDownAddC">向下添加层</li> | 94 | <li v-show='rightClickFlag=="c"' @click="handleDownAddC">向下添加层</li> |
95 | <li v-show='rightClickFlag=="c"' @click="handleDeleteC">删除层</li> | 95 | <li v-show='rightClickFlag=="c"' @click="handleDeleteC">删除层</li> |
96 | </ul> | 96 | </ul> |
97 | <move-h :hbsm="chData.bsm" @close="moveHClose" :move-hvisible="moveHvisible" :type="syclx" @loading="loadingData"></move-h> | ||
97 | </div> | 98 | </div> |
98 | </template> | 99 | </template> |
99 | <script> | 100 | <script> |
100 | import { getLpb } from "../../../../../api/lpb"; | 101 | import { getLpb } from "../../../../../api/lpb"; |
102 | import moveH from "./../../../../../components/moveH/moveH" | ||
101 | export default { | 103 | export default { |
102 | name: "", | 104 | name: "", |
103 | components: {}, | 105 | components: {moveH}, |
104 | props: {}, | 106 | props: {}, |
105 | data() { | 107 | data() { |
106 | return { | 108 | return { |
109 | moveHvisible:false, | ||
107 | lpbData: { | 110 | lpbData: { |
108 | ljzs: [], | 111 | ljzs: [], |
109 | cs: [], | 112 | cs: [], |
... | @@ -145,6 +148,9 @@ export default { | ... | @@ -145,6 +148,9 @@ export default { |
145 | }, 200); | 148 | }, 200); |
146 | }, | 149 | }, |
147 | methods: { | 150 | methods: { |
151 | loadingData(){ | ||
152 | this.getLpb(this.$store.state.zrzbsm,this.$parent.syclx); | ||
153 | }, | ||
148 | //获取楼盘表数据 | 154 | //获取楼盘表数据 |
149 | getLpb(zrzbsm,syclx) { | 155 | getLpb(zrzbsm,syclx) { |
150 | getLpb(zrzbsm,syclx).then((res) => { | 156 | getLpb(zrzbsm,syclx).then((res) => { |
... | @@ -241,7 +247,7 @@ export default { | ... | @@ -241,7 +247,7 @@ export default { |
241 | // this.zdyWidth = 124; | 247 | // this.zdyWidth = 124; |
242 | } | 248 | } |
243 | 249 | ||
244 | 250 | ||
245 | }, | 251 | }, |
246 | //户单击事件 | 252 | //户单击事件 |
247 | handleTdClick(e, bsm) { | 253 | handleTdClick(e, bsm) { |
... | @@ -321,7 +327,13 @@ export default { | ... | @@ -321,7 +327,13 @@ export default { |
321 | 327 | ||
322 | }, | 328 | }, |
323 | handleMoveH(){ | 329 | handleMoveH(){ |
324 | 330 | // 移动户 | |
331 | console.log(this.chData,"chData") | ||
332 | console.log(this.$parent.syclx,"实预测类型") | ||
333 | this.moveHvisible=true; | ||
334 | }, | ||
335 | moveHClose(){ | ||
336 | this.moveHvisible=false; | ||
325 | }, | 337 | }, |
326 | handleDeleteH(){ | 338 | handleDeleteH(){ |
327 | 339 | ... | ... |
-
Please register or sign in to post a comment