|
|
@@ -0,0 +1,132 @@
|
|
|
+<template>
|
|
|
+ <div class="index_box">
|
|
|
+ <div class="content_box">
|
|
|
+ <Search></Search>
|
|
|
+
|
|
|
+ <div class="main">
|
|
|
+ <div class="left_main">
|
|
|
+ <div class="top">
|
|
|
+ <produceOrder></produceOrder>
|
|
|
+ </div>
|
|
|
+ <div class="bottom">
|
|
|
+ <productionResource></productionResource>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="right_main"></div>
|
|
|
+ </div>
|
|
|
+ <footBtn></footBtn>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import Search from './components/search.vue';
|
|
|
+ import footBtn from './components/footBtn.vue';
|
|
|
+ import produceOrder from './components/produceOrder.vue';
|
|
|
+ import productionResource from './components/productionResource/index.vue';
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ Search,
|
|
|
+ footBtn,
|
|
|
+ produceOrder,
|
|
|
+ productionResource
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ loading: false
|
|
|
+ };
|
|
|
+ },
|
|
|
+
|
|
|
+ mounted() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const targetElements =
|
|
|
+ document.getElementsByClassName('ele-admin-tabs');
|
|
|
+
|
|
|
+ if (targetElements.length > 0) {
|
|
|
+ // 遍历所有具有 'ele-admin-tabs' 类的元素
|
|
|
+ Array.from(targetElements).forEach((element) => {
|
|
|
+ // 对每个元素添加 'new-ele-admin-tabs' 类
|
|
|
+ element.classList.add('new-ele-admin-tabs');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ destroyed() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const targetElements =
|
|
|
+ document.getElementsByClassName('ele-admin-tabs');
|
|
|
+
|
|
|
+ if (targetElements.length > 0) {
|
|
|
+ Array.from(targetElements).forEach((element) => {
|
|
|
+ element.classList.remove('new-ele-admin-tabs');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ };
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+ .new-ele-admin-tabs {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .c_title{
|
|
|
+ color: #157a2c;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+</style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .index_box {
|
|
|
+ padding: 8px;
|
|
|
+ padding-bottom: 0px;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ min-width: 1280px !important;
|
|
|
+ height: calc(100vh - 60px);
|
|
|
+ overflow-x: auto; /* 当内容超出宽度时,允许水平滚动 */
|
|
|
+ white-space: nowrap; /* 防止内部文本换行,确保所有内容都在一行显示 */
|
|
|
+ scrollbar-width: thin; /* 设置滚动条宽度(浏览器兼容性可能有所不同) */
|
|
|
+ scrollbar-color: #40a9ff transparent; /* 设置滚动条颜色和轨道颜色(同样,浏览器兼容性) */
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ .main {
|
|
|
+ width: 100%;
|
|
|
+ min-width: 1280px;
|
|
|
+
|
|
|
+ height: calc(100vh - 70px - 50px - 80px);
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+
|
|
|
+ .left_main {
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-around;
|
|
|
+ width: 49.4%;
|
|
|
+ min-width: 640px;
|
|
|
+ .top {
|
|
|
+ width: 100%;
|
|
|
+ height: calc((100vh - 70px - 50px - 80px - 20px) / 2);
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
+ }
|
|
|
+ .bottom {
|
|
|
+ width: 100%;
|
|
|
+ height: calc((100vh - 70px - 50px - 80px - 20px) / 2);
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .right_main {
|
|
|
+ width: 49.4%;
|
|
|
+ min-width: 640px;
|
|
|
+ height: calc((100vh - 70px - 50px - 80px - 12px));
|
|
|
+ margin-top: 6px;
|
|
|
+ background: blueviolet;
|
|
|
+ }
|
|
|
+</style>
|