From 920c391d958f28235c74f3f866465688cae9eb68 Mon Sep 17 00:00:00 2001 From: yanfeiyong <2060201549@qq.com> Date: Thu, 24 Apr 2025 14:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=8E=AF=E5=A2=83=E5=92=8C?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 +- src/api/ManageApi/index.js | 9 +- src/api/manageApitwo/index.js | 20 ++ src/layout/components/Sidebar/index.vue | 25 +-- .../components/ProjectDetails/Buildings.vue | 1 - .../components/ProjectDetails/Months.vue | 192 ++++++++++++------ src/views/components/analysis/function.vue | 74 ++++--- src/views/components/analysis/invest.vue | 72 ++++--- src/views/login.vue | 4 +- src/views/orientedtwo/bqspan/index.vue | 53 ++--- src/views/statistics/index.vue | 21 +- src/views/tool/build/index.vue | 4 +- vue.config.js | 4 +- 13 files changed, 266 insertions(+), 216 deletions(-) diff --git a/.env.production b/.env.production index 97cacc7..5294d66 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,5 @@ VUE_APP_TITLE = 苏州工业园区工业上楼管理系统 ENV = 'production' # 苏州工业园区工业上楼管理系统/生产环境 -VUE_APP_BASE_API = 'http://39.101.188.84:7071' +# VUE_APP_BASE_API = 'http://39.101.188.84:7071' +VUE_APP_BASE_API = '' diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js index 5e5c883..590af52 100644 --- a/src/api/ManageApi/index.js +++ b/src/api/ManageApi/index.js @@ -8,7 +8,7 @@ export function getBasicInformationPage(params) { params }) } -//标签管理 查询所有数据 +//产业标签 查询所有数据 export function getCybqInformationPage(params) { return request({ url:'/gysl/Cybq/page', @@ -16,6 +16,13 @@ export function getCybqInformationPage(params) { params }) } +//产业标签 通过主键查询单条数据 +export function getSpanById(id) { + return request({ + url: `/gysl/Cybq/${id}`, + method: "get", + }); +} // 通过主键查询单条所有数据(企业端) export function getBasicInformationById(id) { diff --git a/src/api/manageApitwo/index.js b/src/api/manageApitwo/index.js index b1b74b5..9a129ef 100644 --- a/src/api/manageApitwo/index.js +++ b/src/api/manageApitwo/index.js @@ -36,3 +36,23 @@ export function deletespan(idList) { }, }); } + + +// 月度进展信息修改 +export function updateProjectProgress(data) { + return request({ + url: "/gysl/projectProgress/edit", + method: "put", + data, + }); +} +// 月度进展信息删除 +export function deletemonth(idList) { + return request({ + url: "/gysl/projectProgress/delete", + method: "delete", + params: { + idList: idList.join(","), // 将数组转换为逗号分隔的字符串 + }, + }); +} diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 58b8fce..21e01a6 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,24 +1,13 @@ diff --git a/src/views/components/ProjectDetails/Buildings.vue b/src/views/components/ProjectDetails/Buildings.vue index d881904..39a76d5 100644 --- a/src/views/components/ProjectDetails/Buildings.vue +++ b/src/views/components/ProjectDetails/Buildings.vue @@ -335,7 +335,6 @@ export default { checkPermi, checkRole, /** 导出 */ - /** 导出 */ handleExport() { this.download( "/gysl/buildingInformation/export", diff --git a/src/views/components/ProjectDetails/Months.vue b/src/views/components/ProjectDetails/Months.vue index 208bce8..2a56af6 100644 --- a/src/views/components/ProjectDetails/Months.vue +++ b/src/views/components/ProjectDetails/Months.vue @@ -6,9 +6,13 @@ 月度进展信息 - @@ -22,21 +26,21 @@ {{ scope.row.status }} - + - + - + - + @@ -72,7 +75,11 @@ @@ -174,6 +238,7 @@ export default { border-radius: 0.5rem 0.5rem 0.5rem 0.5rem; } + .content { padding: 1rem; display: flex; @@ -189,6 +254,7 @@ export default { .topleft { width: 8rem; + height: 2rem; display: flex; gap: 0.4rem; align-items: center; @@ -200,16 +266,16 @@ export default { } .topleft span { - width: auto; - height: 1rem; - font-family: aliregular; - font-weight: 500; - font-size: 1rem; - color: #3D424C; - line-height: 1rem; - text-align: right; - font-style: normal; - text-transform: none; + width: auto; + height: 1rem; + font-family: aliregular; + font-weight: 500; + font-size: 1rem; + color: #3D424C; + line-height: 1rem; + text-align: right; + font-style: normal; + text-transform: none; } .picturediv { diff --git a/src/views/components/analysis/function.vue b/src/views/components/analysis/function.vue index 4c7ac8a..96aaba8 100644 --- a/src/views/components/analysis/function.vue +++ b/src/views/components/analysis/function.vue @@ -1,11 +1,6 @@ @@ -83,16 +78,43 @@ export default { } }, legend: { - orient: 'vertical', // 图例垂直排列 - right: '0%', // 图例在右侧 - top: 'center', // 图例垂直居中 - itemGap: 10, // 右侧间隔 + orient: 'vertical', + right: '10%', + top: 'center', + itemGap: 10, formatter: function (name) { - // 自定义图例显示格式 const item = this.chartData.find(item => item.name === name); return `${name} ${item.value}个`; }.bind(this), }, + graphic: [ + { + type: 'text', + left: '29%', + top: '40%', + style: { + text: this.functionnumber.toString(), + textAlign: 'center', + fill: '#292C33', + fontSize: '1.25rem', + fontFamily: 'DINbold', + fontWeight: '500' + } + }, + { + type: 'text', + left: '26%', + top: '55%', + style: { + text: '项目总数', + textAlign: 'center', + fill: '#9E9E9E', + fontSize: '0.68rem', + fontFamily: 'alibold', + fontWeight: '400' + } + } + ], series: [ { name: '项目分布', @@ -101,7 +123,7 @@ export default { center: ['30%', '50%'], data: this.chartData, label: { - show: false // 隐藏标签 + show: false }, emphasis: { itemStyle: { @@ -121,33 +143,5 @@ export default { \ No newline at end of file diff --git a/src/views/components/analysis/invest.vue b/src/views/components/analysis/invest.vue index 488a70b..58c396f 100644 --- a/src/views/components/analysis/invest.vue +++ b/src/views/components/analysis/invest.vue @@ -1,11 +1,6 @@ @@ -58,10 +53,13 @@ export default { processData(data) { const names = ['国企', '民企', '外企', '其他']; const counts = data.map(item => item.count); + const total = counts.reduce((sum, count) => sum + count, 0); + return names.map((name, index) => ({ value: counts[index] || 0, name: name, itemStyle: { color: ['#36C3FB', '#5B76F9', '#FAC858', '#50DFB3'][index] }, + percent: total > 0 ? ((counts[index] || 0) / total * 100).toFixed(2) : '0.00' })); }, renderChart() { @@ -69,11 +67,12 @@ export default { const myChart = echarts.init(chartDom); const option = { tooltip: { - trigger: 'item' + trigger: 'item', + formatter: ({name, value, percent}) => `${name}: ${value}个 (${percent}%)` }, legend: { orient: 'vertical', - right: '18.5%', + right: '27.7%', top: 'center', itemGap: 18, formatter: function (name) { @@ -81,6 +80,34 @@ export default { return `${name} ${item.value}个`; }.bind(this) }, + graphic: [ + { + type: 'text', + left: '29%', + top: '40%', + style: { + text: this.functionnumber.toString(), + textAlign: 'center', + fill: '#292C33', + fontSize: 20, + fontFamily: 'DINbold', + fontWeight: '500' + } + }, + { + type: 'text', + left: '26%', + top: '55%', + style: { + text: '项目总数', + textAlign: 'center', + fill: '#9E9E9E', + fontSize: '0.68rem', + fontFamily: 'alibold', + fontWeight: '400' + } + } + ], series: [ { name: '项目分布', @@ -109,33 +136,4 @@ export default { \ No newline at end of file diff --git a/src/views/login.vue b/src/views/login.vue index e945152..321f933 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -67,8 +67,8 @@ export default { codeUrl: '', activeName: 'second', loginForm: { - username: 'admin', - password: 'admin123', + username: '', + password: '', rememberMe: false, code: '', uuid: '', diff --git a/src/views/orientedtwo/bqspan/index.vue b/src/views/orientedtwo/bqspan/index.vue index 83a2820..73b1c8c 100644 --- a/src/views/orientedtwo/bqspan/index.vue +++ b/src/views/orientedtwo/bqspan/index.vue @@ -34,9 +34,8 @@ - 查询 - 重置 + 查询 + 重置 @@ -57,9 +56,9 @@ - + @@ -99,12 +98,12 @@ - {{ detailData.yhlx }} + {{ detailData.bqzbm }} - {{ detailData.bqzs }} + {{ detailData.state }} @@ -112,12 +111,12 @@ - {{ detailData.bqzt }} + {{ detailData.bqzs }} - {{ detailData.bqzs }} + {{ detailData.yhlx }} @@ -130,7 +129,7 @@ - {{ detailData.bqzs }} + {{ detailData.bqbjdw }} @@ -143,12 +142,10 @@ - {{ detailData.bqzs }} + {{ detailData.sjlymc }} - - 关闭 @@ -158,7 +155,7 @@