diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteApplyController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteApplyController.java index 12b95a88..ddebdc18 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteApplyController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteApplyController.java @@ -170,7 +170,7 @@ public class SiteApplyController { @At @ApiOperation("查询可以预约的日期") @SaCheckPermission(value = {"site.apply", "h5.site.apply"}, mode = SaMode.OR) - public Result queryAllowTime(String siteId, String startTime, String endTime) { + public Result queryAllowDay(String siteId, String startTime, String endTime) { if(StrUtil.isBlank(siteId)) { return Result.success(new ArrayList<>()); } diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteMineController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteMineController.java index 1112b39b..3339a677 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteMineController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/site/controller/SiteMineController.java @@ -58,7 +58,7 @@ public class SiteMineController { public void index() {} @At("/h5") - @Ok("beetl:/platform/zhgh/dayofficework/site/mine/index.html") + @Ok("beetl:/platform/zhghh5/dayofficework/site/mine/index.html") @SaCheckPermission("h5.site.mine") public void h5Index() {} diff --git a/src/main/resources/views/platform/zhgh/dayofficework/site/apply/apply.js b/src/main/resources/views/platform/zhgh/dayofficework/site/apply/apply.js index fbb8ba28..ca5b687f 100644 --- a/src/main/resources/views/platform/zhgh/dayofficework/site/apply/apply.js +++ b/src/main/resources/views/platform/zhgh/dayofficework/site/apply/apply.js @@ -105,7 +105,7 @@ const apply = { watch: { applyTime() { this.$nextTick(async () => { - await this.queryAllowTime() + await this.queryAllowDay() }) }, }, @@ -166,7 +166,7 @@ const apply = { }, async onOpen(row, applyRow = null) { this.row = row - await this.queryAllowTime() + await this.queryAllowDay() if(applyRow) { this.taskId = applyRow.taskId this.bizId = applyRow.bizId @@ -231,11 +231,11 @@ const apply = { } }, // 查询哪些天是开放的 - async queryAllowTime() { + async queryAllowDay() { const days = Array.from(document.querySelectorAll('.div-Calendar')) .map(el => el.getAttribute('data-day')) .sort() - const {data} = await this.$axios.post("/platform/site/apply/queryAllowTime", { + const {data} = await this.$axios.post("/platform/site/apply/queryAllowDay", { siteId: this.row.id, startTime: days[0], endTime: days[days.length - 1], @@ -254,17 +254,17 @@ const apply = { }, }, style: /*language=CSS*/ ` - .div-Calendar { + ::v-deep .div-Calendar { box-sizing: border-box; height: 100%; } - .div-Calendar p { + ::v-deep .div-Calendar p { margin: 0; } - .el-calendar-day:has(.not-allow-day) { + ::v-deep .el-calendar-day:has(.not-allow-day) { background-color: #F5F5F5; } - .el-dialog__body { + ::v-deep .el-dialog__body { padding-top: 0; } ` diff --git a/src/main/resources/views/platform/zhgh/dayofficework/site/apply/index.html b/src/main/resources/views/platform/zhgh/dayofficework/site/apply/index.html index b220eddf..e2eceb9b 100644 --- a/src/main/resources/views/platform/zhgh/dayofficework/site/apply/index.html +++ b/src/main/resources/views/platform/zhgh/dayofficework/site/apply/index.html @@ -3,19 +3,7 @@ layout("/layouts/platform.html"){ #-->