|
|
@ -210,7 +210,7 @@ |
|
|
|
formCode: 'community_info', |
|
|
|
pageNo: pageNo, |
|
|
|
pageSize: pageSize, |
|
|
|
|
|
|
|
conditions:queryConditions |
|
|
|
}" @close="handleDiyClose"></community-export-info> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
@ -315,7 +315,7 @@ export default { |
|
|
|
diyDialog: false, |
|
|
|
|
|
|
|
|
|
|
|
// queryConditions: [], |
|
|
|
queryConditions: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -362,38 +362,38 @@ export default { |
|
|
|
|
|
|
|
async mounted() { |
|
|
|
this.customerId = localStorage.getItem("customerId"); |
|
|
|
// this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
|
// elseParams: { |
|
|
|
// categoryKeys: ['house_info'], categoryKey: 'house_info', |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// this.getQueryConditions(); |
|
|
|
this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
|
elseParams: { |
|
|
|
categoryKeys: ['house_info'], categoryKey: 'house_info', |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getQueryConditions(); |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// async getQueryConditions() { |
|
|
|
// let params = { |
|
|
|
// formCode: "community_info", |
|
|
|
// customerId: this.$store.state.user.customerId, |
|
|
|
// }; |
|
|
|
// |
|
|
|
// const { data } = await this.$http.post( |
|
|
|
// "/oper/customize/icform/queryItems", |
|
|
|
// params |
|
|
|
// ); |
|
|
|
// |
|
|
|
// if (data.code === 0) { |
|
|
|
// this.queryConditions = data.data.map((item) => { |
|
|
|
// return { |
|
|
|
// ...item, |
|
|
|
// humpName: util.capitalToHump(item.columnName), |
|
|
|
// }; |
|
|
|
// }); |
|
|
|
// console.log(this.queryConditions); |
|
|
|
// } else { |
|
|
|
// this.$message.error(data.msg); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
async getQueryConditions() { |
|
|
|
let params = { |
|
|
|
formCode: "community_info", |
|
|
|
customerId: this.$store.state.user.customerId, |
|
|
|
}; |
|
|
|
|
|
|
|
const { data } = await this.$http.post( |
|
|
|
"/oper/customize/icform/queryItems", |
|
|
|
params |
|
|
|
); |
|
|
|
|
|
|
|
if (data.code === 0) { |
|
|
|
this.queryConditions = data.data.map((item) => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
humpName: util.capitalToHump(item.columnName), |
|
|
|
}; |
|
|
|
}); |
|
|
|
console.log(this.queryConditions); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
reportForm() { |
|
|
|
let paramMap = { |
|
|
|