Commit c372b57e authored by zhangjianqian's avatar zhangjianqian

修改查询条件

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