This commit is contained in:
杜建超 2020-09-28 16:55:12 +08:00
parent baec2b14de
commit 07ea9a2a97
4 changed files with 64 additions and 6 deletions

View File

@ -99,7 +99,7 @@
}, },
restValue () { restValue () {
this.formInline = {} this.formInline = {}
this.selectMonthTime = '' this.selectMonthTime = this.nowDate()
}, },
onsumbit () { onsumbit () {
this.formInline = Object.assign({}, this.formInline, this.isChooseObj) this.formInline = Object.assign({}, this.formInline, this.isChooseObj)

View File

@ -8,6 +8,7 @@
:data="dataList" :data="dataList"
border border
v-loading="dataListLoading" v-loading="dataListLoading"
@cell-click="jumpDetail"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="businessLine" prop="businessLine"
@ -98,6 +99,17 @@
label="4"> label="4">
</el-table-column> </el-table-column>
<!-- <el-table-column
header-align="center"
align="center"
width="100"
label="4">
<template slot-scope="scope">
<span v-if="scope.row.level8 === 0">{{scope.row.level8}}</span>
<el-button v-if="scope.row.level8 > 0">{{scope.row.level8}}</el-button>
</template>
</el-table-column>-->
</el-table> </el-table>
<el-pagination <el-pagination
@ -133,13 +145,29 @@
selectMonthTime: '' selectMonthTime: ''
} }
}, },
created () { activated () {
this.handleGetTableList()
}, },
components: { components: {
queryForm queryForm
}, },
methods: { methods: {
jumpDetail (row, column, event, cell) {
if (cell.srcElement.innerText === '0') {
this.$message({
message: '暂无人员信息',
type: 'success',
duration: 1500,
onClose: () => {
}
})
return
}
console.log(row.departmentId)
console.log(column.label)
this.$router.push({name: 'resultReport', query: {departmentId: row.departmentId, departmentName: row.departmentName, type: 2, status: 109, label: column.label}}, () => {
this.mainTabsActiveName = this.$route.name
})
},
// //
async handleGetTableList () { async handleGetTableList () {
const loading = this.$loading({ const loading = this.$loading({

View File

@ -27,7 +27,7 @@
<el-form-item :label="`审批进度`"> <el-form-item :label="`审批进度`">
<el-select v-model="status" placeholder="请选择" style="width: 120px" @change="resetPage"> <el-select v-model="status" placeholder="请选择" clearable style="width: 120px" @change="resetPage">
<el-option <el-option
v-for="item in statusList" v-for="item in statusList"
:key="item.value" :key="item.value"
@ -50,6 +50,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="`类型`">
<el-select v-model="type" placeholder="请选择" style="width: 120px" @change="resetPage">
<el-option
v-for="item in typeList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="员工姓名"> <el-form-item label="员工姓名">
<el-input <el-input
@ -97,6 +108,7 @@
staffName: null, staffName: null,
level: null, level: null,
status: null, status: null,
type: null,
isChooseObj: {}, isChooseObj: {},
isChoose: false, isChoose: false,
menuList: [], menuList: [],
@ -118,6 +130,14 @@
'label': '已完成' 'label': '已完成'
} }
], ],
typeList: [
{'value': 1,
'label': '月初目标'
},
{'value': 2,
'label': '月末结果'
}
],
levelList: [ levelList: [
{'value': 3.25, {'value': 3.25,
'label': 3.25 'label': 3.25
@ -150,6 +170,13 @@
beforeMount () { }, beforeMount () { },
created () { created () {
this.status = this.$route.query.status this.status = this.$route.query.status
this.formInline.departmentName = this.$route.query.departmentName
this.formInline.departmentId = this.$route.query.departmentId
this.level = this.$route.query.label
this.type = this.$route.query.type
if (this.type === undefined) {
this.type = this.typeList[0].value
}
this.handleGetMenuList() this.handleGetMenuList()
this.handleChangeData() this.handleChangeData()
}, },
@ -181,7 +208,8 @@
selectMonthTime: this.selectMonthTime, selectMonthTime: this.selectMonthTime,
staffName: this.staffName, staffName: this.staffName,
level: this.level, level: this.level,
status: this.status status: this.status,
type: this.type
} }
this.$emit('submit', obj) this.$emit('submit', obj)
}, },

View File

@ -116,7 +116,8 @@
} }
}, },
created () { created () {
this.handleGetTableList() },
activated () {
}, },
components: { components: {
queryForm queryForm
@ -170,6 +171,7 @@
this.staffName = data.staffName this.staffName = data.staffName
this.level = data.level this.level = data.level
this.status = data.status this.status = data.status
this.type = data.type
this.handleGetTableList() this.handleGetTableList()
}, },
initPage () { initPage () {