| | |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :lg="12"> |
| | | <div class="chart-wrapper" /> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="32"> |
| | | <el-col :xs="24" :sm="24" :lg="12"> |
| | | <div class="chart-wrapper"> |
| | | <div class="wrapper-div"> |
| | | <div style="height: 32px;"> |
| | | <el-select v-model="sthProjectDistinguish" filterable clearable placeholder="项目区分" style="width: 185px;" @change="sthProjectDistinguishChange"> |
| | | <el-option |
| | | v-for="item in projectDistinguishList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <subgroup-top-hours :key="sthRandom" :project-distinguish="sthParameterProjectDistinguish" /> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :lg="12"> |
| | | <div class="chart-wrapper"> |
| | | <div class="wrapper-div"> |
| | | <el-select v-model="pwhProjectId" filterable clearable placeholder="目标项目" style="width: 185px;" @change="pwhProjectIdChange"> |
| | |
| | | import ProjectWorkingHours from './chart/projectWorkingHours.vue' |
| | | import TypeContractPrice from './chart/typeContractPrice.vue' |
| | | import TypeWorkingHours from './chart/typeWorkingHours.vue' |
| | | import SubgroupTopHours from './chart/subgroupTopHours.vue' |
| | | |
| | | export default { |
| | | name: 'ProjectChart', |
| | | components: { SubgroupTurnover, SubgroupWorkingHours, ProjectWorkingHours, TypeContractPrice, TypeWorkingHours }, |
| | | components: { SubgroupTurnover, SubgroupWorkingHours, ProjectWorkingHours, TypeContractPrice, TypeWorkingHours, SubgroupTopHours }, |
| | | data() { |
| | | return { |
| | | // 项目列表 |
| | |
| | | tcpwhRandom: 0, |
| | | // 类型合同额、分组工时:传参 |
| | | tcpwhParameterProjectDistinguish: null, |
| | | tcpwhParameterTargetYear: new Date().getFullYear().toString() |
| | | tcpwhParameterTargetYear: new Date().getFullYear().toString(), |
| | | // 分组排名工时:项目区分 |
| | | sthProjectDistinguish: null, |
| | | // 分组排名工时:随机数 |
| | | sthRandom: 0, |
| | | // 分组排名工时:传参 |
| | | sthParameterProjectDistinguish: null |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.tcpwhParameterProjectDistinguish = res[constant.PROJECT_DISTINGUISH][0].value.toString() |
| | | // 类型合同额、分组工时:随机数 |
| | | this.tcpwhRandom = Math.random() |
| | | // 分组排名工时:项目区分 |
| | | this.sthProjectDistinguish = res[constant.PROJECT_DISTINGUISH][0].value |
| | | // 分组排名工时:传参 |
| | | this.sthParameterProjectDistinguish = res[constant.PROJECT_DISTINGUISH][0].value.toString() |
| | | // 分组排名工时:随机数 |
| | | this.sthRandom = Math.random() |
| | | }) |
| | | }, |
| | | // 分组营业额:目标年度变更 |
| | |
| | | this.tcpwhParameterTargetYear = this.tcpwhTargetYear.getFullYear().toString() |
| | | // 类型合同额、分组工时:随机数 |
| | | this.tcpwhRandom = Math.random() |
| | | }, |
| | | // 分组排名工时:项目区分变更 |
| | | sthProjectDistinguishChange() { |
| | | // 分组排名工时:传参 |
| | | this.sthParameterProjectDistinguish = this.sthProjectDistinguish.toString() |
| | | // 分组排名工时:随机数 |
| | | this.sthRandom = Math.random() |
| | | } |
| | | } |
| | | } |