74 lines
1.5 KiB
Vue
74 lines
1.5 KiB
Vue
<template>
|
|
<el-container class="mainBox">
|
|
<el-header>
|
|
<div class="left-panel">
|
|
<div class="companyName">{{name}}</div>
|
|
</div>
|
|
<div class="right-panel">
|
|
<div class="right-panel-search">
|
|
<el-input :size="size" v-model="params.keyword" placeholder="关键字" clearable></el-input>
|
|
<el-button :size="size" type="primary" icon="el-icon-search" @click="upsearch"></el-button>
|
|
</div>
|
|
</div>
|
|
</el-header>
|
|
<el-main class="nopadding">
|
|
<scTable
|
|
ref="table"
|
|
tableName="listCustomColumn"
|
|
@selection-change="selectionChange"
|
|
@sizeChange="sizeChange"
|
|
:params="params"
|
|
:apiObj="list.apiObj"
|
|
:column="list.column"
|
|
row-key="id"
|
|
stripe
|
|
>
|
|
<el-table-column type="selection" width="50"></el-table-column>
|
|
</scTable>
|
|
</el-main>
|
|
</el-container>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "company-user-list",
|
|
data(){
|
|
return{
|
|
size:'small',
|
|
id: this.$route.query.id,
|
|
name:this.$route.query.name,
|
|
list: {
|
|
apiObj: this.$API.system.user.userCompanyList,
|
|
column: [],
|
|
},
|
|
selection: [],
|
|
params:{
|
|
company_id:this.$route.query.id,
|
|
url:'company.user.list',
|
|
keyword: '',
|
|
},
|
|
}
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
methods:{
|
|
//搜索
|
|
upsearch() {
|
|
this.$refs.table.upData(this.search);
|
|
},
|
|
//表格选择后回调事件
|
|
selectionChange(selection) {
|
|
this.selection = selection;
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.companyName{
|
|
color: var(--el-color-primary);
|
|
font-size: 14px;
|
|
}
|
|
</style>
|