| | |
| | | </template> |
| | | |
| | | <template #options-expand> |
| | | <CompQuickSet @quick-set="setOptions"></CompQuickSet> |
| | | <el-form :inline="true"> |
| | | <CompQuickSet @quick-set="setOptions"></CompQuickSet> |
| | | </el-form> |
| | | </template> |
| | | |
| | | <template #table-column> |
| | |
| | | <el-table-column prop="biManagementCompany" label="物业" min-width="110"/> --> |
| | | <el-table-column fixed="right" align="right" label="操作" width="160"> |
| | | <template #header> |
| | | <el-button icon="DocumentAdd" size="default" type="success" @click="drawer = true" |
| | | >自动评估</el-button |
| | | <el-button icon="Download" size="default" type="success" @click="download" |
| | | >下载结果</el-button |
| | | > |
| | | </template> |
| | | <template #default="{ row }"> |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | setOptions(param) { |
| | | this.formSearch.locations = param.locations; |
| | | this.formSearch.scenetype = param.scenetype; |
| | | this.$refs.tableRef.onSearch() |
| | | }, |
| | | onSearch(page, func) { |
| | | _getParam() { |
| | | const { locations, scenetype, time } = this.formSearch; |
| | | const area = { |
| | | return { |
| | | provincecode: locations.pCode, |
| | | provincename: locations.pName, |
| | | citycode: locations.cCode, |
| | | cityname: locations.cName, |
| | | districtcode: locations.dCode, |
| | | districtname: locations.dName, |
| | | starttime: dayjs(time).format('YYYY-MM-DD'), |
| | | starttime: dayjs(time).format('YYYY-MM-DD HH:mm:ss'), |
| | | scensetypeid: scenetype.value |
| | | }; |
| | | }, |
| | | setOptions(param) { |
| | | this.formSearch.locations = param.locations; |
| | | this.formSearch.scenetype = param.scenetype; |
| | | this.formSearch.sourceType = param.sourceType; |
| | | this.$refs.tableRef.onSearch(); |
| | | }, |
| | | onSearch(page, func) { |
| | | const area = this._getParam() |
| | | evaluateApi.fetchAutoEvaluation(area).then((res) => { |
| | | if (typeof func === 'function') { |
| | | func({ data: res.data }); |
| | |
| | | this.getFilters(res.data); |
| | | } |
| | | }); |
| | | }, |
| | | download() { |
| | | const area = this._getParam() |
| | | evaluateApi.downloadAutoEvaluation(area).then(res=>{ |
| | | this.$parent |
| | | }) |
| | | }, |
| | | getFilters(data) { |
| | | const townList = []; |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .a { |
| | | color: #f7a62c; |
| | | } |
| | | </style> |
| | | <style scoped></style> |