| | |
| | | }" |
| | | > |
| | | <text v-if="param.memberNames"> |
| | | <text v-for="mem,i in param.memberList" :key="mem.id"> |
| | | <template v-if="i < 2"> |
| | | <text>{{ mem.name }}</text> |
| | | <text v-if="i < 1 && param.memberList.length > 1">,</text> |
| | | </template> |
| | | </text> |
| | | <text v-if="param.memberList.length > 2">等{{ param.memberList.length }}人</text> |
| | | <text v-for="(mem, i) in param.memberList" :key="mem.id"> |
| | | <template v-if="i < 2"> |
| | | <text>{{ mem.name }}</text> |
| | | <text v-if="i < 1 && param.memberList.length > 1">,</text> |
| | | </template> |
| | | </text> |
| | | <text v-if="param.memberList.length > 2" |
| | | >等{{ param.memberList.length }}人</text |
| | | > |
| | | </text> |
| | | <text v-else>请选择</text> |
| | | </text> |
| | |
| | | </view> |
| | | <view class="sub_btn" @click="handleSub">提交</view> |
| | | <!-- --> |
| | | <!-- :minDate="new Date(param.startTime).getTime()" |
| | | :maxDate="new Date(param.endTime).getTime()" --> |
| | | <u-datetime-picker |
| | | :show="isShowDatetime" |
| | | @confirm="confirmDate" |
| | | :minDate="new Date(param.startTime).getTime()" |
| | | :maxDate="new Date(param.endTime).getTime()" |
| | | @confirm="confirmDate" |
| | | @cancel="isShowDatetime = false" |
| | | mode="datetime" |
| | | ></u-datetime-picker> |
| | |
| | | console.log(option) |
| | | this.param = { ...option } |
| | | this.minDate = new Date().getTime() |
| | | |
| | | this.param.planUseDate = dayjs(this.param.startTime).format('YYYY-MM-DD HH:mm') |
| | | }, |
| | | methods: { |
| | | handleSub() { |
| | |
| | | }) |
| | | }, |
| | | selPeople() { |
| | | if(this.param.memberList && this.param.memberList.length > 0){ |
| | | if (this.param.memberList && this.param.memberList.length > 0) { |
| | | setTimeout(() => { |
| | | this.$eventBus.$emit('applePeoDetail', this.param.memberList || []) |
| | | }, 500) |