<template> | <template> | ||||
<n-layout-header class="layout__header" bordered> | <n-layout-header class="layout__header" bordered> | ||||
<div class="header__logo"> | <div class="header__logo"> | ||||
<n-image height="18" src="/logo.png" preview-disabled /> | |||||
<n-image height="18" :src="logo" preview-disabled /> | |||||
<span class="sp">欢迎回来, {{ getUserInfo.realname }}</span> | <span class="sp">欢迎回来, {{ getUserInfo.realname }}</span> | ||||
</div> | </div> | ||||
import { useUserStore } from '@/store/modules/user.js' | import { useUserStore } from '@/store/modules/user.js' | ||||
import { useSettingStore } from '@/store/modules/setting.js' | import { useSettingStore } from '@/store/modules/setting.js' | ||||
import { signinRedirect, signoutRedirect } from '@/utils/oidc/index.js' | import { signinRedirect, signoutRedirect } from '@/utils/oidc/index.js' | ||||
import logo from './logo.png' | |||||
export default defineComponent({ | export default defineComponent({ | ||||
name: 'LayoutHeader', | name: 'LayoutHeader', | ||||
setup() { | setup() { | ||||
getLogoWidth, | getLogoWidth, | ||||
getUserInfo, | getUserInfo, | ||||
handleSelect, | handleSelect, | ||||
handleLogin | |||||
handleLogin, | |||||
logo | |||||
} | } | ||||
} | } | ||||
}) | }) | ||||
height: 18px; | height: 18px; | ||||
} | } | ||||
.sp { | .sp { | ||||
margin-left: 8px; | |||||
font-size: 14px; | font-size: 14px; | ||||
font-weight: blod; | font-weight: blod; | ||||
vertical-align: top; | |||||
} | } | ||||
.user_msg { | .user_msg { | ||||
display: flex; | display: flex; |
:class="{'uploads': remBtn}" | :class="{'uploads': remBtn}" | ||||
/> | /> | ||||
<fileOss | <fileOss | ||||
v-if="data.photographyWay === 2" | |||||
v-if="data.photographyWay === 2 && roleId === data.flightHandId" | |||||
:file-type="'tif'" | :file-type="'tif'" | ||||
:key-name="'orthoUrl'" | :key-name="'orthoUrl'" | ||||
:btn-name="'正射影像'" | :btn-name="'正射影像'" | ||||
@upload-status="statusfile" | @upload-status="statusfile" | ||||
/> | /> | ||||
<fileOss | <fileOss | ||||
v-if="data.photographyWay === 3" | |||||
v-if="data.photographyWay === 3 && roleId === data.flightHandId" | |||||
:file-type="'tif'" | :file-type="'tif'" | ||||
:key-name="'inclinedUrl'" | :key-name="'inclinedUrl'" | ||||
:show-upload-btn="true" | :show-upload-btn="true" | ||||
const roleId = useUserStore().userInfo.id || '00a5a13322fc088cc1c4ba4c40d22fcs' // 默认为管理员id | const roleId = useUserStore().userInfo.id || '00a5a13322fc088cc1c4ba4c40d22fcs' // 默认为管理员id | ||||
const roleType = useUserStore().userInfo.type || 1 // 默认为管理员id | const roleType = useUserStore().userInfo.type || 1 // 默认为管理员id | ||||
// const roleId = '00a5a13322fc088cc1c4ba4c40d22fcs' // 调试id | // const roleId = '00a5a13322fc088cc1c4ba4c40d22fcs' // 调试id | ||||
console.log(roleId, data.flightHandId, roleType) // 调试id | |||||
// console.log(roleId, data.flightHandId, roleType) // 调试id | |||||
const formRef = ref() // 表格refs - 分配飞手 | const formRef = ref() // 表格refs - 分配飞手 | ||||
const formRefOrder = ref() // 表格refs - 飞手接单 | const formRefOrder = ref() // 表格refs - 飞手接单 |
patrolLocation: '', | patrolLocation: '', | ||||
endValue: '', | endValue: '', | ||||
taskStartTime: null, | taskStartTime: null, | ||||
flightHandId: '', | |||||
equipmentId: '', | |||||
equipmentMountId: '', | |||||
flightHandId: null, | |||||
equipmentId: null, | |||||
equipmentMountId: null, | |||||
photographyWay: null, | photographyWay: null, | ||||
remark: '' | remark: '' | ||||
}, | }, |
align: 'center' | align: 'center' | ||||
}, | }, | ||||
{ | { | ||||
title: '任务发起时间', | |||||
title: '期望执行时间', | |||||
key: 'taskStartTime', | key: 'taskStartTime', | ||||
align: 'center' | align: 'center' | ||||
}, | }, |