户弹窗
Showing
1 changed file
with
32 additions
and
2 deletions
... | @@ -45,6 +45,15 @@ | ... | @@ -45,6 +45,15 @@ |
45 | :current-page="pageNo" @current-change="handleCurrentChange"> | 45 | :current-page="pageNo" @current-change="handleCurrentChange"> |
46 | </el-pagination> | 46 | </el-pagination> |
47 | </div> | 47 | </div> |
48 | |||
49 | <el-dialog title="户编辑" :visible.sync="hbjVisible" width="50%" center> | ||
50 | <hbj ref="hbj" :bsm="hbsm"></hbj> | ||
51 | <div class="btnGroup"> | ||
52 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> | ||
53 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> | ||
54 | <el-button type="primary" @click="hbjVisible = false">取消</el-button> | ||
55 | </div> | ||
56 | </el-dialog> | ||
48 | </div> | 57 | </div> |
49 | </div> | 58 | </div> |
50 | </template> | 59 | </template> |
... | @@ -52,10 +61,11 @@ | ... | @@ -52,10 +61,11 @@ |
52 | <script> | 61 | <script> |
53 | import SearchHead from "../../../components/searchHead/searchHead"; | 62 | import SearchHead from "../../../components/searchHead/searchHead"; |
54 | import {getSearchList} from "../../../api/search"; | 63 | import {getSearchList} from "../../../api/search"; |
64 | import hbj from "./../../zrz/lpb/bjlp/hbj/index"; | ||
55 | 65 | ||
56 | export default { | 66 | export default { |
57 | name: "", | 67 | name: "", |
58 | components: {SearchHead}, | 68 | components: {SearchHead,hbj}, |
59 | props: {}, | 69 | props: {}, |
60 | data() { | 70 | data() { |
61 | return { | 71 | return { |
... | @@ -64,7 +74,9 @@ | ... | @@ -64,7 +74,9 @@ |
64 | pageSize: 15, | 74 | pageSize: 15, |
65 | tableData: [], | 75 | tableData: [], |
66 | tableHeight: 0, | 76 | tableHeight: 0, |
67 | queryData: {} | 77 | queryData: {}, |
78 | hbjVisible: false, | ||
79 | hbsm:'', | ||
68 | }; | 80 | }; |
69 | }, | 81 | }, |
70 | created() { | 82 | created() { |
... | @@ -85,6 +97,14 @@ | ... | @@ -85,6 +97,14 @@ |
85 | return ""; | 97 | return ""; |
86 | } | 98 | } |
87 | }, | 99 | }, |
100 | //户保存 | ||
101 | hbjSaveInfo() { | ||
102 | this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition); | ||
103 | }, | ||
104 | //户编辑表单重置 | ||
105 | hbjResetInfo() { | ||
106 | this.$refs.hbj.onReset(); | ||
107 | }, | ||
88 | handleCurrentChange(val) { | 108 | handleCurrentChange(val) { |
89 | console.log(`当前页: ${val}`); | 109 | console.log(`当前页: ${val}`); |
90 | this.pageNo = val; | 110 | this.pageNo = val; |
... | @@ -122,6 +142,16 @@ | ... | @@ -122,6 +142,16 @@ |
122 | this.$store.state.dzbsm = row.glbsm; | 142 | this.$store.state.dzbsm = row.glbsm; |
123 | path = "/dz"; | 143 | path = "/dz"; |
124 | break; | 144 | break; |
145 | case "h": | ||
146 | this.hbsm = row.glbsm; | ||
147 | this.hbjVisible = true; | ||
148 | console.log(this.hbsm); | ||
149 | console.log(this.$refs); | ||
150 | console.log(this.$refs.hbj); | ||
151 | setTimeout(function () { | ||
152 | this.$refs.hbj.getHInfo(this.hbsm); | ||
153 | },10) | ||
154 | break; | ||
125 | default: | 155 | default: |
126 | break; | 156 | break; |
127 | } | 157 | } | ... | ... |
-
Please register or sign in to post a comment