Mr.Zhang
2023-08-22 83c4a4b74ab056ab447edadb3d06d8e9560c0aff
大屏公司部门
已修改1个文件
17 ■■■■■ 文件已修改
screen_standard/src/components/AppLayout.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/components/AppLayout.vue
@@ -27,7 +27,7 @@
          <div class="time">{{ tempDate.time }}</div>
          <div class="day">{{ `${tempDate.date} ${tempDate.day}` }}</div>
        </div>
        <img src="@/assets/img/title_line@2x.png" class="right-line" alt="">
        <!-- <img src="@/assets/img/title_line@2x.png" class="right-line" alt=""> -->
      </div>
    </div>
    <!-- 'background': `url(${getAssets(item.bgImg)})`, -->
@@ -54,7 +54,7 @@
<script setup>
import { getAssets } from '@/utils'
import { getDepartmentList } from '@/utils/apis.js'
import { reactive, toRefs, onMounted } from 'vue';
import { reactive, toRefs, ref, onMounted } from 'vue';
import { RouterView } from 'vue-router'
const layoutList = [
@@ -71,13 +71,11 @@
    time: '',
    date: '',
    day: ''
  }
  },
  comList: []
})
let { tempCom, isFull, tempDate } = toRefs(data)
const comList = reactive([])
let { tempCom, isFull, tempDate, comList } = toRefs(data)
const selectCom = (item, index) => {
  data.tempCom = item
@@ -114,11 +112,8 @@
onMounted(() => {
  getDepartmentList(8)
    .then(res => {
      debugger
      comList = res
      data.comList = res
      data.tempCom = res[0]
      console.log(data.tempCom);
    })
    .catch(err => {})
  const week = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日',]