From dc35cb8354c60c02e0c37fc0d593fe5d49fb2cf7 Mon Sep 17 00:00:00 2001 From: dhr <2216804034@qq.com> Date: Mon, 8 Sep 2025 15:44:35 +0800 Subject: [PATCH 01/29] 0908 --- src/api/largeScreen/index.ts | 7 ++++ src/views/equipment/equipmentGPS.vue | 4 +-- src/views/largeScreen/components/header.vue | 32 ++++++++++++++++++- .../overallPlanMaterialSupply/index.vue | 20 ++++++------ .../landTransferLedger/index.vue | 26 ++++++++++----- src/views/tender/supplierInput/index.vue | 6 ++-- 6 files changed, 72 insertions(+), 23 deletions(-) diff --git a/src/api/largeScreen/index.ts b/src/api/largeScreen/index.ts index 87acda0..6df57ff 100644 --- a/src/api/largeScreen/index.ts +++ b/src/api/largeScreen/index.ts @@ -98,3 +98,10 @@ export const cashTotal = () => { method: 'get' }); }; +//安全天数 +export const getSafetyDay = (projectId) => { + return request({ + url: '/money/big/screen/safetyDay/' + projectId, + method: 'get' + }); +}; diff --git a/src/views/equipment/equipmentGPS.vue b/src/views/equipment/equipmentGPS.vue index 8a24dea..f5ad8ff 100644 --- a/src/views/equipment/equipmentGPS.vue +++ b/src/views/equipment/equipmentGPS.vue @@ -140,9 +140,9 @@ const createEarth = () => { // 加载底图 loadBaseMap(earthInstance.viewer); - // 可以取消注释以下代码来设置初始视角 + // // 可以取消注释以下代码来设置初始视角 // YJ.Global.flyTo(earthInstance, view); - // YJ.Global.setDefaultView(earthInstance.viewer, view) + // YJ.Global.setDefaultView(earthInstance.viewer, view); // 地球创建完成后获取并渲染轨迹数据 getTrajectoryData(); diff --git a/src/views/largeScreen/components/header.vue b/src/views/largeScreen/components/header.vue index bd16c8e..3066b3e 100644 --- a/src/views/largeScreen/components/header.vue +++ b/src/views/largeScreen/components/header.vue @@ -6,7 +6,7 @@
安全生产天数:
- 1,235 + {{ safetyDay }}
@@ -41,12 +41,42 @@ diff --git a/src/views/materials/overallPlanMaterialSupply/indexEdit.vue b/src/views/materials/overallPlanMaterialSupply/indexEdit.vue index 56c849b..0781865 100644 --- a/src/views/materials/overallPlanMaterialSupply/indexEdit.vue +++ b/src/views/materials/overallPlanMaterialSupply/indexEdit.vue @@ -73,12 +73,12 @@ --> - - - - - - + + + + + + @@ -214,7 +214,7 @@ const getInfo = () => { console.log('res.data', masterDataRes); Object.assign(form.value, masterDataRes?.data[0]); // console.log('form', form.value); - tableData.value = res.rows.reverse();//翻转 + tableData.value = res.rows; //正序显示 loading.value = false; buttonLoading.value = false; }); @@ -319,9 +319,7 @@ onMounted(() => { .el-input__inner, .el-select .el-input__inner { border-radius: 4px; - transition: - border-color 0.2s, - box-shadow 0.2s; + transition: border-color 0.2s, box-shadow 0.2s; &:focus { border-color: var(--primary-light); @@ -331,9 +329,7 @@ onMounted(() => { .el-textarea__inner { border-radius: 4px; - transition: - border-color 0.2s, - box-shadow 0.2s; + transition: border-color 0.2s, box-shadow 0.2s; &:focus { border-color: var(--primary-light); diff --git a/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue b/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue index a3a86c6..e92ea01 100644 --- a/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue +++ b/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue @@ -292,7 +292,7 @@
- {{ sonForm.areaValue && sonForm.transferStatus == '1' ? `提示:当前剩余${sonSummaryInfo.remainingArea} 亩未流转面积` : '' }} + {{ sonForm.areaValue && sonForm.transferStatus == '1' ? `提示:当前剩余${sonSummaryInfo.remainingArea} 亩` : '' }}
@@ -325,7 +325,7 @@
- {{ sonForm.areaValue && sonForm.transferStatus == '2' ? `提示:当前剩余 ${sonSummaryInfo.remainingArea} 亩未流转面积` : '' }} + {{ sonForm.areaValue && sonForm.transferStatus == '2' ? `提示:当前剩余 ${sonSummaryInfo.remainingArea} 亩` : '' }}
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 540bb57..872df4a 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -46,16 +46,16 @@ :load="loadChildren" :has-children="hasChildren" > - - + + - - - - + + + + @@ -65,7 +65,7 @@ {{ scope.row.createTime }} - + diff --git a/src/views/projectLarge/digitalizationScreen/components/header.vue b/src/views/projectLarge/digitalizationScreen/components/header.vue new file mode 100644 index 0000000..d911f88 --- /dev/null +++ b/src/views/projectLarge/digitalizationScreen/components/header.vue @@ -0,0 +1,327 @@ + + + + + diff --git a/src/views/projectLarge/digitalizationScreen/components/leftPage.vue b/src/views/projectLarge/digitalizationScreen/components/leftPage.vue new file mode 100644 index 0000000..b7e438b --- /dev/null +++ b/src/views/projectLarge/digitalizationScreen/components/leftPage.vue @@ -0,0 +1,326 @@ + - diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts b/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts index bcdf958..502ddc2 100644 --- a/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts +++ b/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts @@ -1,51 +1,54 @@ export let pieOption = { // 定义中心文字 graphic: [ - { - type: 'text', - left: 'center', - top: '40%', - style: { - // 需要从接口替换 - text: '70%', - fontSize: 24, - fontWeight: 'bold', - fill: '#fff' - } - }, - { - type: 'text', - left: 'center', - top: '50%', - style: { - text: '总进度', - fontSize: 14, - fill: '#fff' - } - }, + // { + // type: 'text', + // left: 'center', + // top: '40%', + // style: { + // // 需要从接口替换 + // text: '70%', + // fontSize: 24, + // fontWeight: 'bold', + // fill: '#fff' + // } + // } + // { + // type: 'text', + // left: 'center', + // top: '50%', + // style: { + // text: '111', + // fontSize: 14, + // fill: '#fff' + // } + // } ], - legend: { - show: true, - type: 'plain', - bottom: 20, - itemWidth: 12, - itemHeight: 12, - textStyle: { - color: '#fff' - } - }, + // legend: { + // show: true, + // type: 'plain', + // bottom: 20, + // itemWidth: 12, + // itemHeight: 12, + // textStyle: { + // color: '#fff' + // } + // }, series: { type: 'pie', data: [], radius: [50, 80], center: ['50%', '45%'], - itemStyle: { - borderColor: '#fff', - borderWidth: 1 - }, + // itemStyle: { + // borderColor: '#fff', + // borderWidth: 1 + // }, label: { alignTo: 'edge', - formatter: '{name|{b}}\n{percent|{c} %}', + formatter: function (params) { + // 只显示前三个数据项 + return `{name|${params.data.name}}\n{percent|${params.data.completionRate}MW}`; + }, minMargin: 10, edgeDistance: 20, lineHeight: 15, @@ -62,7 +65,7 @@ export let pieOption = { }, legend: { top: 'bottom' - }, + } } }; @@ -72,16 +75,39 @@ export let barOption = { itemWidth: 12, itemHeight: 12, // 调整文字与图标间距 - data: ['计划流转面积', '已流转面积'], + data: ['计划产值', '实际产值'], top: 0, - right: 20, + right: 10, + bottom: 10, textStyle: { - color: '#fff', + color: '#fff' } }, + + tooltip: { + show: true, + backgroundColor: '', + trigger: 'axis', + // formatter: '{b0}:{c0}万元', + formatter: (params: any) => { + // params 是数组,对应每条柱子 + return params + .map((p: any) => `${p.seriesName}:${Number(p.value).toFixed(2)} 亿元`) + + .join('
'); + }, + textStyle: { + color: '#fff' + }, + axisPointer: { + type: 'shadow' // 默认为直线,可选为:'line' | 'shadow', + } + // borderColor: 'rgba(252, 217, 18, 1)' + }, xAxis: { type: 'category', - data: ['地块1', '地块2', '地块3', '地块4', '地块5', '地块6'], + data: [], + axisLabel: { color: '#fff' }, @@ -93,34 +119,71 @@ export let barOption = { } }, yAxis: { - name: '单位:m²', + name: '单位:亿元', type: 'value', axisLabel: { formatter: '{value}' + }, + splitLine: { + show: false // 不显示分割线 } }, grid: { - bottom: 0, // 距离容器底部的距离 - containLabel: true // 确保坐标轴标签不被裁剪 + left: '12%', + top: '15%', // 顶部留一点空间给 legend + bottom: '8%', + right: '2%' }, series: [ { - name: '计划流转面积', + name: '计划产值', type: 'bar', data: [], - barWidth: '20%', + barWidth: '10', itemStyle: { - color: 'rgb(29, 253, 253)' - }, + color: { + type: 'linear', + x: 0, + y: 1, // 修改y为1表示从底部开始 + x2: 0, + y2: 0, // 修改y2为0表示渐变到顶部 + colorStops: [ + { + offset: 0, + color: 'rgba(255, 209, 92, 0.1)' // 底部透明度0.1 + }, + { + offset: 1, + color: 'rgba(255, 209, 92, 1)' // 顶部透明度1 + } + ] + } + } }, { - name: '已流转面积', + name: '实际产值', type: 'bar', data: [], - barWidth: '20%', + barWidth: '10', itemStyle: { - color: 'rgb(25, 181, 251)' - }, + color: { + type: 'linear', + x: 0, + y: 1, // 从底部开始 + x2: 0, + y2: 0, // 到顶部结束 + colorStops: [ + { + offset: 0, + color: 'rgba(7, 209, 250, 0.1)' // 底部透明度0.1 + }, + { + offset: 1, + color: 'rgba(7, 209, 250, 1)' // 顶部透明度1 + } + ] + } + } } ] }; @@ -129,7 +192,7 @@ export let mapOption = { geo: { map: 'ch', roam: true, - aspectScale: Math.cos((47 * Math.PI) / 180), + aspectScale: Math.cos((47 * Math.PI) / 180) }, series: [ { @@ -147,7 +210,7 @@ export let mapOption = { { name: 'i', value: [9.085994375000002, 47.55395822835779] }, { name: 'j', value: [8.653968125000002, 47.47709530818285] }, { name: 'k', value: [8.203158125000002, 47.44506909144329] } - ], + ] } ] }; diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue b/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue index 0d08c08..e57e5b6 100644 --- a/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue +++ b/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue @@ -1,13 +1,60 @@