| | |
| | | } |
| | | |
| | | const fullChange = () => { |
| | | data.isFull = !data.isFull |
| | | // data.isFull = !data.isFull |
| | | let element = document.documentElement; |
| | | if (data.isFull) { // 全屏 |
| | | if (!data.isFull) { // 全屏 |
| | | if (element.requestFullscreen) { |
| | | element.requestFullscreen(); |
| | | } else if (element.webkitRequestFullScreen) { |
| | |
| | | document.msExitFullscreen(); |
| | | } |
| | | } |
| | | // data.isFull = !data.isFull |
| | | data.isFull = !data.isFull |
| | | } |
| | | |
| | | onMounted(() => { |
| | | enterprise.setDepartId() |
| | | getDepartmentList(enterprise.companyId) |
| | | .then(res => { |
| | | data.comList = res |
| | |
| | | enterprise.setDepartId(data.tempCom.id) |
| | | }) |
| | | .catch(err => {}) |
| | | fullChange() |
| | | const week = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'] |
| | | setInterval(() => { |
| | | let tempDate = new Date() |
| | |
| | | height: 100%; |
| | | padding: 20px 30px; |
| | | overflow-y: scroll; |
| | | scrollbar-width:none; |
| | | -ms-overflow-style:none; |
| | | &::-webkit-scrollbar{ |
| | | width: 0; |
| | | } |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | | redirect: '/home', |
| | | |
| | | }, |
| | | { |
| | | path: '/home', |
| | | name: 'home', |
| | | component: indexView |
| | | }, |
| | |
| | | :content="'已报工良品数' + child.doneNum + ';工序计划数' + child.planNum" placement="top"> |
| | | <div class="scroll_item_row_item" @click="jump(child.procedureId, child.procedureName)"> |
| | | <div class="scroll_item_row_item_x"></div> |
| | | <span v-if="child.rate < 100">{{ child.rate.toFixed(0) }}%</span> |
| | | <span v-if="child.rate < 100">{{ Math.floor(child.rate) }}%</span> |
| | | <img v-else src="@/assets/img/ic_complete@2x.png" alt="" /> |
| | | <span class="scroll_item_row_item_wz">{{ child.procedureName.substring(0, 3) }}</span> |
| | | </div> |
| | |
| | | let option; |
| | | option = { |
| | | title: { |
| | | text: `近七日不良品总数:${data.num}`, |
| | | text: ` 近七日不良品总数:${data.num}`, |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | | grid: { |
| | | top: 40, |
| | | bottom: 30 |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 2 |
| | | |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight - 2)) { |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight-0.5)) { |
| | | console.log(scrollDom.scrollTop); |
| | | console.log(scrollDom.scrollHeight, scrollDom.clientHeight); |
| | | // 获取组件第一个节点 |
| | | let first = scrollDom.children[0] |
| | | // 删除节点 |
| | |
| | | |
| | | $fixed-height: 690px; |
| | | .content1 { |
| | | scrollbar-width:none; |
| | | -ms-overflow-style:none; |
| | | ::-webkit-scrollbar{display:none} |
| | | |
| | | flex: 1; |
| | | width: 100%; |
| | | height: auto; |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { reactive, ref, toRefs, onMounted, onUnmounted } from 'vue' |
| | | import { reactive, ref, toRefs, onMounted, onUnmounted, nextTick } from 'vue' |
| | | import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage, getUnqualified7DayData, getUnqualifiedCateData } from '@/utils/api.js' |
| | | import { useCounterStore } from '@/stores/counter.js' |
| | | import { useRoute } from 'vue-router' |
| | |
| | | |
| | | onMounted(() => { |
| | | window.addEventListener('resize', () => { |
| | | setDayChart() |
| | | setTypeChart() |
| | | console.log('resize'); |
| | | nextTick(() => { |
| | | setDayChart() |
| | | setTypeChart() |
| | | }) |
| | | }) |
| | | initData() |
| | | scrollTimer.value = setInterval(() => { |
| | |
| | | dateList.push(item.createTime) |
| | | numList.push(item.unqualifiedNum || 0) |
| | | }) |
| | | console.log(data.allBad); |
| | | let option; |
| | | option = { |
| | | title: { |
| | |
| | | color: '#fff', |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | | grid: { |
| | | top: 40, |
| | | bottom: 40 |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | |
| | | */ |
| | | function setTypeChart() { |
| | | let dayChartDom = document.getElementById('type-distribution'); |
| | | console.log(dayChartDom); |
| | | let myChart = echarts.init(dayChartDom); |
| | | let legendData = [] |
| | | let seriesData = [] |