| | |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 大å²è½¦é´ç»¼åçæ¿,å·¦ä¸äº§çº¿å 工任塿¥å£ |
| | | export function LineSearchTopLeftData(data) { |
| | | return request({ |
| | |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 大å²ä»åºçæ¿,å³ä¸æååºãåæååºtop5åºåæè¡ |
| | | export function WareHouseRightTopData() { |
| | | return request({ |
| | |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 大å²ä»åºçæ¿,å³ä¸åæåºåºtop5åºåæè¡ |
| | | export function WareHouseRightBottomData() { |
| | | return request({ |
| | |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 车é´çæ¿å
Œ |
| | | export function WkspReportNotice(data) { |
| | | return request({ |
| | |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | export function QCBadCenterRightWeek(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/QCBadCenterRightWeek', |
| | |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | export function QCBadBottomWeek(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/QCBadBottomWeek', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | export function BadWeekDistriBute(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/BadWeekDistriBute', |
| | |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | export function BadContManger(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/BadContManger', |
| | |
| | | |
| | | NProgress.configure({ showSpinner: false }) // NProgress Configuration |
| | | |
| | | const whiteList = ['/login', '/zhkb', '/ckgl', '/cgdd', '/cjzl', '/back'] // no redirect whitelist |
| | | const whiteList = ['/login', '/zhkb', '/ckgl', '/cgdd', '/cjzl', '/all', '/back'] // no redirect whitelist |
| | | |
| | | router.beforeEach(async(to, from, next) => { |
| | | // start progress bar |
| | |
| | | path: '/cjzl', |
| | | component: () => import('@/views/kanbanManager/cjzl'), |
| | | hidden: true |
| | | }, { |
| | | path: '/all', |
| | | component: () => import('@/views/kanbanManager/all'), |
| | | hidden: true |
| | | }, |
| | | |
| | | { |
| | |
| | | textBorderColor: '#000', |
| | | textBorderWidth: 1, |
| | | textShadowBlur: 1, |
| | | textShadowColor: colorY, |
| | | textShadowColor: colorX, |
| | | textShadowOffsetX: 0, |
| | | textShadowOffsetY: 0, |
| | | paddingTop: 10, |
| | |
| | | splitLine: { // åé线 |
| | | length: 10, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: colorY |
| | | color: colorX |
| | | } |
| | | }, |
| | | axisLabel: { |
| | |
| | | textBorderColor: '#000', |
| | | textBorderWidth: 1, |
| | | textShadowBlur: 1, |
| | | textShadowColor: colorY, |
| | | textShadowColor: colorX, |
| | | textShadowOffsetX: 0, |
| | | textShadowOffsetY: 0, |
| | | paddingTop: 10, |
| | |
| | | |
| | | // 车é´è´¨é |
| | | export function cjzl01(scaleData) { |
| | | console.log(scaleData, 3) |
| | | // var scaleData = [ |
| | | // { |
| | | // 'name': 'æ¯åº', |
| | | // 'value': 30 |
| | | // }, |
| | | // { |
| | | // 'name': 'è²å·®', |
| | | // 'value': 20 |
| | | // }, |
| | | // { |
| | | // 'name': 'æå
', |
| | | // 'value': 10 |
| | | // }, |
| | | // { |
| | | // 'name': 'æç£¨', |
| | | // 'value': 5 |
| | | // }, |
| | | // { |
| | | // 'name': 'æå¼¯ãåé¸ãæå', |
| | | // 'value': 10 |
| | | // } |
| | | // ] |
| | | var rich = { |
| | | white: { |
| | | color: colorX, |
| | | align: 'center', |
| | | padding: [3, 0] |
| | | // fontSize: 16 |
| | | } |
| | | } |
| | | var placeHolderStyle = { |
| | | normal: { |
| | | label: { |
| | | show: false |
| | | }, |
| | | labelLine: { |
| | | show: false |
| | | }, |
| | | color: 'rgba(0, 0, 0, 0)', |
| | | borderColor: 'rgba(0, 0, 0, 0)', |
| | | borderWidth: 0 |
| | | padding: [3, 0], |
| | | fontSize: 20 |
| | | } |
| | | } |
| | | var data = [] |
| | | var color = ['#00ffff', '#ff3000', '#006ced', '#ffe000', '#ffa800', '#ff5b00', '#ff3000'] |
| | | var color = ['#00ffff', '#ff5b00', '#006ced', '#ffe000', '#ffa800', '#ff3000'] |
| | | for (var i = 0; i < scaleData.length; i++) { |
| | | data.push({ |
| | | value: scaleData[i].value, |
| | |
| | | } |
| | | } |
| | | } |
| | | // { |
| | | // value: 2, |
| | | // name: '', |
| | | // itemStyle: placeHolderStyle |
| | | // } |
| | | ) |
| | | } |
| | | var seriesObj = [{ |
| | |
| | | show: true, |
| | | position: 'outside', |
| | | color: colorX, |
| | | fontSize: 20, |
| | | formatter: function(params) { |
| | | if (params.name !== '') { |
| | | return params.name + '\n{white|' + params.value + '}' |
| | |
| | | white: { |
| | | color: '#ddd', |
| | | align: 'center', |
| | | padding: [5, 0] |
| | | padding: [5, 0], |
| | | fontSize: 20 |
| | | } |
| | | } |
| | | |
| | | var placeHolderStyle = { |
| | | normal: { |
| | | label: { |
| | | show: false |
| | | }, |
| | | labelLine: { |
| | | show: false |
| | | }, |
| | | color: 'rgba(0, 0, 0, 0)', |
| | | borderColor: 'rgba(0, 0, 0, 0)', |
| | | borderWidth: 0 |
| | | } |
| | | } |
| | | var data = [] |
| | | var color = ['#00ffff', '#ff3000', '#006ced', '#ffe000', '#ffa800', '#ff5b00', '#ff3000'] |
| | | var color = ['#00ffff', '#ff3000', '#ffe000', '#ffa800', '#ff5b00'] |
| | | for (var i = 0; i < scaleData.length; i++) { |
| | | data.push({ |
| | | value: scaleData[i].value, |
| | |
| | | } |
| | | } |
| | | } |
| | | // { |
| | | // value: 4, |
| | | // name: '', |
| | | // itemStyle: placeHolderStyle |
| | | // } |
| | | ) |
| | | } |
| | | var seriesObj = [{ |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | label: { |
| | | fontSize: 20, |
| | | show: true, |
| | | position: 'outside', |
| | | // color: '#ddd', |
| | | color: colorX, |
| | | formatter: function(params) { |
| | | // var percent = 0 |
| | |
| | | }, |
| | | labelLine: { |
| | | length: 10, |
| | | length2: 10, |
| | | length2: 20, |
| | | show: true, |
| | | color: '#00ffff' |
| | | } |
| | |
| | | top: '45%', |
| | | textAlign: 'center', |
| | | textStyle: { |
| | | // color: colorX, |
| | | color: '#00ffff', |
| | | fontSize: '20', |
| | | fontWeight: 'bolder' |
| | |
| | | return option |
| | | } |
| | | |
| | | // export function cjzl03() { |
| | | // // mockæ°æ® |
| | | // const dataArr = { |
| | | // xdata: ['9æ4å·', '9æ5å·', '9æ6å·', '9æ7å·', '9æ8å·', '9æ9å·', '9æ10å·'], |
| | | // vaccination: [1000, 1300, 1200, 800, 600, 700, 900], |
| | | // unvaccinated: [700, 800, 900, 500, 300, 400, 500], |
| | | // unvaccinatedTwo: [400, 300, 500, 200, 100, 100, 300], |
| | | // rateDataOne: [98, 96, 97, 92, 94, 95, 100], |
| | | // rateDataTwo: [3, 4, 5, 1, 3, 2, 3] |
| | | // } |
| | | // |
| | | // // tooltip |
| | | // const tooltip = { |
| | | // trigger: 'axis', |
| | | // textStyle: { fontSize: '100%' }, |
| | | // formatter: params => { |
| | | // const rander = params.map(item => item.seriesType !== 'pictorialBar' ? `<div>${item.seriesName}: ${item.seriesType !== 'line' ? item.value : item.value + '%'}</div>` : '').join('') |
| | | // return ` |
| | | // <div>${params[0].axisValue}</div> |
| | | // ${rander} |
| | | // ` |
| | | // } |
| | | // } |
| | | // const legend = { |
| | | // data: ['任塿°', 'åæ ¼æ°', 'ä¸è¯æ°', 'åæ ¼ç', 'ä¸è¯ç'], |
| | | // textStyle: { fontSize: 14, color: '#fff' }, |
| | | // itemWidth: 25, |
| | | // itemHeight: 15, |
| | | // itemGap: 15, |
| | | // bottom: '5%', |
| | | // selectedMode: false |
| | | // } |
| | | // const grid = { |
| | | // left: '2%', |
| | | // right: '2%', |
| | | // bottom: '20%', |
| | | // top: '10%', |
| | | // containLabel: true |
| | | // } |
| | | // // xAxis |
| | | // const xAxis = { |
| | | // // axisTick: { show: true }, |
| | | // // axisLine: { lineStyle: { color: 'rgba(255,255,255, .2)' }}, |
| | | // // axisLabel: { textStyle: { fontSize: 12, color: '#fff' }}, |
| | | // |
| | | // type: 'category', |
| | | // boundaryGap: true, |
| | | // axisLabel: { |
| | | // interval: 0, |
| | | // formatter: '{value}', |
| | | // fontSize: 14, |
| | | // // margin: 20, |
| | | // textStyle: { |
| | | // color: colorX |
| | | // } |
| | | // }, |
| | | // axisLine: { |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // splitLine: { |
| | | // show: false, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisTick: { |
| | | // show: false |
| | | // }, |
| | | // |
| | | // data: dataArr.xdata |
| | | // } |
| | | // |
| | | // // yAxis |
| | | // const yAxis = [{ |
| | | // // max: 800, |
| | | // boundaryGap: false, |
| | | // splitNumber: 4, |
| | | // type: 'value', |
| | | // axisLabel: { |
| | | // textStyle: { |
| | | // fontSize: 14, |
| | | // color: colorY |
| | | // } |
| | | // }, |
| | | // // name: 'å', |
| | | // // nameTextStyle: { |
| | | // // color: colorY, |
| | | // // fontSize: 14, |
| | | // // lineHeight: 20 |
| | | // // }, |
| | | // splitLine: { |
| | | // show: true, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisLine: { |
| | | // show: true, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisTick: { |
| | | // show: true |
| | | // } |
| | | // // axisTick: { show: false }, |
| | | // // axisLine: { show: false }, |
| | | // // splitLine: { lineStyle: { color: 'rgba(255,255,255, .05)' }}, |
| | | // // axisLabel: { textStyle: { fontSize: 16, color: '#fff' }} |
| | | // }, { |
| | | // show: true, |
| | | // max: 100, |
| | | // splitLine: { show: false }, |
| | | // axisLine: { show: false }, |
| | | // axisTick: { show: false }, |
| | | // axisLabel: { |
| | | // textStyle: { |
| | | // fontSize: 14, |
| | | // color: colorY |
| | | // }, |
| | | // formatter: params => { |
| | | // return `${params}%` |
| | | // } |
| | | // } |
| | | // }] |
| | | // |
| | | // // series |
| | | // const series = [{ |
| | | // z: 1, |
| | | // name: 'ä¸é¨1', |
| | | // type: 'pictorialBar', |
| | | // symbolPosition: 'end', |
| | | // data: dataArr.vaccination, |
| | | // symbol: 'diamond', |
| | | // symbolOffset: ['-50%', '-50%'], |
| | | // symbolSize: [29, 19], |
| | | // itemStyle: { |
| | | // borderColor: '#2fffa4', |
| | | // color: '#2fffa4' |
| | | // } |
| | | // }, |
| | | // { |
| | | // z: 1, |
| | | // type: 'bar', |
| | | // name: '任塿°', |
| | | // barWidth: 30, |
| | | // barGap: '-50%', |
| | | // data: dataArr.vaccination, |
| | | // itemStyle: { |
| | | // color: { |
| | | // type: 'linear', |
| | | // x: 0, x2: 1, y: 0, y2: 0, |
| | | // colorStops: [ |
| | | // { offset: 0, color: 'rgba(29, 245, 160, .7)' }, |
| | | // { offset: 0.5, color: 'rgba(29, 245, 160, .7)' }, |
| | | // { offset: 0.5, color: 'rgba(29, 245, 160, .3)' }, |
| | | // { offset: 1, color: 'rgba(29, 245, 160, .3)' } |
| | | // ] |
| | | // } |
| | | // } |
| | | // }, { |
| | | // z: 2, |
| | | // name: 'ä¸é¨1', |
| | | // type: 'pictorialBar', |
| | | // symbolPosition: 'end', |
| | | // data: dataArr.unvaccinated, |
| | | // symbol: 'diamond', |
| | | // symbolOffset: [0, '-50%'], |
| | | // symbolSize: [29, 19], |
| | | // itemStyle: { |
| | | // borderColor: '#32ffee', |
| | | // color: '#32ffee' |
| | | // } |
| | | // }, |
| | | // { |
| | | // z: 2, |
| | | // type: 'bar', |
| | | // name: 'åæ ¼æ°', |
| | | // barWidth: 30, |
| | | // data: dataArr.unvaccinated, |
| | | // itemStyle: { |
| | | // color: { |
| | | // type: 'linear', |
| | | // x: 0, x2: 1, y: 0, y2: 0, |
| | | // colorStops: [ |
| | | // { offset: 0, color: 'rgba(50, 255, 238, .7)' }, |
| | | // { offset: 0.5, color: 'rgba(50, 255, 238, .7)' }, |
| | | // { offset: 0.5, color: 'rgba(50, 255, 238, .3)' }, |
| | | // { offset: 1, color: 'rgba(50, 255, 238, .3)' } |
| | | // ] |
| | | // } |
| | | // } |
| | | // }, { |
| | | // z: 3, |
| | | // name: 'ä¸é¨1', |
| | | // type: 'pictorialBar', |
| | | // symbolPosition: 'end', |
| | | // data: dataArr.unvaccinatedTwo, |
| | | // symbol: 'diamond', |
| | | // symbolOffset: ['50%', '-50%'], |
| | | // symbolSize: [29, 19], |
| | | // itemStyle: { |
| | | // borderColor: '#ffd11a', |
| | | // color: '#ffd11a' |
| | | // } |
| | | // }, { |
| | | // z: 3, |
| | | // type: 'bar', |
| | | // name: 'ä¸è¯æ°', |
| | | // barWidth: 30, |
| | | // data: dataArr.unvaccinatedTwo, |
| | | // itemStyle: { |
| | | // color: { |
| | | // type: 'linear', |
| | | // x: 0, x2: 1, y: 0, y2: 0, |
| | | // colorStops: [ |
| | | // { offset: 0, color: 'rgba(255, 209, 26, .7)' }, |
| | | // { offset: 0.5, color: 'rgba(255, 209, 26, .7)' }, |
| | | // { offset: 0.5, color: 'rgba(255, 209, 26, .3)' }, |
| | | // { offset: 1, color: 'rgba(255, 209, 26, .3)' } |
| | | // ] |
| | | // } |
| | | // } |
| | | // }, { |
| | | // z: 9, |
| | | // yAxisIndex: 1, |
| | | // name: 'åæ ¼ç', type: 'line', |
| | | // // symbol: 'emptyCircle', |
| | | // symbol: `path://M9.312,4.594 C12.074,4.594 14.313,6.832 14.313,9.594 C14.313,12.355 12.074,14.594 9.312,14.594 C6.551,14.594 4.312,12.355 4.312,9.594 C4.312,6.832 6.551,4.594 9.312,4.594 Z`, |
| | | // symbolSize: [10, 10], |
| | | // color: { |
| | | // type: 'linear', x: 1, y: 0, x2: 0, y2: 0, |
| | | // // 0% å¤çé¢è² // 100% å¤çé¢è² |
| | | // colorStops: [{ offset: 0, color: '#32ffee' }, { offset: 1, color: '#8afff5' }], |
| | | // global: false // 缺ç为 false |
| | | // }, |
| | | // lineStyle: { |
| | | // color: { |
| | | // type: 'linear', x: 1, y: 0, x2: 0, y2: 0, |
| | | // // 0% å¤çé¢è² // 100% å¤çé¢è² |
| | | // colorStops: [{ offset: 0, color: '#32ffee' }, { offset: 1, color: '#8afff5' }], |
| | | // global: false // 缺ç为 false |
| | | // } |
| | | // }, |
| | | // // ä¿®æ¹çæ¯çº¿ä¸åºåçé¢è² |
| | | // areaStyle: { |
| | | // color: new echarts.graphic.LinearGradient( |
| | | // // å³/ä¸/å·¦/ä¸ |
| | | // 0, 0, 0, 1, [ |
| | | // { offset: 0, color: 'rgba(50, 255, 238, .1)' }, |
| | | // { offset: 1, color: 'transparent' } |
| | | // ]) |
| | | // }, |
| | | // label: { |
| | | // show: true, |
| | | // position: 'insideBottomLeft', |
| | | // formatter: params => { |
| | | // return `${params.value}%` |
| | | // }, |
| | | // textStyle: { fontSize: 14, color: '#32ffee' } |
| | | // }, |
| | | // data: dataArr.rateDataOne |
| | | // }, { |
| | | // z: 9, |
| | | // yAxisIndex: 1, |
| | | // name: 'ä¸è¯ç', type: 'line', |
| | | // symbol: `path://M9.312,4.594 C12.074,4.594 14.313,6.832 14.313,9.594 C14.313,12.355 12.074,14.594 9.312,14.594 C6.551,14.594 4.312,12.355 4.312,9.594 C4.312,6.832 6.551,4.594 9.312,4.594 Z`, |
| | | // // symbol: 'emptyCircle', |
| | | // symbolSize: [10, 10], |
| | | // color: { |
| | | // type: 'linear', x: 1, y: 0, x2: 0, y2: 0, |
| | | // // 0% å¤çé¢è² // 100% å¤çé¢è² |
| | | // colorStops: [{ offset: 0, color: colorX }, { offset: 1, color: '#fff5cc' }], |
| | | // global: false // 缺ç为 false |
| | | // }, |
| | | // lineStyle: { |
| | | // color: { |
| | | // type: 'linear', x: 1, y: 0, x2: 0, y2: 0, |
| | | // // 0% å¤çé¢è² // 100% å¤çé¢è² |
| | | // colorStops: [{ offset: 0, color: colorX }, { offset: 1, color: '#fff5cc' }], |
| | | // global: false // 缺ç为 false |
| | | // } |
| | | // }, |
| | | // // ä¿®æ¹çæ¯çº¿ä¸åºåçé¢è² |
| | | // areaStyle: { |
| | | // color: new echarts.graphic.LinearGradient( |
| | | // // å³/ä¸/å·¦/ä¸ |
| | | // 0, 0, 0, 1, [ |
| | | // { offset: 0, color: 'rgba(255, 209, 26, .2)' }, |
| | | // { offset: 1, color: 'transparent' } |
| | | // ]) |
| | | // }, |
| | | // label: { |
| | | // show: true, |
| | | // position: 'insideBottomRight', |
| | | // formatter: params => { |
| | | // return `${params.value}%` |
| | | // }, |
| | | // // textStyle: { fontSize: 14, color: '#ffd11a' } |
| | | // textStyle: { fontSize: 14, color: colorX } |
| | | // }, |
| | | // data: dataArr.rateDataTwo |
| | | // }] |
| | | // // const option = { tooltip, xAxis, yAxis, series, grid, legend, backgroundColor: 'rgba(0, 0, 0, .7)' } |
| | | // const option = { xAxis, yAxis, series, grid, legend, backgroundColor: 'transparent' } |
| | | // return option |
| | | // } |
| | | |
| | | export function cjzl04() { |
| | | export function cjzl03(xData, legendData, yData) { // 左侧 |
| | | return { |
| | | backgroundColor: 'transparent', |
| | | tooltip: {}, |
| | | // title: { |
| | | // text: '订åå®ææ»æ°', |
| | | // left: '50%', |
| | | // top: '5%', |
| | | // textAlign: 'center', |
| | | // textStyle: { |
| | | // // color: '#fff', |
| | | // color: '#00ffff', |
| | | // fontSize: '20', |
| | | // fontWeight: 'bolder' |
| | | // } |
| | | // }, |
| | | grid: { |
| | | left: '2%', |
| | | right: '2%', |
| | |
| | | containLabel: true |
| | | }, |
| | | legend: { |
| | | // show: true, |
| | | // itemGap: 20, |
| | | // data: ['æ³¨åæ»é', 'ææ°æ³¨åé'], |
| | | // textStyle: { |
| | | // color: '#f9f9f9', |
| | | // borderColor: '#fff' |
| | | // } |
| | | data: ['精工车é´', 'è£
é
车é´', 'æºå 工车é´', 'æå
车é´', 'æç£¨è½¦é´'], |
| | | textStyle: { fontSize: 14, color: '#fff' }, |
| | | data: legendData, |
| | | textStyle: { fontSize: 16, color: '#fff' }, |
| | | itemWidth: 25, |
| | | itemHeight: 10, |
| | | itemGap: 15, |
| | |
| | | axisLabel: { |
| | | interval: 0, |
| | | formatter: '{value}', |
| | | fontSize: 14, |
| | | fontSize: 16, |
| | | margin: 20, |
| | | textStyle: { |
| | | color: colorX |
| | |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | data: ['9æ4å·', '9æ5å·', '9æ6å·', '9æ7å·', '9æ8å·', '9æ9å·', '9æ10å·'] |
| | | data: xData |
| | | }], |
| | | yAxis: [ |
| | | { |
| | |
| | | type: 'value', |
| | | axisLabel: { |
| | | textStyle: { |
| | | fontSize: 14, |
| | | color: colorY |
| | | fontSize: 16, |
| | | color: colorX |
| | | } |
| | | }, |
| | | // name: 'å', |
| | |
| | | ], |
| | | series: [ |
| | | { |
| | | name: '精工车é´', |
| | | name: legendData[0], |
| | | type: 'line', |
| | | // smooth: true, //æ¯å¦å¹³æ»æ²çº¿æ¾ç¤º |
| | | // symbol:'circle', // é»è®¤æ¯ç©ºå¿åï¼ä¸é´æ¯ç½è²çï¼ï¼æ¹æå®å¿å |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: `rgb(71, 226, 194)` // 线æ¡é¢è² |
| | | color: '#00ffff' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: `rgb(71, 226, 194)` |
| | | borderColor: '#00ffff' |
| | | }, |
| | | // label: { |
| | | // show: true, |
| | |
| | | // }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: `rgb(71, 226, 194)` |
| | | color: '#00ffff' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | // shadowBlur: 20 // shadowBlur设å¾å½¢é´å½±ç模ç³å¤§å°ãé
åshadowColor,shadowOffsetX/Y, 设置å¾å½¢çé´å½±ææã |
| | | // } |
| | | // }, |
| | | data: [393, 438, 485, 631, 689, 824, 987] |
| | | // data: [600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100)] |
| | | data: yData[0] |
| | | }, |
| | | { |
| | | name: 'è£
é
车é´', |
| | | name: legendData[1], |
| | | type: 'line', |
| | | // smooth: true, //æ¯å¦å¹³æ»æ²çº¿æ¾ç¤º |
| | | // symbol:'circle', // é»è®¤æ¯ç©ºå¿åï¼ä¸é´æ¯ç½è²çï¼ï¼æ¹æå®å¿å |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: '#32ffee' // 线æ¡é¢è² |
| | | color: '#ff3000' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: '#32ffee' |
| | | borderColor: '#ff3000' |
| | | }, |
| | | // label: { |
| | | // show: true, |
| | |
| | | // }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#32ffee' |
| | | color: '#ff3000' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | // shadowBlur: 20 // shadowBlur设å¾å½¢é´å½±ç模ç³å¤§å°ãé
åshadowColor,shadowOffsetX/Y, 设置å¾å½¢çé´å½±ææã |
| | | // } |
| | | // }, |
| | | // data: [393, 438, 485, 631, 689, 824, 987] |
| | | data: [10, 102, 30, 203, 40, 20, 405] |
| | | data: yData[1] |
| | | }, |
| | | { |
| | | name: 'æºå 工车é´', |
| | | name: legendData[2], |
| | | type: 'line', |
| | | // smooth: true, //æ¯å¦å¹³æ»æ²çº¿æ¾ç¤º |
| | | // symbol:'circle', // é»è®¤æ¯ç©ºå¿åï¼ä¸é´æ¯ç½è²çï¼ï¼æ¹æå®å¿å |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: '#ffd11a' // 线æ¡é¢è² |
| | | color: '#ffe000' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: '#ffd11a' |
| | | borderColor: '#ffe000' |
| | | }, |
| | | // label: { |
| | | // show: true, |
| | |
| | | // }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#ffd11a' |
| | | color: '#ffe000' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | // shadowBlur: 20 // shadowBlur设å¾å½¢é´å½±ç模ç³å¤§å°ãé
åshadowColor,shadowOffsetX/Y, 设置å¾å½¢çé´å½±ææã |
| | | // } |
| | | // }, |
| | | data: [93, 48, 45, 61, 89, 84, 97] |
| | | // data: [600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100)] |
| | | data: yData[2] |
| | | }, |
| | | { |
| | | name: 'æå
车é´', |
| | | name: legendData[3], |
| | | type: 'line', |
| | | // smooth: true, //æ¯å¦å¹³æ»æ²çº¿æ¾ç¤º |
| | | // symbol:'circle', // é»è®¤æ¯ç©ºå¿åï¼ä¸é´æ¯ç½è²çï¼ï¼æ¹æå®å¿å |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: `rgb(254, 94, 94)` // 线æ¡é¢è² |
| | | color: '#ffa800' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: `rgb(254, 94, 94)` |
| | | borderColor: '#ffa800' |
| | | }, |
| | | // label: { |
| | | // show: true, |
| | |
| | | // }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: `rgb(254, 94, 94)` |
| | | color: '#ffa800' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | // shadowBlur: 20 // shadowBlur设å¾å½¢é´å½±ç模ç³å¤§å°ãé
åshadowColor,shadowOffsetX/Y, 设置å¾å½¢çé´å½±ææã |
| | | // } |
| | | // }, |
| | | data: [33, 438, 48, 63, 69, 82, 487] |
| | | // data: [600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100)] |
| | | data: yData[3] |
| | | }, |
| | | { |
| | | name: 'æç£¨è½¦é´', |
| | | name: legendData[4], |
| | | type: 'line', |
| | | // smooth: true, //æ¯å¦å¹³æ»æ²çº¿æ¾ç¤º |
| | | // symbol:'circle', // é»è®¤æ¯ç©ºå¿åï¼ä¸é´æ¯ç½è²çï¼ï¼æ¹æå®å¿å |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: `rgb(255, 221, 97)` // 线æ¡é¢è² |
| | | color: '#ff5b00' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: `rgb(255, 221, 97)` |
| | | borderColor: '#ff5b00' |
| | | }, |
| | | // label: { |
| | | // show: true, |
| | |
| | | // }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: `rgb(255, 221, 97)` |
| | | color: '#ff5b00' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | // shadowBlur: 20 // shadowBlur设å¾å½¢é´å½±ç模ç³å¤§å°ãé
åshadowColor,shadowOffsetX/Y, 设置å¾å½¢çé´å½±ææã |
| | | // } |
| | | // }, |
| | | data: [93, 38, 85, 666, 555, 444, 333] |
| | | // data: [600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100)] |
| | | data: yData[4] |
| | | } |
| | | |
| | | ] |
| | | } |
| | | } |
| | | |
| | | // export function cjzl03() { |
| | | // const option = { |
| | | // backgroundColor: 'transparent', |
| | | // grid: { |
| | | // left: '2%', |
| | | // top: '10%', |
| | | // right: '2%', |
| | | // bottom: '20%', |
| | | // containLabel: true |
| | | // }, |
| | | // legend: { |
| | | // // show: true, |
| | | // // itemGap: 20, |
| | | // // data: ['æ³¨åæ»é', 'ææ°æ³¨åé'], |
| | | // // textStyle: { |
| | | // // color: '#f9f9f9', |
| | | // // borderColor: '#fff' |
| | | // // } |
| | | // data: ['宿æ°', '宿ç'], |
| | | // textStyle: { fontSize: 14, color: '#fff' }, |
| | | // itemWidth: 25, |
| | | // itemHeight: 10, |
| | | // itemGap: 15, |
| | | // bottom: '5%', |
| | | // selectedMode: false |
| | | // }, |
| | | // // tooltip: { |
| | | // // show: true, |
| | | // // trigger: 'axis', // axis , item |
| | | // // backgroundColor: 'RGBA(0, 0, 0, 0.3)', |
| | | // // borderColor: 'rgba(0, 151, 251, 0.6)', |
| | | // // borderWidth: 1, |
| | | // // borderRadius: 0, |
| | | // // textStyle: { |
| | | // // color: '#BCE9FC', |
| | | // // fontSize: 14, |
| | | // // align: 'left' |
| | | // // }, |
| | | // // // formatter:'{b0}<br />{a0}:{c0}<br />{a1}:{c4}%' |
| | | // // |
| | | // // // formatter: '{b0}<br/>' + |
| | | // // // '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgb(255,224,144)"></span>æåºå审æ£å¯å»ºè®®æ°:{c0}<br/>' + |
| | | // // // '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgb(72,226,198)"></span>é纳ç:{c4}%<br/>' |
| | | // // |
| | | // // formatter: function(params) { |
| | | // // var res = '' + params[0].name |
| | | // // var valueMap = new Map() |
| | | // // for (var i = 0, l = params.length; i < l; i++) { |
| | | // // if (params[i].value !== '-') { |
| | | // // valueMap.set(params[i].seriesName, params[i]) |
| | | // // } |
| | | // // } |
| | | // // valueMap.forEach((value, key) => { |
| | | // // if (value.seriesName === 'æåºå审æ£å¯å»ºè®®æ°') { |
| | | // // res += '<br/>' + value.marker + value.seriesName + ' : ' + value.value |
| | | // // } else if (value.seriesName === 'é纳ç' && value.value !== '-') { |
| | | // // res += '<br/>' + value.marker + value.seriesName + ' : ' + value.value |
| | | // // } |
| | | // // }) |
| | | // // return res |
| | | // // } |
| | | // // |
| | | // // }, |
| | | // xAxis: { |
| | | // type: 'category', |
| | | // boundaryGap: true, |
| | | // axisLabel: { |
| | | // interval: 0, |
| | | // formatter: '{value}', |
| | | // fontSize: 14, |
| | | // margin: 20, |
| | | // textStyle: { |
| | | // color: colorX |
| | | // } |
| | | // }, |
| | | // axisLine: { |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // splitLine: { |
| | | // show: false, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisTick: { |
| | | // show: false |
| | | // }, |
| | | // data: ['精工车é´', 'æºå 工车é´', '车è¹è½¦é´', 'ç²è½¦è½¦é´', '车è¹è½¦é´'] |
| | | // }, |
| | | // yAxis: [ |
| | | // { |
| | | // boundaryGap: false, |
| | | // // splitNumber: 4, |
| | | // type: 'value', |
| | | // // max: 100, |
| | | // axisLabel: { |
| | | // textStyle: { |
| | | // fontSize: 14, |
| | | // color: colorY |
| | | // } |
| | | // }, |
| | | // nameTextStyle: { |
| | | // color: '#fff', |
| | | // fontSize: 14, |
| | | // lineHeight: 40 |
| | | // }, |
| | | // splitLine: { |
| | | // show: true, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisLine: { |
| | | // show: true, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisTick: { |
| | | // show: false |
| | | // } |
| | | // }, |
| | | // { |
| | | // boundaryGap: false, |
| | | // splitNumber: 4, |
| | | // type: 'value', |
| | | // axisLabel: { |
| | | // textStyle: { |
| | | // fontSize: 14, |
| | | // color: colorY |
| | | // } |
| | | // }, |
| | | // nameTextStyle: { |
| | | // color: '#fff', |
| | | // fontSize: 14, |
| | | // lineHeight: 40 |
| | | // }, |
| | | // splitLine: { |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisLine: { |
| | | // show: false, |
| | | // lineStyle: { |
| | | // color: '#032c58' |
| | | // } |
| | | // }, |
| | | // axisTick: { |
| | | // show: false |
| | | // } |
| | | // } |
| | | // ], |
| | | // series: [ |
| | | // { |
| | | // name: '宿æ°', |
| | | // type: 'bar', |
| | | // yAxisIndex: 0, |
| | | // showSymbol: true, |
| | | // showAllSymbol: true, |
| | | // symbolSize: 4, |
| | | // barWidth: 14, |
| | | // zlevel: 1, |
| | | // itemStyle: { |
| | | // color: { |
| | | // type: 'linear', |
| | | // x: 0, |
| | | // y: 0, |
| | | // x2: 0, |
| | | // y2: 1, |
| | | // colorStops: [{ |
| | | // offset: 0, |
| | | // color: `rgba(255,224,144,1)` // 0% å¤çé¢è² |
| | | // }, { |
| | | // offset: 1, |
| | | // color: `rgba(72,226,198,1)` // 100% å¤çé¢è² |
| | | // }] |
| | | // } |
| | | // }, |
| | | // label: { |
| | | // show: false, |
| | | // position: 'top', |
| | | // distance: 10, |
| | | // fontSize: 16, |
| | | // fontFamily: 'DIN', |
| | | // color: '#ffffff', |
| | | // zlevel: 4, |
| | | // z: 10, |
| | | // formatter: '{c}%' |
| | | // }, |
| | | // data: [560, 760, 850, 490, 380] |
| | | // }, |
| | | // { |
| | | // // å¼åé |
| | | // type: 'pictorialBar', |
| | | // itemStyle: { |
| | | // normal: { |
| | | // color: '#0F375F' |
| | | // } |
| | | // }, |
| | | // symbolRepeat: 'fixed', |
| | | // symbolMargin: 3, |
| | | // symbol: 'rect', |
| | | // symbolClip: true, |
| | | // symbolSize: [14, 3], |
| | | // symbolPosition: 'start', |
| | | // symbolOffset: [0, -1], |
| | | // // symbolBoundingData: this.total, |
| | | // // data: [100, 100, 100, 100, 100], |
| | | // data: [1000, 1000, 1000, 1000, 1000], |
| | | // width: 25, |
| | | // z: 0, |
| | | // zlevel: 2 |
| | | // }, |
| | | // { |
| | | // // è¾
å©èæ¯å¾å½¢ |
| | | // name: '任塿°', |
| | | // type: 'bar', // pictorialBar |
| | | // barWidth: '14', |
| | | // barGap: '-100%', |
| | | // itemStyle: { |
| | | // normal: { |
| | | // borderWidth: 0, |
| | | // // color: 'rgba(146,158,48,0)' |
| | | // color: 'rgba(146,158,48,0)' |
| | | // }, |
| | | // barBorderRadius: 10 |
| | | // }, |
| | | // data: [800, 900, 1000, 600, 700], |
| | | // z: 0, |
| | | // zlevel: 0 |
| | | // }, |
| | | // { |
| | | // name: '宿ç', |
| | | // type: 'line', |
| | | // yAxisIndex: 1, |
| | | // showSymbol: true, |
| | | // showAllSymbol: true, |
| | | // symbolSize: 6, |
| | | // barWidth: 14, |
| | | // zlevel: 3, |
| | | // lineStyle: { |
| | | // normal: { |
| | | // width: 2, |
| | | // color: `rgba(72,226,198)` |
| | | // } |
| | | // }, |
| | | // areaStyle: { |
| | | // normal: { |
| | | // color: { |
| | | // type: 'linear', |
| | | // x: 0, |
| | | // y: 0, |
| | | // x2: 0, |
| | | // y2: 1, |
| | | // colorStops: [ |
| | | // { |
| | | // offset: 0, |
| | | // color: `rgba(72,226,198, 0.3)`// 0% å¤çé¢è² |
| | | // }, |
| | | // { |
| | | // offset: 1, |
| | | // color: `rgba(72,226,198, 0.2)` // 100% å¤çé¢è² |
| | | // } |
| | | // ], |
| | | // globalCoord: false // 缺ç为 false |
| | | // } // æ¸åé¢è² |
| | | // } |
| | | // }, |
| | | // itemStyle: { |
| | | // normal: { |
| | | // color: { |
| | | // type: 'linear', |
| | | // x: 0, |
| | | // y: 0, |
| | | // x2: 0, |
| | | // y2: 1, |
| | | // colorStops: [ |
| | | // { |
| | | // offset: 0, |
| | | // color: `rgba(72,226,198, 1)`// 0% å¤çé¢è² |
| | | // }, |
| | | // { |
| | | // offset: 1, |
| | | // color: `rgba(72,226,198, 0.2)` // 100% å¤çé¢è² |
| | | // } |
| | | // ], |
| | | // globalCoord: false // 缺ç为 false |
| | | // } // æ¸åé¢è² |
| | | // } |
| | | // }, |
| | | // data: [70, 80, 90, 20, 30] |
| | | // } |
| | | // ] |
| | | // } |
| | | // return option |
| | | // } |
| | | |
| | | export function cjzl03() { |
| | | const data1 = [300, 100, 200, 200, 100] |
| | | const data2 = [300, 200, 300, 300, 400] |
| | | |
| | | // let percent=[] |
| | | |
| | | export function cjzl04(xData, data1, data2, data3) { // å³ä¾§ |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | | grid: { |
| | | left: '2%', |
| | | top: '10%', |
| | | top: '12%', |
| | | right: '2%', |
| | | bottom: '20%', |
| | | containLabel: true |
| | |
| | | // borderColor: '#fff' |
| | | // } |
| | | data: ['宿æ°', '任塿°', '宿ç'], |
| | | textStyle: { fontSize: 14, color: '#fff' }, |
| | | textStyle: { fontSize: 16, color: '#fff' }, |
| | | itemWidth: 25, |
| | | itemHeight: 10, |
| | | itemGap: 15, |
| | |
| | | axisLabel: { |
| | | interval: 0, |
| | | formatter: '{value}', |
| | | fontSize: 14, |
| | | fontSize: 16, |
| | | margin: 20, |
| | | textStyle: { |
| | | color: colorX |
| | |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | data: ['精工车é´', 'æºå 工车é´', 'è£
é
车é´', 'ç²è½¦è½¦é´', 'å
è£
车é´'] |
| | | data: xData |
| | | }, |
| | | yAxis: [ |
| | | { |
| | |
| | | // max: 100, |
| | | axisLabel: { |
| | | textStyle: { |
| | | fontSize: 14, |
| | | color: colorY |
| | | fontSize: 16, |
| | | color: colorX |
| | | } |
| | | }, |
| | | nameTextStyle: { |
| | |
| | | type: 'value', |
| | | axisLabel: { |
| | | textStyle: { |
| | | fontSize: 14, |
| | | color: colorY |
| | | fontSize: 16, |
| | | color: colorX |
| | | } |
| | | }, |
| | | nameTextStyle: { |
| | | color: '#fff', |
| | | fontSize: 14, |
| | | fontSize: 16, |
| | | lineHeight: 40 |
| | | }, |
| | | splitLine: { |
| | |
| | | ], |
| | | series: [ |
| | | { // ä¸ä¸ªæåºä¸çåç |
| | | 'name': '', |
| | | 'name': '宿æ°', |
| | | 'type': 'pictorialBar', |
| | | 'symbolSize': [45, 25], |
| | | 'symbolOffset': [0, 10], |
| | | 'z': 12, |
| | | color: `rgb(37,196,238)`, |
| | | itemStyle: { |
| | | opacity: 1, |
| | | color: function(params) { |
| | | return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | offset: 0, |
| | | color: '#00EC28' // 0% å¤çé¢è² |
| | | color: `rgb(37,196,238)` // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, |
| | | color: '#5DF076'// 100% å¤çé¢è² |
| | | color: `rgb(37,196,238)`// 100% å¤çé¢è² |
| | | }], false) |
| | | } |
| | | // color: function(params) { |
| | | // var a = params.name.slice(0, 2) |
| | | // if (a === '精工') { |
| | | // return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | // offset: 0, |
| | | // color: '#FF9A22' // 0% å¤çé¢è² |
| | | // }, { |
| | | // offset: 1, |
| | | // color: '#FFD56E'// 100% å¤çé¢è² |
| | | // }], false) |
| | | // } else if (a === 'æºå ' || a === 'ç²è½¦') { |
| | | // return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | // offset: 0, |
| | | // color: '#00EC28' // 0% å¤çé¢è² |
| | | // }, { |
| | | // offset: 1, |
| | | // color: '#5DF076'// 100% å¤çé¢è² |
| | | // }], false) |
| | | // } else if (a === 'è£
é
' || a === 'å
è£
') { |
| | | // return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | // offset: 0, |
| | | // color: '#12B9DB' // 0% å¤çé¢è² |
| | | // }, { |
| | | // offset: 1, |
| | | // color: '#6F8EF2'// 100% å¤çé¢è² |
| | | // }], false) |
| | | // } |
| | | // } |
| | | }, |
| | | 'data': [1, 1, 1, 1, 1] |
| | | }, |
| | | |
| | | // ä¸åæªæ±ç¶å¾ |
| | | { |
| | | name: '宿æ°', |
| | | name: '', |
| | | type: 'bar', |
| | | barWidth: 45, |
| | | barGap: '-100%', |
| | | itemStyle: { // lengedææ¬ |
| | | opacity: 0.7, |
| | | opacity: 1, |
| | | color: function(params) { |
| | | return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | offset: 0, |
| | | color: '#00EC28' // 0% å¤çé¢è² |
| | | color: `rgb(35,131,180)` // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, |
| | | color: '#5DF076'// 100% å¤çé¢è² |
| | | color: `rgb(35,131,180)`// 100% å¤çé¢è² |
| | | }], false) |
| | | } |
| | | }, |
| | |
| | | normal: { |
| | | show: true, |
| | | position: 'left', |
| | | |
| | | fontSize: 14, |
| | | fontSize: 16, |
| | | color: colorX, |
| | | // offset: [-50, 15], |
| | | zIndex: 10 |
| | | } |
| | | }, |
| | |
| | | color: function(params) { |
| | | return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | offset: 0, |
| | | color: '#00EC28' // 0% å¤çé¢è² |
| | | color: `rgb(37,196,238)` // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, |
| | | color: '#5DF076'// 100% å¤çé¢è² |
| | | color: `rgb(37,196,238)`// 100% å¤çé¢è² |
| | | }], false) |
| | | } |
| | | }, |
| | |
| | | normal: { |
| | | show: true, |
| | | position: 'top', |
| | | |
| | | fontSize: 14, |
| | | fontSize: 16, |
| | | color: colorX, |
| | | offset: [0, -5] |
| | | } |
| | |
| | | lineStyle: { |
| | | normal: { |
| | | width: 2, |
| | | color: `rgba(72, 226, 198)` |
| | | color: `rgb(108,237,100)` |
| | | } |
| | | }, |
| | | // areaStyle: { |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: `rgba(72, 226, 198, 1)`// 0% å¤çé¢è² |
| | | color: `rgb(108,237,100)`// 0% å¤çé¢è² |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: `rgba(72, 226, 198, 0.2)` // 100% å¤çé¢è² |
| | | color: `rgb(108,237,100)` // 100% å¤çé¢è² |
| | | } |
| | | ], |
| | | globalCoord: false // 缺ç为 false |
| | |
| | | // offset: [0, -5] |
| | | } |
| | | }, |
| | | data: [100, 50, 66.7, 66.7, 25] |
| | | data: data3 |
| | | } |
| | | ] |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--æ»ç综åçæ¿--> |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'All' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | <div> |
| | | <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between"> |
| | | |
| | | <!-- æç©ºèæ¯--> |
| | | <!-- <div ref="starsRef" class="stars">--> |
| | | <!-- <div v-for="(item, index) in starsCount" :key="index" class="star" />--> |
| | | <!-- </div>--> |
| | | <div class="kb_backgroundCustom" /> |
| | | |
| | | <div class="kb_header"> |
| | | <div class="flex_c_c kb_header_text"> |
| | | <div id="topBarLeft" style="width:600px;height:100%" /> |
| | | 车é´è´¨éæ°ååçæ¿ |
| | | <div id="topBarRight" style="width:600px;height:100%;transform:rotate(180deg);" /> |
| | | <div class="kb_headTime" style="top: 35px;left: 20px"> |
| | | <span>æµæ±æ£æ¸
忥ç¨å¶åæéå
¬å¸</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime" style="left: 85px"> |
| | | <span>æµæ±æ°å¯è¿ªæ°åç§æè¡ä»½æéå
¬å¸</span> |
| | | <div class="kb_headTime kb_header_text" style="top: 35px;left: 800px"> |
| | | <span>车é´è´¨éæ°ååçæ¿</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime"> |
| | | <div class="kb_headTime" style="top: 35px;right: 25px"> |
| | | <span>{{ headTime }}</span> |
| | | </div> |
| | | </div> |
| | | <div style=" padding:5px 20px 20px 20px;height: 980px;flex-direction: column;justify-content: space-between"> |
| | | <div |
| | | style=" padding:5px 20px 20px 20px;z-index:2;height: 950px;flex-direction: column;justify-content: space-between;" |
| | | > |
| | | <!-- ä¸é¢é¨å--> |
| | | <div> |
| | | <div style=""> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="blcs" class="svg_class" /> |
| | | æ¥ä¸è¯æ¬¡æ° |
| | | å¨ä¸è¯æ¬¡æ° |
| | | </div> |
| | | <div class="lineContent horn" style="height: 250px;display: flex;justify-content: space-between"> |
| | | <div id="cjzl01" class="flex_c_c" style="width: 300px;height:100%" /> |
| | | <div id="cjzl01" class="flex_c_c" style="width: 300px;height:100%;" /> |
| | | <div id="cjzl02_1" class="flex_c_c" style="width: 300px;height:100%" /> |
| | | <div id="cjzl02_2" class="flex_c_c" style="width: 300px;height:100%" /> |
| | | <div id="cjzl02_3" class="flex_c_c" style="width: 300px;height:100%" /> |
| | |
| | | å¨ä¸è¯æ° |
| | | </div> |
| | | <div class="lineContent horn" style="height: 250px;display: flex;justify-content: space-between"> |
| | | <div id="cjzl04" class="flex_c_c" style="width: 920px;height:100%" /> |
| | | <div id="cjzl03" class="flex_c_c" style="width: 920px;height:100%" /> |
| | | </div> |
| | | </div> |
| | | <div> |
| | |
| | | å¨å®ææ°ï¼çï¼ |
| | | </div> |
| | | <div class="lineContent horn" style="height: 250px;display: flex;justify-content: space-between"> |
| | | <div id="cjzl03" class="flex_c_c" style="width: 920px;height:100%" /> |
| | | <div id="cjzl04" class="flex_c_c" style="width: 920px;height:100%" /> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <svg-icon icon-class="cjrw" class="svg_class" /> |
| | | 车é´ä»»å¡å®ææ
åµ |
| | | </div> |
| | | <div class="lineContent horn" style="height: 310px;display: flex;justify-content: space-between"> |
| | | <div class="lineContent horn" style="height: 280px;display: flex;justify-content: space-between"> |
| | | <el-table |
| | | ref="tableDataRightTopRef" |
| | | :data="tableDataRightTop" |
| | |
| | | style="width: 100%;" |
| | | :header-cell-style="headerCellStyle" |
| | | :cell-style="cellStyle" |
| | | height="275" |
| | | > |
| | | <!-- height=""--> |
| | | <el-table-column |
| | |
| | | width="60" |
| | | /> |
| | | <el-table-column |
| | | prop="cjmc" |
| | | prop="wkshp_name" |
| | | width="220" |
| | | label="车é´åç§°" |
| | | /> |
| | | <el-table-column |
| | | prop="gdh" |
| | | prop="wo_code" |
| | | width="280" |
| | | label="å·¥åå·" |
| | | /> |
| | | <el-table-column |
| | | prop="cpmc" |
| | | prop="partname" |
| | | width="280" |
| | | label="产ååç§°" |
| | | /> |
| | | <el-table-column |
| | | prop="cpgg" |
| | | prop="partspec" |
| | | width="280" |
| | | label="产åè§æ ¼" |
| | | /> |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.partspec ? row.partspec : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="rwsl" |
| | | prop="plan_qty" |
| | | width="220" |
| | | label="任塿°" |
| | | /> |
| | | <el-table-column |
| | | prop="hgsl" |
| | | prop="good_qty" |
| | | width="220" |
| | | label="åæ ¼æ°é" |
| | | /> |
| | | <el-table-column |
| | | prop="blsl" |
| | | prop="radio" |
| | | width="314" |
| | | label="ä¸è¯æ°é" |
| | | label="宿ç(%)" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import './kbCommon.css' |
| | | import { cjzl01, cjzl02, cjzl03, cjzl04, kbTop, loadEcharts } from '@/utils/myEcharts' |
| | | import { QCBadCenterLeftWeek, QCBadCenterRightWeek, QCBadTop, ShopSearch } from '@/api/kanbanManager' |
| | | import { cjzl01, cjzl02, cjzl04, cjzl03, loadEcharts } from '@/utils/myEcharts' |
| | | import { |
| | | QCBadBottomWeek, |
| | | QCBadCenterLeftWeek, |
| | | QCBadCenterRightWeek, |
| | | QCBadTop, |
| | | ShopSearch |
| | | } from '@/api/kanbanManager' |
| | | |
| | | export default { |
| | | name: 'Cjsc', |
| | | data() { |
| | | return { |
| | | headTime: '', |
| | | tableDataRightTop: [ |
| | | { cjmc: '精工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'è£
é
车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: '精工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'è£
é
车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'æºå 工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡#30', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'æºå 工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡#30', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'æºå 工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡#30', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'æºå 工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡#30', rwsl: '1000', hgsl: '900', blsl: '100' }, |
| | | { cjmc: 'æºå 工车é´', gdh: 'MO2023-09-12', cpmc: 'çµæ± å
1', cpgg: '23款æå¨ç²¾æ¨¡#30', rwsl: '1000', hgsl: '900', blsl: '100' } |
| | | ], |
| | | tableDataRightTop: [], |
| | | wkshopArr: [], |
| | | |
| | | cjzl01Data: [], |
| | |
| | | cjzl02_4Data: [], |
| | | cjzl02_5Title: '', |
| | | cjzl02_5Data: [], |
| | | starsCount: 800, // æææ°é |
| | | distance: 900 // é´è· |
| | | cjzl03_xData: [], |
| | | cjzl03_yData: [], |
| | | legendData: [], |
| | | cjzl04Data: [] |
| | | } |
| | | }, |
| | | created() { |
| | | setInterval(this.getNowTime, 1000) |
| | | |
| | | // 䏤尿¶çæ¿å·æ°ä¸æ¬¡ |
| | | // // 䏤尿¶çæ¿å·æ°ä¸æ¬¡ |
| | | setInterval(() => { |
| | | window.location.reload() |
| | | }, 1000 * 60 * 120) |
| | | }, |
| | | mounted() { |
| | | this.getTopBar() |
| | | |
| | | this.getAllApi() |
| | | |
| | | // this.setStarsRef() |
| | | }, |
| | | methods: { |
| | | async getAllApi() { |
| | | const { data: res } = await ShopSearch() |
| | | this.wkshopArr = res |
| | | const temp = ['001', 'CJ001', '006', 'ZS001', '002'] |
| | | // const temp = ['001', 'CJ001', '006', 'ZS001', '002'] |
| | | const temp = this.wkshopArr.map(i => i.org_code) |
| | | |
| | | temp.forEach(i => { |
| | | const aa = this.wkshopArr.find(j => j.org_code === i).org_name |
| | | this.legendData.push(aa) |
| | | }) |
| | | |
| | | const { data: res2 } = await QCBadTop({ wkshopcode: temp.join(',') }) |
| | | for (const res2Key in res2) { |
| | | if (res2Key === 'ALL') { |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | const { data: res3 } = await QCBadCenterLeftWeek({ wkshopcode: temp.join(',') }) |
| | | console.log(res3) // è¿ä¸ªæå¤©å |
| | | |
| | | const { data: res4 } = await QCBadCenterRightWeek({ wkshopcode: temp.join(',') }) |
| | | console.log(res4) |
| | | |
| | | this.getEcharts() |
| | | }, |
| | | setStarsRef() { |
| | | const starNodes = Array.from(this.$refs.starsRef.children) |
| | | starNodes.forEach(item => { |
| | | const speed = 0.2 + Math.random() * 1 |
| | | const thisDistance = this.distance + Math.random() * 300 |
| | | item.style.transformOrigin = `0 0 ${thisDistance}px` |
| | | item.style.transform = ` |
| | | translate3d(0,0,-${thisDistance}px) |
| | | rotateY(${Math.random() * 360}deg) |
| | | rotateX(${Math.random() * -50}deg) |
| | | scale(${speed},${speed})` |
| | | }) |
| | | }, |
| | | // è·åEcharts |
| | | getEcharts() { |
| | | loadEcharts('cjzl01', cjzl01(this.cjzl01Data)) |
| | | |
| | | loadEcharts('cjzl02_1', cjzl02(this.cjzl02_1Title, this.cjzl02_1Data)) |
| | | loadEcharts('cjzl02_2', cjzl02(this.cjzl02_2Title, this.cjzl02_2Data)) |
| | | loadEcharts('cjzl02_3', cjzl02(this.cjzl02_3Title, this.cjzl02_3Data)) |
| | | loadEcharts('cjzl02_4', cjzl02(this.cjzl02_4Title, this.cjzl02_4Data)) |
| | | loadEcharts('cjzl02_5', cjzl02(this.cjzl02_5Title, this.cjzl02_5Data)) |
| | | setInterval(() => { |
| | | QCBadTop({ wkshopcode: temp.join(',') }).then(res2 => { |
| | | for (const res2Key in res2.data) { |
| | | if (res2Key === 'ALL') { |
| | | this.cjzl01Data = res2.data[res2Key].map(i => { |
| | | return { |
| | | name: i.name, |
| | | value: i.cont |
| | | } |
| | | }) |
| | | } |
| | | if (res2Key === temp[0]) { |
| | | this.cjzl02_1Title = this.wkshopArr.find(i => i.org_code === res2Key).org_name |
| | | this.cjzl02_1Data = res2.data[res2Key].map(i => { |
| | | return { |
| | | name: i.name, |
| | | value: i.cont |
| | | } |
| | | }) |
| | | } |
| | | if (res2Key === temp[1]) { |
| | | this.cjzl02_2Title = this.wkshopArr.find(i => i.org_code === res2Key).org_name |
| | | this.cjzl02_2Data = res2.data[res2Key].map(i => { |
| | | return { |
| | | name: i.name, |
| | | value: i.cont |
| | | } |
| | | }) |
| | | } |
| | | if (res2Key === temp[2]) { |
| | | this.cjzl02_3Title = this.wkshopArr.find(i => i.org_code === res2Key).org_name |
| | | this.cjzl02_3Data = res2.data[res2Key].map(i => { |
| | | return { |
| | | name: i.name, |
| | | value: i.cont |
| | | } |
| | | }) |
| | | } |
| | | if (res2Key === temp[3]) { |
| | | this.cjzl02_4Title = this.wkshopArr.find(i => i.org_code === res2Key).org_name |
| | | this.cjzl02_4Data = res2.data[res2Key].map(i => { |
| | | return { |
| | | name: i.name, |
| | | value: i.cont |
| | | } |
| | | }) |
| | | } |
| | | if (res2Key === temp[4]) { |
| | | this.cjzl02_5Title = this.wkshopArr.find(i => i.org_code === res2Key).org_name |
| | | this.cjzl02_5Data = res2.data[res2Key].map(i => { |
| | | return { |
| | | name: i.name, |
| | | value: i.cont |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | loadEcharts('cjzl01', cjzl01(this.cjzl01Data)) |
| | | loadEcharts('cjzl02_1', cjzl02(this.cjzl02_1Title, this.cjzl02_1Data)) |
| | | loadEcharts('cjzl02_2', cjzl02(this.cjzl02_2Title, this.cjzl02_2Data)) |
| | | loadEcharts('cjzl02_3', cjzl02(this.cjzl02_3Title, this.cjzl02_3Data)) |
| | | loadEcharts('cjzl02_4', cjzl02(this.cjzl02_4Title, this.cjzl02_4Data)) |
| | | loadEcharts('cjzl02_5', cjzl02(this.cjzl02_5Title, this.cjzl02_5Data)) |
| | | }, 1000 * 30) |
| | | |
| | | loadEcharts('cjzl03', cjzl03()) |
| | | loadEcharts('cjzl04', cjzl04()) |
| | | const { data: res3 } = await QCBadCenterLeftWeek({ wkshopcode: temp.join(',') })// 左侧 |
| | | for (const res3Key in res3) { |
| | | if (res3Key === temp[0]) { |
| | | this.cjzl03_xData = res3[res3Key].map(i => i.click_date) |
| | | |
| | | this.cjzl03_yData.push(res3[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[1]) { |
| | | this.cjzl03_yData.push(res3[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[2]) { |
| | | this.cjzl03_yData.push(res3[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[3]) { |
| | | this.cjzl03_yData.push(res3[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[4]) { |
| | | this.cjzl03_yData.push(res3[res3Key].map(i => i.count)) |
| | | } |
| | | } |
| | | loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData))// 左侧 |
| | | setInterval(() => { |
| | | QCBadCenterLeftWeek({ wkshopcode: temp.join(',') }).then(res3 => { |
| | | this.cjzl03_xData = [] |
| | | this.cjzl03_yData = [] |
| | | for (const res3Key in res3.data) { |
| | | if (res3Key === temp[0]) { |
| | | this.cjzl03_xData = res3.data[res3Key].map(i => i.click_date) |
| | | |
| | | this.cjzl03_yData.push(res3.data[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[1]) { |
| | | this.cjzl03_yData.push(res3.data[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[2]) { |
| | | this.cjzl03_yData.push(res3.data[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[3]) { |
| | | this.cjzl03_yData.push(res3.data[res3Key].map(i => i.count)) |
| | | } |
| | | if (res3Key === temp[4]) { |
| | | this.cjzl03_yData.push(res3.data[res3Key].map(i => i.count)) |
| | | } |
| | | } |
| | | loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData))// 左侧 |
| | | }) |
| | | }, 1000 * 40) |
| | | |
| | | const { data: res4 } = await QCBadCenterRightWeek({ wkshopcode: temp.join(',') }) // å³ä¾§ |
| | | let a = [] |
| | | let b = [] |
| | | let c = [] |
| | | for (const res4Key in res4) { |
| | | a.push(res4[res4Key].length > 0 ? res4[res4Key][0].good_qty : 0) |
| | | b.push(res4[res4Key].length > 0 ? res4[res4Key][0].plan_qty : 0) |
| | | c.push(res4[res4Key].length > 0 ? res4[res4Key][0].radio : 0) |
| | | } |
| | | this.cjzl04Data.push(a, b, c) |
| | | loadEcharts('cjzl04', cjzl04(this.legendData, this.cjzl04Data[0], this.cjzl04Data[1], this.cjzl04Data[2]))// å³ä¾§ |
| | | |
| | | setInterval(() => { |
| | | QCBadCenterRightWeek({ wkshopcode: temp.join(',') }).then(res4 => { |
| | | a = [] |
| | | b = [] |
| | | c = [] |
| | | this.cjzl04Data = [] |
| | | for (const res4Key in res4.data) { |
| | | a.push(res4.data[res4Key].length > 0 ? res4.data[res4Key][0].good_qty : 0) |
| | | b.push(res4.data[res4Key].length > 0 ? res4.data[res4Key][0].plan_qty : 0) |
| | | c.push(res4.data[res4Key].length > 0 ? res4.data[res4Key][0].radio : 0) |
| | | } |
| | | this.cjzl04Data.push(a, b, c) |
| | | loadEcharts('cjzl04', cjzl04(this.legendData, this.cjzl04Data[0], this.cjzl04Data[1], this.cjzl04Data[2]))// å³ä¾§ |
| | | }) |
| | | }, 1000 * 50) |
| | | |
| | | this.$nextTick(() => { |
| | | this.getQCBadBottomWeek() |
| | | }) |
| | | |
| | | // await this.getEcharts() |
| | | }, |
| | | |
| | | // è·åtopEcharts |
| | | getTopBar() { |
| | | loadEcharts('topBarLeft', kbTop()) |
| | | loadEcharts('topBarRight', kbTop()) |
| | | // è·åEcharts |
| | | getEcharts() { |
| | | // loadEcharts('cjzl01', cjzl01(this.cjzl01Data)) |
| | | |
| | | // loadEcharts('cjzl02_1', cjzl02(this.cjzl02_1Title, this.cjzl02_1Data)) |
| | | // loadEcharts('cjzl02_2', cjzl02(this.cjzl02_2Title, this.cjzl02_2Data)) |
| | | // loadEcharts('cjzl02_3', cjzl02(this.cjzl02_3Title, this.cjzl02_3Data)) |
| | | // loadEcharts('cjzl02_4', cjzl02(this.cjzl02_4Title, this.cjzl02_4Data)) |
| | | // loadEcharts('cjzl02_5', cjzl02(this.cjzl02_5Title, this.cjzl02_5Data)) |
| | | |
| | | // loadEcharts('cjzl04', cjzl04(this.legendData, this.cjzl04Data[0], this.cjzl04Data[1], this.cjzl04Data[2]))// å³ä¾§ |
| | | // loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData))// 左侧 |
| | | }, |
| | | |
| | | getQCBadBottomWeek() { |
| | | const data = { |
| | | wkshopcode: this.wkshopArr.map(i => i.org_code).join(',') |
| | | } |
| | | QCBadBottomWeek(data).then(res => { |
| | | this.tableDataRightTop = res.data |
| | | |
| | | const divData = this.$refs.tableDataRightTopRef.bodyWrapper |
| | | const temp = setInterval(() => { |
| | | // å
ç´ èªå¢è·ç¦»é¡¶é¨1åç´ |
| | | divData.scrollTop += 1 |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | // éç½®tableè·ç¦»é¡¶é¨è·ç¦» |
| | | divData.scrollTop = 0 |
| | | QCBadBottomWeek(data).then(res => { |
| | | this.tableDataRightTop = res.data |
| | | if (this.tableDataRightTop.length > 7) { |
| | | clearInterval(temp) |
| | | this.getQCBadBottomWeek() |
| | | } |
| | | }) |
| | | } |
| | | }, this.tableDataRightTop.length <= 7 ? 1000 * 10 : 300) |
| | | }) |
| | | }, |
| | | // è·åå½åæ¶é´ |
| | | getNowTime() { |
| | |
| | | }, |
| | | headerCellStyle() { |
| | | return { |
| | | // backgroundColor: 'rgb(30 ,33, 46)', |
| | | backgroundColor: '#000', |
| | | backgroundColor: 'transparent ', |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | | border: 'none' |
| | | border: 'none', |
| | | fontSize: '20px' |
| | | } |
| | | }, |
| | | cellStyle() { |
| | | return { |
| | | padding: '7px 0', |
| | | textAlign: 'center', |
| | | // backgroundColor: 'rgba(30, 33, 46)', |
| | | backgroundColor: '#000', |
| | | // backgroundColor: 'transparent', |
| | | color: '#fff', |
| | | border: 'none' |
| | | } |
| | | }, |
| | | headerCellStyleCenter() { |
| | | return { |
| | | // backgroundColor: 'rgb(30 ,33, 46)', |
| | | backgroundColor: '#000', |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | | border: 'none', |
| | | fontSize: '20px' |
| | | } |
| | | }, |
| | | cellStyleCenter() { |
| | | return { |
| | | padding: '7.5px 0', |
| | | textAlign: 'center', |
| | | backgroundColor: '#000', |
| | | color: '#fff', |
| | | backgroundColor: 'transparent ', |
| | | color: '#c7e7ff', |
| | | border: 'none', |
| | | fontSize: '20px' |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | $main_color: #09d8f2; |
| | | $color01: #00FFFF; |
| | | .tableData { |
| | | background: #000; |
| | | background: transparent; |
| | | } |
| | | |
| | | .el-table::before { |
| | |
| | | } |
| | | } |
| | | |
| | | </style> |
| | | |
| | | <!--æç©º--> |
| | | <style lang="css" scoped> |
| | | @keyframes rotate { |
| | | 0% { |
| | | transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(0); |
| | | } |
| | | 100% { |
| | | transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(-360deg); |
| | | } |
| | | ::v-deep .el-table__body-wrapper::-webkit-scrollbar { |
| | | /* width: 0;宽度为0æè */ |
| | | width: 0; |
| | | background: transparent; |
| | | } |
| | | |
| | | .stars { |
| | | transform: perspective(500px); |
| | | transform-style: preserve-3d; |
| | | position: absolute; |
| | | perspective-origin: 50% 100%; |
| | | left: 45%; |
| | | animation: rotate 90s infinite linear; |
| | | bottom: 0; |
| | | z-index: 102; |
| | | } |
| | | |
| | | .star { |
| | | width: 2px; |
| | | height: 2px; |
| | | /*background: #f7f7b6;*/ |
| | | background: #8edffc; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | backface-visibility: hidden; |
| | | z-index: 102; |
| | | ::v-deep .el-table th, |
| | | ::v-deep .el-table tr, |
| | | ::v-deep .el-table td { |
| | | background-color: transparent; |
| | | } |
| | | </style> |
| | |
| | | <div> |
| | | <div class="kb_dashboard"> |
| | | |
| | | <!-- æç©ºèæ¯--> |
| | | <div ref="starsRef" class="stars"> |
| | | <div v-for="(item, index) in starsCount" :key="index" class="star" /> |
| | | </div> |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | <div class="kb_header"> |
| | | <div class="flex_c_c kb_header_text"> |
| | | <div id="topBarLeft" style="width:600px;height:100%" /> |
| | | ä»åºç®¡çæ°ååçæ¿ |
| | | <div id="topBarRight" style="width:600px;height:100%;transform:rotate(180deg);" /> |
| | | <div class="kb_headTime" style="top: 35px;left: 20px"> |
| | | <span>æµæ±æ£æ¸
忥ç¨å¶åæéå
¬å¸</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime" style="left: 85px"> |
| | | <span>æµæ±æ°å¯è¿ªæ°åç§æè¡ä»½æéå
¬å¸</span> |
| | | <div class="kb_headTime kb_header_text" style="top: 35px;left: 800px"> |
| | | <span>ä»åºç®¡çæ°ååçæ¿</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime"> |
| | | <div class="kb_headTime" style="top: 35px;right: 25px"> |
| | | <span>{{ headTime }}</span> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex;justify-content: space-between;padding:0 20px 20px 20px;height: 980px"> |
| | | <div style="width: 1350px; " class="flex_c_b"> |
| | | |
| | | <div style="display: flex;justify-content: space-between;padding:0 20px 20px 20px;height: 950px"> |
| | | <div style="width: 1350px;z-index: 2;margin-top: 50px;" class="flex_c_b"> |
| | | <div style="height: 470px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cpdrk" class="svg_class" /> |
| | | ç产å¾
å
¥åº |
| | | </div> |
| | | <div class="lineContent horn" style="height: 435px"> |
| | | <div class="lineContent horn" style="height: 410px"> |
| | | <el-table |
| | | ref="tableDataTopRef" |
| | | :data="tableDataTop" |
| | |
| | | class="tableData" |
| | | :header-cell-style="headerCellStyleCenter" |
| | | :cell-style="cellStyleCenter" |
| | | height="430" |
| | | height="405" |
| | | > |
| | | <el-table-column |
| | | prop="voucherdate" |
| | |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="materiel_code" |
| | | label="产åç¼å·" |
| | | width="136" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="ellipsis">{{ row.materiel_code }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="materiel_code"--> |
| | | <!-- label="产åç¼å·"--> |
| | | <!-- width="136"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div class="ellipsis">{{ row.materiel_code }}</div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="materiel_name" |
| | | label="产ååç§°" |
| | |
| | | <div class="ellipsis">{{ row.materiel_name }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="specification"--> |
| | | <!-- label="è§æ ¼åå·"--> |
| | | <!-- width="128"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div>--> |
| | | <!-- <div v-else>/</div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="specification" |
| | | label="è§æ ¼åå·" |
| | | width="136" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="stck_name" |
| | | label="é¢å
¥ä»åº" |
| | |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <div style="height: 470px;"> |
| | | <div style="height: 470px;margin-top: 30px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cpdfh" class="svg_class" /> |
| | | 产åå¾
åè´§ |
| | | </div> |
| | | <div class="lineContent horn" style="height: 435px"> |
| | | <div class="lineContent horn" style="height: 410px"> |
| | | <el-table |
| | | ref="tableDataBottomRef" |
| | | :data="tableDataBottom" |
| | |
| | | class="tableData" |
| | | :header-cell-style="headerCellStyleCenter" |
| | | :cell-style="cellStyleCenter" |
| | | height="430" |
| | | height="405" |
| | | > |
| | | <el-table-column |
| | | prop="voucherdate" |
| | | label="åæ®æ¥æ" |
| | | label="éå®è®¢åå·" |
| | | width="131" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column |
| | | prop="customename" |
| | | label="客æ·" |
| | | width="388" |
| | | width="288" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.customename" class="ellipsis">{{ row.customename }}</div> |
| | |
| | | <div v-if="row.materiel_name" class="ellipsis">{{ row.materiel_name }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="specification"--> |
| | | <!-- label="è§æ ¼åå·"--> |
| | | <!-- width="100"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div>--> |
| | | <!-- <div v-else>/</div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="specification" |
| | | label="è§æ ¼åå·" |
| | | width="100" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="quantity" |
| | | label="æ°é" |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | <div style="width: 500px;" class="flex_c_b"> |
| | | <div style="width: 500px;z-index: 2;margin-top: 50px;" class="flex_c_b"> |
| | | <div style="height: 470px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="ph" class="svg_class" /> |
| | | åæåã产ååºåéæè¡Top5 |
| | | </div> |
| | | <div class="lineContent horn" style="height: 435px"> |
| | | <div class="lineContent horn" style="height: 410px"> |
| | | <div id="bar03" style="width: 100%;height:100%; " /> |
| | | <!--/* <div id="bar03" style="width: 100%;height:100%;margin-left: -25px;margin-top: -10px" />*/--> |
| | | </div> |
| | | </div> |
| | | <div style="height: 470px;"> |
| | | <div style="height: 470px;margin-top: 30px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="ph" class="svg_class" /> |
| | | åææåºåéæè¡Top5 |
| | | </div> |
| | | <div class="lineContent horn" style="height: 435px"> |
| | | <div class="lineContent horn" style="height: 410px"> |
| | | <div id="bar04" style="width: 100%;height:100%;" /> |
| | | <!-- <div id="bar04" style="width: 100%;height:100%;margin-left: -25px;margin-top: -10px" />--> |
| | | </div> |
| | |
| | | window.addEventListener('offline', this.updateOnlineStatus) |
| | | this.updateOnlineStatus({ type: this.onLine ? 'online' : 'offline', isFirst: true }) |
| | | |
| | | this.getTopBar() |
| | | |
| | | this.getWareHouseTopLeftData() |
| | | this.getWareHouseTopBottomData() |
| | | this.getEcharts() |
| | | this.setStarsRef() |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('online', this.updateOnlineStatus) |
| | |
| | | } |
| | | } |
| | | }, |
| | | setStarsRef() { |
| | | const starNodes = Array.from(this.$refs.starsRef.children) |
| | | starNodes.forEach(item => { |
| | | const speed = 0.2 + Math.random() * 1 |
| | | const thisDistance = this.distance + Math.random() * 300 |
| | | item.style.transformOrigin = `0 0 ${thisDistance}px` |
| | | item.style.transform = ` |
| | | translate3d(0,0,-${thisDistance}px) |
| | | rotateY(${Math.random() * 360}deg) |
| | | rotateX(${Math.random() * -50}deg) |
| | | scale(${speed},${speed})` |
| | | }) |
| | | }, |
| | | // è·åtopEcharts |
| | | getTopBar() { |
| | | loadEcharts('topBarLeft', kbTop()) |
| | | loadEcharts('topBarRight', kbTop()) |
| | | }, |
| | | |
| | | // è·åå·¦ä¸tableæ°æ® |
| | | getWareHouseTopLeftData() { |
| | | WareHouseTopLeftData().then(res => { |
| | |
| | | }, |
| | | headerCellStyleCenter() { |
| | | return { |
| | | // backgroundColor: 'rgb(30 ,33, 46)', |
| | | backgroundColor: '#000', |
| | | backgroundColor: 'transparent ', |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | |
| | | return { |
| | | padding: '7.5px 0', |
| | | textAlign: 'center', |
| | | backgroundColor: '#000', |
| | | color: '#fff', |
| | | backgroundColor: 'transparent ', |
| | | color: '#c7e7ff', |
| | | border: 'none', |
| | | fontSize: '18px' |
| | | } |
| | |
| | | $main_color:#09d8f2; |
| | | $color01: #00FFFF; |
| | | .tableData{ |
| | | background: #000; |
| | | background: transparent; |
| | | } |
| | | |
| | | ::v-deep .el-table th, |
| | | ::v-deep .el-table tr, |
| | | ::v-deep .el-table td { |
| | | background-color: transparent; |
| | | } |
| | | .el-table__empty-text{ |
| | | color: $main_color; |
| | | } |
| | |
| | | } |
| | | </style> |
| | | |
| | | <!--æç©º--> |
| | | <style lang="css" scoped> |
| | | @keyframes rotate { |
| | | 0% { |
| | | transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(0); |
| | | } |
| | | 100% { |
| | | transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(-360deg); |
| | | } |
| | | } |
| | | |
| | | .stars { |
| | | transform: perspective(500px); |
| | | transform-style: preserve-3d; |
| | | position: absolute; |
| | | perspective-origin: 50% 100%; |
| | | left: 45%; |
| | | animation: rotate 90s infinite linear; |
| | | bottom: 0; |
| | | z-index: 102; |
| | | } |
| | | |
| | | .star { |
| | | width: 2px; |
| | | height: 2px; |
| | | /*background: #f7f7b6;*/ |
| | | background: #8edffc; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | backface-visibility: hidden; |
| | | z-index: 102; |
| | | } |
| | | </style> |
| | |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .kb_backgroundCustom { |
| | | position: absolute; |
| | | width: 1920px; |
| | | height: 1080px; |
| | | background: url('../../assets/images/background001.jpg') no-repeat; |
| | | } |
| | | |
| | | .kb_header { |
| | | /*background-color: #123;*/ |
| | | height: 90px; |
| | |
| | | font-weight: bolder; |
| | | } |
| | | |
| | | .kb_title_text{ |
| | | .kb_title_text { |
| | | font-weight: bolder; |
| | | font-size: 24px; |
| | | } |
| | |
| | | justify-content: space-evenly; |
| | | /*align-content: center;*/ |
| | | } |
| | | |
| | | .flex_c_b { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | .kb_mt10 { |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | /*å
¬åæ ·å¼*/ |
| | | .MarqueeTipsContentClass { |
| | | color: #00ffff; |
| | |
| | | font-size: 32px; |
| | | z-index: 2; |
| | | position: absolute; |
| | | top:80px; |
| | | top: 80px; |
| | | } |
| | | |
| | | /* |
| | |
| | | /*scrollbar END*/ |
| | | |
| | | |
| | | .smallTitle{ |
| | | .smallTitle { |
| | | height: 35px; |
| | | display: flex; |
| | | color: #00ffff; |
| | |
| | | /*align-content: flex-start;*/ |
| | | } |
| | | |
| | | .svg_class{ |
| | | .svg_class { |
| | | margin-right: 10px; |
| | | font-size: 28px; |
| | | } |
| | | |
| | | |
| | | |
| | | .lineContent { |
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard"> |
| | | <!-- æç©ºèæ¯--> |
| | | <div ref="starsRef" class="stars"> |
| | | <div v-for="(item, index) in starsCount" :key="index" class="star" /> |
| | | </div> |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | |
| | | <div class="kb_header"> |
| | | <div class="flex_c_c kb_header_text"> |
| | | <div id="topBarLeft" style="width:600px;height:100%" /> |
| | | 车é´ç»¼åæ°ååçæ¿ |
| | | <div id="topBarRight" style="width:600px;height:100%;transform:rotate(180deg);" /> |
| | | <div class="kb_headTime" style="top: 35px;left: 20px"> |
| | | <span>æµæ±æ£æ¸
忥ç¨å¶åæéå
¬å¸</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime" style="left: 85px"> |
| | | <span>æµæ±æ°å¯è¿ªæ°åç§æè¡ä»½æéå
¬å¸</span> |
| | | <div class="kb_headTime kb_header_text" style="top: 35px;" :style="{left:ShopArr[0]==='202'?'780px':'800px'}"> |
| | | <span>{{ title }}æ°ååçæ¿</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime"> |
| | | <div class="kb_headTime" style="top: 35px;right: 25px"> |
| | | <span>{{ headTime }}</span> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex;justify-content: space-between;padding:0 20px 20px 20px"> |
| | | |
| | | <div style="display: flex;justify-content: space-between;padding:0 20px 20px 20px;"> |
| | | <!-- 左边--> |
| | | <div style="width: 1400px ;height: 969px;" class="flex_c_b"> |
| | | <div style="width: 1400px ;height: 950px;z-index: 2;margin-top:50px;justify-content:flex-start" class="flex_c_b"> |
| | | <div> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cxjg" class="svg_class" /> |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | <div> |
| | | <div style="margin-top: 20px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cxmc" class="svg_class" /> |
| | | 产线å å·¥ä»»å¡ |
| | | </div> |
| | | <div class="lineContent horn"> |
| | | <div class="lineContent horn" style="height: 400px;"> |
| | | <el-table |
| | | ref="tableDataLeftBottomRef" |
| | | :data="tableDataLeftBottom" |
| | |
| | | style="width: 100%;" |
| | | :header-cell-style="headerCellStyle" |
| | | :cell-style="cellStyle" |
| | | height="428" |
| | | height="390" |
| | | > |
| | | <el-table-column |
| | | prop="RowNum" |
| | |
| | | <el-table-column |
| | | prop="plan_qty" |
| | | label="任塿°é" |
| | | width="105" |
| | | width="106" |
| | | /> |
| | | <el-table-column |
| | | prop="good_qty" |
| | | label="å®å·¥æ°é" |
| | | width="105" |
| | | width="106" |
| | | /> |
| | | <el-table-column |
| | | prop="ng_qty" |
| | | label="ä¸è¯æ°é" |
| | | width="105" |
| | | width="106" |
| | | /> |
| | | <el-table-column |
| | | label="宿ç" |
| | | width="105" |
| | | width="106" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div>{{ parseFloat((row.good_qty * 100 / row.plan_qty).toFixed(2)) }}%</div> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- å³è¾¹--> |
| | | <div style="width: 450px;height: 969px;" class="flex_c_b"> |
| | | <div style="width: 450px;height: 950px;z-index: 2;margin-top:50px;justify-content:flex-start" class="flex_c_b"> |
| | | <div> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="drwg" class="svg_class" /> |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | <div> |
| | | <div style="margin-top: 20px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="top5" class="svg_class" /> |
| | | ä¸å¨ä¸è¯Top5 |
| | | </div> |
| | | <div class="lineContent horn"> |
| | | <div class="lineContent horn" style="height: 400px;"> |
| | | <div id="bar01" class="flex_c_c" style="width: 100%;height:100%" /> |
| | | </div> |
| | | |
| | |
| | | lineContent3: [], |
| | | ShopArr: [], // 车é´ç¼ç æ°ç» |
| | | |
| | | starsCount: 800, // æææ°é |
| | | distance: 900 // é´è· |
| | | |
| | | codeArr: [ |
| | | { code: '202', name: 'æºå 工车é´' }, |
| | | { code: '205', name: 'å
è£
车é´' }, |
| | | { code: '204', name: 'å·æ¶è½¦é´' }, |
| | | { code: '203', name: 'æå
车é´' }, |
| | | { code: '201', name: 'åé¸è½¦é´' } |
| | | ], |
| | | title: '车é´ç»¼å' |
| | | } |
| | | }, |
| | | created() { |
| | | setInterval(this.getNowTime, 1000) |
| | | |
| | | // this.getShopSearch() |
| | | let code = '' |
| | | if (window.location.hash.indexOf('?') !== -1) { |
| | | code = window.location.hash.split('?')[1].split('=')[1] |
| | | this.title = this.codeArr.find(i => i.code === code).name |
| | | this.ShopArr = [code] |
| | | } |
| | | // 䏤尿¶çæ¿å·æ°ä¸æ¬¡ |
| | | setInterval(() => { |
| | | window.location.reload() |
| | |
| | | window.addEventListener('online', this.updateOnlineStatus) |
| | | window.addEventListener('offline', this.updateOnlineStatus) |
| | | this.updateOnlineStatus({ type: this.onLine ? 'online' : 'offline', isFirst: true }) |
| | | |
| | | this.getTopBar() |
| | | |
| | | this.getShopSearch() |
| | | this.setStarsRef() |
| | | this.getAllApi() |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('online', this.updateOnlineStatus) |
| | | window.removeEventListener('offline', this.updateOnlineStatus) |
| | | }, |
| | | methods: { |
| | | getAllApi() { |
| | | this.getShopSearchLine() |
| | | this.getLineSearchTopRightData() |
| | | this.getLeftBottomData() |
| | | this.getEcharts() |
| | | }, |
| | | // æ´æ°ç½ç»ç¶æ |
| | | updateOnlineStatus(e) { |
| | | if (e.isFirst) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | setStarsRef() { |
| | | const starNodes = Array.from(this.$refs.starsRef.children) |
| | | starNodes.forEach(item => { |
| | | const speed = 0.2 + Math.random() * 1 |
| | | const thisDistance = this.distance + Math.random() * 300 |
| | | item.style.transformOrigin = `0 0 ${thisDistance}px` |
| | | item.style.transform = ` |
| | | translate3d(0,0,-${thisDistance}px) |
| | | rotateY(${Math.random() * 360}deg) |
| | | rotateX(${Math.random() * -50}deg) |
| | | scale(${speed},${speed})` |
| | | }) |
| | | }, |
| | | // è·å车é´ç¼ç |
| | | async getShopSearch() { |
| | | const res1 = await ShopSearch() |
| | | if (res1.code === '200') { |
| | | this.ShopArr = [] |
| | | res1.data.forEach(item => { |
| | | this.ShopArr.push(item.org_code) |
| | | }) |
| | | // async getShopSearch() { |
| | | // const res1 = await ShopSearch() |
| | | // if (res1.code === '200') { |
| | | // this.ShopArr = [] |
| | | // res1.data.forEach(item => { |
| | | // this.ShopArr.push(item.org_code) |
| | | // }) |
| | | // |
| | | // if (this.ShopArr.length > 0) { |
| | | // this.getShopSearchLine() |
| | | // this.getLineSearchTopRightData() |
| | | // this.getLeftBottomData() |
| | | // this.getEcharts() |
| | | // } |
| | | // } |
| | | // if (this.ShopArr.length > 0) { |
| | | // setInterval(() => { |
| | | // this.ShopSearchTask = ShopSearch().then(res1 => { |
| | | // if (res1.code === '200') { |
| | | // this.ShopArr = [] |
| | | // res1.data.forEach(item => { |
| | | // this.ShopArr.push(item.org_code) |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, 1000 * 60) |
| | | // } |
| | | // }, |
| | | // 产线å å·¥ä¸ä»»å¡ |
| | | getShopSearchLine() { |
| | | let length, count |
| | | LineSearchTopLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.lineContent = res.data // è°ç¨æ¥å£è¿åçæ°æ® |
| | | this.number1 = this.lineContent.length // 产线å å·¥ä¸ä»»å¡ åæ° |
| | | |
| | | if (this.ShopArr.length > 0) { |
| | | this.getShopSearchLine() |
| | | this.getRightRightData() |
| | | this.getLeftBottomData() |
| | | this.getEcharts() |
| | | } |
| | | } |
| | | if (this.ShopArr.length > 0) { |
| | | setInterval(() => { |
| | | this.ShopSearchTask = ShopSearch().then(res1 => { |
| | | if (res1.code === '200') { |
| | | this.ShopArr = [] |
| | | res1.data.forEach(item => { |
| | | this.ShopArr.push(item.org_code) |
| | | const newData = [] |
| | | if (this.lineContent.length > 0) { |
| | | this.lineContent.forEach(item => { |
| | | if (item.children.length > 5) { |
| | | newData.push({ |
| | | workcode: item.workcode, |
| | | partname: item.partname, |
| | | partnumber: item.partnumber, |
| | | partspec: item.partspec, |
| | | qty: item.qty, |
| | | saleordercode: item.saleordercode, |
| | | uom: item.uom, |
| | | children: item.children.slice(0, 5) |
| | | }) |
| | | |
| | | newData.push({ |
| | | workcode: item.workcode, |
| | | partname: item.partname, |
| | | partnumber: item.partnumber, |
| | | partspec: item.partspec, |
| | | qty: item.qty, |
| | | saleordercode: item.saleordercode, |
| | | uom: item.uom, |
| | | children: item.children.slice(5) |
| | | }) |
| | | } else { |
| | | newData.push({ |
| | | workcode: item.workcode, |
| | | partname: item.partname, |
| | | partnumber: item.partnumber, |
| | | partspec: item.partspec, |
| | | qty: item.qty, |
| | | saleordercode: item.saleordercode, |
| | | uom: item.uom, |
| | | children: item.children |
| | | }) |
| | | } |
| | | }) |
| | | }, 1000 * 60) |
| | | } |
| | | |
| | | // console.log(newData.length, 9777) |
| | | } |
| | | |
| | | this.lineContent = newData |
| | | length = this.lineContent.length |
| | | count = Math.ceil(length / 3) // éè¦è½®æçç»æ° 3个为ä¸ç» |
| | | this.lineContent3 = this.lineContent.slice(0, 3) |
| | | }) |
| | | |
| | | let start = 0 |
| | | this.ShopSearchLineTask = setInterval(() => { |
| | | if (Math.floor(start / 3) === count && count !== 0) { |
| | | start = 0 |
| | | LineSearchTopLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.lineContent = res.data // è°ç¨æ¥å£è¿åçæ°æ® |
| | | this.number1 = this.lineContent.length // 产线å å·¥ä¸ä»»å¡ åæ° |
| | | |
| | | const newData = [] |
| | | if (this.lineContent.length > 0) { |
| | | this.lineContent.forEach(item => { |
| | | if (item.children.length > 5) { |
| | | newData.push({ |
| | | workcode: item.workcode, |
| | | partname: item.partname, |
| | | partnumber: item.partnumber, |
| | | partspec: item.partspec, |
| | | qty: item.qty, |
| | | saleordercode: item.saleordercode, |
| | | uom: item.uom, |
| | | children: item.children.slice(0, 5) |
| | | } |
| | | ) |
| | | |
| | | newData.push({ |
| | | workcode: item.workcode, |
| | | partname: item.partname, |
| | | partnumber: item.partnumber, |
| | | partspec: item.partspec, |
| | | qty: item.qty, |
| | | saleordercode: item.saleordercode, |
| | | uom: item.uom, |
| | | children: item.children.slice(5) |
| | | }) |
| | | } else { |
| | | newData.push({ |
| | | workcode: item.workcode, |
| | | partname: item.partname, |
| | | partnumber: item.partnumber, |
| | | partspec: item.partspec, |
| | | qty: item.qty, |
| | | saleordercode: item.saleordercode, |
| | | uom: item.uom, |
| | | children: item.children |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | this.lineContent = newData |
| | | length = this.lineContent.length |
| | | count = Math.ceil(length / 3) // éè¦è½®æçç»æ° 3个为ä¸ç» |
| | | this.lineContent3 = this.lineContent.slice(0, 3) |
| | | }) |
| | | } else if (count === 0) { |
| | | clearInterval(this.ShopSearchLineTask) |
| | | this.getShopSearchLine() |
| | | } |
| | | |
| | | this.lineContent3 = this.lineContent.slice(start, start + 3) |
| | | start = start + 3 |
| | | }, 1000 * 10) |
| | | }, |
| | | // 产线å å·¥ä¸ä»»å¡ |
| | | getShopSearchLine() { |
| | | // 产线å å·¥ä¸ä»»å¡(å¤ä»½ åå
çæ¹æ³) |
| | | getShopSearchLineBack() { |
| | | let length, count |
| | | LineSearchTopLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.lineContent = res.data |
| | |
| | | }, |
| | | |
| | | // è·åå³ä¸æ°æ® 彿¥å®å·¥äº§åæ°éæè¡ |
| | | getRightRightData() { |
| | | let startValue = 0 // åå§å¼ |
| | | const scale = 10// å»åº¦ |
| | | |
| | | getLineSearchTopRightData() { |
| | | LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataRightTopTemp = res.data |
| | | this.tableDataRightTop = res.data |
| | | const divData = this.$refs.tableDataRightTopRef.bodyWrapper |
| | | |
| | | this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | const temp = setInterval(() => { |
| | | divData.scrollTop += 1 |
| | | |
| | | const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | divData.scrollTop = 0 |
| | | LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataRightTop = res.data |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getRightRightData() |
| | | if (this.tableDataRightTop.length > 10) { |
| | | clearInterval(temp) |
| | | this.getLineSearchTopRightData() |
| | | } |
| | | }) |
| | | } |
| | | |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }, this.tableDataRightTop.length <= 10 ? 1000 * 15 : 300) |
| | | }) |
| | | |
| | | // let startValue = 0 // åå§å¼ |
| | | // const scale = 10// å»åº¦ |
| | | // |
| | | // LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | // this.tableDataRightTopTemp = res.data |
| | | // |
| | | // this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | // |
| | | // const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | // let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | // |
| | | // const timer = setInterval(() => { |
| | | // startValue = startValue + scale |
| | | // this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | // if (nowLoop === loop) { |
| | | // clearInterval(timer) |
| | | // this.getLineSearchTopRightData() |
| | | // } |
| | | // |
| | | // nowLoop++ |
| | | // }, 1000 * 10) |
| | | // }) |
| | | }, |
| | | // 产线å å·¥ä»»å¡ å·¦ä¸æ°æ® |
| | | getLeftBottomData() { |
| | | let startValue = 0 // åå§å¼ |
| | | const scale = 10// å»åº¦ |
| | | |
| | | LineSearchBottomLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataLeftBottomTemp = res.data |
| | | this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | this.tableDataLeftBottom = res.data |
| | | |
| | | const loop = Math.floor(this.tableDataLeftBottomTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | const divData = this.$refs.tableDataLeftBottomRef.bodyWrapper |
| | | this.TableDataRollTask = setInterval(() => { |
| | | // å
ç´ èªå¢è·ç¦»é¡¶é¨1åç´ |
| | | divData.scrollTop += 1 |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | divData.scrollTop = 0 |
| | | LineSearchBottomLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataLeftBottom = res.data |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | nowLoop++ // æ¾å¨è¿éå¯ä»¥äºï¼å°±çå¾
é¶ç¹å ç§ |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getLeftBottomData() |
| | | if (this.tableDataLeftBottom.length > 10) { |
| | | clearInterval(this.TableDataRollTask) |
| | | this.getLeftBottomData() |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // nowLoop++ //ä¹åæ¾å¨è¿éé»è¾ä¸å¯¹ï¼ç¸å·®äºä¸æ¬¡ç循ç¯ï¼ç¸å½äºå¤çå¾
äº10ç§ |
| | | }, 1000 * 10) |
| | | }, this.tableDataLeftBottom.length <= 10 ? 1000 * 15 : 200) |
| | | }) |
| | | |
| | | // let startValue = 0 // åå§å¼ |
| | | // const scale = 10// å»åº¦ |
| | | // |
| | | // LineSearchBottomLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | // this.tableDataLeftBottomTemp = res.data |
| | | // this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | // |
| | | // const loop = Math.floor(this.tableDataLeftBottomTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | // let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | // |
| | | // const timer = setInterval(() => { |
| | | // startValue = startValue + scale |
| | | // this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | // nowLoop++ // æ¾å¨è¿éå¯ä»¥äºï¼å°±çå¾
é¶ç¹å ç§ |
| | | // if (nowLoop === loop) { |
| | | // clearInterval(timer) |
| | | // this.getLeftBottomData() |
| | | // } |
| | | // |
| | | // // nowLoop++ //ä¹åæ¾å¨è¿éé»è¾ä¸å¯¹ï¼ç¸å·®äºä¸æ¬¡ç循ç¯ï¼ç¸å½äºå¤çå¾
äº10ç§ |
| | | // }, 1000 * 10) |
| | | // }) |
| | | }, |
| | | |
| | | getEcharts() { |
| | |
| | | }) |
| | | }, 1000 * 10) |
| | | }, |
| | | // è·åtopEcharts |
| | | getTopBar() { |
| | | loadEcharts('topBarLeft', kbTop()) |
| | | loadEcharts('topBarRight', kbTop()) |
| | | }, |
| | | // è·åå½åæ¶é´ |
| | | getNowTime() { |
| | | const dt = new Date() |
| | |
| | | }, |
| | | headerCellStyle() { |
| | | return { |
| | | backgroundColor: '#000', |
| | | backgroundColor: 'transparent ', |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | |
| | | return { |
| | | padding: '7px 0', |
| | | textAlign: 'center', |
| | | backgroundColor: '#000', |
| | | color: '#fff', |
| | | backgroundColor: 'transparent ', |
| | | color: '#c7e7ff', |
| | | border: 'none', |
| | | fontSize: '18px' |
| | | } |
| | |
| | | $main_color: #09d8f2; |
| | | $color01: #00FFFF; |
| | | |
| | | ::v-deep .el-table th, |
| | | ::v-deep .el-table tr, |
| | | ::v-deep .el-table td { |
| | | background-color: transparent; |
| | | } |
| | | |
| | | .tableData { |
| | | background: #000; |
| | | background: transparent; |
| | | } |
| | | |
| | | .el-table::before { |
| | |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | </style> |
| | | |
| | | <!--æç©º--> |
| | | <style lang="css" scoped> |
| | | @keyframes rotate { |
| | | 0% { |
| | | transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(0); |
| | | } |
| | | 100% { |
| | | transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(-360deg); |
| | | } |
| | | } |
| | | |
| | | .stars { |
| | | transform: perspective(500px); |
| | | transform-style: preserve-3d; |
| | | position: absolute; |
| | | perspective-origin: 50% 100%; |
| | | left: 45%; |
| | | animation: rotate 90s infinite linear; |
| | | bottom: 0; |
| | | z-index: 102; |
| | | } |
| | | |
| | | .star { |
| | | width: 2px; |
| | | height: 2px; |
| | | /*background: #f7f7b6;*/ |
| | | background: #8edffc; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | backface-visibility: hidden; |
| | | z-index: 102; |
| | | ::v-deep .el-table__body-wrapper::-webkit-scrollbar { |
| | | /* width: 0;宽度为0æè */ |
| | | width: 0; |
| | | } |
| | | </style> |