@@ -228,7 +228,7 @@ export default { | |||||
reset() { | reset() { | ||||
this.$refs.datefilter.changeDateRange('all') | this.$refs.datefilter.changeDateRange('all') | ||||
this.queryData = this.COPY(this.defaultQueryData) | this.queryData = this.COPY(this.defaultQueryData) | ||||
this.searchChange() | |||||
// this.searchChange() | |||||
}, | }, | ||||
// 点击「编辑」、「查看」、「添加」、「删除」按钮 | // 点击「编辑」、「查看」、「添加」、「删除」按钮 | ||||
@@ -244,7 +244,7 @@ this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId; | |||||
reset() { | reset() { | ||||
this.$refs.datefilter.changeDateRange('all') | this.$refs.datefilter.changeDateRange('all') | ||||
this.queryData = this.COPY(this.defaultQueryData) | this.queryData = this.COPY(this.defaultQueryData) | ||||
this.searchChange() | |||||
// this.searchChange() | |||||
}, | }, | ||||
// 点击「编辑」、「查看」、「添加」、「删除」按钮 | // 点击「编辑」、「查看」、「添加」、「删除」按钮 | ||||
@@ -3,7 +3,8 @@ | |||||
<!-- 主列表页 --> | <!-- 主列表页 --> | ||||
<view :class="sideOpen ? 'show' : ''" class="mainpage" style="padding-top: 80rpx;"> | <view :class="sideOpen ? 'show' : ''" class="mainpage" style="padding-top: 80rpx;"> | ||||
<!-- 顶部条目/分页信息栏 --> | <!-- 顶部条目/分页信息栏 --> | ||||
<l-customlist-banner @buttonClick="sideOpen = true">{{ tips }}</l-customlist-banner> | |||||
<!-- sideOpen = true --> | |||||
<l-customlist-banner @buttonClick="">{{ tips }}</l-customlist-banner> | |||||
<!-- 滚动列表,跨端支持上拉/下拉 --> | <!-- 滚动列表,跨端支持上拉/下拉 --> | ||||
<l-scroll-list v-if="ready" @pullDown="pullDown" @toBottom="fetchList()" ref="list"> | <l-scroll-list v-if="ready" @pullDown="pullDown" @toBottom="fetchList()" ref="list"> | ||||
@@ -13,12 +14,14 @@ | |||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
<text class="customlist-item-field-title">时间:</text> | <text class="customlist-item-field-title">时间:</text> | ||||
{{ displayListItem(item, 'Date') }} | |||||
<!-- {{ displayListItem(item, 'Date') }} --> | |||||
{{ displayListItem(item, 'StartTime') }} - {{ displayListItem(item, 'EndTime') }} | |||||
</view> | </view> | ||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
<text class="customlist-item-field-title">值班人:</text> | <text class="customlist-item-field-title">值班人:</text> | ||||
{{ displayListItem(item, 'Person') }} | |||||
<!-- {{ displayListItem(item, 'Person') }} --> | |||||
{{ displayListItem(item, 'F_RealName') }} | |||||
</view> | </view> | ||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
@@ -84,9 +87,12 @@ export default { | |||||
return { | return { | ||||
// 数据项的数据类型、结构 | // 数据项的数据类型、结构 | ||||
scheme: { | scheme: { | ||||
Date: { type: 'datetime', dateformat: '0' }, | |||||
Person: { type: 'text' }, | |||||
// Date: { type: 'datetime', dateformat: '0' }, | |||||
// Person: { type: 'text' }, | |||||
Remark: { type: 'textarea' }, | Remark: { type: 'textarea' }, | ||||
StartTime: { type: 'datetime', dateformat: '0' }, | |||||
EndTime: { type: 'datetime', dateformat: '0' }, | |||||
F_RealName: { type: 'text' }, | |||||
}, | }, | ||||
// 查询条件 | // 查询条件 | ||||
@@ -2,17 +2,30 @@ | |||||
<view class="page"> | <view class="page"> | ||||
<view v-if="ready"> | <view v-if="ready"> | ||||
<l-date-picker | <l-date-picker | ||||
@input="setValue('DutySchedule.Date', $event)" | |||||
:value="getValue('DutySchedule.Date')" | |||||
@input="setValue('DutySchedule.StartTime', $event)" | |||||
:value="getValue('DutySchedule.StartTime')" | |||||
:disabled="!edit" | :disabled="!edit" | ||||
title="时间" | |||||
title="开始时间" | |||||
/> | /> | ||||
<l-input | |||||
<l-date-picker | |||||
@input="setValue('DutySchedule.EndTime', $event)" | |||||
:value="getValue('DutySchedule.EndTime')" | |||||
:disabled="!edit" | |||||
title="结束时间" | |||||
/> | |||||
<!-- <l-input | |||||
@input="setValue('DutySchedule.Person', $event)" | @input="setValue('DutySchedule.Person', $event)" | ||||
:value="getValue('DutySchedule.Person')" | :value="getValue('DutySchedule.Person')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
title="值班人" | title="值班人" | ||||
/> | |||||
/> --> | |||||
<l-organize-picker | |||||
@input="setValue('DutySchedule.Person', $event)" | |||||
:value="getValue('DutySchedule.Person')" | |||||
:readonly="!edit" | |||||
type="user" | |||||
title="值班人" | |||||
/> | |||||
<l-textarea | <l-textarea | ||||
@input="setValue('DutySchedule.Remark', $event)" | @input="setValue('DutySchedule.Remark', $event)" | ||||
:value="getValue('DutySchedule.Remark')" | :value="getValue('DutySchedule.Remark')" | ||||
@@ -80,7 +93,9 @@ export default { | |||||
// 表单项数据结构 | // 表单项数据结构 | ||||
scheme: { | scheme: { | ||||
DutySchedule: { | DutySchedule: { | ||||
Date: { type: 'datetime', title: '时间', dateformat: '0' }, | |||||
// Date: { type: 'datetime', title: '时间', dateformat: '0' }, | |||||
StartTime: { type: 'datetime', dateformat: '0' }, | |||||
EndTime: { type: 'datetime', dateformat: '0' }, | |||||
Person: { type: 'text', title: '值班人' }, | Person: { type: 'text', title: '值班人' }, | ||||
Remark: { type: 'textarea', title: '备注' }, | Remark: { type: 'textarea', title: '备注' }, | ||||
}, | }, | ||||
@@ -127,7 +142,8 @@ export default { | |||||
this.origin = await this.getDefaultForm() | this.origin = await this.getDefaultForm() | ||||
} else { | } else { | ||||
const result = await this.HTTP_GET('learun/adms/PersonnelManagement/DutySchedule/form', this.id) | const result = await this.HTTP_GET('learun/adms/PersonnelManagement/DutySchedule/form', this.id) | ||||
this.origin = await this.formatFormData(result) | |||||
let res = {DutySchedule:result.Schedule} | |||||
this.origin = await this.formatFormData(res) | |||||
} | } | ||||
this.current = this.COPY(this.origin) | this.current = this.COPY(this.origin) | ||||
}, | }, | ||||
@@ -184,7 +200,7 @@ export default { | |||||
this.EMIT('PersonnelManagementDutySchedule-list-change') | this.EMIT('PersonnelManagementDutySchedule-list-change') | ||||
this.NAV_BACK() | this.NAV_BACK() | ||||
this.this.TOAST('删除成功', 'success') | |||||
this.TOAST('删除成功', 'success') | |||||
}) | }) | ||||
break | break | ||||