|
|
@@ -214,6 +214,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { EquipBoilerSchedulingApi, BoilerTaskItem, BoilerPlanSchedulingCalendarVO } from '@/api/pressure2/equipboilerscheduling'
|
|
|
import dayjs from 'dayjs'
|
|
|
import PlanDetail from './detail.vue'
|
|
|
+import { useUserStore } from '@/store/modules/user'
|
|
|
|
|
|
// 设备类型常量
|
|
|
const EQUIP_TYPES = {
|
|
|
@@ -242,10 +243,12 @@ const getStatusText = (taskItem): string => {
|
|
|
return statusMap[Number(status)] || '未知'
|
|
|
}
|
|
|
|
|
|
+const userStore = useUserStore()
|
|
|
+
|
|
|
// 查询参数
|
|
|
const queryParams = ref({
|
|
|
planDate: [] as string[],
|
|
|
- relateDepartment: undefined as string | undefined,
|
|
|
+ relateDepartment: userStore.user.deptId,
|
|
|
type: '100',
|
|
|
})
|
|
|
|
|
|
@@ -387,7 +390,8 @@ const resetQuery = () => {
|
|
|
const endDate = dayjs().endOf('month').format('YYYY-MM-DD')
|
|
|
queryParams.value = {
|
|
|
type: '100',
|
|
|
- planDate: [startDate, endDate]
|
|
|
+ planDate: [startDate, endDate],
|
|
|
+ relateDepartment: userStore.user.deptId
|
|
|
} as any;
|
|
|
handleQuery()
|
|
|
}
|