| | |
| | | </el-header> |
| | | <el-container> |
| | | <el-aside width="240px"> |
| | | <TreeMenu :menuItem="menuItem" /> |
| | | <TreeMenu |
| | | :menuItem="menuItem" |
| | | :modelTreeData="modelTreeData" |
| | | :storeInfo="storeInfo" |
| | | /> |
| | | </el-aside> |
| | | <el-main> |
| | | <RouterView /> |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import Header from "@/layout/Header.vue"; |
| | | import Header from "@/layout/components/Header.vue"; |
| | | import TreeMenu from "@/components/TreeMenu.vue"; |
| | | import { ElConfigProvider } from "element-plus"; |
| | | import zhCn from "element-plus/es/locale/lang/zh-cn"; |
| | | import { inject, onMounted, ref } from "vue"; |
| | | import { inject, onMounted, ref, watch } from "vue"; |
| | | const MG: any = inject("MG"); |
| | | const menuItem = ref("/"); |
| | | const storeList = ref([]); |
| | | const toolClass: any = inject("toolClass"); |
| | | const menuItem = ref("model"); |
| | | |
| | | const storeInfo = ref({}); |
| | | const modelTreeData = ref([]); |
| | | const handMenu = (key: string) => { |
| | | console.log(key, "key"); |
| | | menuItem.value = key; |
| | | }; |
| | | import { curStoreInfo } from "@/store/index"; |
| | | const seleStore = curStoreInfo(); |
| | | |
| | | onMounted(async () => { |
| | | MG.dps5.GetStoreList().then(async (res: any) => { |
| | |
| | | storeItem.repositoryList = datas; |
| | | } |
| | | console.log(curList, "curList"); |
| | | storeList.value = curList; |
| | | console.log(toolClass, "toolClass"); |
| | | const temp_store = { |
| | | storeId: curList[0].storeId, |
| | | storeData: curList[0], |
| | | repositoryId: curList[0].repositoryList[0].id, |
| | | repositoryData: curList[0].repositoryList[0], |
| | | }; |
| | | storeInfo.value = temp_store; |
| | | seleStore.setStoreInfo(temp_store); |
| | | // getTableData(); |
| | | } |
| | | }); |
| | | }); |