From 5fdadd26bf70a6b297cb36257ed2f617a8ec9fba Mon Sep 17 00:00:00 2001 From: yanfeiyong <2060201549@qq.com> Date: Thu, 13 Mar 2025 17:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BB=A5=E5=8F=8A=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ManageApi/index.js | 99 +++++- .../images/detailsicon/icon-delet@2x.png | Bin 0 -> 638 bytes src/layout/index.vue | 4 +- src/main.js | 2 + src/views/components/ProjectDetails/Basic.vue | 17 +- src/views/components/ProjectDetails/Memo.vue | 47 ++- .../components/ProjectDetails/Months.vue | 124 ++++--- .../components/ProjectDetails/Others.vue | 8 +- .../components/ProjectDetails/Projectgift.vue | 113 ++++++- .../ProjectDetails/Projectpicturetwo.vue | 125 +++---- .../ProjectDetails/luotugongnengshifan.vue | 311 ++++++++++++++++++ src/views/evalute/evalist/index.vue | 186 ++++++++--- src/views/manage-info/index.vue | 16 +- .../content/index.vue | 0 .../subdivide/index.vue | 0 src/views/tongjifenxi/index.vue | 148 ++++++++- 16 files changed, 1018 insertions(+), 182 deletions(-) create mode 100644 src/assets/images/detailsicon/icon-delet@2x.png create mode 100644 src/views/components/ProjectDetails/luotugongnengshifan.vue rename src/views/{oriented => orientedtwo}/content/index.vue (100%) rename src/views/{oriented => orientedtwo}/subdivide/index.vue (100%) diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js index e139bb9..cf29690 100644 --- a/src/api/ManageApi/index.js +++ b/src/api/ManageApi/index.js @@ -18,14 +18,35 @@ export function updateBasicInformation(data) { }); } -// 通过主键查询单条基本信息(企业规划信息) -export function getProgrammeInformationById(id) { +// 项目详情 规划信息 +// 新增规划信息 +export function addProgrammeInformation(data) { return request({ - url: `/gysl/planInformation/${id}`, - method: 'get' + url: '/gysl/planInformation/add', + method: 'post', + data + }); +} + +// 修改规划信息 +export function updateProgrammeInformation(data) { + return request({ + url: '/gysl/planInformation/edit', + method: 'post', + data + }); +} + +// 分页查询所有规划信息 +export function getProgrammeInformationPage(params) { + return request({ + url: '/gysl/planInformation/page', + method: 'get', + params }); } + // 基本信息的导出功能 export function exportBasicInformation(params) { return request({ @@ -45,6 +66,32 @@ export function getProjectEvaluationList(params) { params }); } +// 修改项目评价清单 +export function updateProjectEvaluationList(data) { + return request({ + url: '/gysl/xmpjqd/edit', + method: 'post', + data + }); +} +// 新增项目评价清单 +export function addProjectEvaluationList(data) { + return request({ + url: '/gysl/xmpjqd/add', + method: 'post', + data + }); +} +// 删除项目评价清单 +export function deleteProjectEvaluationList(idList) { + return request({ + url: '/gysl/xmpjqd/delete', + method: 'delete', + params: { idList } + }); +} +//评价清单结束 + // 项目评价配置接口 // 新增数据 @@ -82,15 +129,7 @@ export function getProjectEvaluationPage(params) { params }); } - -// 修改规划信息 -export function updateProgrammeInformation(data) { - return request({ - url: `/gysl/planInformation/edit`, - method: 'post', - data - }); -} +// 评价配置结束 // 要素指标管理 // 新增要素或者指标 @@ -208,4 +247,38 @@ export function getXmzskById(id) { url: `/gysl/xmzsk/${id}`, method: 'get' }); +} + +//项目巡礼 +//新增项目巡礼 +export function addXmxl(data) { + return request({ + url: '/gysl/xmxl/add', + method: 'post', + data + }); +} +//删除项目巡礼 +export function deleteXmxl(idList) { + return request({ + url: '/gysl/xmxl/delete', + method: 'delete', + params: { idList } + }); +} +//修改项目巡礼 +export function updateXmxl(data) { + return request({ + url: '/gysl/xmxl/edit', + method: 'post', + data + }); +} +//分页查询所有项目巡礼 +export function getXmxlPage(params) { + return request({ + url: '/gysl/xmxl/page', + method: 'get', + params + }); } \ No newline at end of file diff --git a/src/assets/images/detailsicon/icon-delet@2x.png b/src/assets/images/detailsicon/icon-delet@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..aca8bef51483466c2f7b20380c11f7d761dd2c65 GIT binary patch literal 638 zcmV-^0)hRBP)Px%I7vi7R7gwhRXu1^Q562p%_9gVuW6o02bX|?V+TP6h36nng|s(;4nob=L5B`P zok~y;2Pc&-f&mAIzWWGtE#wV?9RwZR6b$I#kdWUY#N-`&TVF_a@7#qx-0dNk$Cjq=XU9G+#&+ARHr*R7HYjjfRCXa0`od6UADdQeL=UoW^Qj+20a*RsAnp5BP>8u zN5h0dV4uy6*^=w~9@i91gA_q4t7nX`iV z2ZSgIqV<^LJk8+c7(YE=CbL!sh~&9oF||RBE5tKQ>okuz)6V?ru^t8H{?QOV_>c$#H{9lkz-d&r{^P)$cKF@WX?wcy{S`47szQE zC15A6)Xia|LzLN&vOvJfR9;7wH1l1bab3*^133h+&%?>&BO+SS>4pH>C87sG!-wsD Y0b4EFD5F~R<^TWy07*qoM6N<$f^!raX8-^I literal 0 HcmV?d00001 diff --git a/src/layout/index.vue b/src/layout/index.vue index 1478e97..7467fa1 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -96,8 +96,8 @@ export default { } .main-container { - display: flex; - border-radius: 1rem; + display: flex; + border-radius: 1rem 1rem 0 0 ; margin-right: .3rem; flex: 1; overflow: hidden; diff --git a/src/main.js b/src/main.js index 7b01b0d..7082981 100644 --- a/src/main.js +++ b/src/main.js @@ -12,6 +12,7 @@ import "leaflet/dist/leaflet.css"; import "leaflet"; import "mars2d/mars2d.css"; +import * as mars2d from 'mars2d' import App from "./App"; import store from "./store"; @@ -64,6 +65,7 @@ Vue.prototype.selectDictLabels = selectDictLabels; Vue.prototype.download = download; Vue.prototype.handleTree = handleTree; Vue.prototype.$echarts = echarts; +Vue.prototype.mars2d = mars2d; // 全局组件挂载 Vue.component("DictTag", DictTag); diff --git a/src/views/components/ProjectDetails/Basic.vue b/src/views/components/ProjectDetails/Basic.vue index 9149e44..192598c 100644 --- a/src/views/components/ProjectDetails/Basic.vue +++ b/src/views/components/ProjectDetails/Basic.vue @@ -24,7 +24,7 @@
- 项目代表性照片 + 项目代表性照片
@@ -498,7 +498,20 @@ export default { .picturediv { width: 18.31rem; height: 25rem; - /* background-color: lightblue; */ + position: relative; + overflow: hidden; +} + +.picturediv img { + width: 100%; + height: auto; + object-fit: cover; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; } .descriptionsdiv { diff --git a/src/views/components/ProjectDetails/Memo.vue b/src/views/components/ProjectDetails/Memo.vue index 1121a02..21ac32c 100644 --- a/src/views/components/ProjectDetails/Memo.vue +++ b/src/views/components/ProjectDetails/Memo.vue @@ -13,6 +13,12 @@ style="width: 0.6rem; height: 0.6rem; margin-right: 4px;"> 编辑 + + 新增 + 新增 +
@@ -44,6 +50,26 @@
+ + + + + + + + + + + + + + + + 取消 + 确定 + + @@ -63,6 +89,12 @@ export default { type: [], resource: '', desc: '' + }, + dialogVisible: false, + newMemo: { + name: '', + date: '', + content: '' } }; }, @@ -74,14 +106,12 @@ export default { handleClose(tag) { this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); }, - showInput() { this.inputVisible = true; this.$nextTick(_ => { this.$refs.saveTagInput.$refs.input.focus(); }); }, - handleInputConfirm() { let inputValue = this.inputValue; if (inputValue) { @@ -89,6 +119,19 @@ export default { } this.inputVisible = false; this.inputValue = ''; + }, + handleAdd() { + this.dialogVisible = true; + }, + handleAddMemo() { + console.log('新增备忘录:', this.newMemo); + // 在这里可以将新备忘录添加到列表中或提交到服务器 + this.dialogVisible = false; + this.newMemo = { + name: '', + date: '', + content: '' + }; } } }; diff --git a/src/views/components/ProjectDetails/Months.vue b/src/views/components/ProjectDetails/Months.vue index 9bf43a6..05aa036 100644 --- a/src/views/components/ProjectDetails/Months.vue +++ b/src/views/components/ProjectDetails/Months.vue @@ -25,36 +25,36 @@
- - + - + - + - + - + - + - + - + +
- + -
+
@@ -66,50 +66,82 @@ export default { return { tableData: [ { - date: '2016-05-02', - name: '大众电脑生成制造基地', - number:1000, - address: ' 编辑 删除', - data: '1000', - status: '在建' + month: '2016-05', + status: '未更新', + monthlyInvestment: 1000, + cumulativeInvestment: 1000, + cumulativeArea: 1000, + loanAmount: 500, + progressDetails: '项目进展详情1', }, { - date: '2016-05-04', - name: '大众电脑生成制造基地', - number:1000, - address: ' 编辑 删除', - data: '1500', - status: '拟建' + month: '2016-06', + status: '已更新', + monthlyInvestment: 1000, + cumulativeInvestment: 2000, + cumulativeArea: 1500, + loanAmount: 600, + progressDetails: '项目进展详情2', }, { - date: '2016-05-01', - name: '大众电脑生成制造基地', - number:1000, - address: ' 编辑 删除', - data: '2000', - status: '已建' + month: '2016-07', + status: '未更新', + monthlyInvestment: 1000, + cumulativeInvestment: 3000, + cumulativeArea: 2000, + loanAmount: 700, + progressDetails: '项目进展详情3', }, { - date: '2016-05-03', - name: '大众电脑生成制造基地', - number:1000, - address: ' 编辑 删除', - data: '2500', - status: '在建' + month: '2016-08', + status: '已更新', + monthlyInvestment: 1000, + cumulativeInvestment: 4000, + cumulativeArea: 2500, + loanAmount: 800, + progressDetails: '项目进展详情4', } ], + currentPage: 1, + pageSize: 10, + total: 40, } }, methods: { getStatusColor(status) { switch (status) { - case '在建': + case '未更新': return 'color: #2DD29F;'; - case '拟建': - return 'color: #F08445;'; - case '已建': + case '已更新': return 'color: #2B62F1;'; } + }, + handleEdit(row) { + console.log('编辑:', row); + // 实现编辑逻辑 + }, + handleDelete(row) { + this.$confirm('你确定要删除此条记录吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + console.log('删除:', row); + // 实现删除逻辑 + const index = this.tableData.indexOf(row); + if (index !== -1) { + this.tableData.splice(index, 1); + } + this.$message({ + type: 'success', + message: '删除成功!' + }); + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消删除' + }); + }); } } } @@ -134,7 +166,6 @@ export default { height: auto; display: flex; justify-content: space-between; - padding: .7rem 0; padding: .5rem; border-bottom: 1px solid #E5E5E5; } @@ -179,10 +210,11 @@ export default { .two-row-item { height: 20rem; } -.block{ + +.block { width: 100%; display: flex; justify-content: space-between; margin-top: 1rem; } - + \ No newline at end of file diff --git a/src/views/components/ProjectDetails/Others.vue b/src/views/components/ProjectDetails/Others.vue index 15d2539..87a105d 100644 --- a/src/views/components/ProjectDetails/Others.vue +++ b/src/views/components/ProjectDetails/Others.vue @@ -9,7 +9,7 @@
- 编辑 新增 @@ -21,13 +21,13 @@ - 编辑 导出 - 编辑 + 删除 删除 diff --git a/src/views/components/ProjectDetails/Projectgift.vue b/src/views/components/ProjectDetails/Projectgift.vue index 23d1d99..1560865 100644 --- a/src/views/components/ProjectDetails/Projectgift.vue +++ b/src/views/components/ProjectDetails/Projectgift.vue @@ -8,7 +8,7 @@
+ style="border: none;background-color: rgba(43,98,241,0.1);color: #2B62F1;" @click="dialogVisible = true"> 编辑 新增 @@ -24,22 +24,121 @@
+ + + + + + + + + + 取 消 + 确 定 + + @@ -263,18 +287,6 @@ export default { right: 0; } -.map-thumbnail { - width: 80rem; - height: 25rem; - cursor: pointer; - position: relative; -} - -#map-container { - width: 100%; - height: 100%; -} - .topleft { width: 8rem; display: flex; @@ -313,17 +325,18 @@ export default { justify-content: center; align-items: center; font-size: .7rem; + z-index: 999; } -.mapbox { - width: 60rem; - height: 25rem; -} .map-thumbnail { - width: 80rem; + width: 76rem; height: 25rem; - cursor: pointer; position: relative; } + +.mars2d-container { + width: 76rem; + height: 25rem; +} \ No newline at end of file diff --git a/src/views/components/ProjectDetails/luotugongnengshifan.vue b/src/views/components/ProjectDetails/luotugongnengshifan.vue new file mode 100644 index 0000000..41c4dfa --- /dev/null +++ b/src/views/components/ProjectDetails/luotugongnengshifan.vue @@ -0,0 +1,311 @@ + + + + + \ No newline at end of file diff --git a/src/views/evalute/evalist/index.vue b/src/views/evalute/evalist/index.vue index 1e17fb7..cf61459 100644 --- a/src/views/evalute/evalist/index.vue +++ b/src/views/evalute/evalist/index.vue @@ -5,28 +5,20 @@ - - + + - - + + - - + + @@ -34,8 +26,7 @@ - - + @@ -54,47 +45,142 @@
- - - + + + + + - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 关 闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + \ No newline at end of file