Browse Source

工资信息导出可筛选

西昌分支
北京泉江 9 months ago
parent
commit
59896e449f
2 changed files with 21 additions and 6 deletions
  1. +18
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.cshtml
  2. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.js

+ 18
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.cshtml View File

@@ -27,6 +27,7 @@
<el-col :span="4">
<el-date-picker size="small"
v-model="time"
v-on:change="timeChange"
type="monthrange"
start-placeholder="开始日期"
end-placeholder="结束日期"
@@ -114,7 +115,10 @@
el: '#app',
data() {
return {
query: {},
query: {
time1: '',
time2:'',
},
time: null,
tableData: [],
multipleSelection: [],
@@ -159,6 +163,14 @@
mounted() {
this.init()
},
watch:{
query:{
handler() {
$('#lr_export').attr('exportQuery', JSON.stringify(this.query))
},
deep: true
}
},
methods: {
async init() {
await Promise.all([
@@ -215,14 +227,16 @@
rowClick(row) {
this.$refs.multipleTable.toggleRowSelection(row);
},
async getTableData() {
timeChange() {
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']
this.query['time1'] = ''
this.query['time2'] = ''
}
},
async getTableData() {
let getParams = {
pagination: JSON.stringify({
rows: this.pageSize, page: this.currentPage, sidx: '', sord: "DESC",


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.js View File

@@ -85,13 +85,14 @@ var bootstrap = function ($, learun) {
}
});
});
//导出
$("#lr_export").on("click", function () {
var p = {};
var p = $('#lr_export').attr('exportQuery');
learun.download({
method: "POST",
url: top.$.rootUrl + '/PersonnelManagement/Gz_Amounts/ExportCol',
param: {
queryJson: JSON.stringify(p)
queryJson: p || JSON.stringify({})
}
});
});


Loading…
Cancel
Save