liyongli 2 лет назад
Родитель
Сommit
a6d7bf4db7

+ 1 - 1
public/index.html

@@ -7,7 +7,7 @@
     <link rel="icon" href="https://home.sxtvs.net/images/favicon.ico">
     <title></title>
   </head>
-  <body>
+  <body oncontextmenu="self.event.returnValue=false">
     <noscript>
       <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
     </noscript>

+ 2 - 0
src/App.vue

@@ -15,6 +15,7 @@ export default {
   padding: 0;
   vertical-align: middle;
   box-sizing: border-box;
+  user-select: none;
 }
 #app {
   font-family: Avenir, Helvetica, Arial, sans-serif;
@@ -24,6 +25,7 @@ export default {
   color: #2c3e50;
   width: 100vw;
   height: 100vh;
+  overflow: hidden;
 }
 
 

+ 0 - 60
src/config/tableCol.js

@@ -1,11 +1,6 @@
 export default {
   agg: {
     微博: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -48,11 +43,6 @@ export default {
       },
     ],
     微信: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -88,11 +78,6 @@ export default {
       },
     ],
     头条: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -111,11 +96,6 @@ export default {
       },
     ],
     抖音: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -151,11 +131,6 @@ export default {
       //   },
     ],
     快手: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -186,11 +161,6 @@ export default {
       },
     ],
     B站: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -211,11 +181,6 @@ export default {
   },
   list: {
     微博: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -255,11 +220,6 @@ export default {
       },
     ],
     微信: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -293,11 +253,6 @@ export default {
       },
     ],
     头条: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -325,11 +280,6 @@ export default {
       },
     ],
     抖音: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -369,11 +319,6 @@ export default {
       },
     ],
     快手: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",
