综合查询页面的户编辑页面信息
Showing
4 changed files
with
24 additions
and
13 deletions
... | @@ -30,8 +30,12 @@ let bdcLxArray = [ | ... | @@ -30,8 +30,12 @@ let bdcLxArray = [ |
30 | value: "zrz", | 30 | value: "zrz", |
31 | }, | 31 | }, |
32 | { | 32 | { |
33 | label: "户", | 33 | label: "户(预测)", |
34 | value: "h", | 34 | value: "h0", |
35 | }, | ||
36 | { | ||
37 | label: "户(实测)", | ||
38 | value: "h1", | ||
35 | }, | 39 | }, |
36 | { | 40 | { |
37 | label: "多幢", | 41 | label: "多幢", | ... | ... |
... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
47 | </div> | 47 | </div> |
48 | 48 | ||
49 | <el-dialog title="户编辑" :visible.sync="hbjVisible" width="50%" center> | 49 | <el-dialog title="户编辑" :visible.sync="hbjVisible" width="50%" center> |
50 | <hbj ref="hbj" :bsm="hbsm"></hbj> | 50 | <hbj ref="hbj" :bsm="hbsm" :key="hbsm"></hbj> |
51 | <div class="btnGroup"> | 51 | <div class="btnGroup"> |
52 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> | 52 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> |
53 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> | 53 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> |
... | @@ -77,6 +77,7 @@ | ... | @@ -77,6 +77,7 @@ |
77 | queryData: {}, | 77 | queryData: {}, |
78 | hbjVisible: false, | 78 | hbjVisible: false, |
79 | hbsm:'', | 79 | hbsm:'', |
80 | tabPosition: "1", //1是实测 0是预测 | ||
80 | }; | 81 | }; |
81 | }, | 82 | }, |
82 | created() { | 83 | created() { |
... | @@ -99,7 +100,9 @@ | ... | @@ -99,7 +100,9 @@ |
99 | }, | 100 | }, |
100 | //户保存 | 101 | //户保存 |
101 | hbjSaveInfo() { | 102 | hbjSaveInfo() { |
102 | this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition); | 103 | this.$refs.hbj.onSave(this.hbsm, this.tabPosition); |
104 | this.hbjVisible = false; | ||
105 | this.getData({pageSize:15}); | ||
103 | }, | 106 | }, |
104 | //户编辑表单重置 | 107 | //户编辑表单重置 |
105 | hbjResetInfo() { | 108 | hbjResetInfo() { |
... | @@ -142,15 +145,19 @@ | ... | @@ -142,15 +145,19 @@ |
142 | this.$store.state.dzbsm = row.glbsm; | 145 | this.$store.state.dzbsm = row.glbsm; |
143 | path = "/dz"; | 146 | path = "/dz"; |
144 | break; | 147 | break; |
145 | case "h": | 148 | case "h0": |
149 | case "h1": | ||
146 | this.hbsm = row.glbsm; | 150 | this.hbsm = row.glbsm; |
147 | this.hbjVisible = true; | 151 | this.hbjVisible = true; |
148 | console.log(this.hbsm); | 152 | if(row.dylx === "h0"){ |
149 | console.log(this.$refs); | 153 | this.tabPosition = 0; |
150 | console.log(this.$refs.hbj); | 154 | }else { |
151 | setTimeout(function () { | 155 | this.tabPosition = 1; |
156 | } | ||
157 | this.$nextTick(()=>{ | ||
158 | console.log(this.$refs.hbj); | ||
152 | this.$refs.hbj.getHInfo(this.hbsm); | 159 | this.$refs.hbj.getHInfo(this.hbsm); |
153 | },10) | 160 | }); |
154 | break; | 161 | break; |
155 | default: | 162 | default: |
156 | break; | 163 | break; | ... | ... |
... | @@ -67,7 +67,7 @@ export default { | ... | @@ -67,7 +67,7 @@ export default { |
67 | zdymc:"", | 67 | zdymc:"", |
68 | zdybsm: "", | 68 | zdybsm: "", |
69 | zrzbsm: "", | 69 | zrzbsm: "", |
70 | syclx: "0", | 70 | scyclx: "0", |
71 | qsc: "", | 71 | qsc: "", |
72 | jsc: "", | 72 | jsc: "", |
73 | hs: "", | 73 | hs: "", |
... | @@ -130,7 +130,7 @@ export default { | ... | @@ -130,7 +130,7 @@ export default { |
130 | ljzbsm: "", | 130 | ljzbsm: "", |
131 | zdybsm: "", | 131 | zdybsm: "", |
132 | zrzbsm: "", | 132 | zrzbsm: "", |
133 | syclx: "0", | 133 | scyclx: "0", |
134 | qsc: "", | 134 | qsc: "", |
135 | jsc: "", | 135 | jsc: "", |
136 | hs: "", | 136 | hs: "", | ... | ... |
... | @@ -764,7 +764,7 @@ | ... | @@ -764,7 +764,7 @@ |
764 | }, | 764 | }, |
765 | 765 | ||
766 | generatorCode(){ | 766 | generatorCode(){ |
767 | if((this.form.zrzh!=null&&this.form.zrzh!=='')||(this.form.bdcdyh!=null&&this.form.bdcdyh!=='')){ | 767 | if(this.form.bdcdyh!=null&&this.form.bdcdyh!==''){ |
768 | this.open(); | 768 | this.open(); |
769 | return; | 769 | return; |
770 | } | 770 | } | ... | ... |
-
Please register or sign in to post a comment