|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script setup> | 
|---|
|  |  |  | import { getAssets } from '@/utils' | 
|---|
|  |  |  | import { getDepartmentList } from '@/utils/apis.js' | 
|---|
|  |  |  | import { reactive, toRefs, onMounted } from 'vue'; | 
|---|
|  |  |  | import { RouterView } from 'vue-router' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | let { tempCom, isFull, tempDate } = toRefs(data) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const comList = [ | 
|---|
|  |  |  | {name: '豆米'}, | 
|---|
|  |  |  | {name: '大米'}, | 
|---|
|  |  |  | {name: '小米'}, | 
|---|
|  |  |  | {name: '黄米'}, | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | const comList = reactive([]) | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const selectCom = (item, index) => { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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() | 
|---|