From 365915e37c90522e86a4661d15335c5172a66d6e Mon Sep 17 00:00:00 2001 From: dhb52 Date: Fri, 7 Apr 2023 14:42:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96FreePublic=E5=87=BA?= =?UTF-8?q?=E9=94=99&=E5=88=86=E9=A1=B5=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dhb52 --- .../mp/components/wx-material-select/main.vue | 239 +++++++++--------- 1 file changed, 122 insertions(+), 117 deletions(-) diff --git a/src/views/mp/components/wx-material-select/main.vue b/src/views/mp/components/wx-material-select/main.vue index 4c477078..ab353974 100644 --- a/src/views/mp/components/wx-material-select/main.vue +++ b/src/views/mp/components/wx-material-select/main.vue @@ -5,127 +5,130 @@ ① 移除 avue 组件,使用 ElementUI 原生组件 --> @@ -173,7 +176,7 @@ export default defineComponent({ const newsTypeRef = ref(props.newsType) const selectMaterialFun = (item) => { - ctx.emit('selectMaterial', item) + ctx.emit('select-material', item) } /** 搜索按钮操作 */ const handleQuery = () => { @@ -203,9 +206,10 @@ export default defineComponent({ total.value = data.total loading.value = false } + const getFreePublishPageFun = async () => { let data = await getFreePublishPage(queryParams) - data.list.foreach((item) => { + data.list.forEach((item) => { const newsItem = item.content.newsItem newsItem.forEach((article) => { article.picUrl = article.thumbUrl @@ -232,6 +236,7 @@ export default defineComponent({ onMounted(async () => { getPage() }) + return { handleQuery, dateFormatter,