DESKTOP-6LTVLN7\Liumouren 1 miesiąc temu
rodzic
commit
3ed3cf10ea
3 zmienionych plików z 49 dodań i 23 usunięć
  1. 11 1
      src/components/yxgl/table.vue
  2. 36 21
      src/views/Wgn.vue
  3. 2 1
      src/views/Yxgl.vue

+ 11 - 1
src/components/yxgl/table.vue

@@ -1,6 +1,9 @@
 <template>
   <div class="table_box">
     <div class="table_title">{{ title }}</div>
+    <div class="table_more">
+      <el-button type="primary" link> 更多 </el-button>
+    </div>
     <el-table :data="tableData" style="width: 100%" height="calc(100% - 60px)">
       <el-table-column prop="serviceName" label="服务名称" width="300" />
       <el-table-column prop="serviceType" label="类别" width="300" />
@@ -59,11 +62,18 @@ export default {
   height: 100%;
   padding: 20px;
   box-sizing: border-box;
-  position: inherit;
+  position: relative;
 }
 .table_title {
   font-size: 16px;
 }
+.table_more {
+  position: absolute;
+  top: 20px;
+  right: 20px;
+  font-size: 14px;
+  color: #1890ff;
+}
 .table_pagination {
   position: absolute;
   bottom: 20px;

+ 36 - 21
src/views/Wgn.vue

@@ -1,8 +1,9 @@
 <template>
-  <div class="container">
+  <div class="wgn_box">
+    <el-backtop target="#scrollbar" :right="20" :bottom="70" />
     <div class="server_title">
       <el-image
-        style="width: 824px; height: 786px"
+        style="width: 824px; height: calc(100vh - 70px)"
         src="static/images/wgn_title.png"
         fit="cover"
       />
@@ -18,27 +19,29 @@
     </div>
     <div class="server_list_box">
       <div class="server_list_box_title">微功能列表</div>
-      <div class="server_list_box_search">
-        功能搜索
-        <el-input
-          v-model="searchStr"
-          style="width: 525px; margin-left: 37px"
-          placeholder="输入搜索关键词"
-          class="input-with-select"
-          clearable
-          size="large"
-          @change="searchServerList()"
-        >
-          <template #append>
-            <el-button icon="Search" @click="searchServerList()" />
-          </template>
-        </el-input>
-      </div>
+      <el-affix :offset="0">
+        <div class="server_list_box_search">
+          <el-input
+            v-model="searchStr"
+            style="width: 525px; margin-left: 37px"
+            placeholder="输入搜索关键词"
+            class="input-with-select"
+            clearable
+            size="large"
+            @change="searchServerList()"
+          >
+            <template #append>
+              <el-button icon="Search" @click="searchServerList()" />
+            </template>
+          </el-input>
+        </div>
+      </el-affix>
       <div class="server_list_box_table" v-if="dmsServerList">
         <div
           v-for="item in dmsServerList"
           :key="item.c_scene_name"
           class="server_list_box_table_item"
+          :id="item.c_scene_name + 'list'"
         >
           <div class="server_list_box_table_item_content">
             <div class="server_list_box_table_item_content_title">{{ item.title }}</div>
@@ -108,7 +111,8 @@ export default {
         ]);
       }
       // 获取微功能服务列表
-      wgn.getDmsData(requestParams)
+      wgn
+        .getDmsData(requestParams)
         .then((res) => {
           if (res.code === 200) {
             this.dmsServerList = res.content.data;
@@ -163,7 +167,7 @@ export default {
 </script>
 
 <style lang="less" scoped>
-.container {
+.wgn_box {
   width: 100vw;
   margin: 0 auto;
   background-color: #08224a;
@@ -175,7 +179,7 @@ export default {
 }
 .server_title_text {
   width: calc(100vw - 824px);
-  height: 786px;
+  height: calc(100vh - 70px);
   background-color: #1c2631;
   color: #fff;
   padding: 0 160px 0 60px;
@@ -193,6 +197,10 @@ export default {
     font-size: 22px;
   }
 }
+.anchor_box {
+  background: #ffffff32;
+  float: left;
+}
 .server_list_box {
   width: 100vw;
   background-color: rgba(0, 0, 0, 0.15);
@@ -200,6 +208,13 @@ export default {
   flex-direction: column;
   align-items: center;
   color: #fff;
+  position: relative;
+  &_menu {
+    position: absolute;
+    top: 100px;
+    left: 10px;
+    z-index: 1;
+  }
   &_title {
     margin-top: 100px;
     font-size: 35px;

+ 2 - 1
src/views/Yxgl.vue

@@ -15,7 +15,7 @@
         </template>
         <el-menu-item index="StatisticalAnalysis">
           <el-icon><Histogram /></el-icon>
-          <template #title>统计分析</template>
+          <template #title>信息反馈</template>
         </el-menu-item>
       </el-sub-menu>
       <el-sub-menu index="2">
@@ -41,6 +41,7 @@
         overflowY: menuActive == 'StatisticalAnalysis' ? 'auto' : 'hidden',
       }"
     >
+      <el-backtop target=".viewBox" :right="20" :bottom="70" />
       <StatisticalAnalysis v-if="menuActive == 'StatisticalAnalysis'" />
       <iframe v-else :src="iframeUrl" frameborder="0"></iframe>
     </div>