From a4174a7f44dbae2ee3012b0991eba2f08a01ff9a Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期五, 05 四月 2024 00:16:54 +0800
Subject: [PATCH] update

---
 副本智能制造系统功能定义.xls                          |    0 
 src/views/console/base/shift-calendar.vue |   43 ++++++++++++++
 src/api/model/calender.js                 |   18 ++++++
 src/views/console/base/CalenderTab.vue    |   63 +++++++++++++++++++++
 4 files changed, 124 insertions(+), 0 deletions(-)

diff --git a/src/api/model/calender.js b/src/api/model/calender.js
new file mode 100644
index 0000000..38413c7
--- /dev/null
+++ b/src/api/model/calender.js
@@ -0,0 +1,18 @@
+/*
+ * @Date: 2024-04-04 23:26:03
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-04 23:33:51
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/calender.js
+ */
+import config from "@/config"
+import http from "@/utils/request"
+
+export default {
+	getList: {
+		url: `${config.API_URL}/blade-cps/calendar/page`,
+		name: "鑾峰彇鏃ュ巻鍒楄〃",
+		post: async function(data,params){
+			return await http.post(this.url, data, {params});
+		},
+	},
+}
\ No newline at end of file
diff --git a/src/views/console/base/CalenderTab.vue b/src/views/console/base/CalenderTab.vue
new file mode 100644
index 0000000..348ea29
--- /dev/null
+++ b/src/views/console/base/CalenderTab.vue
@@ -0,0 +1,63 @@
+<!--
+ * @Date: 2024-04-04 22:45:43
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-05 00:10:43
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/CalenderTab.vue
+-->
+<template>
+        <el-container>
+            <el-aside width="220px">
+                <el-button type="primary" icon="el-icon-plus">鏂板缓鏃ュ巻</el-button>
+                <div v-infinite-scroll="load">
+                    <el-card shadow="never" class="card" v-for="item in caleList" :key="item.id">
+                        <h3>{{item.code}}</h3>
+                        <p>鏃ュ巻鍚嶇О: {{item.name}}</p>
+                        <p>搴旂敤骞翠唤: {{item.year}}</p>
+                    </el-card>
+                </div>
+
+            </el-aside>
+        </el-container>
+</template>
+
+<script>
+export default {
+    data() {
+        return {
+            current: 0,
+            total: 1,
+            caleList: []
+        }
+    },
+    created() {
+        this.load()
+    },
+    methods: {
+        load() {
+            if  (this.current * 15 >= this.total) {
+                return
+            }
+            this.current += 1
+            this.$API.calender.getList.post({ statusList: [1] }, { current: this.current, size: 15 }).then(res => {
+                this.total = res?.data?.total
+                if (res?.data?.records) {
+                    if (this.current === 1) {
+                        this.caleList = res?.data?.records || []
+                    } else {
+                        this.caleList.push(
+                            ...res?.data?.records || []
+                        )
+                    }
+                    
+                }
+            })
+        }
+    }
+}
+</script>
+
+<style lang="scss" scoped>
+.card {
+    margin: 12px 12px 12px 0;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/console/base/shift-calendar.vue b/src/views/console/base/shift-calendar.vue
new file mode 100644
index 0000000..738a807
--- /dev/null
+++ b/src/views/console/base/shift-calendar.vue
@@ -0,0 +1,43 @@
+<!--
+ * @Date: 2024-04-04 21:51:24
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-05 00:15:20
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/shift-calendar.vue
+-->
+<template>
+    <el-main style="height: 100%;background-color: #fff;">
+            <el-tabs tab-position="top" class="custom-tabs" v-model="activeName">
+                <el-tab-pane label="鐢熶骇鏃ュ巻" name="1">
+                    <CalenderTab></CalenderTab>
+                </el-tab-pane>
+                <el-tab-pane label="鐝埗" name="2"></el-tab-pane>
+            </el-tabs>
+    </el-main>
+</template>
+<script>
+    import CalenderTab from './CalenderTab.vue';
+    export default {
+        components: {
+            CalenderTab
+        },
+        data () {
+            return {
+                activeName: '1'
+            }
+        }
+    }
+</script>
+<style lang="scss" scoped>
+.el-tabs--card {
+  height: calc(100vh - 110px - 56px);
+  /* overflow-y: auto; */
+}
+.el-tab-pane {
+  height: calc(100vh - 110px - 56px);
+  overflow-y: auto;
+}
+    // .custom-tabs {
+    //     height: 500px;
+    //     overflow: scroll;
+    // }
+</style>
\ No newline at end of file
diff --git "a/\345\211\257\346\234\254\346\231\272\350\203\275\345\210\266\351\200\240\347\263\273\347\273\237\345\212\237\350\203\275\345\256\232\344\271\211.xls" "b/\345\211\257\346\234\254\346\231\272\350\203\275\345\210\266\351\200\240\347\263\273\347\273\237\345\212\237\350\203\275\345\256\232\344\271\211.xls"
index 7e75aec..286daf9 100644
--- "a/\345\211\257\346\234\254\346\231\272\350\203\275\345\210\266\351\200\240\347\263\273\347\273\237\345\212\237\350\203\275\345\256\232\344\271\211.xls"
+++ "b/\345\211\257\346\234\254\346\231\272\350\203\275\345\210\266\351\200\240\347\263\273\347\273\237\345\212\237\350\203\275\345\256\232\344\271\211.xls"
Binary files differ

--
Gitblit v1.9.3