From 85ae7b00cb3e3794ed9d800cb670832c001b364f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com>
Date: Thu, 31 Jul 2025 17:30:28 +0800
Subject: [PATCH] =?UTF-8?q?task=2044941=20=E8=B5=84=E4=BA=A7=E8=AF=A6?=
=?UTF-8?q?=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/gis-map/index.js | 12 ++++++++++++
src/components/pannel/index.scss | 11 +++++++----
src/store/getters.js | 1 +
src/store/modules/user.js | 5 +++++
.../capital/comps/left/bottom/2/index.html | 1 +
.../capital/comps/left/middle/2/index.html | 1 +
src/views/capital/comps/left/top/2/index.html | 1 +
.../capital/comps/right/bottom/2/index.js | 18 +++++++++++++-----
.../capital/comps/right/middle/2/index.js | 18 +++++++++++++-----
src/views/capital/comps/right/top/2/index.js | 17 ++++++++++++-----
.../property/comps/right/bottom/3/index.js | 2 +-
.../property/comps/right/middle/2/index.js | 17 ++++++++++++-----
.../property/comps/right/middle/3/index.js | 2 +-
src/views/property/main-gis/icon/1.png | Bin 0 -> 1187 bytes
src/views/property/main-gis/index.js | 16 ++++++++--------
15 files changed, 88 insertions(+), 34 deletions(-)
create mode 100644 src/views/property/main-gis/icon/1.png
diff --git a/src/components/gis-map/index.js b/src/components/gis-map/index.js
index 1c7677d..36f21da 100644
--- a/src/components/gis-map/index.js
+++ b/src/components/gis-map/index.js
@@ -35,6 +35,13 @@ export default {
},
immediate: true, // 立即执行
+ },
+ deptLength: {
+ handler: function () {
+ console.log(this.deptLength);
+ this.commitDeptLength(this.deptLength);
+ },
+ immediate: true, // 立即执行
}
},
data () {
@@ -73,6 +80,7 @@ export default {
year: new Date().getFullYear(),
deptId: 100,
},
+ deptLength: 0,
yellowIcon: require('./icon/yellow.png'),
comps,
map: "", // 地图
@@ -114,6 +122,9 @@ export default {
commitDept (deptId) {
this.$store.commit('SET_DEPTID', deptId);
},
+ commitDeptLength (length) {
+ this.$store.commit('SET_DEPTIDLENGTH', length);
+ },
commitYear (year) {
this.$store.commit('SET_YEAR', year);
},
@@ -335,6 +346,7 @@ export default {
},
selectAddress (value, isLocated = true) { // isLocated 控制地图是否跳转
this.queryParams.deptId = value[value.length - 1];
+ this.deptLength = value.length;
this.getData(DEPT_CHANGED);
let node = this.$refs["cascader2"].panel.getNodeByValue(value);
this.drawMap(node, isLocated);
diff --git a/src/components/pannel/index.scss b/src/components/pannel/index.scss
index a6e48b7..5c43563 100644
--- a/src/components/pannel/index.scss
+++ b/src/components/pannel/index.scss
@@ -60,6 +60,8 @@
margin-right: 20px;
position: absolute;
right: 0;
+ display: flex;
+ align-items: center;
}
}
@@ -122,19 +124,20 @@
height: 20px;
background: url('./list.png');
background-size: 100% 100%;
+ margin-left: 10px;
}
.flexIble {
z-index: 4;
- width: 16px;
- height: 16px;
+ width: 20px;
+ height: 20px;
background: url('./close.png');
background-size: 100% 100%;
}
.flexIble_open {
- width: 16px;
- height: 16px;
+ width: 20px;
+ height: 20px;
background: url('./open.png') !important;
background-size: 100% 100%;
}
diff --git a/src/store/getters.js b/src/store/getters.js
index 1e01b22..53d3ded 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -2,6 +2,7 @@ const getters = {
sidebar: state => state.app.sidebar,
year: state => { return state.user.year ? state.user.year : new Date().getFullYear() },
deptId: state => { return state.user.deptId ? state.user.deptId : 100 },
+ deptLength: state => { return state.user.deptLength ? state.user.deptLength : 0 },
size: state => state.app.size,
device: state => state.app.device,
visitedViews: state => state.tagsView.visitedViews,
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index f7c9cf6..0aff7b4 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -5,6 +5,7 @@ import { getToken, setToken, removeToken } from '@/utils/auth'
const user = {
state: {
deptId: '',
+ deptLength: 0,
year: '',
token: getToken(),
name: '',
@@ -79,6 +80,9 @@ const user = {
SET_DEPTID: (state, deptId) => {
state.deptId = deptId
},
+ SET_DEPTIDLENGTH: (state, deptLength) => {
+ state.deptLength = deptLength
+ },
SET_BOOKNAME: (state, bookName) => {
state.bookName = bookName
},
@@ -216,6 +220,7 @@ const user = {
commit('SET_DEPT_NAME', user.dept.deptName)
commit('SET_LEADER', user.dept.leader)
commit('SET_DEPTID', user.deptId)
+ commit('SET_DEPTIDLENGTH', user.deptLength)
commit('SET_AVATAR', avatar)
commit('SET_BUSINESSOWNERSHIP', user.businessOwnership)
commit('SET_BUSINESSLEVEL', user.businessLevel)
diff --git a/src/views/capital/comps/left/bottom/2/index.html b/src/views/capital/comps/left/bottom/2/index.html
index 3f46000..431af70 100644
--- a/src/views/capital/comps/left/bottom/2/index.html
+++ b/src/views/capital/comps/left/bottom/2/index.html
@@ -4,6 +4,7 @@ element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.1)"
flexIbleTable
+ flexIble
@openTable="openTable"
>
diff --git a/src/views/capital/comps/left/middle/2/index.html b/src/views/capital/comps/left/middle/2/index.html
index ad3d2ce..88cec3b 100644
--- a/src/views/capital/comps/left/middle/2/index.html
+++ b/src/views/capital/comps/left/middle/2/index.html
@@ -5,6 +5,7 @@ element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.1)"
flexIbleTable
+ flexIble
@openTable="openTable"
>
diff --git a/src/views/capital/comps/left/top/2/index.html b/src/views/capital/comps/left/top/2/index.html
index 666fe5b..d77e55b 100644
--- a/src/views/capital/comps/left/top/2/index.html
+++ b/src/views/capital/comps/left/top/2/index.html
@@ -5,6 +5,7 @@
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.1)"
flexIbleTable
+ flexIble
@openTable="openTable"
>
diff --git a/src/views/capital/comps/right/bottom/2/index.js b/src/views/capital/comps/right/bottom/2/index.js
index 751ffb4..e7b83e3 100644
--- a/src/views/capital/comps/right/bottom/2/index.js
+++ b/src/views/capital/comps/right/bottom/2/index.js
@@ -10,7 +10,7 @@ export default {
Pannel
},
computed: {
- ...mapGetters(['year', 'deptId'])
+ ...mapGetters(['year', 'deptId', 'deptLength'])
},
watch: {
year: {
@@ -56,10 +56,17 @@ export default {
if (this.year, this.deptId) {
this.isLoad = false;
rankingOfNonStandardFundTransactionsWarning(this.deptId, this.year, this.type).then(res => {
- let data = res.rows.map(item => {
- return [item.name, item.value, item.index]
- })
- this.data = data;
+ if (this.deptLength == 3){
+ this.headers = ['摘要', '金额'];
+ this.data = res.rows.map(item => {
+ return [item.name, item.value]
+ })
+ }else{
+ this.headers = ['部门名称', this.type == 'zc' ? '支出金额' : '收入金额', '排名']
+ this.data = res.rows.map(item => {
+ return [item.name, item.value, item.index]
+ })
+ }
this.isLoad = true;
})
}
@@ -67,6 +74,7 @@ export default {
tabChange (info) {
this.type = info.type;
this.tabIndex = info.id
+ this.headers = ['部门名称', info.type == 'zc' ? '支出金额' : '收入金额', '排名']
this.getData()
}
}
diff --git a/src/views/capital/comps/right/middle/2/index.js b/src/views/capital/comps/right/middle/2/index.js
index e5d6057..5a8eccd 100644
--- a/src/views/capital/comps/right/middle/2/index.js
+++ b/src/views/capital/comps/right/middle/2/index.js
@@ -30,7 +30,7 @@ export default {
};
},
computed: {
- ...mapGetters(['year', 'deptId'])
+ ...mapGetters(['year', 'deptId', 'deptLength'])
},
watch: {
year: {
@@ -51,16 +51,24 @@ export default {
if (this.year, this.deptId) {
this.isLoad = false;
RankingSensitiveWordWarningFundTransactions(this.deptId, this.year, this.type).then(res => {
- let data = res.rows.map(item => {
- return [item.name, item.value, item.index]
- })
- this.data = data;
+ if (this.deptLength == 3){
+ this.headers = ['摘要', '金额'];
+ this.data = res.rows.map(item => {
+ return [item.name, item.value]
+ })
+ }else{
+ this.headers = ['部门名称', this.type == 'zc' ? '支出金额' : '收入金额', '排名']
+ this.data = res.rows.map(item => {
+ return [item.name, item.value, item.index]
+ })
+ }
this.isLoad = true;
})
}
},
tabChange (info) {
this.type = info.type
+ this.headers = ['部门名称', info.type == 'zc' ? '支出金额' : '收入金额', '排名']
this.getData()
}
}
diff --git a/src/views/capital/comps/right/top/2/index.js b/src/views/capital/comps/right/top/2/index.js
index 647dea1..aab044a 100644
--- a/src/views/capital/comps/right/top/2/index.js
+++ b/src/views/capital/comps/right/top/2/index.js
@@ -8,7 +8,7 @@ export default {
Pannel
},
computed: {
- ...mapGetters(['year', 'deptId'])
+ ...mapGetters(['year', 'deptId', 'deptLength'])
},
watch: {
year: {
@@ -39,10 +39,17 @@ export default {
if (this.year, this.deptId) {
this.isLoad = false;
rankingOfLargeFundExpenditureWarning(this.deptId, this.year).then(res => {
- let data = res.rows.map(item => {
- return [item.name, item.value, item.index]
- })
- this.data = data;
+ if (this.deptLength == 3){
+ this.headers = ['摘要', '金额'];
+ this.data = res.rows.map(item => {
+ return [item.name, item.value]
+ })
+ }else{
+ this.headers = ['部门名称', this.type == 'zc' ? '支出金额' : '收入金额', '排名']
+ this.data = res.rows.map(item => {
+ return [item.name, item.value, item.index]
+ })
+ }
this.isLoad = true;
})
}
diff --git a/src/views/property/comps/right/bottom/3/index.js b/src/views/property/comps/right/bottom/3/index.js
index 20dc102..1153490 100644
--- a/src/views/property/comps/right/bottom/3/index.js
+++ b/src/views/property/comps/right/bottom/3/index.js
@@ -10,7 +10,7 @@ export default {
data () {
return {
isLoad: false,
- headers: ['部门', '合同编码', '合同名称', '合同截止日期'],
+ headers: ['部门', '合同编码', '合同名称', '截止日期'],
data: [],
dataName: ['deptName', 'code', 'name', 'endTime']
};
diff --git a/src/views/property/comps/right/middle/2/index.js b/src/views/property/comps/right/middle/2/index.js
index f1f9cb6..f855b59 100644
--- a/src/views/property/comps/right/middle/2/index.js
+++ b/src/views/property/comps/right/middle/2/index.js
@@ -10,7 +10,7 @@ export default {
Pannel
},
computed: {
- ...mapGetters(['year', 'deptId'])
+ ...mapGetters(['year', 'deptId', 'deptLength'])
},
watch: {
year: {
@@ -53,10 +53,17 @@ export default {
if (this.year, this.deptId) {
this.isLoad = false;
debtChangeRanking(this.deptId, this.year, this.type).then(res => {
- let data = res.rows.map(item => {
- return [item.name, item.value, item.index]
- })
- this.data = data;
+ if (this.deptLength == 3){
+ this.headers = ['摘要', '金额'];
+ this.data = res.rows.map(item => {
+ return [item.name, item.value]
+ })
+ }else{
+ this.headers = ['部门名称', '债务金额', '排名']
+ this.data = res.rows.map(item => {
+ return [item.name, item.value, item.index]
+ })
+ }
this.isLoad = true;
})
}
diff --git a/src/views/property/comps/right/middle/3/index.js b/src/views/property/comps/right/middle/3/index.js
index da09a40..350b789 100644
--- a/src/views/property/comps/right/middle/3/index.js
+++ b/src/views/property/comps/right/middle/3/index.js
@@ -10,7 +10,7 @@ export default {
data () {
return {
isLoad: false,
- headers: ['部门', '合同编码', '合同名称', '合同截止日期'],
+ headers: ['部门', '合同编码', '合同名称', '截止日期'],
data: [['部门', '合同编码', '合同名称', '合同截止日期']],
dataName: ['deptName', 'code', 'name', 'endTime']
};
diff --git a/src/views/property/main-gis/icon/1.png b/src/views/property/main-gis/icon/1.png
new file mode 100644
index 0000000000000000000000000000000000000000..1ebacb1d66c7d5b5665605bfc969a352c00b2a6b
GIT binary patch
literal 1187
zcmaJ>TWs4@754i$Ds8j{_25jqpvIS^aT2d#ZR2FiSgIm@21oQ=5qfJHHZ7(5BQFnQ@*?cv06-sC3VB>-+UzGDkMAc7A{J=$*iAAhJDM-psWxu7JhW`{~tX
zR^9%q(YdzzWpCGw<-WD$E$M`{RQvc;{NC+@=Lf}~yp5AbOK#