Commit c372b57e authored by zhangjianqian's avatar zhangjianqian

修改查询条件

parent 9b6dff46
......@@ -177,6 +177,9 @@ export default {
name: "Report",
components: {
},
props: {
item: Object
},
data() {
return {
......@@ -218,11 +221,18 @@ export default {
};
},
created() {
console.log(this.item)
this.getList();
this.getDicts("t_indoor_status").then(response => {
this.indoorStatusOptions = response.data;
});
},
watch:{
item(newVal, oldVal) {
//console.log(`Message changed from "${oldVal}" to "${newVal}"`);
this.getList();
}
},
methods: {
// 入户状态,DONE-已入户,REJ-入户拒绝,NONE-到访不遇字典翻译
indoorStatusFormat(row, column) {
......@@ -231,6 +241,9 @@ export default {
/** 查询入户安检结果列表 */
getList() {
this.loading = true;
this.queryParams.annual = this.item.annual;
this.queryParams.companyInfoId = this.item.companyInfoId;
this.villageId = this.item.villageId;
listReport(this.queryParams).then(response => {
this.reportList = response.rows;
this.total = response.total;
......
......@@ -105,7 +105,7 @@
<!-- 添加或修改入户安检结果对话框 -->
<el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
<reportDetail />
<reportDetail :item="item"/>
<!--<el-form ref="form" :model="form" :rules="rules" label-width="80px">-->
<!--<el-form-item label="年度" prop="annual">-->
<!--<el-input v-model="form.annual" placeholder="请输入年度" />-->
......@@ -172,6 +172,7 @@ export default {
},
data() {
return {
item:{},
// 遮罩层
loading: true,
// 导出遮罩层
......@@ -276,6 +277,7 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.item = row;
this.open = true;
// this.reset();
// const reportId = row.reportId || this.ids
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment