<template>
|
<!-- <CompPreCheck @pre-check="autoEvaluate"></CompPreCheck> -->
|
|
<FYTable @search="onSearch" :pagination="false">
|
<template #options>
|
<!-- 区县 -->
|
<FYOptionLocation
|
:allOption="false"
|
:level="3"
|
:checkStrictly="false"
|
v-model:value="formSearch.locations"
|
></FYOptionLocation>
|
<!-- 场景类型 -->
|
<FYOptionScene
|
:allOption="false"
|
:type="2"
|
v-model:value="formSearch.scenetype"
|
></FYOptionScene>
|
<!-- 时间 -->
|
<FYOptionTime :initValue="false" type="month" v-model:value="formSearch.time"></FYOptionTime>
|
</template>
|
|
<template #options-expand>
|
<CompQuickSet @quick-set="setOptions"></CompQuickSet>
|
</template>
|
|
<template #table-column>
|
<el-table-column
|
type="index"
|
fixed="left"
|
prop="sceneName"
|
label="名称"
|
width="400"
|
>
|
<template #default="{row}">
|
<el-tooltip
|
effect="dark"
|
:content="row.sceneName"
|
placement="top-start"
|
:show-after="500"
|
>
|
{{ row.sceneName }}
|
</el-tooltip>
|
</template>
|
</el-table-column>
|
|
<el-table-column prop="dname" label="区县" width="90" />
|
<el-table-column prop="tname" label="街道" width="110" />
|
<el-table-column prop="evaluation.scenseaddress" label="地址" />
|
<!-- <el-table-column prop="biArea" label="集中区" width="110" />
|
<el-table-column prop="biManagementCompany" label="物业" min-width="110"/> -->
|
<el-table-column prop="evaluation.resultscorebef" label="得分" width="110" />
|
</template>
|
</FYTable>
|
</template>
|
|
<script>
|
import CompPreCheck from './components/CompPreCheck.vue'
|
import evaluateApi from '@/api/fysp/evaluateApi'
|
import dayjs from 'dayjs'
|
import CompQuickSet from './components/CompQuickSet.vue'
|
|
export default {
|
name: 'ResultManage',
|
components: { CompPreCheck, CompQuickSet },
|
data() {
|
return {
|
formSearch: {
|
locations: {},
|
scenetype: {},
|
time: dayjs().add(-1, 'M').date(1).toDate()
|
}
|
}
|
},
|
methods: {
|
setOptions(param) {
|
this.formSearch.locations = param.locations
|
this.formSearch.scenetype = param.scenetype
|
},
|
onSearch(page, func) {
|
const { locations, scenetype, time } = this.formSearch
|
const area = {
|
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'),
|
scensetypeid: scenetype.value
|
}
|
evaluateApi.fetchAutoEvaluation(area).then((res) => {
|
if (res) {
|
func({
|
data: res.data
|
})
|
}
|
})
|
}
|
}
|
}
|
</script>
|