处理待办事项
This commit is contained in:
109
unpackage/dist/dev/mp-weixin/pages/todo/index.js
vendored
Normal file
109
unpackage/dist/dev/mp-weixin/pages/todo/index.js
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_index = require("../../api/index.js");
|
||||
const utils_helper = require("../../utils/helper.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_nut_button2 + _easycom_nut_tag2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
const _easycom_nut_tag = () => "../../uni_modules/nutui-uni/components/tag/tag.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_button + _easycom_nut_tag + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
pageSize,
|
||||
page: pageNo
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/todo/index.vue:91", params);
|
||||
api_index.fetchTodoList(params).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/todo/index.vue:93", "res=>", res.list);
|
||||
paging.value.complete(res.list);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const init = () => {
|
||||
common_vendor.index.__f__("log", "at pages/todo/index.vue:110", "init111");
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/todo/index.vue:132", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/todo/index.vue:133", "paging.value", paging.value);
|
||||
if (paging.value) {
|
||||
paging.value.refresh();
|
||||
}
|
||||
});
|
||||
common_vendor.onMounted(() => {
|
||||
init();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsAdd")),
|
||||
b: common_vendor.p({
|
||||
type: "primary",
|
||||
block: true,
|
||||
plain: true
|
||||
}),
|
||||
c: common_vendor.s("top:0px"),
|
||||
d: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.user.staff_name),
|
||||
b: "7167769e-2-" + i0 + ",7167769e-0",
|
||||
c: common_vendor.t(item.content),
|
||||
d: item.status.value === 0
|
||||
}, item.status.value === 0 ? {
|
||||
e: common_vendor.t(item.status.text)
|
||||
} : {
|
||||
f: common_vendor.t(item.status.text)
|
||||
}, {
|
||||
g: item.status.value == 0
|
||||
}, item.status.value == 0 ? {
|
||||
h: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsEdit?id=" + item.goods_id), index),
|
||||
i: "7167769e-3-" + i0 + ",7167769e-0",
|
||||
j: common_vendor.p({
|
||||
size: "small",
|
||||
type: "success"
|
||||
})
|
||||
} : {}, {
|
||||
k: item.status.value == 1
|
||||
}, item.status.value == 1 ? {
|
||||
l: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsEdit?id=" + item.goods_id), index),
|
||||
m: "7167769e-4-" + i0 + ",7167769e-0",
|
||||
n: common_vendor.p({
|
||||
size: "small",
|
||||
type: "danger"
|
||||
})
|
||||
} : {}, {
|
||||
o: index
|
||||
});
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
f: common_vendor.sr(paging, "7167769e-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
g: common_vendor.o(queryList),
|
||||
h: common_vendor.o(($event) => dataList.value = $event),
|
||||
i: common_vendor.p({
|
||||
["refresher-enabled"]: false,
|
||||
["auto-clean-list-when-reload"]: false,
|
||||
["auto-scroll-to-top-when-reload"]: false,
|
||||
modelValue: dataList.value
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7167769e"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/todo/index.js.map
|
||||
Reference in New Issue
Block a user