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();
});