|
@@ -12,7 +12,8 @@
|
|
|
<el-button type="text" size="mini">部门</el-button>
|
|
<el-button type="text" size="mini">部门</el-button>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<dv-border-box-8>
|
|
<dv-border-box-8>
|
|
|
- <el-select
|
|
|
|
|
|
|
+ <SelectPositions @handleFunc="handleFunc" />
|
|
|
|
|
+ <!-- <el-select
|
|
|
v-model="deptVal"
|
|
v-model="deptVal"
|
|
|
:clearable="false"
|
|
:clearable="false"
|
|
|
placeholder="请选择部门"
|
|
placeholder="请选择部门"
|
|
@@ -24,7 +25,7 @@
|
|
|
:label="item.positionName"
|
|
:label="item.positionName"
|
|
|
:value="item.positionId"
|
|
:value="item.positionId"
|
|
|
/>
|
|
/>
|
|
|
- </el-select>
|
|
|
|
|
|
|
+ </el-select> -->
|
|
|
</dv-border-box-8>
|
|
</dv-border-box-8>
|
|
|
</div>
|
|
</div>
|
|
|
<div :class="$style.daterange" style="right: 65%">
|
|
<div :class="$style.daterange" style="right: 65%">
|
|
@@ -172,7 +173,8 @@ export default {
|
|
|
JobPlanChart: () => import('./components/jobPlanChart.vue'),
|
|
JobPlanChart: () => import('./components/jobPlanChart.vue'),
|
|
|
TrainingStaffChart: () => import('./components/trainingStaffChart.vue'),
|
|
TrainingStaffChart: () => import('./components/trainingStaffChart.vue'),
|
|
|
PieChart: () => import('./components/pieChart.vue'),
|
|
PieChart: () => import('./components/pieChart.vue'),
|
|
|
- PreWorkChart: () => import('./components/preWorkChart.vue')
|
|
|
|
|
|
|
+ PreWorkChart: () => import('./components/preWorkChart.vue'),
|
|
|
|
|
+ SelectPositions: () => import('@/views/component/selectPositions')
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
const d = new Date()
|
|
const d = new Date()
|
|
@@ -237,7 +239,8 @@ export default {
|
|
|
title: '岗前培训',
|
|
title: '岗前培训',
|
|
|
numData: data.preData
|
|
numData: data.preData
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ updateAllGo: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -258,6 +261,7 @@ export default {
|
|
|
this.dateValM = this.getYearMonth('m')
|
|
this.dateValM = this.getYearMonth('m')
|
|
|
this.dateValY = this.getYearMonth('y')
|
|
this.dateValY = this.getYearMonth('y')
|
|
|
this.updateAll()
|
|
this.updateAll()
|
|
|
|
|
+ this.updateAllGo = true
|
|
|
},
|
|
},
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
|
if (screenfull.isFullscreen) {
|
|
if (screenfull.isFullscreen) {
|
|
@@ -266,6 +270,12 @@ export default {
|
|
|
this.clenUp()
|
|
this.clenUp()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleFunc(e) {
|
|
|
|
|
+ if (this.updateAllGo) {
|
|
|
|
|
+ this.deptVal = e.selection
|
|
|
|
|
+ this.updateAll(this.deptVal)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
initializeData() {
|
|
initializeData() {
|
|
|
const w = window.innerWidth
|
|
const w = window.innerWidth
|
|
|
const { first = '', second = '' } = this.$store.getters.level || {}
|
|
const { first = '', second = '' } = this.$store.getters.level || {}
|