部分修改

master
lion 4 months ago
parent 6e9184132e
commit b0887c0f34

@ -57,7 +57,7 @@
mounted() {
this.$nextTick(() => {
this.initChart()
this.bindEvents()
// this.bindEvents()
})
},
beforeDestroy() {

@ -55,6 +55,7 @@
v-model="select.department"
placeholder="科室选择"
clearable
multiple
size="small"
style="width: 160px"
>

@ -42,7 +42,6 @@
</Button>
<Button
style="margin-left: 10px"
"
class="slot-btns-item"
size="small"
type="primary"

@ -242,7 +242,7 @@
</div>
</div>
</div>
<xy-table :height="280" :list="sitem[1].departments" :table-item="departmentTable">
<xy-table :height="253" :list="sitem[1].departments" :table-item="departmentTable">
<template v-slot:btns>
<el-table-column
:width="80"
@ -260,6 +260,33 @@
</el-table-column>
</template>
</xy-table>
<div>
<div slot="header" class="box-card-header" style="padding-bottom:11px">
<SvgIcon style="color: #2D8cF0;width: 24px;height: 24px;" icon-class="caidan" />
<span style="padding-left:10px;">{{ sitem[2].type_text }}</span>
<i class="el-icon-more" style="margin-left: auto; font-size: 20px" />
</div>
<xy-table :height="254" :list="sitem[2].departments" :table-item="departmentTable">
<template v-slot:btns>
<el-table-column
:width="80"
fixed="right"
label="操作"
header-align="center"
align="center"
>
<template slot-scope="scope">
<router-link
:to="`/statisticalReport/budgetProgress?departmentId=${scope.row.department_id}&type=${sitem[2].type}`"
>查看
</router-link>
</template>
</el-table-column>
</template>
</xy-table>
</div>
</el-card>
</el-col>
</template>
@ -1320,7 +1347,7 @@ export default {
this.statistic = res
if (res.typeList) {
var arr = []
for (var i = 0; i < res.typeList.length; i = i + 2) {
for (var i = 0; i < res.typeList.length; i = i + 3) {
if (res.typeList[i]) {
res.typeList[i].per = this.getPer(res.typeList[i])
// arr.push(res.typeList[i])
@ -1328,8 +1355,12 @@ export default {
if (res.typeList[i + 1]) {
res.typeList[i + 1].per = this.getPer(res.typeList[i + 1])
// arr.push(res.typeList[i + 1])
}
if (res.typeList[i + 2]) {
res.typeList[i + 2].per = this.getPer(res.typeList[i + 2])
// arr.push(res.typeList[i + 1])
}
arr.push([res.typeList[i], res.typeList[i + 1]])
arr.push([res.typeList[i], res.typeList[i + 1],res.typeList[i + 2]])
}
this.typeList = arr
}

Loading…
Cancel
Save