|
@@ -849,6 +849,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ depth3: {
|
|
|
|
|
+ handler (newVal, oldVal) {
|
|
|
|
|
+ this.positionsInfoData()
|
|
|
|
|
+ this.degreeGradeInfoData()
|
|
|
|
|
+ this.employeeInfoData()
|
|
|
|
|
+ },
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ immediate: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
created () {
|
|
created () {
|
|
|
const initendDate = new Date()
|
|
const initendDate = new Date()
|
|
|
// this.endDate =
|
|
// this.endDate =
|
|
@@ -957,12 +968,12 @@ export default {
|
|
|
and ee.name_ not like '%金通%'
|
|
and ee.name_ not like '%金通%'
|
|
|
and ee.name_ not like '%管理%'
|
|
and ee.name_ not like '%管理%'
|
|
|
and ee.id_ != '702117247933480960'
|
|
and ee.id_ != '702117247933480960'
|
|
|
- AND en.PATH_ LIKE '%${this.level}%'`
|
|
|
|
|
|
|
+ AND en.PATH_ LIKE '%${this.depth3}%'`
|
|
|
await curdPost('sql', sql).then((res) => {
|
|
await curdPost('sql', sql).then((res) => {
|
|
|
data = res.variables.data
|
|
data = res.variables.data
|
|
|
})
|
|
})
|
|
|
|
|
+ this.employeeNum = data.length
|
|
|
if (this.initOnLoad === 0) {
|
|
if (this.initOnLoad === 0) {
|
|
|
- this.employeeNum = data.length
|
|
|
|
|
this.initOnLoad = 1
|
|
this.initOnLoad = 1
|
|
|
}
|
|
}
|
|
|
const personIdsArr = []
|
|
const personIdsArr = []
|
|
@@ -1085,7 +1096,7 @@ export default {
|
|
|
this.ranksPieData.data[2].value = data[0].fuGao ? data[0].fuGao : 0
|
|
this.ranksPieData.data[2].value = data[0].fuGao ? data[0].fuGao : 0
|
|
|
},
|
|
},
|
|
|
// 部门信息统计
|
|
// 部门信息统计
|
|
|
- positionsInfoData () {
|
|
|
|
|
|
|
+ async positionsInfoData () {
|
|
|
// const positionsWhere =
|
|
// const positionsWhere =
|
|
|
// this.positions.length !== 0
|
|
// this.positions.length !== 0
|
|
|
// ? `(${this.positions.join(' or ')} )`
|
|
// ? `(${this.positions.join(' or ')} )`
|
|
@@ -1196,7 +1207,7 @@ export default {
|
|
|
WHERE
|
|
WHERE
|
|
|
b.positions_ IN ( SELECT id_ FROM ibps_party_entity WHERE path_ LIKE '%${this.depth3}%' AND party_type_ = 'position' ))`
|
|
b.positions_ IN ( SELECT id_ FROM ibps_party_entity WHERE path_ LIKE '%${this.depth3}%' AND party_type_ = 'position' ))`
|
|
|
|
|
|
|
|
- curdPost('sql', sql).then((res) => {
|
|
|
|
|
|
|
+ await curdPost('sql', sql).then((res) => {
|
|
|
const data = res.variables.data
|
|
const data = res.variables.data
|
|
|
// 组装数据集,以学历职称为列,以部门为行:{" 大专":['1','2','3']}
|
|
// 组装数据集,以学历职称为列,以部门为行:{" 大专":['1','2','3']}
|
|
|
const degreeSeriesDatas = this.PositionsDegreeOption.series
|
|
const degreeSeriesDatas = this.PositionsDegreeOption.series
|