Browse Source

1、修复bug

lqkj@you07.com 1 year ago
parent
commit
2ab470093b
2 changed files with 25 additions and 53 deletions
  1. 2 2
      src/views/business/cmsNews/index.vue
  2. 23 51
      src/views/index.vue

+ 2 - 2
src/views/business/cmsNews/index.vue

@@ -186,10 +186,10 @@
186 186
         <el-form-item label="缩略图">
187 187
           <image-upload :limit="1" :file-size="10" :file-type="['.png', '.jpg', '.jpeg', '.gif']"  v-model="form.thumbnail"></image-upload>
188 188
         </el-form-item>
189
-        <el-form-item label="轮播图">
189
+        <el-form-item label="轮播图" v-show="false">
190 190
           <image-upload :limit="5" :file-size="10" :file-type="['.png', '.jpg', '.jpeg', '.gif']"  v-model="form.focusImgsStr"></image-upload>
191 191
         </el-form-item>
192
-        <el-form-item label="视频">
192
+        <el-form-item label="视频" v-show="false">
193 193
           <file-upload :limit="1" :file-size="2048" :file-type="['.mp4', '.flv', '.mov', '.mkv']" v-model="form.videoUrl"></file-upload>
194 194
         </el-form-item>
195 195
       </el-form>

+ 23 - 51
src/views/index.vue

@@ -1,73 +1,45 @@
1 1
 <template>
2
-  <div class="dashboard-editor-container">
3
-
4
-    <panel-group />
5
-
6
-<!--    <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">-->
7
-<!--      <line-chart :chart-data="lineChartData" />-->
8
-<!--    </el-row>-->
9
-
10
-
11
-
12
-  </div>
2
+    <div class="home">
3
+      <div class="welcome">WELCOME</div>
4
+      <div class="system-name">欢迎使用{{ sysTitle }}</div>
5
+    </div>
13 6
 </template>
14 7
 
15 8
 <script>
16
-import PanelGroup from './dashboard/PanelGroup'
17
-// import LineChart from './dashboard/LineChart'
18
-//
19
-//
20
-// const lineChartData = {
21
-//   newVisitis: {
22
-//     expectedData: [100, 120, 161, 134, 105, 160, 165],
23
-//     actualData: [120, 82, 91, 154, 162, 140, 145]
24
-//   },
25
-//   messages: {
26
-//     expectedData: [200, 192, 120, 144, 160, 130, 140],
27
-//     actualData: [180, 160, 151, 106, 145, 150, 130]
28
-//   },
29
-//   purchases: {
30
-//     expectedData: [80, 100, 121, 104, 105, 90, 100],
31
-//     actualData: [120, 90, 100, 138, 142, 130, 130]
32
-//   },
33
-//   shoppings: {
34
-//     expectedData: [130, 140, 141, 142, 145, 150, 160],
35
-//     actualData: [120, 82, 91, 154, 162, 140, 130]
36
-//   }
37
-// }
38 9
 
39 10
 export default {
40 11
   name: 'Index',
41
-  components: {
42
-    PanelGroup,
43
-    // LineChart
44
-  },
45 12
   data() {
46 13
     return {
47
-      // lineChartData: lineChartData.newVisitis
14
+      sysTitle: '',
48 15
     }
49 16
   },
17
+  created() {
18
+    this.sysTitle = localStorage.getItem("sysTitle")
19
+  },
50 20
   methods: {
51
-    // handleSetLineChartData(type) {
52
-    //   this.lineChartData = lineChartData[type]
53
-    // }
21
+
54 22
   }
55 23
 }
56 24
 </script>
57 25
 
58 26
 <style lang="scss" scoped>
59
-.dashboard-editor-container {
60
-  padding: 32px;
61
-  background-color: rgb(240, 242, 245);
62
-  position: relative;
63
-
64
-  .chart-wrapper {
65
-    background: #fff;
66
-    padding: 16px 16px 0;
67
-    margin-bottom: 32px;
68
-  }
27
+.home {
28
+  text-align: center;
29
+  padding-top: 200px;
69 30
 }
31
+.system-name{
32
+  font-size: 24px;
33
+  color: #00afff;
70 34
 
35
+}
36
+.welcome{
37
+  font-size: 34px;
38
+  color: #00afff;
39
+  font-weight: bold;
40
+  margin-bottom: 30px;
41
+  text-decoration:underline
42
+}
71 43
 @media (max-width:1024px) {
72 44
   .chart-wrapper {
73 45
     padding: 8px;