|
|
@@ -20,6 +20,7 @@ |
|
|
|
<el-date-picker size="small" |
|
|
|
v-model="time" |
|
|
|
type="monthrange" |
|
|
|
:clearable="false" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
value-format="yyyy-MM-dd"> |
|
|
@@ -149,6 +150,17 @@ |
|
|
|
methods: { |
|
|
|
async init() { |
|
|
|
window.getTableData = this.importCallback |
|
|
|
|
|
|
|
let getParams = { |
|
|
|
pagination: JSON.stringify({ |
|
|
|
rows: this.pageSize, page: this.currentPage, sidx: '', sord: "DESC", |
|
|
|
}), |
|
|
|
queryJson: JSON.stringify(this.query) |
|
|
|
} |
|
|
|
let result = await this.NetRequest('/PersonnelManagement/Gz_Amounts/GetPageListMyCurrCol', $.param(getParams), 'get') |
|
|
|
let yearMonth = result.year + '-' + (result.month.length == '1' ? '0' + result.month : result.month) |
|
|
|
this.time = [yearMonth + '-' + '01', yearMonth + '-' + '01'] |
|
|
|
|
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
NetRequest(url, data, method = "POST") { |
|
|
|