| | |
| | | <el-row> |
| | | <el-col :span="curSubTaskList ? 16 : 24"> |
| | | <CompMonitorPlan |
| | | ref="planRef" |
| | | :task="curTask.data" |
| | | @date-change="onDateChange" |
| | | ></CompMonitorPlan> |
| | |
| | | :loading="subTaskLoading" |
| | | height="56vh" |
| | | @add="subTaskDrawer = true" |
| | | @submit="handleSubtaskSubmit" |
| | | ></CompSubTaskList> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <CompDayTask |
| | | :day-task="curDayTask" |
| | | :mObjList="curMonitorObjList" |
| | | @submit="handleSubtaskSubmit" |
| | | ></CompDayTask> |
| | | </el-drawer> |
| | | <el-dialog |
| | |
| | | this.sideLoading = false; |
| | | this.mainLoading = true; |
| | | this.curSubTaskList = undefined; |
| | | this.curTask = task; |
| | | taskApi |
| | | .fetchMonitorObjectVersion(task.data.tguid) |
| | | .then((res) => { |
| | | this.curMonitorObjList = res; |
| | | this.curTask = task; |
| | | }) |
| | | .finally(() => { |
| | | this.mainLoading = false; |
| | |
| | | task: encodeURIComponent(JSON.stringify(value)) |
| | | } |
| | | }); |
| | | }, |
| | | handleSubtaskSubmit() { |
| | | this.subTaskLoading = true; |
| | | this.$refs.planRef |
| | | .fetchDayTasks() |
| | | .finally(() => (this.subTaskLoading = false)); |
| | | } |
| | | }, |
| | | mounted() { |