diff --git a/App.vue b/App.vue index f65e41a..d9221e2 100644 --- a/App.vue +++ b/App.vue @@ -47,4 +47,18 @@ page { background-color: #f8f8f8; height: 100%; } + +// 底部按钮样式 +.fixed-bottom-btn-wrap { + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 999; + padding: 0; + /* #ifdef MP-WEIXIN */ + //padding-bottom: constant(safe-area-inset-bottom); + //padding-bottom: env(safe-area-inset-bottom); + /* #endif */ +} \ No newline at end of file diff --git a/api/patrol-manage/patrol-plan.js b/api/patrol-manage/patrol-plan.js index 4b5475f..ab33a5e 100644 --- a/api/patrol-manage/patrol-plan.js +++ b/api/patrol-manage/patrol-plan.js @@ -19,11 +19,11 @@ export const inspectionPlanPage = (params) => { }; /** - * 退出登录 + * 巡检计划明细 * @returns {Promise} */ -export const logout = () => { - return post('/admin-api/system/auth/logout'); +export const inspectionPlanDetail = (data) => { + return post('/app-api/app/garden/inspection-plan-detail/get-details',data); }; /** diff --git a/api/user.js b/api/user.js index 6ece98c..3464c86 100644 --- a/api/user.js +++ b/api/user.js @@ -33,3 +33,11 @@ export const logout = () => { export const moduleList = () => { return get('/app-api/member/app-module/list'); }; + +/** + * 字典数据 + * @returns {Promise} + */ +export const getSimpleDictDataList = () => { + return get({ url: '/system/dict-data/simple-list' }) +} diff --git a/pages-sub/daily/patrol-manage/add-patrol-record/index.vue b/pages-sub/daily/patrol-manage/add-patrol-record/index.vue index c09864b..892ba7d 100644 --- a/pages-sub/daily/patrol-manage/add-patrol-record/index.vue +++ b/pages-sub/daily/patrol-manage/add-patrol-record/index.vue @@ -74,7 +74,7 @@ - + { -// 底部按钮样式 -.submit-btn-wrap { - position: fixed; - bottom: 0; - left: 0; - right: 0; - z-index: 999; - padding: 0; - background-color: #f8f8f8; - /* #ifdef MP-WEIXIN */ - //padding-bottom: constant(safe-area-inset-bottom); - //padding-bottom: env(safe-area-inset-bottom); - /* #endif */ -} - \ No newline at end of file diff --git a/pages-sub/daily/patrol-manage/patrol-plan/index.vue b/pages-sub/daily/patrol-manage/patrol-plan/index.vue index b7913a0..e167498 100644 --- a/pages-sub/daily/patrol-manage/patrol-plan/index.vue +++ b/pages-sub/daily/patrol-manage/patrol-plan/index.vue @@ -23,7 +23,10 @@ placeholder="请输入道路名称" bg-color="#f5f5f5" shape="round" + :show-action="true" actionText="搜索" :animation="true" @search="handleSearch" + @custom="handleSearch" + :clearabled="false" maxlength="50" style="margin: 20rpx 20rpx 0" > @@ -65,7 +68,9 @@ 计划时间: - {{ formatPlanTime(item.beginTime, item.endTime) }} + + {{ timeFormat(item.beginTime,'yyyy-mm-dd')}} 至 {{ timeFormat(item.endTime,'yyyy-mm-dd')}} + @@ -76,6 +81,7 @@ @@ -196,31 +177,4 @@ const addNewRecord = () => { word-break: break-all; } -// 查看记录按钮样式(核心优化) -.view-record-btn { - width: 160rpx !important; // 固定宽度,按需调整 - padding: 0 !important; // 移除内边距,减少宽度 - margin-right: 10rpx; - font-size: 24rpx !important; // 缩小字体,更紧凑 - height: 50rpx !important; // 调整高度,比例协调 -} - -// 底部固定按钮容器 -.fixed-btn-wrap { - position: fixed; - bottom: 0; - left: 0; - right: 0; - z-index: 999; - padding: 0; - background-color: #f8f8f8; -} - -// 兼容小程序底部安全区 -/* #ifdef MP-WEIXIN */ -.fixed-btn-wrap { - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); -} -/* #endif */ \ No newline at end of file diff --git a/pages/workbench/index.vue b/pages/workbench/index.vue index dbb96aa..ac9e8e3 100644 --- a/pages/workbench/index.vue +++ b/pages/workbench/index.vue @@ -19,10 +19,10 @@