zhongxiaoyu пре 2 година
родитељ
комит
20693bed30
1 измењених фајлова са 30 додато и 14 уклоњено
  1. 30 14
      src/views/upload/index.vue

+ 30 - 14
src/views/upload/index.vue

@@ -71,16 +71,24 @@
     <div class="upload-wrapper">
       <header class="upload-header">
         <div class="manageTitle">{{ title2 }}</div>
-        <el-date-picker
-          v-model="flightDate"
-          size="small"
-          type="daterange"
-          value-format="yyyy-MM-dd"
-          start-placeholder="开始日期"
-          end-placeholder="结束日期"
-          :picker-options="dateRangePickerOptions"
-          :clearable="false"
-        />
+        <div class="upload-header-right">
+          <el-date-picker
+            v-model="flightDate"
+            size="small"
+            type="daterange"
+            value-format="yyyy-MM-dd"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            :picker-options="dateRangePickerOptions"
+            :clearable="false"
+          />
+          <el-button
+            class="btn-refresh"
+            type="primary"
+            icon="el-icon-refresh"
+            @click="getTableData"
+          />
+        </div>
       </header>
       <main
         v-loading="loading"
@@ -364,10 +372,7 @@ export default {
 }
 </script>
 
-<style
-  lang="scss"
-  scoped
->
+<style lang="scss" scoped>
 .upload {
   width: 100%;
   height: calc(100vh - 100px);
@@ -472,6 +477,17 @@ export default {
   }
 }
 
+.upload-header-right {
+  display: flex;
+  align-items: center;
+}
+.btn-refresh {
+  margin-left: 10px;
+  padding: 0;
+  width: 30px;
+  height: 30px;
+}
+
 .tooltip-content {
   max-width: 500px;
 }