This commit is contained in:
2025-12-23 10:15:44 +08:00
parent bca1ae93e1
commit 2ad61a7f7f
@@ -154,18 +154,18 @@ layout("/layouts/platform.html"){
<el-col :offset="4" class="tr" :span="3">
<span class="top_title">职工慰问申请数</span>
</el-col>
<el-col :span="3" class="tr">
<el-col :span="4" class="tr">
<span class="top_title">困难帮扶申请数</span>
</el-col>
<el-col :span="3" class="tr">
<el-col :span="4" class="tr">
<span class="top_title">子女入学登记数</span>
</el-col>
<el-col :span="3" class="tr">
<el-col :span="4" class="tr">
<span class="top_title">撰写提案数</span>
</el-col>
<el-col :span="3" class="tr">
<span class="top_title">参与活动数</span>
</el-col>
<!--<el-col :span="3" class="tr">
<span class="top_title">&lt;!&ndash;参与活动数&ndash;&gt;</span>
</el-col>-->
<el-col :span="3" class="tr">
<span class="top_title">经费报销次数</span>
</el-col>
@@ -176,24 +176,24 @@ layout("/layouts/platform.html"){
<el-col class="tl" :span="4">
<span class="top_title">今年</span>
</el-col>
<el-col class="tr" :span="3">
<el-col class="tr" :span="4">
<span class="fs26"
style="color: #409EFF;">{{numData.now_year.zgww?numData.now_year.zgww:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<el-col class="tr" :span="4">
<span class="fs26"
style="color: #409EFF;">{{numData.now_year.knbf?numData.now_year.knbf:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<el-col class="tr" :span="4">
<span class="fs26"
style="color: #409EFF;">{{numData.now_year.znrx?numData.now_year.znrx:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<span class="fs26" style="color: #409EFF;">{{numData.now_year.ta?numData.now_year.ta:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<span class="fs26" style="color: #409EFF;">{{numData.now_year.hd?numData.now_year.hd:0}}</span>
</el-col>
<!--<el-col class="tr" :span="3">
<span class="fs26" style="color: #409EFF;">&lt;!&ndash;{{numData.now_year.hd?numData.now_year.hd:0}}&ndash;&gt;</span>
</el-col>-->
<el-col class="tr" :span="3">
<span class="fs26"
style="color: #409EFF;">{{numData.now_year.jfbx?numData.now_year.jfbx:0}}</span>
@@ -204,21 +204,21 @@ layout("/layouts/platform.html"){
<el-col class="tl" :span="4">
<span class="top_title">全部</span>
</el-col>
<el-col class="tr" :span="3">
<el-col class="tr" :span="4">
<span class="fs18">{{numData.all.zgww?numData.all.zgww:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<el-col class="tr" :span="4">
<span class="fs18">{{numData.all.knbf?numData.all.knbf:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<el-col class="tr" :span="4">
<span class="fs18">{{numData.all.znrx?numData.all.znrx:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<span class="fs18">{{numData.all.ta?numData.all.ta:0}}</span>
</el-col>
<el-col class="tr" :span="3">
<span class="fs18">{{numData.all.hd?numData.all.hd:0}}</span>
</el-col>
<!-- <el-col class="tr" :span="3">
<span class="fs18">&lt;!&ndash;{{numData.all.hd?numData.all.hd:0}}&ndash;&gt;</span>
</el-col>-->
<el-col class="tr" :span="3">
<span class="fs18">{{numData.all.jfbx?numData.all.jfbx:0}}</span>
</el-col>
@@ -415,54 +415,40 @@ layout("/layouts/platform.html"){
let container = document.getElementById('chart_one');
container.innerHTML = ''
const config = {
"title": {
"visible": true,
"text": "职工动态曲线"
},
"description": {
"visible": true,
"text": "单位(条)"
},
"legend": {
"position": "top-right",
"flipPage": false
},
"point": {
"visible": true
},
"smooth": true,
"forceFit": false,
"width": $('#chart_one').width(),
"height": $('#chart_one').height(),
"xField": "year",
"yField": "value",
"stackField": "type",
}
let plot
if (this.userid) {
$.post("/platform/careData/staff/getNumByYear", {
this.$axios.post("/platform/careData/staff/getNumByYear", {
userid: this.userid,
yearnum: this.yearnum,
startYear: this.numYear.startYear,
endYear: this.numYear.endYear,
}, (res) => {
if (res.code == 0) {
}).then(res=>{
if (res.code === 0) {
let {data} = res
plot = new G2Plot.Area(container, {
plot = new G2Plot.Line(container, {
data,
...config,
xField: 'year',
yField: 'value',
seriesField: 'type',
legend: {
position: 'top',
},
smooth: true,
animation: {
appear: {
animation: 'path-in',
duration: 5000,
},
},
});
plot.render();
this.chart_one_loading = false
}
}, "json");
})
} else {
let data = []
let year = new Date().getFullYear()
@@ -482,7 +468,7 @@ layout("/layouts/platform.html"){
},
getYearNumAndAllNum() {
this.top_block_loading = true
this.$axios.post('/platform/careData/staff/getYearNumAndAllNum',{userid: this.userid,}).then(res => {
this.$axios.post('/platform/careData/staff/getYearNumAndAllNum', {userid: this.userid,}).then(res => {
if (res.code === 0) {
this.numData = res.data
this.top_block_loading = false