Mr.Zhang
2023-08-22 8f744242ce9c650114de7414ec220cd8c0ee1203
screen_standard/src/components/AppLayout.vue
@@ -53,6 +53,7 @@
<script setup>
import { getAssets } from '@/utils'
import { getDepartmentList } from '@/utils/apis.js'
import { reactive, toRefs, onMounted } from 'vue';
import { RouterView } from 'vue-router'
@@ -75,12 +76,7 @@
let { tempCom, isFull, tempDate } = toRefs(data)
const comList = [
  {name: '豆米'},
  {name: '大米'},
  {name: '小米'},
  {name: '黄米'},
]
const comList = reactive([])
const selectCom = (item, index) => {
@@ -116,7 +112,15 @@
}
onMounted(() => {
  getDepartmentList(8)
    .then(res => {
      debugger
      comList = res
      data.tempCom = res[0]
      console.log(data.tempCom);
    })
    .catch(err => {})
  const week = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日',]
  setInterval(() => {
    let date = new Date()
@@ -140,6 +144,7 @@
  width: 100%;
  height: 100%;
  padding: 30px;
  overflow-y: scroll;
  box-sizing: border-box;
  .header {
    background-image: url('@/assets/img/bg_maintitle@2x.png');
@@ -214,6 +219,7 @@
  }
  .num-list {
    margin-top: 24px;
    margin-bottom: 27px;
    display: flex;
    justify-content: space-between;
    height: 88px;