From afde02e35a86ef5e0ea907b41a27999f86c5b6bf Mon Sep 17 00:00:00 2001 From: liuzanying Date: Wed, 13 Sep 2023 18:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E6=99=AF=E5=8C=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 9 +- .../ProjectManage/components/NewSearch.vue | 236 +++++++++--------- .../components/ProfessionalTempCard.vue | 2 +- .../ProjectManage/components/ScreenBox.vue | 188 +++++++------- src/views/ProjectManage/create/Index.vue | 57 +++-- .../ProjectManage/fragment/TableList.vue | 4 +- .../components/TempMarketLayout.vue | 3 +- .../components/TempPublicLayout.vue | 6 + .../TempMarket/fragment/NewTableList.vue | 10 +- 9 files changed, 264 insertions(+), 251 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 63f60057..e8fdb430 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,7 @@ import { jsonp } from "vue-jsonp"; import { jsonpUrl } from "../config.js"; import { useStore } from "vuex"; import Creative from "./route.creative"; // 创作中心路由 - +import MarketList from "@/views/TempMarket/components/TempMarketLayout" const store = useStore(); const constantRoutes = [ @@ -45,7 +45,12 @@ const constantRoutes = [ component: () => import(/* webpackChunkName: 'home' */ '@views/Home/Index.vue'), children: [...ProjectManage, ...TemplateMarket, ...Contact, ...DocumentLibrary, ...DataStatistics, ...Creative] }, - + { + path: '/market', + name: 'Market', + meta: { title: '模板库' }, + component: MarketList, + }, { path: '/edit-creative-scene', name: 'editCreativeScene', diff --git a/src/views/ProjectManage/components/NewSearch.vue b/src/views/ProjectManage/components/NewSearch.vue index 0ddb18e2..3d1330cd 100644 --- a/src/views/ProjectManage/components/NewSearch.vue +++ b/src/views/ProjectManage/components/NewSearch.vue @@ -5,6 +5,9 @@ class="search-layout" >
+ + + - - - - - - - -
- {{ - item.title - }} -
-
- -
-
- - - - - - - - - - - {{ item.nickname }} - - -
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- - - - - -
-
- - - - - 查询 - 重置 + 重置 + 更多筛选
- + + + diff --git a/src/views/TempMarket/components/TempPublicLayout.vue b/src/views/TempMarket/components/TempPublicLayout.vue index 09ad6d8f..7118f242 100644 --- a/src/views/TempMarket/components/TempPublicLayout.vue +++ b/src/views/TempMarket/components/TempPublicLayout.vue @@ -39,6 +39,12 @@ async function getScenes() { list.value = []; data?.data.forEach(item => { if(item.parentCode > 0){ + if(item.parentCode === 1 && item.title === '其他场景'){ + item.title = '日常-其他场景'; + } + if(item.parentCode === 2 && item.title === '其他场景'){ + item.title = '专业-其他场景'; + } list.value.push(item); } }) diff --git a/src/views/TempMarket/fragment/NewTableList.vue b/src/views/TempMarket/fragment/NewTableList.vue index 298af319..6c906921 100644 --- a/src/views/TempMarket/fragment/NewTableList.vue +++ b/src/views/TempMarket/fragment/NewTableList.vue @@ -224,6 +224,7 @@ const columns = [ key: "quote_nums", dataIndex: "quote_nums", // align: "center", + sorter: true, }, { title: "模板标签", @@ -502,10 +503,11 @@ export default defineComponent({ const ProjectGroupList = ref([]); onBeforeMount(async () => { page.value = props.pageIndex ? props.pageIndex : 1; - const { data } = await getSurveySorts(1); - if (data) { - search.value.sort = data.sort || ""; - } + // const { data } = await getSurveySorts(1); + // if (data) { + // search.value.sort = data.sort || ""; + // } + search.value.sort = 'quote_nums,desc'; getTemplates(); getGroupData(); });