| | |
| | | <template> |
| | | <!-- <div class="border-r-small"> --> |
| | | <BaseCard> |
| | | <div class="font-large">问题整改跟踪</div> |
| | | <el-row justify="space-between" align="middle"> |
| | | <div class="font-large">问题整改跟踪</div> |
| | | <OptionTime v-model="time" type="date"></OptionTime> |
| | | </el-row> |
| | | <div> |
| | | <el-row justify="end"> |
| | | <OptionTime v-model="time" type="date"></OptionTime> |
| | | </el-row> |
| | | <ProblemSummary :data="subtaskList" :proStatistic="proStatistic"></ProblemSummary> |
| | | <ProblemTable :data="subtaskList"></ProblemTable> |
| | | </div> |
| | | </BaseCard> |
| | | <BaseCard> |
| | | <el-row justify="space-between" align="middle"> |
| | | <div class="font-large">分期趋势</div> |
| | | <OptionTime v-model="time"></OptionTime> |
| | | </el-row> |
| | | <div> |
| | | <ProblemChangeChart ref="pChangeRef"></ProblemChangeChart> |
| | | </div> |
| | | </BaseCard> |
| | | <BaseCard> |
| | | <el-row justify="space-between" align="middle"> |
| | | <div class="font-large">问题分布</div> |
| | | </el-row> |
| | | <div> |
| | | <ProblemType ref="pTypeRef"></ProblemType> |
| | | </div> |
| | | </BaseCard> |
| | | <!-- <BaseCard> |
| | | <el-collapse v-model="activeNames" @change="handleChange"> |
| | | <el-collapse-item title="分期趋势" name="1"> |
| | | <ProblemChangeChart ref="pChangeRef"></ProblemChangeChart> |
| | |
| | | <ProblemType ref="pTypeRef"></ProblemType> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | | </BaseCard> |
| | | </BaseCard> --> |
| | | <!-- </div> --> |
| | | </template> |
| | | |
| | | <script> |
| | | import { useAreaStore } from '@/stores/area.js' |
| | | import { useSubtaskStore } from '@/stores/subtask.js' |
| | | import { mapStores } from 'pinia' |
| | | import dayjs from 'dayjs' |
| | | |
| | |
| | | const d = nV ? dayjs(nV) : dayjs() |
| | | this.area.starttime = d.startOf('day').format('YYYY-MM-DD HH:mm:ss') |
| | | this.area.endtime = d.endOf('day').format('YYYY-MM-DD HH:mm:ss') |
| | | // this.areaStore.setTimeOneDay(nV) |
| | | this.fetchSubtask() |
| | | this.fetchDayProblemsStatistic() |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapStores(useAreaStore) |
| | | ...mapStores(useAreaStore), |
| | | ...mapStores(useSubtaskStore) |
| | | }, |
| | | methods: { |
| | | fetchSubtask() { |
| | | taskApi.fetchSubtaskSummaryByArea(this.area).then((res) => { |
| | | this.subtaskList = res.data |
| | | // taskApi.fetchSubtaskSummaryByArea(this.area).then((res) => { |
| | | // this.subtaskList = res.data |
| | | // }) |
| | | const tag = dayjs(this.time).format('YYYY-MM-DD') |
| | | this.subtaskStore.getSummaryList(tag, (v) => { |
| | | this.subtaskList = v ? v : [] |
| | | }) |
| | | }, |
| | | fetchDayProblemsStatistic() { |