+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.name }}
+
{{ item.address }}
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 确认选择
@@ -38,268 +37,348 @@
\ No newline at end of file
diff --git a/src/views/components/analysis/chanyedxml.vue b/src/views/components/analysis/chanyedxml.vue
new file mode 100644
index 0000000..d466972
--- /dev/null
+++ b/src/views/components/analysis/chanyedxml.vue
@@ -0,0 +1,126 @@
+
+
+
+ {{ totalCount }}
+ 项目总数
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/components/analysis/chanyeshuju.vue b/src/views/components/analysis/chanyeshuju.vue
new file mode 100644
index 0000000..ef5cd81
--- /dev/null
+++ b/src/views/components/analysis/chanyeshuju.vue
@@ -0,0 +1,126 @@
+
+
+
+ {{ totalCount }}
+ 项目总数
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/components/analysis/chanyexfgl.vue b/src/views/components/analysis/chanyexfgl.vue
new file mode 100644
index 0000000..8b8db7f
--- /dev/null
+++ b/src/views/components/analysis/chanyexfgl.vue
@@ -0,0 +1,101 @@
+
+
+
+
{{ item.label }}
+
+
{{item.value}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/components/analysis/daiban.vue b/src/views/components/analysis/daiban.vue
index dba9c8d..59fb4d9 100644
--- a/src/views/components/analysis/daiban.vue
+++ b/src/views/components/analysis/daiban.vue
@@ -127,6 +127,7 @@ export default {
background-color: #fff;
border-radius: .5rem;
margin: .5rem;
+ height: 22rem;
}
.tablehead {
diff --git a/src/views/components/analysis/function.vue b/src/views/components/analysis/function.vue
index c6ba667..5795757 100644
--- a/src/views/components/analysis/function.vue
+++ b/src/views/components/analysis/function.vue
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/src/views/components/analysis/map2.vue b/src/views/components/analysis/map2.vue
new file mode 100644
index 0000000..0319feb
--- /dev/null
+++ b/src/views/components/analysis/map2.vue
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ (scope.$index + 1) + (queryParams.current - 1) * queryParams.size }}
+
+
+
+
+
+ {{ xzflMap[scope.row.xzfl] }}
+
+
+
+
+
+
+ {{ formatMonth(scope.row.begainTime) }} 至 {{ formatMonth(scope.row.endTime) }}
+
+
+
+
+
+
+ {{
+ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/components/analysis/projectList.vue b/src/views/components/analysis/projectList.vue
index e8767ea..8533116 100644
--- a/src/views/components/analysis/projectList.vue
+++ b/src/views/components/analysis/projectList.vue
@@ -1,28 +1,48 @@
-
-
-
-
-
-
-
- {{ scope.row.name }}
-
-
-
-
-
- {{ ssgnqMap[scope.row.ssgnq] }}
-
-
-
-
-
- {{
- xzflMap[scope.row.xzfl] }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 状态:
+
+ {{ xzflMap[item.xzfl] }}
+
+
+
+ 总投资额:
+ {{ item.ztze }} 万元
+
+
+ 总用地面积:
+ {{ item.zydmj }} 平方米
+
+
+
+
+
+
+ 所在区域:
+ {{ ssgnqMap[item.ssgnq] }}
+
+
+ 联系人:
+ {{ item.projectLeader }}
+
+
+ 联系方式:
+ {{ item.phone }}
+
+
+
@@ -32,7 +52,7 @@ import { getBasicInformationPage } from "@/api/ManageApi/index";
import { checkPermi, checkRole } from "@/utils/permission";
export default {
- name: "TableContent",
+ name: "CardContent",
dicts: ["xzfl"],
data() {
return {
@@ -127,22 +147,66 @@ export default {
\ No newline at end of file
diff --git a/src/views/components/dialog/luotu.vue b/src/views/components/dialog/luotu.vue
deleted file mode 100644
index e69de29..0000000
diff --git a/src/views/components/qiyexinxi/qiyexinxi.vue b/src/views/components/qiyexinxi/qiyexinxi.vue
index f1d713b..396fff1 100644
--- a/src/views/components/qiyexinxi/qiyexinxi.vue
+++ b/src/views/components/qiyexinxi/qiyexinxi.vue
@@ -3,50 +3,52 @@
+
+
+
+
+
+
+
+
+
+
+
+ ~
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
@@ -77,7 +79,7 @@
- {{ (scope.$index + 1) + (queryParams.pageNum - 1) * queryParams.pageSize }}
+ {{ (scope.$index + 1) + (queryParams.current - 1) * queryParams.size }}
@@ -110,8 +112,8 @@
-
+
@@ -158,8 +160,8 @@ export default {
},
// 查询参数
queryParams: {
- pageNum: 1,
- pageSize: 10,
+ current: 1,
+ size: 10,
xzfl: undefined,
name: undefined,
xmfrdwxz: undefined,
@@ -268,8 +270,8 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
- pageNum: 1,
- pageSize: 10,
+ current: 1,
+ size: 10,
xzfl: '',
name: '',
xmfrdwxz: '',
@@ -281,7 +283,7 @@ export default {
/** 搜索按钮操作 */
handleQuery() {
- this.queryParams.pageNum = 1;
+ this.queryParams.current = 1;
this.getList();
},
},
diff --git a/src/views/components/zhengwuxinxi/zhengwuxinxi.vue b/src/views/components/zhengwuxinxi/zhengwuxinxi.vue
index 0d29e20..144bb32 100644
--- a/src/views/components/zhengwuxinxi/zhengwuxinxi.vue
+++ b/src/views/components/zhengwuxinxi/zhengwuxinxi.vue
@@ -1,52 +1,54 @@
-
-
+
+
@@ -81,16 +83,9 @@
@click="handleExport">导出
-
-
- 导出材料
-
-
- 单片材料
- 报告
- 项目手册
-
-
+
+ 单片材料导出
+
@@ -111,7 +106,7 @@
- {{ scope.row.begainTime }} 至 {{ scope.row.endTime }}
+ {{ formatMonth(scope.row.begainTime) }} 至 {{ formatMonth(scope.row.endTime) }}
@@ -207,21 +202,36 @@ export default {
methods: {
checkPermi,
checkRole,
+ /** 格式化月份显示 */
+ formatMonth(dateStr) {
+ if (!dateStr) return '';
+ // 如果已经是 YYYY-MM 格式,直接返回
+ if (/^\d{4}-\d{2}$/.test(dateStr)) return dateStr;
+ // 如果是 YYYY-MM-DD 格式,截取前7位
+ if (/^\d{4}-\d{2}-\d{2}$/.test(dateStr)) return dateStr.substring(0, 7);
+ return dateStr;
+ },
+
/** 查询项目列表 */
getList() {
this.loading = true;
+ // 确保日期参数格式正确
+ const params = {
+ ...this.queryParams,
+ begainTime: this.formatMonth(this.queryParams.begainTime),
+ endTime: this.formatMonth(this.queryParams.endTime)
+ };
- // 调试:打印查询参数
- console.log('发送前的查询参数:', JSON.stringify(this.queryParams, null, 2));
+ console.log('发送前的查询参数:', JSON.stringify(params, null, 2));
- getBasicInformationPage(this.queryParams).then((response) => {
- console.log('API响应:', response); // 调试响应
+ getBasicInformationPage(params).then((response) => {
+ console.log('API响应:', response);
this.postList = response.data.records;
this.total = response.data.total;
this.loading = false;
}).catch(error => {
console.error('API请求错误:', error);
- console.error('错误详情:', error.response); // 打印错误响应
+ console.error('错误详情:', error.response);
this.loading = false;
});
},
@@ -239,18 +249,17 @@ export default {
`项目导入模板${new Date().getTime()}.xlsx`
);
},
- //当选择项发生变化时会触发该事件
+
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
- // 文件上传中处理
+
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
- // 文件上传成功处理
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
@@ -265,7 +274,6 @@ export default {
this.getList();
},
- // 提交上传文件
submitFileForm() {
this.$refs.upload.submit();
},
@@ -280,6 +288,7 @@ export default {
`基本信息${new Date().getTime()}.xlsx`
);
},
+
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
@@ -294,12 +303,14 @@ export default {
})
.catch(() => { });
},
+
/** 详情按钮操作 */
getAdd(row, type) {
this.$store.commit("SET_CRUMBS", this.$route.meta.title + "新增");
const id = row.id || this.ids[0];
this.$router.push({ path: `/manage-add/${id}`, query: { action: type } });
},
+
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
@@ -308,7 +319,7 @@ export default {
xzfl: undefined,
name: undefined,
xmfrdwxz: undefined,
- startTime: undefined,
+ begainTime: undefined,
endTime: undefined,
status: undefined,
};
diff --git a/src/views/statistics/index.vue b/src/views/statistics/index.vue
index 894cb02..47a4656 100644
--- a/src/views/statistics/index.vue
+++ b/src/views/statistics/index.vue
@@ -1,6 +1,7 @@
+
-
-
-
- 功能区
-
-
-
- {{ functionnumber.functionnumber}}
- 项目总数
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+ 功能区
+
+
+
+ {{ functionnumber.functionnumber }}
+ 项目总数
+
+
+
+
+
+
+
+ 投资主体
+
+
+
+ {{ allnumber.touzinumber }}
+ 项目总数
+
+
+
-
-
+
+
+
- 投资主体
+ 产业数据分析
-
- {{ allnumber.touzinumber }}
- 项目总数
-
-
+
-
-
-
-
@@ -70,7 +95,10 @@ import InvestArea from '@/views/components/analysis/invest.vue'
import Message from '@/views/components/analysis/message.vue'
import ProjectList from '@/views/components/analysis/projectList.vue'
import MapArea from '@/views/components/analysis/map.vue'
-import { investall,fungong } from '@/api/ManageApi/index'
+import Cyeshuju from '@/views/components/analysis/chanyeshuju.vue'
+import Cydxml from '@/views/components/analysis/chanyedxml.vue'
+import Cydxxfgl from '@/views/components/analysis/chanyexfgl.vue'
+import { investall, fungong } from '@/api/ManageApi/index'
export default {
components: {
@@ -80,11 +108,14 @@ export default {
Message,
ProjectList,
MapArea,
+ Cyeshuju,
+ Cydxml,
+ Cydxxfgl
},
data() {
return {
allnumber: {
- touzinumber: 0
+ touzinumber: 0
},
functionnumber: {
functionnumber: 0
@@ -95,7 +126,6 @@ export default {
async getData() {
const response = await investall();
if (response && response.data) {
- // 计算 count
const totalCount = response.data.reduce((sum, item) => sum + item.count, 0);
this.allnumber = {
touzinumber: totalCount
@@ -104,15 +134,15 @@ export default {
},
async getfuncdata() {
const response2 = await fungong();
- if(response2 && response2.data){
+ if (response2 && response2.data) {
const totalCount2 = response2.data.reduce(
- (sum,item) => sum + item.count,0
+ (sum, item) => sum + item.count, 0
);
this.functionnumber = {
functionnumber: totalCount2
}
}
-}
+ }
},
created() {
this.getData();
@@ -158,27 +188,25 @@ export default {
flex-direction: column;
justify-content: center;
align-items: center;
- top: 5.5rem;
- left: 7.2rem;
+ top: 3.7rem;
+ left: 7.5rem;
}
.itemsall span:nth-child(1) {
- font-family: DIN, DIN;
+ font-family: DINbold;
font-weight: 500;
- font-size: 1.75rem;
+ font-size: 1.25rem;
color: #292C33;
- line-height: 2.44rem;
text-align: left;
font-style: normal;
text-transform: none;
}
.itemsall span:nth-child(2) {
- font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
+ font-family: alibold;
font-weight: 400;
- font-size: 0.88rem;
+ font-size: 0.68rem;
color: #9E9E9E;
- line-height: 1.25rem;
text-align: left;
font-style: normal;
text-transform: none;
@@ -186,7 +214,7 @@ export default {
.itemhead span {
margin-left: 1rem;
- font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
+ font-family: alibold;
font-weight: 600;
font-size: 1rem;
color: #3D424C;
@@ -204,7 +232,7 @@ export default {
/* 第一行:第一个模块占两列 */
.item-1 {
grid-column: span 2;
- background-image: url('~@/assets/images/allbg.png');
+ /* background-image: url('~@/assets/images/allbg.png'); */
background-size: 100% 100%;
background-repeat: no-repeat;
}
@@ -220,8 +248,18 @@ export default {
grid-column: span 3;
/* 占三列 */
}
+/* .item-3 {
+ height: ;
+} */
.mapareaone {
position: relative;
}
+.bgcicon{
+ /* background-color: red; */
+ background-image: url(../../assets/images/map@2x.png);
+ padding: 0!important;
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+}
diff --git a/vue.config.js b/vue.config.js
index 53fa977..bd9d4f8 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -37,8 +37,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- // target: `http://192.168.0.108:7071/`,
- target: `http://39.101.188.84:7071/`,
+ target: `http://192.168.0.107:7071/`,
+ // target: `http://39.101.188.84:7071/`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''