Merge remote-tracking branch 'origin/feature/v8.0/8.0.3' into feature/v8.0/8.0.3
5 files modified
1 files deleted
| | |
| | | :props="props"> |
| | | </el-tree> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="大屏菜单"> |
| | | <el-tree :data="menuGrantListOld" show-checkbox node-key="id" ref="treeMenuApp" :default-checked-keys="menuTreeObjOld" |
| | | :props="props"> |
| | | </el-tree> |
| | | </el-tab-pane> |
| | | <!-- <el-tab-pane label="数据权限"> |
| | | <el-tree |
| | | :data="dataScopeGrantList" |
| | |
| | | }, |
| | | menuGrantList: [], |
| | | menuGrantListApp: [], |
| | | menuGrantListOld: [], |
| | | dataScopeGrantList: [], |
| | | apiScopeGrantList: [], |
| | | apiGrantList: [], |
| | | menuTreeObj: [], |
| | | menuTreeObjApp: [], |
| | | menuTreeObjOld: [], |
| | | dataScopeTreeObj: [], |
| | | apiScopeTreeObj: [], |
| | | selectionList: [], |
| | |
| | | this.box = true |
| | | }) |
| | | }) |
| | | grantTree({sysType: 2}).then(res => { |
| | | this.menuGrantListOld = res.data.data.menu |
| | | getRole(this.ids).then(res => { |
| | | this.menuTreeObjOld = res.data.data.menu |
| | | this.box = true |
| | | }) |
| | | }) |
| | | }, |
| | | handleDelete () { |
| | | if (this.selectionList.length === 0) { |
| | |
| | | label: '所属部门', |
| | | prop: 'deptId', |
| | | type: 'tree', |
| | | multiple: true, |
| | | multiple: false, |
| | | dicData: [], |
| | | // props: { |
| | | // label: 'title', |
| | |
| | | } |
| | | } |
| | | |
| | | row.deptId = func.join(row.deptId) |
| | | // row.deptId = func.join(row.deptId) |
| | | row.roleId = func.join(row.roleId) |
| | | row.postId = func.join(row.postId) |
| | | row.name = row.realName |
| | |
| | | } |
| | | } |
| | | |
| | | row.deptId = func.join(row.deptId) |
| | | // row.deptId = func.join(row.deptId) |
| | | row.roleId = func.join(row.roleId) |
| | | row.postId = func.join(row.postId) |
| | | row.name = row.realName |
| | |
| | | if (['edit', 'view'].includes(type)) { |
| | | getUser(this.form.id).then(res => { |
| | | this.form = res.data.data |
| | | if (this.form.hasOwnProperty('deptId')) { |
| | | this.form.deptId = func.split(this.form.deptId) |
| | | } |
| | | // if (this.form.hasOwnProperty('deptId')) { |
| | | // this.form.deptId = func.split(this.form.deptId) |
| | | // } |
| | | if (this.form.hasOwnProperty('roleId')) { |
| | | this.form.roleId = func.split(this.form.roleId) |
| | | } |
| | |
| | | positions.unshift({latitude: maxItem.latitude, longitude: maxItem.longitude, height:maxItem.drone_height }) |
| | | positions.push({latitude: maxItem.latitude, longitude: maxItem.longitude, height:maxItem.drone_height}) |
| | | let resultHeight = 0 |
| | | let valueHeight = 0 |
| | | await getWaylineMaxTerrainHeight(positions).then(res => { |
| | | resultHeight = safeHeight.value > (res.data.data + 30) ? safeHeight.value : (res.data.data + 30) |
| | | resultHeight = (safeHeight.value + maxItem.drone_height) > (res.data.data + 30) ? (safeHeight.value + maxItem.drone_height) : (res.data.data + 30) |
| | | console.log(resultHeight,maxItem.drone_height, '999') |
| | | valueHeight = (resultHeight - maxItem.drone_height) > backHeight ? _.round(resultHeight - maxItem.drone_height) : 0 |
| | | }) |
| | | let valueHeight = _.round(backHeight - resultHeight, 2) |
| | | if (valueHeight < 0) { |
| | | await ElMessageBox.confirm(`当前返航高度存在安全隐患,建议调整为${resultHeight}米以上后进行发布`, '提示', { |
| | | if (valueHeight > 0) { |
| | | await ElMessageBox.confirm(`当前返航高度存在安全隐患,建议调整为${valueHeight}米以上后进行发布`, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | |
| | | const aiTypeList = inject('aiTypeList') |
| | | |
| | | watch(activeTab, (newTab, oldTab) => { |
| | | if (newTab === 'all') { |
| | | searchForm.status = '' |
| | | } |
| | | if(newTab === 'WAIT_AUDIT') { |
| | | searchForm.status = '1' |
| | | } |
| | |
| | | if(newTab === 'PASS') { |
| | | searchForm.status = '3' |
| | | } |
| | | }, { immediate: true }) |
| | | emit('search', searchForm); |
| | | }) |
| | | |
| | | // 周期 |
| | | const cycles = ref(['每天', '周一', '周二', '周三', '周四', '周五', '周六', '周末', '周天', '工作日']) |
| | |
| | | searchForm.deal_time = "" |
| | | searchForm.file_id = "" |
| | | searchForm.key_word = "" |
| | | searchForm.status = '' |
| | | if (activeTab.value === 'all') { |
| | | searchForm.status = '' |
| | | } |
| | | searchForm.rep_fre_type = '' |
| | | dateRange.value = '' |
| | | searchForm.create_start_date = null |
| | | searchForm.create_end_date = null |
| | | cycleDateRange.value = '' |
| | | searchForm.start_date = null |
| | | searchForm.emd_date = null |
| | | emit('search', searchForm); |
| | |
| | | <el-button type="success" plain icon="el-icon-download" @click="exportData">导出 |
| | | </el-button> |
| | | <div class="task-table"> |
| | | <el-table border :data="orderListTable" class="custom-header"> |
| | | <el-table border :data="orderListTable" class="custom-header" @cell-click="handleCellClick"> |
| | | <el-table-column label="序号" type="index" width="60"> |
| | | <template #default="{ $index }"> |
| | | {{ ($index + 1 + (orderListParams.current - 1) * orderListParams.size).toString().padStart(2, |
| | |
| | | // tab切换 |
| | | function handleTabChange (tab) { |
| | | activeTab.value = tab.paneName |
| | | orderListParams.status = '' |
| | | if (tab.paneName === 'WAIT_AUDIT') { |
| | | orderListParams.status = '1' |
| | | } else if (tab.paneName === 'REJECTED') { |
| | | orderListParams.status = '2' |
| | | } else if (tab.paneName === 'PASS') { |
| | | orderListParams.status = '3' |
| | | } else if (tab.paneName === 'DRAFT') { |
| | | orderListParams.status = '0' |
| | | } |
| | | refreshGetOrderList() |
| | | // orderListParams.status = '' |
| | | // if (tab.paneName === 'WAIT_AUDIT') { |
| | | // orderListParams.status = '1' |
| | | // } else if (tab.paneName === 'REJECTED') { |
| | | // orderListParams.status = '2' |
| | | // } else if (tab.paneName === 'PASS') { |
| | | // orderListParams.status = '3' |
| | | // } else if (tab.paneName === 'DRAFT') { |
| | | // orderListParams.status = '0' |
| | | // } |
| | | // refreshGetOrderList() |
| | | } |
| | | |
| | | // 更新统计数 |
| | |
| | | const searchClick = params => { |
| | | orderListParams.current = 1 |
| | | orderListParams.size = 10 |
| | | console.log('333', params) |
| | | orderListParams.searchParams = params |
| | | getTableList() |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | function handleCellClick (row, column) { |
| | | if (column.no === 1) { |
| | | navigator.clipboard.writeText(row.job_info_num).then(() => { |
| | | ElMessage.success('复制工单编号成功') |
| | | }) |
| | | } else if (column.no === 2) { |
| | | navigator.clipboard.writeText(row.name).then(() => { |
| | | ElMessage.success('复制工单名称成功') |
| | | }) |
| | | } else if (column.no === 4) { |
| | | navigator.clipboard.writeText(row.dept_name).then(() => { |
| | | ElMessage.success('复制所属单位成功') |
| | | }) |
| | | } else if (column.no === 8) { |
| | | navigator.clipboard.writeText(row.wayline_name).then(() => { |
| | | ElMessage.success('复制关联航线成功') |
| | | }) |
| | | } else if (column.no === 9) { |
| | | navigator.clipboard.writeText(row.ai_type_str).then(() => { |
| | | ElMessage.success('复制关联算法成功') |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 删除 |
| | | async function deleteOrder(id) { |
| | | try { |