<!--
 * @Author: 曹文丽 caowenli@yuan-info.com
 * @Date: 2023-09-15 09:33:42
 * @LastEditors: tangqihui tangqihui@yuan-info.com
 * @LastEditTime: 2023-09-18 17:34:43
 * @FilePath: \yuan-asset-module-browser\src\views\collection\collectConfig\collectEngine.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <yaEngine :bottomData="bottomData" :type="whichPage.longRangeScan"></yaEngine>
</template>
<script lang="ts" setup>
import { ref, onMounted } from 'vue';
import { usePermissions } from '../../../composables/usePermissions';
import yaEngine from '../../components/engine.vue'
import {whichPage} from '../../../assets/enum'
const bottomData = ref(new Map());
const { permissionsButtons } = usePermissions();

/**
 * @description: 获取按钮权限
 */

const getBtnPower = () => {
  permissionsButtons.map((item) => {
    bottomData.value.set(item.label, item);
  });
};
onMounted(() => {
  getBtnPower();
  // initData()
});
</script>
<style lang="scss" scoped>
</style>
