123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <template>
- <div class="School">
- <a-card
- :body-style="{padding: '24px 32px'}"
- :bordered="false"
- >
- <a-row
- class="number-list"
- >
- <a-col
- class="number-item"
- v-for="(item, index) in 9"
- :key="item"
- :style="{flex: index === 8 ? '40%' : '20%'}"
- >
- <div class="content">
- <div class="label">
- 签约金额
- </div>
- <div class="count">
- <count-to :start-val="0" :end-val="2000 || 0" :duration="2000"/>
- </div>
- </div>
- </a-col>
- </a-row>
- </a-card>
- <a-card
- style="margin-top: 20px"
- :body-style="{padding: '24px 32px'}"
- :bordered="false"
- >
- <a-row style="margin-bottom: 20px">
- <a-col :span="7">
- <span>签约时间: </span>
- <a-range-picker @change="onChange" />
- </a-col>
- <a-col :span="4">
- <span>选择老师:</span>
- <a-select default-value="lucy" style="width: 120px" @change="handleChange">
- <a-select-option value="jack">
- Jack
- </a-select-option>
- <a-select-option value="lucy">
- Lucy
- </a-select-option>
- <a-select-option value="disabled" disabled>
- Disabled
- </a-select-option>
- <a-select-option value="Yiminghe">
- yiminghe
- </a-select-option>
- </a-select>
- </a-col>
- <a-col :span="4">
- <span>排序方式 </span>
- <a-select default-value="lucy" style="width: 120px" @change="handleChange">
- <a-select-option value="jack">
- Jack
- </a-select-option>
- <a-select-option value="lucy">
- Lucy
- </a-select-option>
- <a-select-option value="disabled" disabled>
- Disabled
- </a-select-option>
- <a-select-option value="Yiminghe">
- yiminghe
- </a-select-option>
- </a-select>
- </a-col>
- </a-row>
- <a-table :columns="columns" :data-source="data" >
- <a slot="name" slot-scope="text">{{ text }}</a>
- <span slot="customTitle"><a-icon type="smile-o" /> Name</span>
- <span slot="tags" slot-scope="tags">
- <a-tag
- v-for="tag in tags"
- :key="tag"
- :color="tag === 'loser' ? 'volcano' : tag.length > 5 ? 'geekblue' : 'green'"
- >
- {{ tag.toUpperCase() }}
- </a-tag>
- </span>
- <span slot="action" slot-scope="text, record">
- <a>Invite 一 {{ record.name }}</a>
- <a-divider type="vertical" />
- <a>Delete</a>
- <a-divider type="vertical" />
- <a class="ant-dropdown-link"> More actions <a-icon type="down" /> </a>
- </span>
- </a-table>
- </a-card>
- </div>
- </template>
- <script>
- const columns = [
- {
- dataIndex: 'rank',
- key: 'rank',
- title: '排行'
- },
- {
- title: '姓名',
- dataIndex: 'name',
- key: 'name'
- },
- {
- title: '跟进次数',
- dataIndex: 'price',
- key: 'price'
- },
- {
- title: '跟进线索数',
- key: 'count',
- dataIndex: 'count'
- },
- {
- title: '试听数',
- key: 'classPrice',
- dataIndex: 'classPrice'
- }
- ]
- const data = [
- {
- key: '1',
- name: 'John Brown',
- age: 32,
- address: 'New York No. 1 Lake Park',
- tags: ['nice', 'developer']
- },
- {
- key: '2',
- name: 'Jim Green',
- age: 42,
- address: 'London No. 1 Lake Park',
- tags: ['loser']
- },
- {
- key: '3',
- name: 'Joe Black',
- age: 32,
- address: 'Sidney No. 1 Lake Park',
- tags: ['cool', 'teacher']
- }
- ]
- export default {
- name: 'School',
- data () {
- return {
- data,
- columns
- }
- }
- }
- </script>
- <style scoped lang="less">
- @import '~ant-design-vue/es/style/themes/default.less';
- .number-list {
- display: flex;
- flex-wrap: wrap;
- .number-item {
- height: 50px;
- display: flex;
- margin-top: 20px;
- .content {
- width: 150px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- .count {
- font-size: 18px;
- font-weight: bold;
- color: @primary-color;
- }
- }
- .line {
- width: 1px;
- height: 50px;
- background-color: #e8e8e8;
- }
- }
- }
- </style>
|