123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <template>
- <a-card :bordered="false">
- <!-- 查询区域 -->
- <div class="table-page-search-wrapper">
- <a-form layout="inline">
- <a-row :gutter="24">
- <a-col :md="6" :sm="8">
- <a-form-item label="姓名">
- <a-input placeholder="请输入姓名" v-model="queryParam.name"></a-input>
- </a-form-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-item label="性别">
- <a-select v-model="queryParam.sex" placeholder="请选择性别查询">
- <a-select-option value="">请选择性别查询</a-select-option>
- <a-select-option value="1">男</a-select-option>
- <a-select-option value="2">女</a-select-option>
- </a-select>
- </a-form-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
- <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
- </span>
- </a-col>
- </a-row>
- </a-form>
- </div>
- <!-- 操作按钮区域 -->
- <div class="table-operator">
- <a-button @click="handleAdd" v-show="show" type="primary" icon="plus">新增</a-button>
- </div>
- <!-- table区域-begin -->
- <div>
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :columns="columns"
- :dataSource="dataSource"
- :pagination="ipagination"
- :loading="loading">
- <!-- 字符串超长截取省略号显示-->
- <span slot="esContent" slot-scope="text">
- <j-ellipsis :value="text" :length="10"/>
- </span>
- <span slot="action" slot-scope="text, record">
- <a href="javascript:;" @click="handleDetail(record)">详情</a>
- <a-divider type="vertical"/>
- <a-dropdown>
- <a class="ant-dropdown-link">更多<a-icon type="down"/></a>
- <a-menu slot="overlay">
- <a-menu-item v-show="show">
- <a @click="handleEdit(record)">编辑</a>
- </a-menu-item>
- </a-menu>
- </a-dropdown>
- </span>
- </a-table>
- </div>
- <!-- table区域-end -->
- <!-- 表单区域 -->
- <actor-modal ref="modalForm" @ok="modalFormOk"></actor-modal>
- </a-card>
- </template>
- <script>
- import ActorModal from './modules/ActorModal'
- import {JeecgListMixin} from '@/mixins/JeecgListMixin'
- import JEllipsis from "@/components/jeecg/JEllipsis";
- export default {
- name: "ActorList",
- mixins: [JeecgListMixin],
- components: {
- JEllipsis,
- ActorModal
- },
- data() {
- return {
- queryParam:{},
- description: '演员管理',
- // 新增修改按钮是否显示
- show: true,
- // 表头
- columns: [
- {
- title: 'ID',
- align: "center",
- dataIndex: 'id'
- },
- {
- title: '姓名',
- align: "center",
- dataIndex: 'name'
- },
- {
- title: '生日',
- align: "center",
- dataIndex: 'birthday',
- },
- {
- title: '性别',
- align: "center",
- dataIndex: 'sex_dictText',
- },
- {
- title: '特长',
- align: "center",
- dataIndex: 'speciality'
- },
- {
- title: '创建时间',
- align: 'center',
- dataIndex: 'createTime'
- },
- {
- title: '操作',
- dataIndex: 'action',
- align: "center",
- scopedSlots: {customRender: 'action'},
- }
- ],
- url: {
- list: "/ctop/actor/list",
- },
- }
- },
- methods: {}
- }
- </script>
- <style scoped>
- @import '~@assets/less/common.less'
- </style>
|