Selaa lähdekoodia

web 我的工资默认展示一个有工资的月份

西昌分支
yxq 11 kuukautta sitten
vanhempi
commit
400d3b1030
2 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/MyAmount.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MyAmount/list.vue

+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Gz_Amounts/MyAmount.cshtml Näytä tiedosto

@@ -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") {


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MyAmount/list.vue Näytä tiedosto

@@ -43,7 +43,7 @@
/>
<!-- 重置查询条件按钮 -->
<view class="padding-tb">
<l-button @click="reset" line="orange" class="block" block>重置查询条件</l-button>
<!-- <l-button @click="reset" line="orange" class="block" block>重置查询条件</l-button> -->
</view>
</view>
</scroll-view>


Ladataan…
Peruuta
Tallenna