diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.cshtml
index 480fe188c..95f8f4d3f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/Index.cshtml
@@ -16,14 +16,13 @@
-
-
-
+
+
- @*
+
- *@
+
@@ -147,11 +146,13 @@
data() {
return {
query: {},
+ time:null,
tableData: [],
multipleSelection: [],
currentPage: 1,
pageSize: 30,
total: 0,
+ departmentOptions:[],
//固定列
fixedColumn: [
{ prop: 'DeptCode', label: '部门代码' },
@@ -188,7 +189,16 @@
this.init()
},
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()
},
NetRequest(url, data, method = "POST") {
@@ -231,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",
@@ -380,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
},
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index 87e01214b..788ec2536 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -1977,6 +1977,8 @@
+
+
@@ -7946,6 +7948,8 @@
+
+