diff --git a/src/assets/icon/线@2x.png b/src/assets/icon/xjph-table.png similarity index 100% rename from src/assets/icon/线@2x.png rename to src/assets/icon/xjph-table.png diff --git a/src/components/screen-custom-table/index.vue b/src/components/screen-custom-table/index.vue index c24279a..06a1995 100644 --- a/src/components/screen-custom-table/index.vue +++ b/src/components/screen-custom-table/index.vue @@ -42,6 +42,8 @@ v-for="(td, order) in item" :key="order" v-html="td"> + @@ -66,6 +68,10 @@ export default { } }, props: { + showTableLine: { + type: Boolean, + default: false + }, headerList: { type: Array, required: true, @@ -264,6 +270,7 @@ li { align-items: center; justify-content: space-around; margin-top: 19px; + position: relative; .table-td { padding: 0 5px; @@ -287,6 +294,12 @@ li { // &:hover { // background: rgba(255, 255, 255, 0.1); // } + > img { + position: absolute; + bottom: 0px; + width: 591px; + height: 10px; + } } } } diff --git a/src/components/screen-echarts-frame/index.vue b/src/components/screen-echarts-frame/index.vue new file mode 100644 index 0000000..a132d56 --- /dev/null +++ b/src/components/screen-echarts-frame/index.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/data/index.js b/src/data/index.js index afbc848..56c03ba 100644 --- a/src/data/index.js +++ b/src/data/index.js @@ -196,3 +196,80 @@ export function loadYtalList() { return ytalList } + +export function loadXjphList() { + let xjphList = [ + { + no: '1', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + }, + { + no: '2', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + }, + { + no: '3', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + }, + { + no: '4', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + }, + { + no: '5', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + }, + { + no: '6', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + }, + { + no: '7', + unit: '敦化路社区', + dys: 460, + hts: 1960, + yts: 1376, + sqs: 8760, + jal: '92.5%', + myl: '98.1%' + } + ] + + return xjphList +} diff --git a/src/style/right2.scss b/src/style/right2.scss new file mode 100644 index 0000000..f001e7d --- /dev/null +++ b/src/style/right2.scss @@ -0,0 +1,148 @@ +.right2 { + margin-left: 12px; +} +.b-dyxf { + height: 328px; + + .dyxf-main { + position: relative; + + .dyxf-pie { + position: absolute; + top: 45px; + left: 15px; + + .pie { + width: 200px; + height: 180px; + } + + .pie-title { + font-size: 18px; + font-family: Alibaba PuHuiTi; + font-weight: 400; + color: #ffffff; + margin-top: -10px; + margin-left: 47px; + } + } + + .dyxf-static { + position: absolute; + top: 60px; + left: 235px; + + .dyxf-static-row { + display: flex; + justify-content: space-around; + + .static-item { + .item-title { + font-size: 16px; + font-family: Alibaba PuHuiTi; + font-weight: 400; + color: #ffffff; + text-shadow: 0px 2px 4px #004189; + } + + .item-num { + margin-top: 10px; + display: flex; + align-items: flex-end; + background-image: url('./../assets/icon/dyxf-bg.png'); + background-size: 100% 100%; + padding-top: 5px; + + .num-left { + line-height: 30px; + margin-left: 20px; + font-size: 24px; + font-family: Arial; + font-weight: bold; + color: #ffffff; + } + + .num-right { + margin-bottom: 3px; + margin-left: 12px; + font-size: 16px; + font-family: Arial; + font-weight: bold; + color: #ffb10a; + text-shadow: 0px 2px 4px #004189; + } + } + } + .item2 { + margin-left: 25px; + } + } + .row2 { + margin-top: 30px; + } + } + } +} +.b-dyqz { + height: 327px; + + .dyqz-main { + .line { + width: 600px; + height: 270px; + } + } +} + +.b-xjph { + height: 269px; + + .table { + box-sizing: border-box; + padding: 17px 11px; + width: 100%; + height: 100%; + box-sizing: border-box; + .screen-custom-table { + ::v-deep ul { + .table-body .scroll-view .table-tr + .table-tr { + border: none; + } + .table-header { + font-size: 16px; + font-family: PingFang-SC-Bold; + } + .table-body { + height: 199px; + .table-tr { + margin-top: 12px; + // background-image: url('./../assets/icon/tableTdBg.png'); + // background-size: 100% 100%; + } + // .table-tr:nth-child(2n) { + // background: rgba(11, 68, 135, 0.1); + // &:hover { + // .table-td { + // color: #fff !important; + // } + // } + // } + // .table-tr:nth-child(2n + 1) { + // &:hover { + // .table-td { + // color: #fff !important; + // } + // } + // } + // .table-tr { + // .table-td:nth-child(2) { + // white-space: nowrap; + // overflow: hidden; + // text-overflow: ellipsis; + // } + // } + } + } + } + } +} diff --git a/src/views/screenRight/lineOption.js b/src/views/screenRight/lineOption.js new file mode 100644 index 0000000..ed90a57 --- /dev/null +++ b/src/views/screenRight/lineOption.js @@ -0,0 +1,127 @@ +import * as echarts from 'echarts' + +export function lineOption() { + return { + color: ['#FFB10A', '#71F3FB'], + title: { + // text: 'Gradient Stacked Area Chart' + }, + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross', + label: { + backgroundColor: '#6a7985' + } + } + }, + legend: { + // data: ['党员建群', '党成员'], + // color: ['#FFB10A', '#71F3FB'], + data: [ + { color: '#FFB10A', name: '党成员' }, + { color: '#71F3FB', name: '党员建群' } + ], + icon: 'rect', + itemWidth: 12, // 长方形宽度 + itemHeight: 4, // 长方形高度 + textStyle: { + color: '#FFFFFF' + } + }, + + grid: { + left: '6%', + right: '6%', + bottom: '10%', + containLabel: true + }, + xAxis: [ + { + type: 'category', + boundaryGap: false, + data: [ + '敦化路街道', + '南宁路街道', + '洛阳路街道', + '华阳路街道', + '黄台路街道' + ], + offset: 5, + axisLine: { + lineStyle: { + color: '#B8D3F1' + } + } + } + ], + yAxis: [ + { + type: 'value', + offset: 5, + axisLine: { + lineStyle: { + color: '#B8D3F1' + } + } + } + ], + series: [ + { + name: '党成员', + type: 'line', + + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: 'rgba(0, 255, 246,1)' + }, + { + offset: 1, + color: 'rgba(0, 210, 255,0.4)' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [120, 282, 111, 234, 220] + }, + { + name: '党员建群', + type: 'line', + + smooth: false, + lineStyle: { + width: 3, + color: '#ffb10a' + }, + showSymbol: false, + // areaStyle: { + // opacity: 0.8, + // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + // { + // offset: 0, + // color: '#ffb10a' + // }, + // { + // offset: 1, + // color: '#bf9e58' + // } + // ]) + // }, + emphasis: { + focus: 'series' + }, + data: [50, 20, 40, 10, 60] + } + ] + } +} diff --git a/src/views/screenRight/pieOption.js b/src/views/screenRight/pieOption.js new file mode 100644 index 0000000..c18699b --- /dev/null +++ b/src/views/screenRight/pieOption.js @@ -0,0 +1,99 @@ +import * as echarts from 'echarts' + +export function pieOption() { + return { + title: { + text: '0', + top: '42%', + left: 'center', + textStyle: { + width: '100%', + fontSize: 30, + fontStyle: 'italic', + color: '#00E0FB' + }, + itemGap: 30 + }, + tooltip: { + show: false + }, + + series: [ + //外环 + { + type: 'pie', + // 起始刻度的角度,默认为 90 度,即圆心的正上方。0 度为圆心的正右方。 + startAngle: 0, + hoverAnimation: false, + // tooltip: { + // }, + radius: ['70%', '72%'], + label: { + normal: { + show: false + } + }, + labelLine: { + normal: { + show: false + } + }, + data: [ + { + value: 360, + itemStyle: { + normal: { + color: echarts.graphic.LinearGradient(0, 0, 1, 1, [ + { offset: 0, color: '#C7E9FF' }, + { offset: 1, color: '#00354B' } + ]) + } + } + } + ] + }, + { + name: 'Access From', + type: 'pie', + radius: ['45%', '60%'], + startAngle: -90, + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + emphasis: { + label: { + show: true, + fontSize: 40, + fontWeight: 'bold' + } + }, + labelLine: { + show: false + }, + data: [ + { + value: 0, + itemStyle: { + normal: { + color: echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: '#C7E9FF' }, + { offset: 1, color: '#3EDAF7 ' } + ]) + } + } + }, + { + value: 0, + itemStyle: { + normal: { + color: 'rgba(34, 138, 255, 0.27)' + } + } + } + ] + } + ] + } +} diff --git a/src/views/screenRight/right2.vue b/src/views/screenRight/right2.vue index c2bd9e2..49e76e6 100644 --- a/src/views/screenRight/right2.vue +++ b/src/views/screenRight/right2.vue @@ -1,38 +1,220 @@ - \ No newline at end of file