commit
This commit is contained in:
@@ -53,7 +53,10 @@ public class ActivityTypeController {
|
|||||||
@ViReturn
|
@ViReturn
|
||||||
public Object findAll() {
|
public Object findAll() {
|
||||||
List<ActivityType> meetingTypeList = dao.query(ActivityType.class, Cnd.NEW().asc("sortNum"));
|
List<ActivityType> meetingTypeList = dao.query(ActivityType.class, Cnd.NEW().asc("sortNum"));
|
||||||
dao.fetchLinks(meetingTypeList, "^auditStateList$");
|
for (ActivityType activityType : meetingTypeList) {
|
||||||
|
dao.fetchLinks(activityType, "^auditStateList$", Cnd.where("module", "=", activityType.getModuleName()));
|
||||||
|
}
|
||||||
|
|
||||||
for (ActivityType ActivityType : meetingTypeList) {
|
for (ActivityType ActivityType : meetingTypeList) {
|
||||||
List<AuditState> auditStateList = ActivityType.getAuditStateList();
|
List<AuditState> auditStateList = ActivityType.getAuditStateList();
|
||||||
dao.fetchLinks(auditStateList, "^auditStateUserList$");
|
dao.fetchLinks(auditStateList, "^auditStateUserList$");
|
||||||
|
|||||||
@@ -438,8 +438,7 @@ layout("/mobile/platform.html"){
|
|||||||
},
|
},
|
||||||
//获取最新的一个工作日设为当前时间
|
//获取最新的一个工作日设为当前时间
|
||||||
getLatestWorkDay() {
|
getLatestWorkDay() {
|
||||||
//1.首先判断今天是不是工作日
|
/*const weekNum = moment().day()
|
||||||
const weekNum = moment().day()
|
|
||||||
let selectDate = null
|
let selectDate = null
|
||||||
if (weekNum === 0) {
|
if (weekNum === 0) {
|
||||||
//周日
|
//周日
|
||||||
@@ -449,15 +448,23 @@ layout("/mobile/platform.html"){
|
|||||||
selectDate = moment().add(2, 'd')
|
selectDate = moment().add(2, 'd')
|
||||||
} else {
|
} else {
|
||||||
selectDate = moment()
|
selectDate = moment()
|
||||||
}
|
}*/
|
||||||
return selectDate
|
let today = moment().format('YYYY-MM-DD')
|
||||||
|
let d
|
||||||
|
do {
|
||||||
|
d = moment(today).day()
|
||||||
|
if(!this.site.openWeekTime.includes(d)) {
|
||||||
|
today = moment(today).add(1, 'd')
|
||||||
|
}
|
||||||
|
} while (!this.site.openWeekTime.includes(d))
|
||||||
|
return today
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
this.site_id = getQueryString('id')
|
this.site_id = getQueryString('id')
|
||||||
this.selectDate = this.getLatestWorkDay()
|
|
||||||
await this.getReserve()
|
await this.getReserve()
|
||||||
await this.onLoad()
|
await this.onLoad()
|
||||||
|
this.selectDate = this.getLatestWorkDay()
|
||||||
this.setWeekList(this.selectDate)
|
this.setWeekList(this.selectDate)
|
||||||
await this.getMyReservation()
|
await this.getMyReservation()
|
||||||
|
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ layout("/layouts/platform.html"){
|
|||||||
|
|
||||||
addState() {
|
addState() {
|
||||||
this.formData.auditStateList.push({
|
this.formData.auditStateList.push({
|
||||||
stateId: null,
|
stateId: this.maxStateId,
|
||||||
stateName: null,
|
stateName: null,
|
||||||
selectUserId: [],
|
selectUserId: [],
|
||||||
auditStateUserList: [],
|
auditStateUserList: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user