@@ -407,11 +352,6 @@ export default {
       },
     ],
     B站: [
-      {
-        label: "排名",
-        key: "index",
-        width: 80,
-      },
       {
         label: "账号",
         key: "userName",

+ 3 - 0
src/view/allMedia/H5Editor.vue

@@ -156,6 +156,9 @@ const item = JSON.parse(route.query.item || '{}');
 const selectPage = ref(0);
 const hoversList = ref(item.hoversList || []);
 const page = ref({ width: 375, height: 0 });
+
+document.title = item.title;
+
 const selectPageFunc = (index = 0) => {
   selectPage.value = index;
 };

+ 12 - 15
src/view/allMedia/H5Mall.vue

@@ -1,6 +1,6 @@
 <template>
   <el-scrollbar class="H5Mall">
-    <div class="main">
+    <div class="mainBody">
       <div
         class="item"
         @click="() => toH5Editor(item)"
@@ -23,9 +23,9 @@
       <el-table :data="localList">
         <el-table-column property="title" label="页面名称" />
         <el-table-column label="状态">
-          <template #default="scope"> 
+          <template #default="scope">
             {{ h5Status[scope.row.h5Status] }}
-        </template>
+          </template>
         </el-table-column>
         <el-table-column property="url" label="操作">
           <template #default="scope">
@@ -34,8 +34,9 @@
               v-if="scope.row.url"
               :href="scope.row.url"
               target="_blank"
-              >打开</el-link
             >
+              打开
+            </el-link>
             <el-button
               link
               type="primary"
@@ -73,10 +74,7 @@ const show = ref(false);
 const localList = ref([]);
 const list = ref([]);
 
-const h5Status = [
-    '生成中',
-    "已生成"
-]
+const h5Status = ['生成中', '已生成'];
 
 getTemplateList({}).then(r => {
   list.value = r || [];
@@ -100,6 +98,7 @@ const showData = () => {
 };
 
 const editBL = item => {
+    console.log("---")
   router.push({
     path: '/h5editor',
     query: {
@@ -112,16 +111,14 @@ const editBL = item => {
 <style scoped>
 .H5Mall {
   padding: 1em;
-  height: 100%;
 }
 
-.main {
+.mainBody {
   font-weight: 500;
-  margin-top: 1em;
   padding: 1em 0 1em 1em;
 }
 
-.main .item {
+.mainBody .item {
   display: inline-block;
   width: 184px;
   height: 363px;
@@ -149,16 +146,16 @@ const editBL = item => {
   text-overflow: ellipsis;
 }
 
-.main .item:hover {
+.mainBody .item:hover {
   box-shadow: var(--el-box-shadow);
   margin-top: -15px;
 }
 
-.main .body {
+.mainBody .body {
   padding: 0 5px;
   text-align: right;
 }
-.main img {
+.mainBody img {
   vertical-align: middle;
 }
 .createPageList {

+ 1 - 0
src/view/allMedia/components/H5Editor/leftSkeleton.vue

@@ -35,6 +35,7 @@ const deleteFunc = () => {
   bottom: 1.5em;
   left: 0;
   width: 100%;
+  z-index: 1;
 }
 
 .btngroup .el-button {

+ 4 - 0
src/view/allMedia/components/H5Editor/van_field.vue

@@ -49,4 +49,8 @@ placeholder.value = item.attr.placeholder;
   bottom: 0;
   z-index: 1;
 }
+
+.van_field_item:hover{
+    background-color: #00000080;
+}
 </style>

+ 0 - 3
src/view/allMedia/components/H5EditorLeft/vanButtom.vue

@@ -45,7 +45,4 @@ console.log(form.value,props.item);
 </script>
 
 <style scoped>
-.upload-demo {
-  margin-top: 1em;
-}
 </style>

+ 0 - 3
src/view/allMedia/components/H5EditorLeft/vanField.vue

@@ -98,7 +98,4 @@ const deleteFunc = () => {
 </script>
 
 <style scoped>
-.upload-demo {
-  margin-top: 1em;
-}
 </style>

+ 29 - 45
src/view/allMedia/convergence.vue

@@ -50,7 +50,7 @@
           ref="table1"
           align="center"
           empty-text="暂无数据"
-          @sort-change="e=>sort_change(e, 'disseminate')"
+          @sort-change="e => sort_change(e, 'disseminate')"
         >
           <template
             v-for="(item, i) in config.tableCol.agg[
@@ -99,7 +99,7 @@
           ref="table1"
           align="center"
           empty-text="暂无数据"
-          @sort-change="e=>sort_change(e, 'manuscript')"
+          @sort-change="e => sort_change(e, 'manuscript')"
         >
           <template
             v-for="(item, i) in config.tableCol.list[
@@ -191,20 +191,20 @@ const btns = [
     class: 'icon-bzhan',
   },
   {
-    text: '今日头条',
+    text: '头条',
     platform: 'jinritoutiao',
     class: 'icon-jinritoutiao',
   },
-  {
-    text: '闪视频',
-    platform: 'ssp',
-    class: 'icon-ssp',
-  },
-  {
-    text: '头条',
-    platform: 'sxtt',
-    class: 'icon-sxtt',
-  },
+//   {
+//     text: '闪视频',
+//     platform: 'ssp',
+//     class: 'icon-ssp',
+//   },
+//   {
+//     text: '头条',
+//     platform: 'sxtt',
+//     class: 'icon-sxtt',
+//   },
 ];
 
 const manuscriptData = ref({ list: [], total: 0 });
@@ -245,8 +245,8 @@ const sort_change = (e, type) => {
     condition.value.order = undefined;
   }
 
-  if(type == 'manuscript') changePageManuscript();
-  else if(type == 'disseminate') changePageDisseminate();
+  if (type == 'manuscript') changePageManuscript();
+  else if (type == 'disseminate') changePageDisseminate();
 };
 
 const onExport = () => {
@@ -290,13 +290,9 @@ const getData = () => {
       size: condition.value.manuscript.size,
     },
   }).then(res => {
-    manuscriptData.value.list = (res || []).map((v, i) => {
-      return {
-        ...v,
-        index: i + 1,
-      };
-    });
-    manuscriptData.value.total = 1000;
+    const resData = res || { records: [], total: 0 };
+    manuscriptData.value.list = resData.records;
+    manuscriptData.value.total = resData.total;
   });
 
   getAccountData({
@@ -308,18 +304,14 @@ const getData = () => {
       size: condition.value.disseminate.size,
     },
   }).then(res => {
-    disseminateData.value.list = (res || []).map((v, i) => {
-      return {
-        ...v,
-        index: i + 1,
-      };
-    });
-    disseminateData.value.total = 1000;
+    const resData = res || { records: [], total: 0 };
+    disseminateData.value.list = resData.records;
+    disseminateData.value.total = resData.total;
   });
 };
 
 const changePageDisseminate = e => {
-  if(e) condition.value.disseminate.page = e;
+  if (e) condition.value.disseminate.page = e;
   let start = undefined;
   let end = undefined;
   if (condition.value.dt[0])
@@ -335,19 +327,15 @@ const changePageDisseminate = e => {
       size: condition.value.disseminate.size,
     },
   }).then(res => {
-    disseminateData.value.list = (res || []).map((v, i) => {
-      return {
-        ...v,
-        index: i + 1,
-      };
-    });
-    disseminateData.value.total = 1000;
+    const resData = res || { records: [], total: 0 };
+    disseminateData.value.list = resData.records;
+    disseminateData.value.total = resData.total;
   });
   // 切页
 };
 
 const changePageManuscript = e => {
-  if(e) condition.value.manuscript.page = e;
+  if (e) condition.value.manuscript.page = e;
   let start = undefined;
   let end = undefined;
   if (condition.value.dt[0])
@@ -363,13 +351,9 @@ const changePageManuscript = e => {
       size: condition.value.manuscript.size,
     },
   }).then(res => {
-    manuscriptData.value.list = (res || []).map((v, i) => {
-      return {
-        ...v,
-        index: i + 1,
-      };
-    });
-    manuscriptData.value.total = 1000;
+    const resData = res || { records: [], total: 0 };
+    manuscriptData.value.list = resData.records;
+    manuscriptData.value.total = resData.total;
   });
   // 切页
 };

+ 24 - 26
src/view/allMedia/main.vue

@@ -1,24 +1,22 @@
 <template>
-  <el-scrollbar>
-    <div class="main">
-      <el-scrollbar class="menu">
-        <img src="../../assets/img/logo.png" style="width: 100%" alt="" />
-        <div
-          @click="() => selectMenuFunc(item)"
-          v-for="(item, index) in menu"
-          :key="index"
-          :class="{
-            'menu-item': true,
-            active: selectMenu == item.path,
-          }"
-        >
-          <img :src="item.icon" class="icon" />
-          <span v-text="item.title"></span>
-        </div>
-      </el-scrollbar>
-      <router-view class="rightMain" />
-    </div>
-  </el-scrollbar>
+  <div class="mainMaster">
+    <el-scrollbar class="menu">
+      <img src="../../assets/img/logo.png" style="width: 100%" alt="" />
+      <div
+        @click="() => selectMenuFunc(item)"
+        v-for="(item, index) in menu"
+        :key="index"
+        :class="{
+          'menu-item': true,
+          active: selectMenu == item.path,
+        }"
+      >
+        <img :src="item.icon" class="icon" />
+        <span v-text="item.title"></span>
+      </div>
+    </el-scrollbar>
+    <router-view class="rightMain" />
+  </div>
 </template>
 
 <script setup>
@@ -81,7 +79,7 @@ const selectMenuFunc = item => {
 </script>
 
 <style scoped>
-.main {
+.mainMaster {
   width: 100vw;
   height: 100vh;
   min-width: 960px;
@@ -89,7 +87,7 @@ const selectMenuFunc = item => {
   display: flex;
 }
 
-.main .menu {
+.mainMaster .menu {
   position: relative;
   display: inline-block;
   width: 35%;
@@ -100,12 +98,12 @@ const selectMenuFunc = item => {
   flex: 1;
 }
 
-.main .icon {
+.mainMaster .icon {
   width: 1.8em;
   margin-right: 6px;
 }
 
-.main .rightMain {
+.mainMaster .rightMain {
   display: inline-block;
   vertical-align: top;
   height: 100%;
@@ -118,7 +116,7 @@ const selectMenuFunc = item => {
   font-size: 16px;
   color: rgb(96, 98, 102);
 }
-.main .min-item {
+.mainMaster .min-item {
   padding-left: 5px;
   text-align: center;
   padding-right: 5px;
@@ -141,7 +139,7 @@ const selectMenuFunc = item => {
   color: rgb(64, 158, 255);
   background-color: rgba(64, 158, 255, 0.1);
 }
-.main .el-scrollbar {
+.mainMaster .el-scrollbar {
   display: inline-block;
 }
 </style>

+ 0 - 6
src/view/allMedia/proofread.vue

@@ -352,12 +352,6 @@ function getEle(colorPosition) {
   border-color: rgb(156, 133, 255);
   background-color: rgba(156, 133, 255, 0.1);
 }
-.jiaoyan {
-  float: right;
-  margin-top: 0.3em;
-  margin-right: 0.5em;
-  padding: 0 1.8em;
-}
 </style>
 
 <style>