投入品监管和生产经营主体(未完)
This commit is contained in:
parent
05249ceca6
commit
6b04fa3055
2
components.d.ts
vendored
2
components.d.ts
vendored
@ -42,8 +42,6 @@ declare module 'vue' {
|
|||||||
CustomScrollTitle: typeof import('./src/components/custom-scroll-title/index.vue')['default']
|
CustomScrollTitle: typeof import('./src/components/custom-scroll-title/index.vue')['default']
|
||||||
CustomTableOperate: typeof import('./src/components/custom-table-operate/index.vue')['default']
|
CustomTableOperate: typeof import('./src/components/custom-table-operate/index.vue')['default']
|
||||||
CustomTableTree: typeof import('./src/components/custom-table-tree/index.vue')['default']
|
CustomTableTree: typeof import('./src/components/custom-table-tree/index.vue')['default']
|
||||||
IndexCo: typeof import('./src/components/custom-echart-line/index-co.vue')['default']
|
|
||||||
IndexRe: typeof import('./src/components/new-hyaline-cake/index-re.vue')['default']
|
|
||||||
NewHyalineCake: typeof import('./src/components/custom-echart-hyaline-cake/new-hyaline-cake.vue')['default']
|
NewHyalineCake: typeof import('./src/components/custom-echart-hyaline-cake/new-hyaline-cake.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
|
@ -128,11 +128,11 @@ export default {
|
|||||||
option.series[1].data = yDataLine.value;
|
option.series[1].data = yDataLine.value;
|
||||||
option.xAxis.data = xData.value;
|
option.xAxis.data = xData.value;
|
||||||
setOptions(option);
|
setOptions(option);
|
||||||
// startAutoPlay({
|
startAutoPlay({
|
||||||
// interval: 2000,
|
interval: 2000,
|
||||||
// seriesIndex: 0,
|
seriesIndex: 0,
|
||||||
// showTooltip: true,
|
showTooltip: true,
|
||||||
// });
|
});
|
||||||
getInstance()?.off('click', onClick);
|
getInstance()?.off('click', onClick);
|
||||||
getInstance()?.on('click', onClick);
|
getInstance()?.on('click', onClick);
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,9 @@ export default {
|
|||||||
const option = Object.assign(
|
const option = Object.assign(
|
||||||
{
|
{
|
||||||
tooltip: {
|
tooltip: {
|
||||||
backgroundColor: 'rgba(18, 55, 85, 0.8);',
|
// tooltip样式调整添加这个类名
|
||||||
|
className: 'custom-tooltip-container', // 自定义父容器类名
|
||||||
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
||||||
borderColor: '#35d0c0',
|
borderColor: '#35d0c0',
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
position: function (point, params, dom, rect, size) {
|
position: function (point, params, dom, rect, size) {
|
||||||
|
@ -56,8 +56,9 @@ export default {
|
|||||||
zlevel: 1,
|
zlevel: 1,
|
||||||
name: '漏斗图',
|
name: '漏斗图',
|
||||||
type: 'funnel',
|
type: 'funnel',
|
||||||
|
top: '11%',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
width: '28%',
|
width: '25%',
|
||||||
sort: 'ascending',
|
sort: 'ascending',
|
||||||
gap: 0,
|
gap: 0,
|
||||||
label: {
|
label: {
|
||||||
@ -66,38 +67,51 @@ export default {
|
|||||||
width: '200px',
|
width: '200px',
|
||||||
align: 'right',
|
align: 'right',
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
|
if (!params.data.reaVal) return '';
|
||||||
let arr = [`{a|${params.data.name}}`, `{b| ${params.data.reaVal}%}`];
|
let arr = [`{a|${params.data.name}}`, `{b| ${params.data.reaVal}%}`];
|
||||||
return arr.join('\n');
|
return arr.join('\n');
|
||||||
// params.data.name + ':' + params.data.reaVal + '%'};
|
|
||||||
},
|
},
|
||||||
rich: {
|
rich: {
|
||||||
a: { color: '#fff', fontSize: '16px' },
|
a: { color: '#fff', fontSize: '16px' },
|
||||||
b: { color: '#05FCC6', fontSize: '16px' },
|
b: { color: '#05FCC6', fontSize: '16px', marginTop: '10px' },
|
||||||
},
|
},
|
||||||
verticalAlign: 'middle',
|
verticalAlign: 'middle',
|
||||||
padding: [5, 10], // 增加标签内边距
|
padding: [5, 6], // 增加标签内边距
|
||||||
},
|
},
|
||||||
labelLine: {
|
labelLine: {
|
||||||
show: true,
|
show: true,
|
||||||
length: 20,
|
length: 10,
|
||||||
length2: 30,
|
length2: 50,
|
||||||
smooth: true,
|
smooth: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
width: 2,
|
width: 1,
|
||||||
color: '#ffffff',
|
color: '#ffffff',
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
type: 'solid',
|
type: 'solid',
|
||||||
},
|
},
|
||||||
// 自定义折线路径(从标签到数据点的像素坐标)
|
|
||||||
// 参数:idx-数据索引, params-包含标签位置信息的对象
|
|
||||||
// formatter: function (idx, params) {
|
|
||||||
// return [
|
|
||||||
// [params.labelRect.x, params.labelRect.y], // 起点(标签位置)
|
|
||||||
// [params.labelRect.x + 20, params.labelRect.y], // 水平线段
|
|
||||||
// [params.labelRect.x + 20, params.dataCoord[1]] // 垂直线段
|
|
||||||
// ];
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
|
// 添加第二段折线
|
||||||
|
// markLine: {
|
||||||
|
// symbol: 'none', // 隐藏端点
|
||||||
|
// lineStyle: {
|
||||||
|
// type: 'solid',
|
||||||
|
// color: '#fff',
|
||||||
|
// width: 1,
|
||||||
|
// },
|
||||||
|
// data: [
|
||||||
|
// // 从默认 labelLine 的终点到自定义位置
|
||||||
|
// [
|
||||||
|
// {
|
||||||
|
// coord: [50, 50], // 第一段线的终点(需动态计算)
|
||||||
|
// name: 'Label1',
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// coord: [80, 50], // 第二段线的终点
|
||||||
|
// name: 'Label1',
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
show: false,
|
show: false,
|
||||||
borderColor: '#fff',
|
borderColor: '#fff',
|
||||||
|
@ -155,7 +155,7 @@ const handleCommand = (data) => {
|
|||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
letter-spacing: 4px;
|
letter-spacing: 4px;
|
||||||
text-shadow: -2px 0 0 1px #add8f1;
|
text-shadow: -2px 0 10px #add8f1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 36px 0 72px;
|
padding: 0 36px 0 72px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -9,6 +9,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-tooltip-container{
|
||||||
|
border-radius: 8px !important;
|
||||||
|
padding: 6px 16px 6px 8px !important;
|
||||||
|
background-color: rgba(0,0,0,0.7) !important;
|
||||||
|
backdrop-filter: blur(8px) !important;
|
||||||
|
& span{
|
||||||
|
width: 8px !important;
|
||||||
|
height: 8px !important;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-top: -4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.custom-echarts-tips {
|
.custom-echarts-tips {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ watch(
|
|||||||
width: 160px;
|
width: 160px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
line-height: 32px;
|
line-height: 26px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -199,7 +199,9 @@ function getPie3D(pieData, internalDiameterRatio) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
backgroundColor: 'rgba(18, 55, 85, 0.8);',
|
// tooltip样式调整添加这个类名
|
||||||
|
className: 'custom-tooltip-container', // 自定义父容器类名
|
||||||
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
||||||
borderColor: '#35d0c0',
|
borderColor: '#35d0c0',
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
position: function (point, params, dom, rect, size) {
|
position: function (point, params, dom, rect, size) {
|
||||||
|
@ -27,7 +27,9 @@ const state = reactive({
|
|||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: 'shadow',
|
type: 'shadow',
|
||||||
},
|
},
|
||||||
backgroundColor: 'rgba(18, 55, 85, 0.8);',
|
// tooltip样式调整添加这个类名
|
||||||
|
className: 'custom-tooltip-container', // 自定义父容器类名
|
||||||
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
||||||
borderColor: '#35d0c0',
|
borderColor: '#35d0c0',
|
||||||
formatter: (data) => {
|
formatter: (data) => {
|
||||||
const params = data[0];
|
const params = data[0];
|
||||||
|
@ -30,7 +30,9 @@ const state = reactive({
|
|||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: 'shadow',
|
type: 'shadow',
|
||||||
},
|
},
|
||||||
backgroundColor: 'rgba(18, 55, 85, 0.8);',
|
// tooltip样式调整添加这个类名
|
||||||
|
className: 'custom-tooltip-container', // 自定义父容器类名
|
||||||
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
||||||
borderColor: '#35d0c0',
|
borderColor: '#35d0c0',
|
||||||
formatter: (data) => {
|
formatter: (data) => {
|
||||||
const params = data[0];
|
const params = data[0];
|
||||||
|
@ -12,22 +12,22 @@ const data = ref([
|
|||||||
{
|
{
|
||||||
name: ' 企业',
|
name: ' 企业',
|
||||||
value: 10.8,
|
value: 10.8,
|
||||||
itemStyle: { color: '#3c5fc4', opacity: 0.8 },
|
itemStyle: { color: '#5b7bc7', opacity: 0.8 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: ' 合作社',
|
name: ' 合作社',
|
||||||
value: 18.4,
|
value: 18.4,
|
||||||
itemStyle: { color: '#8fd8ff', opacity: 0.8 },
|
itemStyle: { color: '#8ed0f3', opacity: 0.8 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: ' 村集体',
|
name: ' 村集体',
|
||||||
value: 14.3,
|
value: 14.3,
|
||||||
itemStyle: { color: '#55d9a4', opacity: 0.8 },
|
itemStyle: { color: '#65be97', opacity: 0.8 },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: ' 个体',
|
name: ' 个体',
|
||||||
value: 23.7,
|
value: 23.7,
|
||||||
itemStyle: { color: '#d2a823', opacity: 0.8 },
|
itemStyle: { color: '#f0c94d', opacity: 0.8 },
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -31,7 +31,9 @@ const state = reactive({
|
|||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: 'shadow',
|
type: 'shadow',
|
||||||
},
|
},
|
||||||
backgroundColor: 'rgba(18, 55, 85, 0.8);',
|
// tooltip样式调整添加这个类名
|
||||||
|
className: 'custom-tooltip-container', // 自定义父容器类名
|
||||||
|
backgroundColor: 'rgba(0,0,0,0.5);',
|
||||||
borderColor: '#35d0c0',
|
borderColor: '#35d0c0',
|
||||||
formatter: (data) => {
|
formatter: (data) => {
|
||||||
const params = data[0];
|
const params = data[0];
|
||||||
|
@ -22,7 +22,7 @@ const state = reactive({
|
|||||||
option: {
|
option: {
|
||||||
grid: {
|
grid: {
|
||||||
left: '3%',
|
left: '3%',
|
||||||
right: '10%',
|
right: '1%',
|
||||||
bottom: '10%',
|
bottom: '10%',
|
||||||
top: '15%',
|
top: '15%',
|
||||||
containLabel: true,
|
containLabel: true,
|
||||||
@ -33,7 +33,9 @@ const state = reactive({
|
|||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: 'shadow',
|
type: 'shadow',
|
||||||
},
|
},
|
||||||
backgroundColor: 'rgba(18, 55, 85, 0.8);',
|
// tooltip样式调整添加这个类名
|
||||||
|
className: 'custom-tooltip-container', // 自定义父容器类名
|
||||||
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
||||||
borderColor: '#35d0c0',
|
borderColor: '#35d0c0',
|
||||||
formatter: (data) => {
|
formatter: (data) => {
|
||||||
console.log('data', data);
|
console.log('data', data);
|
||||||
@ -133,14 +135,14 @@ const state = reactive({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
legend: {
|
legend: {
|
||||||
itemWidth: 12,
|
itemWidth: 16,
|
||||||
itemHeight: 8,
|
itemHeight: 16,
|
||||||
itemGap: 20,
|
itemGap: 20,
|
||||||
right: '2%',
|
right: '2%',
|
||||||
top: '3%',
|
top: '3%',
|
||||||
x: 'center',
|
x: 'center',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontSize: 14,
|
fontSize: 16,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
},
|
},
|
||||||
data: ['总产量(吨)', '平均产量(吨)'],
|
data: ['总产量(吨)', '平均产量(吨)'],
|
||||||
@ -159,12 +161,12 @@ const state = reactive({
|
|||||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: 'rgba(53,208,192,1)',
|
color: 'rgba(1,254,253,1)',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
offset: 1,
|
offset: 1,
|
||||||
color: 'rgba(53,208,192,0)',
|
color: 'rgba(1,254,253,0)',
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
@ -183,20 +185,18 @@ const state = reactive({
|
|||||||
name: '平均产量(吨)',
|
name: '平均产量(吨)',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
showSymbol: true,
|
showSymbol: false,
|
||||||
symbolSize: 8,
|
symbolSize: 8,
|
||||||
smooth: true,
|
smooth: false,
|
||||||
symbol: 'circle',
|
symbol: 'circle',
|
||||||
max: 100,
|
max: 100,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
color: 'rgba(53,208,192,1)',
|
color: '#FEF906',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: 'rgba(254,249,6,1)',
|
color: '#FEF906',
|
||||||
borderColor: '#fff',
|
|
||||||
borderWidth: 1,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -216,14 +216,14 @@ const loadData = async (code = '') => {
|
|||||||
// });
|
// });
|
||||||
await sleep(500);
|
await sleep(500);
|
||||||
state.data = [
|
state.data = [
|
||||||
{ value: 103, value1: 208, name: '耿马镇' },
|
{ value: 103, value1: 102, name: '耿马镇' },
|
||||||
{ value: 72, value1: 157, name: '勐撒镇' },
|
{ value: 72, value1: 157, name: '勐撒镇' },
|
||||||
{ value: 50, value1: 125, name: '勐永镇' },
|
{ value: 50, value1: 125, name: '勐永镇' },
|
||||||
{ value: 60, value1: 146, name: '孟定镇' },
|
{ value: 60, value1: 146, name: '孟定镇' },
|
||||||
{ value: 40, value1: 86, name: '勐简乡' },
|
{ value: 40, value1: 86, name: '勐简乡' },
|
||||||
{ value: 111, value1: 172, name: '贺派乡' },
|
{ value: 111, value1: 172, name: '贺派乡' },
|
||||||
{ value: 81, value1: 180, name: '四排山乡' },
|
{ value: 81, value1: 180, name: '四排山乡' },
|
||||||
{ value: 55, value1: 99, name: '芒洪乡' },
|
{ value: 55, value1: 66, name: '芒洪乡' },
|
||||||
{ value: 68, value1: 84, name: '大兴乡' },
|
{ value: 68, value1: 84, name: '大兴乡' },
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
import { ref, reactive, onMounted } from 'vue';
|
import { ref, reactive, onMounted } from 'vue';
|
||||||
|
|
||||||
const data = ref([
|
const data = ref([
|
||||||
{ value: 40, name: '一级', reaVal: '20' },
|
{ value: 40, name: '一级', reaVal: '20', itemStyle: { color: '#56b1c0' } },
|
||||||
{ value: 80, name: '二级', reaVal: '30' },
|
{ value: 80, name: '二级', reaVal: '30', itemStyle: { color: '#77c8ca' } },
|
||||||
{ value: 120, name: '三级', reaVal: '50' },
|
{ value: 120, name: '三级', reaVal: '50', itemStyle: { color: '#7bb9cf' } },
|
||||||
]);
|
]);
|
||||||
const option = reactive({});
|
const option = reactive({});
|
||||||
onMounted(() => {});
|
onMounted(() => {});
|
||||||
|
@ -121,14 +121,14 @@ const loadData = async () => {
|
|||||||
{ value: 20, name: '2025' },
|
{ value: 20, name: '2025' },
|
||||||
],
|
],
|
||||||
third: [
|
third: [
|
||||||
{ value: 78, value1: 128, name: '耿马镇' },
|
{ value: 98, value1: 88, name: '耿马镇' },
|
||||||
{ value: 55, value1: 117, name: '勐撒镇' },
|
{ value: 55, value1: 117, name: '勐撒镇' },
|
||||||
{ value: 65, value1: 145, name: '勐永镇' },
|
{ value: 65, value1: 145, name: '勐永镇' },
|
||||||
{ value: 60, value1: 126, name: '孟定镇' },
|
{ value: 60, value1: 126, name: '孟定镇' },
|
||||||
{ value: 40, value1: 86, name: '勐简乡' },
|
{ value: 40, value1: 86, name: '勐简乡' },
|
||||||
{ value: 81, value1: 152, name: '贺派乡' },
|
{ value: 81, value1: 152, name: '贺派乡' },
|
||||||
{ value: 41, value1: 130, name: '四排山乡' },
|
{ value: 41, value1: 130, name: '四排山乡' },
|
||||||
{ value: 63, value1: 109, name: '芒洪乡' },
|
{ value: 100, value1: 101, name: '芒洪乡' },
|
||||||
{ value: 79, value1: 184, name: '大兴乡' },
|
{ value: 79, value1: 184, name: '大兴乡' },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user