e5c41a01 by zhaoqian

户弹窗

1 parent 34915f6f
......@@ -45,6 +45,15 @@
:current-page="pageNo" @current-change="handleCurrentChange">
</el-pagination>
</div>
<el-dialog title="户编辑" :visible.sync="hbjVisible" width="50%" center>
<hbj ref="hbj" :bsm="hbsm"></hbj>
<div class="btnGroup">
<el-button type="primary" @click="hbjSaveInfo">保存</el-button>
<el-button type="primary" @click="hbjResetInfo">重置</el-button>
<el-button type="primary" @click="hbjVisible = false">取消</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
......@@ -52,10 +61,11 @@
<script>
import SearchHead from "../../../components/searchHead/searchHead";
import {getSearchList} from "../../../api/search";
import hbj from "./../../zrz/lpb/bjlp/hbj/index";
export default {
name: "",
components: {SearchHead},
components: {SearchHead,hbj},
props: {},
data() {
return {
......@@ -64,7 +74,9 @@
pageSize: 15,
tableData: [],
tableHeight: 0,
queryData: {}
queryData: {},
hbjVisible: false,
hbsm:'',
};
},
created() {
......@@ -85,6 +97,14 @@
return "";
}
},
//户保存
hbjSaveInfo() {
this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition);
},
//户编辑表单重置
hbjResetInfo() {
this.$refs.hbj.onReset();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNo = val;
......@@ -122,6 +142,16 @@
this.$store.state.dzbsm = row.glbsm;
path = "/dz";
break;
case "h":
this.hbsm = row.glbsm;
this.hbjVisible = true;
console.log(this.hbsm);
console.log(this.$refs);
console.log(this.$refs.hbj);
setTimeout(function () {
this.$refs.hbj.getHInfo(this.hbsm);
},10)
break;
default:
break;
}
......