he wei
2021-11-02 4964aa7f82cf72c08cb1cf357b975d0122d73e5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<template>
  <flex-layout>
    <!-- 搜索 -->
    <div slot="header" class="contain-search">
      <flex-layout direction="row">
        <el-row :gutter="20">
          <el-col :span="12">
            <label>
              <span>标题内容:</span>
              <el-input v-model="title" placeholder="请输入关键词"></el-input>
            </label>
          </el-col>
          <el-col :span="12">
            <label>
              <span>选择时间:</span>
              <el-date-picker
                v-model="datetime"
                type="daterange"
                range-separator=" ~ "
                start-placeholder="开始日期"
                end-placeholder="结束日期"
              >
              </el-date-picker>
            </label>
          </el-col>
        </el-row>
        <div class="" slot="footer">
          <el-button type="primary" icon="el-icon-search">查询</el-button>
        </div>
      </flex-layout>
    </div>
    <!-- 列表 -->
    <div class="">
      <list-card
        v-for="(item, idx) in list"
        :key="'list_' + idx"
        @itemclick="details"
        :data="item"
      ></list-card>
    </div>
    <!-- 分页 -->
    <div class="" slot="footer">1</div>
  </flex-layout>
</template>
 
<script>
import FlexLayout from "@/components/FlexLayout.vue";
import ListCard from "@/components/listCard.vue";
 
let list = [
  {
    a: 1
  },
  {
    a: 2
  }
];
export default {
  name: "",
 
  data() {
    return {
        title: "",
        desc: "",
        datetime: "",
        level: 0,
        fileList: [],
        operate: 0,
        list: [],
    };
  },
  components: {
    FlexLayout
    ,ListCard
  },
  methods: {
    details (data) {
      console.log(data);
    }
  },
 
  mounted() {
    this.list = list;
  },
};
</script>
 
<style scoped>
.title {
  color: #04409a;
  font-size: 24px;
}
>>> .el-input {
  width: 30em;
}
>>> .el-textarea {
  width: 40em;
}
</style>