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/App.vue b/src/App.vue
index 67a2a96..9e9eb47 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -15,8 +15,8 @@ export default {
components: { ThemePicker },
mounted() {
autofit.init({
- dh: 1030, // 设计稿的高度
- dw: 1950, // 设计稿的宽度
+ dh: 850, // 设计稿的高度
+ dw: 1900, // 设计稿的宽度
el: "body", // 渲染的DOM元素
resize: true // 是否监听resize事件
})
diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js
index 09440a1..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) {
@@ -672,18 +679,20 @@ export function allinformation(params){
}
// //投资主体
-export function investall() {
+export function investall(params) {
return request({
url: '/gysl/zwStats/investors',
- method: 'get'
+ method: 'get',
+ params
})
}
// 功能区
-export function fungong(){
+export function fungong(params){
return request({
url:'/gysl/zwStats/ribbon',
- method:'get'
+ method:'get',
+ params
})
}
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/assets/images/icon-tz@2x.png b/src/assets/images/icon-tz@2x.png
new file mode 100644
index 0000000..a948ee4
Binary files /dev/null and b/src/assets/images/icon-tz@2x.png differ
diff --git a/src/assets/images/退出登录.png b/src/assets/images/退出登录.png
new file mode 100644
index 0000000..28f67a2
Binary files /dev/null and b/src/assets/images/退出登录.png differ
diff --git a/public/config/suzhou.json b/src/assets/json/suzhou.json
similarity index 100%
rename from public/config/suzhou.json
rename to src/assets/json/suzhou.json
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index a1759f9..28a029c 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -84,7 +84,7 @@
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
- border-radius: 0.25rem;
+ // border-radius: 0.25rem;
height: 45px;
line-height: 45px;
}
@@ -102,8 +102,8 @@
}
& .is-active > .el-submenu__title {
- background-color: #2b62f1 !important;
- color: white !important;
+ background-color: rgb(227, 236, 254);
+ // color: white !important;
}
& .nest-menu .el-submenu > .el-submenu__title,
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index d7fc18d..2f23b93 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -2,21 +2,27 @@
- {{ item.meta.title }}
- {{ item.meta.title }}
-
+
+ {{ item.meta.title }}
+
+ / {{ crumbs }}
@@ -84,8 +69,13 @@ export default {
color: black;
}
+ img {
+ width: 1.5rem;
+ height: 1.6rem;
+ }
+
.el-dropdown-link i {
- font-size: 2rem;
+ font-size: 1rem;
/* 增大图标的大小 */
}
}
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 0dfade0..97286fb 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -45,10 +45,11 @@ export default {
diff --git a/src/views/compilation/handbook/index_BACKUP_177.vue b/src/views/compilation/handbook/index_BACKUP_177.vue
new file mode 100644
index 0000000..054fda7
--- /dev/null
+++ b/src/views/compilation/handbook/index_BACKUP_177.vue
@@ -0,0 +1,1414 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+<<<<<<< HEAD
+ -->
+=======
+
+>>>>>>> 920c391d958f28235c74f3f866465688cae9eb68
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ >>>>>> 920c391d958f28235c74f3f866465688cae9eb68
+ type="text"
+ style="color: #409eff"
+ @click="handleExport(scope.row.id)"
+ >项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_BACKUP_240.vue b/src/views/compilation/handbook/index_BACKUP_240.vue
new file mode 100644
index 0000000..054fda7
--- /dev/null
+++ b/src/views/compilation/handbook/index_BACKUP_240.vue
@@ -0,0 +1,1414 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+<<<<<<< HEAD
+ -->
+=======
+
+>>>>>>> 920c391d958f28235c74f3f866465688cae9eb68
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ >>>>>> 920c391d958f28235c74f3f866465688cae9eb68
+ type="text"
+ style="color: #409eff"
+ @click="handleExport(scope.row.id)"
+ >项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_BASE_114.vue b/src/views/compilation/handbook/index_BASE_114.vue
new file mode 100644
index 0000000..a8f884b
--- /dev/null
+++ b/src/views/compilation/handbook/index_BASE_114.vue
@@ -0,0 +1,1343 @@
+
+
+
+
+
+
+
+
+
+ 项目手册导出
+ 新增
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_BASE_177.vue b/src/views/compilation/handbook/index_BASE_177.vue
new file mode 100644
index 0000000..a8f884b
--- /dev/null
+++ b/src/views/compilation/handbook/index_BASE_177.vue
@@ -0,0 +1,1343 @@
+
+
+
+
+
+
+
+
+
+ 项目手册导出
+ 新增
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_BASE_240.vue b/src/views/compilation/handbook/index_BASE_240.vue
new file mode 100644
index 0000000..a8f884b
--- /dev/null
+++ b/src/views/compilation/handbook/index_BASE_240.vue
@@ -0,0 +1,1343 @@
+
+
+
+
+
+
+
+
+
+ 项目手册导出
+ 新增
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_LOCAL_114.vue b/src/views/compilation/handbook/index_LOCAL_114.vue
new file mode 100644
index 0000000..a959178
--- /dev/null
+++ b/src/views/compilation/handbook/index_LOCAL_114.vue
@@ -0,0 +1,1251 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ -->
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_LOCAL_177.vue b/src/views/compilation/handbook/index_LOCAL_177.vue
new file mode 100644
index 0000000..a959178
--- /dev/null
+++ b/src/views/compilation/handbook/index_LOCAL_177.vue
@@ -0,0 +1,1251 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ -->
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_LOCAL_240.vue b/src/views/compilation/handbook/index_LOCAL_240.vue
new file mode 100644
index 0000000..a959178
--- /dev/null
+++ b/src/views/compilation/handbook/index_LOCAL_240.vue
@@ -0,0 +1,1251 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ -->
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_REMOTE_114.vue b/src/views/compilation/handbook/index_REMOTE_114.vue
new file mode 100644
index 0000000..a021155
--- /dev/null
+++ b/src/views/compilation/handbook/index_REMOTE_114.vue
@@ -0,0 +1,1274 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_REMOTE_177.vue b/src/views/compilation/handbook/index_REMOTE_177.vue
new file mode 100644
index 0000000..a021155
--- /dev/null
+++ b/src/views/compilation/handbook/index_REMOTE_177.vue
@@ -0,0 +1,1274 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/handbook/index_REMOTE_240.vue b/src/views/compilation/handbook/index_REMOTE_240.vue
new file mode 100644
index 0000000..a021155
--- /dev/null
+++ b/src/views/compilation/handbook/index_REMOTE_240.vue
@@ -0,0 +1,1274 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 项目手册导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/compilation/knowledge/index.vue b/src/views/compilation/knowledge/index.vue
index 4a39459..28dfda2 100644
--- a/src/views/compilation/knowledge/index.vue
+++ b/src/views/compilation/knowledge/index.vue
@@ -40,9 +40,6 @@
导入
-
@@ -51,10 +48,10 @@
- {{ fileTypeMap[scope.row.lx] || scope.row.lx }}
+
- {{ fileTypeMap[scope.row.lx] || scope.row.lx }}
+
@@ -108,7 +105,7 @@
-
+
@@ -262,15 +259,18 @@ export default {
],
scsj: [
{ required: true, message: "上传时间不能为空", trigger: "change" }
+ ],
+ fj: [
+ { required: true, message: "附件不能为空", trigger: "blur" }
]
},
// 文件类型映射
- fileTypeMap: {
- 1: "政策文件",
- 2: "研究报告",
- 3: "网络信息",
- 4: "其他",
- },
+ // fileTypeMap: {
+ // 1: "政策文件",
+ // 2: "研究报告",
+ // 3: "网络信息",
+ // 4: "其他",
+ // },
select: 'http', // 默认协议类型
// 用户导入参数
upload: {
@@ -285,7 +285,7 @@ export default {
// 设置上传的请求头部
headers: { Authorization: "Bearer " + getToken() },
// 上传的地址
- url: process.env.VUE_APP_BASE_API + "",
+ url: process.env.VUE_APP_BASE_API + "/gysl/xmzsk/import",
},
};
},
@@ -358,7 +358,7 @@ export default {
updateId: undefined,
updateTime: undefined
};
- this.select = 'http'; // 重置协议类型
+ this.select = 'https'; // 重置协议类型
this.resetForm("form");
},
/** 搜索按钮操作 */
@@ -389,6 +389,9 @@ export default {
const catalogId = row.id;
this.form = { ...row };
this.setProtocolType(this.form.wz); // 设置协议类型
+ this.$nextTick(() => {
+ this.handleTypeChange(); // 确保在 DOM 更新后调用
+ });
this.open = true;
this.title = "修改项目知识库";
},
@@ -409,9 +412,7 @@ export default {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
- }).catch(error => {
- console.error('API Request Error:', error);
- });
+ }).catch(error => { });
}
}
});
@@ -419,7 +420,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const catalogIds = row.id || this.ids;
- this.$modal.confirm('是否确认删除项目知识库编号为"' + catalogIds + '"的数据项?').then(() => {
+ const getFileName = row.name; // 获取 pjys 字段的内容
+ this.$modal.confirm(`是否确认删除"${getFileName}"的数据项?`).then(() => {
return deleteXmzsk([catalogIds]);
}).then(() => {
this.getList();
@@ -463,10 +465,17 @@ export default {
if (this.form.lx !== '3') {
this.form.wz = undefined;
this.select = 'http';
+ // 更新 fj 的校验规则
+ this.rules.fj[0].required = true;
} else {
this.setProtocolType(this.form.wz);
+ // 更新 fj 的校验规则
+ this.rules.fj[0].required = false;
}
+ // 手动触发表单校验
+ this.$refs.form.clearValidate('fj');
},
+
/**导出 */
// handleExport() {
// this.download(
@@ -484,7 +493,7 @@ export default {
/** 下载模板操作 */
importTemplate() {
this.download(
- "/gysl/ml/importTemplate",
+ "/gysl/xmzsk/importTemplate",
{},
`知识库导入模板${new Date().getTime()}.xlsx`
);
diff --git a/src/views/compilation/onecailiao/index.vue b/src/views/compilation/onecailiao/index.vue
index 87c77f8..dd2706b 100644
--- a/src/views/compilation/onecailiao/index.vue
+++ b/src/views/compilation/onecailiao/index.vue
@@ -18,9 +18,9 @@
- 查询
- 重置
+ 重置
@@ -30,7 +30,7 @@
-
+
@@ -38,7 +38,7 @@
- 预览
@@ -52,7 +52,7 @@
{{ previewData.title }}
- 返回
+ 返回
diff --git a/src/views/compilation/reporting/index.vue b/src/views/compilation/reporting/index.vue
index b4abe46..0bd595b 100644
--- a/src/views/compilation/reporting/index.vue
+++ b/src/views/compilation/reporting/index.vue
@@ -18,9 +18,9 @@
- 查询
- 重置
+ 重置
@@ -30,15 +30,13 @@
-
-
- 预览
@@ -52,7 +50,7 @@
{{ previewData.title }}
- 返回
+ 返回
diff --git a/src/views/components/ProjectDetails/Basic.vue b/src/views/components/ProjectDetails/Basic.vue
index 3f858d1..78767b0 100644
--- a/src/views/components/ProjectDetails/Basic.vue
+++ b/src/views/components/ProjectDetails/Basic.vue
@@ -45,14 +45,14 @@
-
+
-
+
落图
@@ -64,12 +64,12 @@
-
+
-
+
@@ -95,36 +95,36 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -139,7 +139,7 @@
-
+
@@ -155,7 +155,7 @@
-
+
@@ -170,14 +170,14 @@
-
+
-
+
@@ -194,10 +194,10 @@
-
+
-
+
diff --git a/src/views/components/ProjectDetails/Buildings.vue b/src/views/components/ProjectDetails/Buildings.vue
index 696e980..39a76d5 100644
--- a/src/views/components/ProjectDetails/Buildings.vue
+++ b/src/views/components/ProjectDetails/Buildings.vue
@@ -13,8 +13,7 @@
style="width: 0.6rem; height: 0.6rem; margin-right: 4px;">
新增
-
{{ building.name }}
-
@@ -114,7 +113,7 @@
-
+
@@ -129,55 +128,55 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -200,7 +199,7 @@
-
+
@@ -336,7 +335,6 @@ export default {
checkPermi,
checkRole,
/** 导出 */
- /** 导出 */
handleExport() {
this.download(
"/gysl/buildingInformation/export",
@@ -419,18 +417,17 @@ export default {
};
},
fetchBuildings() {
- // console.log('Fetching data for xmId:', this.xmId);
+
getjzxxinformationByxmId({ xmId: this.xmId })
.then(response => {
- // console.log('API response:', response);
+
if (response.code === 200 && response.data) {
- this.buildings = Object.values(response.data); // 将对象转换为数组
- // console.log('Buildings data after assignment:', this.buildings);
+ this.buildings = Object.values(response.data);
// 默认选中第一个楼栋
if (this.buildings.length > 0) {
this.selectedBuilding = this.buildings[0];
}
- } else {}
+ } else { }
})
},
@@ -574,17 +571,6 @@ export default {
text-transform: none;
}
-.tagitem {
- width: 6.25rem;
- height: 2rem;
- background: #FAFAFA;
- border-radius: 2.13rem 2.13rem 2.13rem 2.13rem;
- display: flex;
- justify-content: space-around;
- align-items: center;
- cursor: pointer;
-}
-
.tagitem {
width: 6.25rem;
height: 2rem;
@@ -616,7 +602,4 @@ export default {
background-color: rgba(43, 98, 241, 0.1);
}
-.important-building {
- background-color: rgba(43, 98, 241, 0.1);
-}
\ No newline at end of file
diff --git a/src/views/components/ProjectDetails/Companyenter.vue b/src/views/components/ProjectDetails/Companyenter.vue
index 7446c0a..c728c3c 100644
--- a/src/views/components/ProjectDetails/Companyenter.vue
+++ b/src/views/components/ProjectDetails/Companyenter.vue
@@ -171,7 +171,7 @@ export default {
form: {
...this.qyrzInfo
},
- tableData: [], // 初始化为空数组
+ tableData: [],
pagination: {
currentPage: 1,
pageSize: 10,
@@ -192,7 +192,7 @@ export default {
};
},
created() {
- this.fetchTableData(); // 仅加载数据,不主动保存
+ this.fetchTableData();
},
methods: {
async fetchTableData() {
@@ -202,21 +202,19 @@ export default {
this.tableData = response.data.records.map(item => ({ ...item, isEditing: false }));
this.pagination.total = response.data.total;
- // 数据加载完成后,更新 form.rzqys 并通知父组件
+ // 更新 form.rzqys
this.form.rzqys = this.tableData.length;
- this.$emit('update-data', { ...this.form }); // 确保传递完整数据
- } catch (error) {
- console.error('获取数据失败:', error);
- }
+ this.$emit('update-data', { ...this.form });
+ } catch (error) {}
}
},
watch: {
qyrzInfo: {
handler(newVal) {
- // 仅合并父组件传入的字段,保留子组件自己的状态(如 tableData 生成的 rzqys)
+ //(如 tableData 生成的 rzqys)
this.form = {
...newVal,
- rzqys: this.tableData.length // 优先使用本地计算的 rzqys
+ rzqys: this.tableData.length //rzqys
};
},
immediate: true,
@@ -232,12 +230,10 @@ export default {
size: this.pagination.pageSize
};
return getqyBasicInformationPage(params).then(response => {
- // console.log('Fetched Data:', response.data.records);
this.tableData = response.data.records.map(item => ({
...item,
isEditing: false
}));
- // console.log('Table Data:', this.tableData);
this.pagination.total = response.data.total;
}).catch();
},
@@ -270,7 +266,6 @@ export default {
updateqyBasicInformation(row).then(response => {
this.$modal.msgSuccess('保存成功');
}).catch(error => {
- console.error('保存失败:', error);
this.$modal.msgError('保存失败');
});
},
@@ -279,15 +274,11 @@ export default {
deleteqyBasicInformation([id]).then(response => {
this.$modal.msgSuccess('删除成功');
this.tableData.splice(index, 1);
- // 重新获取表格数据以确保分页正确
this.fetchTableData().then(() => {
- // 更新 form 数据
this.form.rzqys = this.tableData.length;
- // 调用 save 方法发送最新的数据
this.save();
});
}).catch(error => {
- console.error('删除失败:', error);
this.$modal.msgError('删除失败');
});
},
@@ -331,7 +322,7 @@ export default {
this.$modal.msgWarning("请先选择文件");
return;
}
- // 将 xmId 添加到请求参数中
+ // xmId 请求参数
const formData = new FormData();
formData.append('file', this.$refs.upload.uploadFiles[0].raw);
formData.append('xmId', this.upload.data.xmId);
diff --git a/src/views/components/ProjectDetails/Liver.vue b/src/views/components/ProjectDetails/Liver.vue
index 602484c..8eb51a6 100644
--- a/src/views/components/ProjectDetails/Liver.vue
+++ b/src/views/components/ProjectDetails/Liver.vue
@@ -6,7 +6,7 @@
现场实况
-
+
月度进展信息
-
-
-
+
+
+
+ 导出
+
@@ -22,21 +26,21 @@
{{ scope.row.status }}
-
+
-
- {{ scope.row.monthlyInvestment }}
+ {{ scope.row.monthDoneAmount }}
-
+
-
- {{ scope.row.cumulativeInvestment }}
+ {{ scope.row.totalDoneAmount }}
-
+
@@ -49,13 +53,12 @@
{{ scope.row.progressDetails }}
-
+
- 保存
- 编辑
- 编辑
+ 删除
@@ -72,7 +75,11 @@
\ No newline at end of file
diff --git a/src/views/components/analysis/daiban.vue b/src/views/components/analysis/daiban.vue
index 57466c1..e4776a7 100644
--- a/src/views/components/analysis/daiban.vue
+++ b/src/views/components/analysis/daiban.vue
@@ -7,17 +7,15 @@
- {{
- statusMap[scope.row.status] }}
+
- 填报
- 详情
+ 详情
@@ -31,7 +29,7 @@ import { checkPermi, checkRole } from "@/utils/permission";
export default {
name: "TableContent",
- dicts: ["xzfl"],
+ dicts: ["xzfl", 'tbzt'],
data() {
return {
// 遮罩层
@@ -86,16 +84,16 @@ export default {
/** 查询项目列表 */
getList() {
this.loading = true;
-
+
// 处理日期范围参数
const params = {
...this.queryParams,
begainTime: this.queryParams.dateRange ? this.queryParams.dateRange[0] : undefined,
endTime: this.queryParams.dateRange ? this.queryParams.dateRange[1] : undefined
};
-
+
// console.log('【查询参数】', params);
-
+
getBasicInformationPage(params).then((response) => {
this.postList = response.data.records;
this.total = response.data.total;
@@ -114,7 +112,7 @@ export default {
/** 详情按钮操作 */
getInfo(row, type) {
- this.$store.commit("SET_CRUMBS", this.$route.meta.title + "详情");
+ this.$store.commit("SET_CRUMBS", "项目详情");
const id = row.id || this.ids[0];
this.$router.push({ path: `/manage-info/${id}`, query: { action: type } });
},
diff --git a/src/views/components/analysis/function.vue b/src/views/components/analysis/function.vue
index 8491425..96aaba8 100644
--- a/src/views/components/analysis/function.vue
+++ b/src/views/components/analysis/function.vue
@@ -1,16 +1,24 @@
-
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/components/analysis/map.vue b/src/views/components/analysis/map.vue
index 511074e..7ae46ce 100644
--- a/src/views/components/analysis/map.vue
+++ b/src/views/components/analysis/map.vue
@@ -33,6 +33,7 @@
+
@@ -67,7 +68,11 @@ import ProjectList from '@/views/components/analysis/projectList.vue'
import { getBasicInformationPage } from "@/api/ManageApi/index";
import { debounce } from 'lodash';
-// 自定义指令,点击外部关闭弹窗
+import suzhouData from '@/assets/json/suzhou.json'
+
+
+// 自定义指令
+// 点击外部关闭弹窗
const clickOutside = {
bind(el, binding, vnode) {
el.clickOutsideEvent = function (event) {
@@ -92,6 +97,8 @@ export default {
data() {
const basePathUrl = window.basePathUrl || "";
return {
+ markerIcon: require('@/assets/images/detailsicon/icon-定位@2x.png'),
+ projectMarker: null,
isCollapsed: false,
searchBox: '',
searchList: [],
@@ -138,11 +145,11 @@ export default {
show: true
}
],
- center: { lat: 31.3456, lng: 120.5957 },
+ center: { lat: 31.3356, lng: 120.7157 },
zoom: 11,
minZoom: 10,
maxZoom: 20,
- zoomControl: true,
+ // zoomControl: true,
chinaCRS: 'GCJ02'
},
map: null
@@ -166,27 +173,23 @@ export default {
this.map.on('load', this.onMapLoad);
},
- // 地图加载完成后的回调
onMapLoad() {
- // console.log('地图加载完成');
this.addSuzhouIndustrialParkLayer();
},
- // 添加苏州园区高亮区域
+ // 园区
async addSuzhouIndustrialParkLayer() {
try {
- const response = await fetch('/config/suzhou.json');
- const geoJsonData = await response.json();
+ const geoJsonData = suzhouData; // 直接使用导入的数据
const graphicLayer = new mars2d.layer.GraphicLayer({
name: "苏州园区高亮区域",
zIndex: 10
});
this.map.addLayer(graphicLayer);
- // 3. 添加GeoJSON数据
const polygon = mars2d.Util.geoJsonToGraphics(geoJsonData, {
style: {
fill: true,
fillColor: "#2B62F1",
- fillOpacity: 0.3,
+ fillOpacity: 0.3,
stroke: true,
color: "#2B62F1",
opacity: 0.8,
@@ -195,14 +198,9 @@ export default {
tooltip: "苏州工业园区"
});
graphicLayer.addGraphic(polygon);
-
- } catch (error) {}
- },
-
- handleClear() {
- this.showLocationIcon = false;
- this.searchList = [];
- this.hasSearched = false;
+ } catch (error) {
+ console.error('加载苏州园区数据失败:', error);
+ }
},
toggleCollapse() {
this.isCollapsed = !this.isCollapsed;
@@ -212,6 +210,7 @@ export default {
this.searchList = [];
this.hasSearched = false;
this.showLocationIcon = false;
+ this.showLocationIcon = false;
return;
}
this.debouncedSearch();
@@ -234,18 +233,23 @@ export default {
this.hasSearched = true;
if (response && response.code === 200 && response.data) {
this.searchList = response.data.records;
+ if (this.searchList.length === 0) {
+ this.$message.warning('查无此项目');
+ }
} else {
this.searchList = [];
+ this.$message.warning('查无此项目');
}
})
.catch(error => {
console.error('搜索失败:', error);
this.hasSearched = true;
this.searchList = [];
+ this.$message.error('搜索失败,请重试');
});
},
centerMap(item) {
- if (!item.jsdd) {
+ if (!item.longitude || !item.latitude) {
this.$message.warning('该项目未落图!');
return;
}
@@ -267,56 +271,61 @@ export default {
this.map.flyTo([lat, lng], 17);
}
- this.showLocationIcon = true;
- this.setRandomIconPosition();
- this.showDialog();
+ // 坐标定位
+ this.map.flyTo([item.latitude, item.longitude], 17);
+
+ // 标记
+ this.addProjectMarker(item);
},
- showDialog() {
- if (this.selectedProject.name) {
- this.dialogVisible = true;
- } else {
- this.$message.warning('请选择一个项目');
+ handleClear() {
+ this.showLocationIcon = false;
+ this.searchList = [];
+ this.hasSearched = false;
+ this.searchBox = '';
+ this.dialogVisible = false;
+ // 移除标记
+ if (this.projectMarker) {
+ this.map.removeLayer(this.projectMarker);
+ this.projectMarker = null;
+ }
+ this.map.setView(this.mapOptions.center, this.mapOptions.zoom);
+ },
+ addProjectMarker(item) {
+ if (this.projectMarker) {
+ this.map.removeLayer(this.projectMarker);
}
+
+ this.projectMarker = new mars2d.graphic.Marker({
+ latlng: [item.latitude, item.longitude],
+ style: {
+ image: this.markerIcon,
+ width: 32,
+ height: 44,
+ anchor: [16, 44]
+ },
+ interactive: true,
+ cursor: 'pointer'
+ });
+
+ // 点击图标
+ this.projectMarker.on(mars2d.EventType.click, (event) => {
+ this.selectedProject = { ...item };
+ this.dialogVisible = true;
+ });
+
+ this.map.addLayer(this.projectMarker);
+ },
+ showDialog() {
+ this.dialogVisible = true;
},
closeDialog() {
this.dialogVisible = false;
},
- setRandomIconPosition() {
- // 计算最大可随机范围
- const maxTop = 105;
- const maxLeft = 110;
-
- const randomTop = Math.floor(Math.random() * maxTop);
- const randomLeft = Math.floor(Math.random() * maxLeft);
-
- this.iconPosition = {
- position: 'absolute',
- top: `${randomTop}px`,
- left: `${randomLeft}px`,
- cursor: 'pointer'
- };
- }
}
}
\ No newline at end of file
diff --git a/src/views/components/analysis/messagecompany.vue b/src/views/components/analysis/messagecompany.vue
index 21a0d84..66c7a65 100644
--- a/src/views/components/analysis/messagecompany.vue
+++ b/src/views/components/analysis/messagecompany.vue
@@ -1,8 +1,8 @@
-
-
+
+
@@ -13,21 +13,18 @@
-
+
- {{ scope.row.date }}
+ {{ formatDate(scope.row.alertTime) }}
-
-
时间: {{ selectedMessage.date || '暂无' }}
内容: {{ selectedMessage.name }}
+
时间: {{ selectedMessage.alertTime}}
-
\ No newline at end of file
diff --git a/src/views/evalute/configtable/index.vue b/src/views/evalute/configtable/index.vue
index 10d9c16..a0c53b3 100644
--- a/src/views/evalute/configtable/index.vue
+++ b/src/views/evalute/configtable/index.vue
@@ -11,8 +11,8 @@
- 查询
- 重置
+ 查询
+ 重置
@@ -36,8 +36,8 @@
- 编辑
- 删除
+ 编辑
+ 删除
@@ -114,7 +114,7 @@ export default {
getProjectEvaluationPage(this.queryParams).then(response => {
if (response && response.data && response.data.records !== undefined && response.data.total !== undefined) {
this.postList = response.data.records;
- this.total = response.data.total;
+ this.total = response.data.total;
} else {
this.postList = [];
this.total = 0;
@@ -190,8 +190,9 @@ export default {
},
// 删除按钮操作
handleDelete(row) {
- const postIds = row.id || this.ids; // 使用 id 字段
- this.$modal.confirm('是否确认删除项目评价配置编号为"' + postIds + '"的数据项?').then(() => {
+ const postIds = row.id || this.ids;
+ const pjys = row.pjys; // 获取 pjys 字段的内容
+ this.$modal.confirm(`是否确认删除"${pjys}"的数据项?`).then(() => {
return deleteProjectEvaluation(postIds);
}).then(() => {
this.getList();
diff --git a/src/views/evalute/evalist/index.vue b/src/views/evalute/evalist/index.vue
index 3247fa0..836f994 100644
--- a/src/views/evalute/evalist/index.vue
+++ b/src/views/evalute/evalist/index.vue
@@ -30,7 +30,7 @@
-
+
@@ -38,8 +38,8 @@
- 查询
- 重置
+ 查询
+ 重置
@@ -49,7 +49,7 @@
-
+
{{ (scope.$index + 1) + (queryParams.current - 1) * queryParams.size }}
@@ -58,7 +58,7 @@
- {{ xzflMap[scope.row.xzfl] || scope.row.xzfl }}
+
@@ -69,107 +69,31 @@
- {{ scope.row.pjdj }} / {{ total }}
+ {{ scope.row.pjdj }} / {{ scope.row.count }}
-
+
- 详情
- 删除
+ 详情
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/src/views/manage-info/index.vue b/src/views/manage-info/index.vue
index 237020a..37b850e 100644
--- a/src/views/manage-info/index.vue
+++ b/src/views/manage-info/index.vue
@@ -1,27 +1,28 @@
-
-
-
-
- 返回
-
-
-
- 已提交
-
-
-
-
-
+
+
+
+
+
-
+
@@ -68,7 +69,7 @@
-
+
@@ -90,13 +91,13 @@
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/models/badlist/index.vue b/src/views/models/badlist/index.vue
index 7641169..34fa2d7 100644
--- a/src/views/models/badlist/index.vue
+++ b/src/views/models/badlist/index.vue
@@ -41,9 +41,9 @@
- 查询
- 重置
+ 重置
@@ -52,7 +52,7 @@
-
+
{{ (scope.$index + 1) + (queryParams.current - 1) * queryParams.size }}
@@ -61,7 +61,7 @@
- {{ xzflMap[scope.row.xzfl] }}
+
@@ -79,10 +79,10 @@
statusMap[scope.row.status] }}
-
+
- 详情
- 详情
+ 删除
@@ -126,11 +126,6 @@ export default {
2: '待审核',
3: '审核通过'
},
- xzflMap: {
- 1: '已建',
- 2: '在建',
- 3: '拟建'
- },
// 查询参数
queryParams: {
current: 1,
@@ -194,7 +189,7 @@ export default {
},
/** 详情按钮操作 */
getAdd(row, type) {
- this.$store.commit("SET_CRUMBS", this.$route.meta.title + "新增");
+ this.$store.commit("SET_CRUMBS", "项目详情");
const id = row.id || this.ids[0];
this.$router.push({ path: `/manage-add/${id}`, query: { action: type } });
},
diff --git a/src/views/models/manages/index.vue b/src/views/models/manages/index.vue
index 3ee8e30..af411c7 100644
--- a/src/views/models/manages/index.vue
+++ b/src/views/models/manages/index.vue
@@ -19,9 +19,9 @@
- 查询
- 重置
+ 重置
@@ -41,9 +41,9 @@
{{ element.name }}