Files
income_payments_enterprise_…/src/views/companyUserList/CompanyUserList.vue
T
2022-08-03 14:32:45 +08:00

122 lines
3.4 KiB
Vue

<template>
<div class="main-box">
<a-card :bordered="false">
<!--查询区域begin-->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="用户名称">
<a-input placeholder="请输入用户名称" v-model="queryParam.name" :maxLength="50"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button class="reset-button" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!--查询区域end-->
<!-- 操作按钮区域-->
<div class="table-operator">
<a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
</div>
<!-- 操作按钮区域-end-->
<div>
<a-table
ref="table"
rowKey="id"
:scroll="{x: 1200}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
@change="handleTableChange"
class="j-table-force-nowrap">
<template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="20"></j-ellipsis>
</template>
<!-- slot-scope="text,record"-->
<span slot="action" class="action-span-cell" >
<a @click="handleEdit(record)">编辑</a>
<a @click="handleDetail(record)">查看</a>
</span>
</a-table>
</div>
<company-user-modal ref="modalForm" @ok="modalFormOk"></company-user-modal>
</a-card>
</div>
</template>
<script>
import { JeroListMixin } from '@/mixins/JeroListMixin'
import JEllipsis from '@comp/jero/JEllipsis'
import CompanyUserModal from '@views/companyUserList/modules/CompanyUserModal'
export default {
name: 'CompanyUserList',
mixins: [JeroListMixin],
components:{
JEllipsis,
CompanyUserModal
},
data() {
return {
columns: [
{
title: '序号',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
}, {
title: '用户名',
align: 'center',
dataIndex: 'name',
scopedSlots: { customRender: 'text' }
},
{
title: '用户账号',
align: 'center',
dataIndex: 'username',
scopedSlots: { customRender: 'text' }
},
{
title: '手机号',
align: 'center',
dataIndex: 'phone',
scopedSlots: { customRender: 'text' }
},
{
title: '操作',
dataIndex: 'action',
align: 'center',
fixed: 'right',
width: 130,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: '/payCaseCommitteeSubitem/payCaseCommitteeSubitem/findTwo'
}
}
},
methods: {
}
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
</style>