| | |
| | | :allOption="false" |
| | | :level="3" |
| | | :checkStrictly="false" |
| | | v-model:value="formSearch._locations" |
| | | v-model:value="formSearch.locations" |
| | | ></FYOptionLocation> |
| | | <!-- 场景类型 --> |
| | | <FYOptionScene |
| | |
| | | v-model:value="formSearch.scenetype" |
| | | ></FYOptionScene> |
| | | <!-- 时间 --> |
| | | <FYOptionTime type="month" v-model:value="formSearch.time"></FYOptionTime> |
| | | <FYOptionTime :initValue="false" type="month" v-model:value="formSearch.time"></FYOptionTime> |
| | | </template> |
| | | </FYSearchBar> |
| | | <el-row> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import dayjs from 'dayjs' |
| | | |
| | | /** |
| | | * 自动评估条件合规性检查 |
| | | */ |
| | |
| | | data() { |
| | | return { |
| | | formSearch: { |
| | | _locations: {}, |
| | | locations: {}, |
| | | scenetype: {}, |
| | | time: undefined |
| | | time: dayjs().add(-1, 'M').date(1).toDate() |
| | | } |
| | | } |
| | | }, |
| | |
| | | * 检查所选范围内各项评估数据源是否完整 |
| | | */ |
| | | preCheck() { |
| | | this.$emit('preCheck', this.formSearch) |
| | | const param = { |
| | | locations: this.formSearch.locations, |
| | | scenetype: this.formSearch.scenetype, |
| | | time: dayjs(this.formSearch.time).format('YYYY-MM-DD') |
| | | } |
| | | this.$emit('preCheck', param) |
| | | }, |
| | | |
| | | /** |
| | | * 快速设置条件 |
| | | */ |
| | | quickSet(set) { |
| | | this.formSearch._locations = set.locations |
| | | this.formSearch.locations = set.locations |
| | | this.formSearch.scenetype = set.scenetype |
| | | |
| | | this.preCheck() |
| | | // this.preCheck() |
| | | } |
| | | } |
| | | } |