fix
This commit is contained in:
parent
0942452303
commit
f1827fab68
@ -1,11 +1,20 @@
|
|||||||
import http from '../utils/http'
|
import http from '../utils/http'
|
||||||
|
|
||||||
// 业绩看板
|
// 业绩看板
|
||||||
export const apiReportChart = data => {
|
export const apiResultChart = data => {
|
||||||
return http({ url: '/lz_management/result/chart', method: 'get', params: data })
|
return http({ url: '/lz_management/result/chart', method: 'get', params: data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 业绩列表
|
// 业绩列表
|
||||||
export const apiReportList = data => {
|
export const apiResultReport = data => {
|
||||||
return http({ url: '/lz_management/result/report', method: 'post', params: data })
|
return http({ url: '/lz_management/result/report', method: 'post', params: data })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 业绩列分布
|
||||||
|
export const apiResultDistribution = data => {
|
||||||
|
return http({ url: '/lz_management/result/distribution', method: 'post', params: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const apiDepartmentSelfList = data => {
|
||||||
|
return http({ url: '/lz_management/result/departmentTreeByStaffId', method: 'post', data })
|
||||||
|
}
|
||||||
|
|||||||
@ -43,6 +43,18 @@ const configRoutes = [
|
|||||||
component: _import('modules/result/record/recorddetail'),
|
component: _import('modules/result/record/recorddetail'),
|
||||||
name: 'recorddetail',
|
name: 'recorddetail',
|
||||||
meta: {title: '绩效详情', isDynamic: true, isTab: true}
|
meta: {title: '绩效详情', isDynamic: true, isTab: true}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/resultDistribution',
|
||||||
|
component: _import('modules/result/distribution/index'),
|
||||||
|
name: 'resultDistribution',
|
||||||
|
meta: {title: '绩效结果分布', isDynamic: true, isTab: true}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/resultReport',
|
||||||
|
component: _import('modules/result/report/index'),
|
||||||
|
name: 'resultReport',
|
||||||
|
meta: {title: '绩效列表', isDynamic: true, isTab: true}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,10 @@
|
|||||||
methods: {
|
methods: {
|
||||||
jump: function (e) {
|
jump: function (e) {
|
||||||
if (this.clickAble) {
|
if (this.clickAble) {
|
||||||
console.log('跳转')
|
// 目前逻辑一致 跳转相同
|
||||||
|
this.$router.push({name: 'resultDistribution'}, () => {
|
||||||
|
this.mainTabsActiveName = this.$route.name
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.clickAble = true
|
this.clickAble = true
|
||||||
}
|
}
|
||||||
@ -105,7 +108,10 @@
|
|||||||
this.chartBar.setOption(option)
|
this.chartBar.setOption(option)
|
||||||
this.chartBar.on('click', function (param) {
|
this.chartBar.on('click', function (param) {
|
||||||
this.clickAble = false
|
this.clickAble = false
|
||||||
console.log(param)
|
// 目前逻辑一致 跳转相同
|
||||||
|
this.$router.push({name: 'resultDistribution'}, () => {
|
||||||
|
this.mainTabsActiveName = this.$route.name
|
||||||
|
})
|
||||||
}.bind(this))
|
}.bind(this))
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.chartBar.resize()
|
this.chartBar.resize()
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
:data="dataInfo"
|
:data="dataInfo"
|
||||||
:extend="color.length>0?Object.assign({},chartExtend,{color}):chartExtend"
|
:extend="color.length>0?Object.assign({},chartExtend,{color}):chartExtend"
|
||||||
:settings="chartSettings"
|
:settings="chartSettings"
|
||||||
|
:events="chartEvents"
|
||||||
></ve-ring>
|
></ve-ring>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -64,6 +65,15 @@
|
|||||||
},
|
},
|
||||||
labelLine: {
|
labelLine: {
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
chartEvents: {
|
||||||
|
click: (e) => { // resultDistribution
|
||||||
|
this.$router.push({name: 'resultReport'}, () => {
|
||||||
|
this.mainTabsActiveName = this.$route.name
|
||||||
|
})
|
||||||
|
console.log('---------' + e.name)
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { apiOrganizationList } from '@/api/api_staff'
|
import { apiDepartmentSelfList } from '@/api/api_report'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
monthTime: {
|
monthTime: {
|
||||||
@ -85,8 +85,8 @@
|
|||||||
},
|
},
|
||||||
// 获取侧边架构列表
|
// 获取侧边架构列表
|
||||||
async handleGetMenuList () {
|
async handleGetMenuList () {
|
||||||
let result = await apiOrganizationList()
|
let result = await apiDepartmentSelfList()
|
||||||
this.menuList = result
|
this.menuList = result.data
|
||||||
},
|
},
|
||||||
// 修改月份
|
// 修改月份
|
||||||
changeApplyMonth (val) {
|
changeApplyMonth (val) {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import chartForm from './componments/chart-form'
|
|||||||
import queryForm from './componments/query-form'
|
import queryForm from './componments/query-form'
|
||||||
import chartBarForm from './componments/chart-bar-form'
|
import chartBarForm from './componments/chart-bar-form'
|
||||||
|
|
||||||
import { apiReportChart } from '@/api/api_report'
|
import { apiResultChart } from '@/api/api_report'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
chartForm,
|
chartForm,
|
||||||
@ -50,7 +50,7 @@ export default {
|
|||||||
spinner: 'el-icon-loading',
|
spinner: 'el-icon-loading',
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
})
|
})
|
||||||
let result = await apiReportChart(data)
|
let result = await apiResultChart(data)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loading.close()
|
loading.close()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|||||||
@ -5,10 +5,11 @@
|
|||||||
<el-form :inline="true" :model="formInline" class="demo-form-inline staff-archives-form">
|
<el-form :inline="true" :model="formInline" class="demo-form-inline staff-archives-form">
|
||||||
<el-form-item label="选择部门">
|
<el-form-item label="选择部门">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请选择部门"
|
placeholder="选择部门"
|
||||||
@focus="isChoose=true"
|
@focus="isChoose=true"
|
||||||
readonly
|
readonly
|
||||||
:value="formInline.departmentName"
|
:value="formInline.departmentName"
|
||||||
|
style="width: 120px"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@ -19,10 +20,45 @@
|
|||||||
v-model="selectMonthTime"
|
v-model="selectMonthTime"
|
||||||
value-format="yyyy-MM"
|
value-format="yyyy-MM"
|
||||||
@change="changeApplyMonth"
|
@change="changeApplyMonth"
|
||||||
|
style="width: 120px"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
<el-form-item :label="`审批进度`">
|
||||||
|
<el-select v-model="status" placeholder="请选择" style="width: 120px" >
|
||||||
|
<el-option
|
||||||
|
v-for="item in statusList"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item :label="`等级`">
|
||||||
|
<el-select v-model="level" placeholder="请选择" clearable style="width: 120px">
|
||||||
|
<el-option
|
||||||
|
v-for="item in levelList"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
<el-form-item label="员工姓名">
|
||||||
|
<el-input
|
||||||
|
v-model="staffName"
|
||||||
|
placeholder="姓名"
|
||||||
|
clearable
|
||||||
|
style="width: 120px"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="onSubmit">查询</el-button>
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
||||||
<el-button type="primary" @click="restValue">重置</el-button>
|
<el-button type="primary" @click="restValue">重置</el-button>
|
||||||
@ -56,6 +92,9 @@
|
|||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
selectMonthTime: this.nowDate(),
|
selectMonthTime: this.nowDate(),
|
||||||
|
staffName: '',
|
||||||
|
level: '',
|
||||||
|
status: '',
|
||||||
isChooseObj: {},
|
isChooseObj: {},
|
||||||
isChoose: false,
|
isChoose: false,
|
||||||
menuList: [],
|
menuList: [],
|
||||||
@ -65,7 +104,44 @@
|
|||||||
},
|
},
|
||||||
formInline: {
|
formInline: {
|
||||||
value: []
|
value: []
|
||||||
}
|
},
|
||||||
|
statusList: [
|
||||||
|
{'value': 0,
|
||||||
|
'label': '未提交'
|
||||||
|
},
|
||||||
|
{'value': 1,
|
||||||
|
'label': '审批中'
|
||||||
|
},
|
||||||
|
{'value': 4,
|
||||||
|
'label': '已完成'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
levelList: [
|
||||||
|
{'value': 3.25,
|
||||||
|
'label': 3.25
|
||||||
|
},
|
||||||
|
{'value': 3.5 + '-',
|
||||||
|
'label': 3.5 + '-'
|
||||||
|
},
|
||||||
|
{'value': 3.5,
|
||||||
|
'label': 3.5
|
||||||
|
},
|
||||||
|
{'value': 3.5 + '+',
|
||||||
|
'label': 3.5 + '+'
|
||||||
|
},
|
||||||
|
{'value': 3.75 + '-',
|
||||||
|
'label': 3.5 + '-'
|
||||||
|
},
|
||||||
|
{'value': 3.75,
|
||||||
|
'label': 3.75
|
||||||
|
},
|
||||||
|
{'value': 3.75 + '+',
|
||||||
|
'label': 3.75 + '+'
|
||||||
|
},
|
||||||
|
{'value': 4,
|
||||||
|
'label': 4
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@ -76,7 +152,6 @@
|
|||||||
},
|
},
|
||||||
mounted () {},
|
mounted () {},
|
||||||
beforeUpdate () {
|
beforeUpdate () {
|
||||||
// this.selectMonthTime = this.monthTime
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async handleChangeData () {
|
async handleChangeData () {
|
||||||
@ -95,13 +170,19 @@
|
|||||||
onSubmit () {
|
onSubmit () {
|
||||||
let obj = {
|
let obj = {
|
||||||
departmentId: this.formInline.departmentId,
|
departmentId: this.formInline.departmentId,
|
||||||
selectMonthTime: this.selectMonthTime
|
selectMonthTime: this.selectMonthTime,
|
||||||
|
staffName: this.staffName,
|
||||||
|
level: this.level,
|
||||||
|
status: this.status
|
||||||
}
|
}
|
||||||
this.$emit('submit', obj)
|
this.$emit('submit', obj)
|
||||||
},
|
},
|
||||||
restValue () {
|
restValue () {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.selectMonthTime = ''
|
this.selectMonthTime = ''
|
||||||
|
this.staffName = ''
|
||||||
|
this.status = ''
|
||||||
|
this.level = ''
|
||||||
},
|
},
|
||||||
onsumbit () {
|
onsumbit () {
|
||||||
this.formInline = Object.assign({}, this.formInline, this.isChooseObj)
|
this.formInline = Object.assign({}, this.formInline, this.isChooseObj)
|
||||||
|
|||||||
@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mod-log">
|
<div class="mod-config">
|
||||||
|
<el-card class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="handleGetTableList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="handleGetTableList()">
|
||||||
<el-card>
|
|
||||||
<query-form @submit="submit"/>
|
<query-form @submit="submit"/>
|
||||||
</el-card>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table
|
||||||
:data="dataList"
|
:data="dataList"
|
||||||
@ -14,7 +13,7 @@
|
|||||||
prop="staffName"
|
prop="staffName"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="120"
|
||||||
label="姓名">
|
label="姓名">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
@ -22,7 +21,7 @@
|
|||||||
prop="status"
|
prop="status"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="120"
|
||||||
label="当前进度">
|
label="当前进度">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status === 0" size="small" type="danger">未提交</el-tag>
|
<el-tag v-if="scope.row.status === 0" size="small" type="danger">未提交</el-tag>
|
||||||
@ -52,7 +51,7 @@
|
|||||||
prop="version"
|
prop="version"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="200"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
label="业务得分70%">
|
label="业务得分70%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -61,20 +60,20 @@
|
|||||||
prop="deployTime"
|
prop="deployTime"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="200"
|
||||||
label="价值观得分30%">
|
label="价值观得分30%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="120"
|
||||||
label="总分">
|
label="总分">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="120"
|
||||||
label="等级">
|
label="等级">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
@ -88,11 +87,12 @@
|
|||||||
:total="totalPage"
|
:total="totalPage"
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
layout="total, sizes, prev, pager, next, jumper">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { apiReportList } from '@/api/api_report'
|
import { apiResultReport } from '@/api/api_report'
|
||||||
import queryForm from './componments/query-form'
|
import queryForm from './componments/query-form'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
@ -109,6 +109,8 @@
|
|||||||
selectionDataList: [],
|
selectionDataList: [],
|
||||||
departmentId: '',
|
departmentId: '',
|
||||||
selectMonthTime: '',
|
selectMonthTime: '',
|
||||||
|
staffName: '',
|
||||||
|
level: '',
|
||||||
status: 0,
|
status: 0,
|
||||||
type: 1
|
type: 1
|
||||||
}
|
}
|
||||||
@ -121,13 +123,21 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
handleGetTableList () {
|
async handleGetTableList () {
|
||||||
apiReportList({
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
apiResultReport({
|
||||||
'currPage': this.pageIndex,
|
'currPage': this.pageIndex,
|
||||||
'pageSize': this.pageSize,
|
'pageSize': this.pageSize,
|
||||||
'departmentId': this.departmentId,
|
'departmentId': this.departmentId,
|
||||||
'selectMonthTime': this.selectMonthTime,
|
'selectMonthTime': this.selectMonthTime,
|
||||||
'status': this.status,
|
'status': this.status,
|
||||||
|
'staffName': this.staffName,
|
||||||
|
'level': this.level,
|
||||||
'type': this.type
|
'type': this.type
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res && res.code === 0) {
|
if (res && res.code === 0) {
|
||||||
@ -137,6 +147,9 @@
|
|||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.totalPage = 0
|
this.totalPage = 0
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
loading.close()
|
||||||
|
}, 500)
|
||||||
this.dataListLoading = false
|
this.dataListLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -154,6 +167,9 @@
|
|||||||
submit (data) {
|
submit (data) {
|
||||||
this.departmentId = data.departmentId
|
this.departmentId = data.departmentId
|
||||||
this.selectMonthTime = data.selectMonthTime
|
this.selectMonthTime = data.selectMonthTime
|
||||||
|
this.staffName = data.staffName
|
||||||
|
this.level = data.level
|
||||||
|
this.status = data.status
|
||||||
this.handleGetTableList()
|
this.handleGetTableList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user