|
|
@@ -22,7 +22,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-date-picker size="small" |
|
|
|
v-model="query.time" |
|
|
|
v-model="time" |
|
|
|
type="daterange" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
@@ -122,11 +122,11 @@ |
|
|
|
border |
|
|
|
show-overflow-tooltip |
|
|
|
height="500"> |
|
|
|
@*<template v-for="item in fixedColumn"> |
|
|
|
<template v-for="item in fixedColumn"> |
|
|
|
<el-table-column :prop="item.prop" |
|
|
|
:label="item.label"> |
|
|
|
</el-table-column> |
|
|
|
</template>*@ |
|
|
|
</template> |
|
|
|
<template v-for="item in trendsColumn"> |
|
|
|
<el-table-column :prop="item.prop" |
|
|
|
:label="item.label"> |
|
|
@@ -146,6 +146,7 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
query: {}, |
|
|
|
time:null, |
|
|
|
tableData: [], |
|
|
|
multipleSelection: [], |
|
|
|
currentPage: 1, |
|
|
@@ -240,6 +241,13 @@ |
|
|
|
location.reload() |
|
|
|
}, |
|
|
|
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 = { |
|
|
|
pagination: JSON.stringify({ |
|
|
|
rows: this.pageSize, page: this.currentPage, sidx: '', sord: "DESC", |
|
|
@@ -389,11 +397,16 @@ |
|
|
|
this.$message.warning('请选择一条数据进行查看!') |
|
|
|
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') |
|
|
|
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 |
|
|
|
}, |
|
|
|
} |
|
|
|