Browse Source

年份检索

gks 1 year ago
parent
commit
0615ebd85c
1 changed files with 24 additions and 0 deletions
  1. 24 0
      src/views/ARTICLE/index.vue

+ 24 - 0
src/views/ARTICLE/index.vue

@@ -26,6 +26,18 @@
         </el-select>
       </el-form-item>
 
+      <el-form-item label="年份" prop="year" label-width="110">
+        <!-- <el-select v-model="queryParams.year" placeholder="请选择年份" clearable filterable class="se">
+          <el-option v-for="item in nearYearList" :key="item" :label="item" :value="item" />
+        </el-select> -->
+        <el-date-picker
+          v-model="queryParams.year"
+          type="year"
+          value-format="yyyy"
+          placeholder="选择年">
+        </el-date-picker>
+      </el-form-item>
+
       <el-form-item label="建设规模">
         <el-input
           v-model="queryParams.scale"
@@ -128,6 +140,17 @@
         :selectable="selected"
       ></el-table-column>
       <el-table-column
+        label="年份"
+        width="150"
+        show-overflow-tooltip
+        align="center"
+        prop="createTime"
+      >
+      <template slot-scope="scope">
+          {{ parseTime(scope.row.createTime, '{y}') }}
+        </template>
+      </el-table-column>
+      <el-table-column
         label="保税区名称"
         width="150"
         show-overflow-tooltip
@@ -383,6 +406,7 @@
 </template>
 
 <script>
+import {parseTime} from "@/utils/ruoyi";
 import {
   listARTICLE,
   getARTICLE,