Procházet zdrojové kódy

app2.0 值班安排 重置操作出现重复数据

临城职教中职
杨晓琪 před 2 roky
rodič
revize
ff472c3714
4 změnil soubory, kde provedl 37 přidání a 15 odebrání
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue
  2. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue
  3. +11
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/list.vue
  4. +24
    -8
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/single.vue

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue Zobrazit soubor

@@ -228,7 +228,7 @@ export default {
reset() {
this.$refs.datefilter.changeDateRange('all')
this.queryData = this.COPY(this.defaultQueryData)
this.searchChange()
// this.searchChange()
},
// 点击「编辑」、「查看」、「添加」、「删除」按钮


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue Zobrazit soubor

@@ -244,7 +244,7 @@ this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId;
reset() {
this.$refs.datefilter.changeDateRange('all')
this.queryData = this.COPY(this.defaultQueryData)
this.searchChange()
// this.searchChange()
},
// 点击「编辑」、「查看」、「添加」、「删除」按钮


+ 11
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/list.vue Zobrazit soubor

@@ -3,7 +3,8 @@
<!-- 主列表页 -->
<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">
@@ -13,12 +14,14 @@
<view class="customlist-item-field">
<text class="customlist-item-field-title">时间:</text>
{{ displayListItem(item, 'Date') }}
<!-- {{ displayListItem(item, 'Date') }} -->
{{ displayListItem(item, 'StartTime') }}&nbsp;-&nbsp;{{ displayListItem(item, 'EndTime') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">值班人:</text>
{{ displayListItem(item, 'Person') }}
<!-- {{ displayListItem(item, 'Person') }} -->
{{ displayListItem(item, 'F_RealName') }}
</view>
<view class="customlist-item-field">
@@ -84,9 +87,12 @@ export default {
return {
// 数据项的数据类型、结构
scheme: {
Date: { type: 'datetime', dateformat: '0' },
Person: { type: 'text' },
// Date: { type: 'datetime', dateformat: '0' },
// Person: { type: 'text' },
Remark: { type: 'textarea' },
StartTime: { type: 'datetime', dateformat: '0' },
EndTime: { type: 'datetime', dateformat: '0' },
F_RealName: { type: 'text' },
},
// 查询条件


+ 24
- 8
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/DutySchedule/single.vue Zobrazit soubor

@@ -2,17 +2,30 @@
<view class="page">
<view v-if="ready">
<l-date-picker
@input="setValue('DutySchedule.Date', $event)"
:value="getValue('DutySchedule.Date')"
@input="setValue('DutySchedule.StartTime', $event)"
:value="getValue('DutySchedule.StartTime')"
: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)"
:value="getValue('DutySchedule.Person')"
:disabled="!edit"
title="值班人"
/>
/> -->
<l-organize-picker
@input="setValue('DutySchedule.Person', $event)"
:value="getValue('DutySchedule.Person')"
:readonly="!edit"
type="user"
title="值班人"
/>
<l-textarea
@input="setValue('DutySchedule.Remark', $event)"
:value="getValue('DutySchedule.Remark')"
@@ -80,7 +93,9 @@ export default {
// 表单项数据结构
scheme: {
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: '值班人' },
Remark: { type: 'textarea', title: '备注' },
},
@@ -127,7 +142,8 @@ export default {
this.origin = await this.getDefaultForm()
} else {
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)
},
@@ -184,7 +200,7 @@ export default {
this.EMIT('PersonnelManagementDutySchedule-list-change')
this.NAV_BACK()
this.this.TOAST('删除成功', 'success')
this.TOAST('删除成功', 'success')
})
break


Načítá se…
Zrušit
Uložit