|
@@ -16,14 +16,13 @@ |
|
|
<el-input placeholder="请输入教职工编号/姓名进行查询" v-model="query.keyword" clearable size="small"></el-input> |
|
|
<el-input placeholder="请输入教职工编号/姓名进行查询" v-model="query.keyword" clearable size="small"></el-input> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-select v-model="query.value" clearable size="small" placeholder="请选择部门"> |
|
|
|
|
|
<el-option label="123123" value="123"></el-option> |
|
|
|
|
|
<el-option label="456" value="222"></el-option> |
|
|
|
|
|
|
|
|
<el-select v-model="query.department" filterable clearable size="small" placeholder="请选择部门"> |
|
|
|
|
|
<el-option v-for="item in departmentOptions" :label="item.label" :value="item.value"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-date-picker size="small" |
|
|
<el-date-picker size="small" |
|
|
v-model="query.time" |
|
|
|
|
|
|
|
|
v-model="time" |
|
|
type="daterange" |
|
|
type="daterange" |
|
|
start-placeholder="开始日期" |
|
|
start-placeholder="开始日期" |
|
|
end-placeholder="结束日期" |
|
|
end-placeholder="结束日期" |
|
@@ -123,11 +122,11 @@ |
|
|
border |
|
|
border |
|
|
show-overflow-tooltip |
|
|
show-overflow-tooltip |
|
|
height="500"> |
|
|
height="500"> |
|
|
@*<template v-for="item in fixedColumn"> |
|
|
|
|
|
|
|
|
<template v-for="item in fixedColumn"> |
|
|
<el-table-column :prop="item.prop" |
|
|
<el-table-column :prop="item.prop" |
|
|
:label="item.label"> |
|
|
:label="item.label"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</template>*@ |
|
|
|
|
|
|
|
|
</template> |
|
|
<template v-for="item in trendsColumn"> |
|
|
<template v-for="item in trendsColumn"> |
|
|
<el-table-column :prop="item.prop" |
|
|
<el-table-column :prop="item.prop" |
|
|
:label="item.label"> |
|
|
:label="item.label"> |
|
@@ -147,11 +146,13 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
query: {}, |
|
|
query: {}, |
|
|
|
|
|
time:null, |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
multipleSelection: [], |
|
|
multipleSelection: [], |
|
|
currentPage: 1, |
|
|
currentPage: 1, |
|
|
pageSize: 30, |
|
|
pageSize: 30, |
|
|
total: 0, |
|
|
total: 0, |
|
|
|
|
|
departmentOptions:[], |
|
|
//固定列 |
|
|
//固定列 |
|
|
fixedColumn: [ |
|
|
fixedColumn: [ |
|
|
{ prop: 'DeptCode', label: '部门代码' }, |
|
|
{ prop: 'DeptCode', label: '部门代码' }, |
|
@@ -188,7 +189,16 @@ |
|
|
this.init() |
|
|
this.init() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
init() { |
|
|
|
|
|
|
|
|
async init() { |
|
|
|
|
|
await Promise.all([ |
|
|
|
|
|
this.NetRequest('/LR_OrganizationModule/Department/GetTree?companyId=207fa1a9-160c-4943-a89b-8fa4db0547ce&parentId=0', null, 'get').then(res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
this.departmentOptions = res.map(e => { |
|
|
|
|
|
return {value:e.id,label:e.text} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
]) |
|
|
this.getTableData() |
|
|
this.getTableData() |
|
|
}, |
|
|
}, |
|
|
NetRequest(url, data, method = "POST") { |
|
|
NetRequest(url, data, method = "POST") { |
|
@@ -231,6 +241,13 @@ |
|
|
location.reload() |
|
|
location.reload() |
|
|
}, |
|
|
}, |
|
|
async getTableData() { |
|
|
async getTableData() { |
|
|
|
|
|
if (this.time) { |
|
|
|
|
|
this.query.time1 = this.time[0] |
|
|
|
|
|
this.query.time2 = this.time[1] |
|
|
|
|
|
} else if (this.query['time1']){ |
|
|
|
|
|
delete this.query['time1'] |
|
|
|
|
|
delete this.query['time2'] |
|
|
|
|
|
} |
|
|
let getParams = { |
|
|
let getParams = { |
|
|
pagination: JSON.stringify({ |
|
|
pagination: JSON.stringify({ |
|
|
rows: this.pageSize, page: this.currentPage, sidx: '', sord: "DESC", |
|
|
rows: this.pageSize, page: this.currentPage, sidx: '', sord: "DESC", |
|
@@ -380,11 +397,16 @@ |
|
|
this.$message.warning('请选择一条数据进行查看!') |
|
|
this.$message.warning('请选择一条数据进行查看!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.detailData = [] |
|
|
|
|
|
|
|
|
this.detailData = JSON.parse(JSON.stringify(this.multipleSelection)) |
|
|
let result = await this.NetRequest('/PersonnelManagement/Gz_Amounts/GetDetail', $.param({ userNo: this.multipleSelection[0].UserNo, year: this.multipleSelection[0].Year, month: this.multipleSelection[0].Month }), 'get') |
|
|
let result = await this.NetRequest('/PersonnelManagement/Gz_Amounts/GetDetail', $.param({ userNo: this.multipleSelection[0].UserNo, year: this.multipleSelection[0].Year, month: this.multipleSelection[0].Month }), 'get') |
|
|
debugger |
|
|
|
|
|
this.detailData = result; |
|
|
|
|
|
this.trendsColumn = [{ porp: 'Item2', label: 'Item1' }] |
|
|
|
|
|
|
|
|
if (result) { |
|
|
|
|
|
let obj = {} |
|
|
|
|
|
this.trendsColumn = result.map((e, i) => { |
|
|
|
|
|
obj['trends' + i] = e.Item2 |
|
|
|
|
|
return { prop: 'trends' + i, label: e.Item1} |
|
|
|
|
|
}) |
|
|
|
|
|
this.detailData[0] = { ...this.detailData[0], ...obj } |
|
|
|
|
|
} |
|
|
this.dialogVisible1 = true |
|
|
this.dialogVisible1 = true |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|