|
|
@@ -202,6 +202,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { ref, onMounted, onUnmounted, watch } from 'vue'
|
|
|
+ import {useUserStore} from "@/store/modules/user";
|
|
|
import { ArrowLeft, ArrowRight, Delete, Document, Location, Place, Edit } from '@element-plus/icons-vue'
|
|
|
import DeptSelect from "@/views/pressure2/equipboilerscheduling/components/DeptSelect.vue";
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
@@ -217,6 +218,8 @@ const EQUIP_TYPES = {
|
|
|
BOILER: '300' // 锅炉
|
|
|
} as const
|
|
|
|
|
|
+const userStore = useUserStore()
|
|
|
+
|
|
|
// 设备类型显示名称
|
|
|
const EQUIP_TYPE_NAMES: Record<string, string> = {
|
|
|
[EQUIP_TYPES.PIPELINE]: '管道',
|
|
|
@@ -227,7 +230,7 @@ const EQUIP_TYPE_NAMES: Record<string, string> = {
|
|
|
// 查询参数
|
|
|
const queryParams = ref({
|
|
|
planDate: [] as string[],
|
|
|
- relateDepartment: undefined as string | undefined,
|
|
|
+ relateDepartment: userStore.user.deptId,
|
|
|
type: '100',
|
|
|
})
|
|
|
|
|
|
@@ -369,7 +372,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()
|
|
|
}
|