处理数据看板

This commit is contained in:
2026-01-16 04:34:39 +08:00
parent 345ee6dbb0
commit 74679328e9
113 changed files with 1984 additions and 5744 deletions

View File

@@ -0,0 +1,66 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_nut_calendar2 = common_vendor.resolveComponent("nut-calendar");
_easycom_nut_calendar2();
}
const _easycom_nut_calendar = () => "../../uni_modules/nutui-uni/components/calendar/calendar.js";
if (!Math) {
_easycom_nut_calendar();
}
const _sfc_main = {
__name: "index",
setup(__props) {
const getLastMonthFirstDay = () => {
const date2 = /* @__PURE__ */ new Date();
date2.setMonth(date2.getMonth() - 1);
date2.setDate(1);
return formatDate(date2);
};
const getCurrentMonthLastDay = () => {
const date2 = /* @__PURE__ */ new Date();
date2.setMonth(date2.getMonth() + 1);
date2.setDate(0);
return formatDate(date2);
};
const formatDate = (date2) => {
const year = date2.getFullYear();
const month = (date2.getMonth() + 1).toString().padStart(2, "0");
const day = date2.getDate().toString().padStart(2, "0");
return `${year}-${month}-${day}`;
};
const startDate = common_vendor.ref(getLastMonthFirstDay());
const endDate = common_vendor.ref(getCurrentMonthLastDay());
const date = common_vendor.ref("");
const onChoose = (e) => {
common_vendor.index.__f__("log", "at pages/data/index.vue:57", "onChoose", e);
};
const onSelect = (e) => {
common_vendor.index.__f__("log", "at pages/data/index.vue:60", "onSelect", e);
common_vendor.index.navigateTo({
url: `/pages/data/list?date=${e[3]}`
});
};
common_vendor.onLoad((options) => {
});
common_vendor.onShow(() => {
});
return (_ctx, _cache) => {
return {
a: common_vendor.o(onChoose),
b: common_vendor.o(onSelect),
c: common_vendor.p({
title: "选择想要的日期",
["show-sub-title"]: false,
poppable: false,
["default-value"]: date.value,
["start-date"]: startDate.value,
["end-date"]: endDate.value
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-af28c7f4"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/data/index.js.map

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "运营数据-选择日期",
"enablePullDownRefresh": false,
"usingComponents": {
"nut-calendar": "../../uni_modules/nutui-uni/components/calendar/calendar"
}
}

View File

@@ -0,0 +1 @@
<view class="page-content data-v-af28c7f4"><nut-calendar wx:if="{{c}}" class="data-v-af28c7f4" bindchoose="{{a}}" bindselect="{{b}}" u-i="af28c7f4-0" bind:__l="__l" u-p="{{c}}"></nut-calendar></view>

View File

@@ -0,0 +1,54 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page-content.data-v-af28c7f4 {
min-height: 100vh;
background-color: #f2f3f5;
}

View File

@@ -0,0 +1,9 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/data/list.js.map

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "运营数据-数据看板",
"enablePullDownRefresh": false,
"usingComponents": {}
}

View File