Browse Source

init

newStyle
wangxiaohua 3 years ago
parent
commit
ec57ae85be
1 changed files with 33 additions and 25 deletions
  1. +33
    -25
      src/views/admin/user/index.vue

+ 33
- 25
src/views/admin/user/index.vue View File

@@ -1,6 +1,7 @@
<template> <template>
<div class="user"> <div class="user">
<div class="chose">
<div style="background:#ffff;padding: 10px;">
<div class="tabcenbox">
<div :class="choseFlag?'ch1':'ch2'" style="border-right:1px solid #ccc" @click="choseFlag=true">注册用户</div> <div :class="choseFlag?'ch1':'ch2'" style="border-right:1px solid #ccc" @click="choseFlag=true">注册用户</div>
<div :class="!choseFlag?'ch1':'ch2'" @click="choseFlag=false">组织用户</div> <div :class="!choseFlag?'ch1':'ch2'" @click="choseFlag=false">组织用户</div>
</div> </div>
@@ -84,11 +85,14 @@
<!-- <el-button type="primary" :disabled='checkRole.length==0' @click="delIds">批量删除</el-button> --> <!-- <el-button type="primary" :disabled='checkRole.length==0' @click="delIds">批量删除</el-button> -->
<el-button type="primary" @click="addRole">添加</el-button> <el-button type="primary" @click="addRole">添加</el-button>
</div> </div>
</div>


<!-- 表格 --> <!-- 表格 -->
<div class="con" style="margin-left:10px;"> <div class="con" style="margin-left:10px;">
<el-table <el-table
:data="tableData" :data="tableData"
v-if="choseFlag"
v-if="choseFlag"
border border
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
style="width: 100%;" style="width: 100%;"
@@ -202,7 +206,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
style="text-align:center;"
style="text-align:center; margin-top: 18px;"
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
@@ -398,12 +402,12 @@
</div> </div>


</div> </div>
<div v-else class="con">
<div v-else class="cons">
<!--区域楼盘绑定 --> <!--区域楼盘绑定 -->
<!-- 2 --> <!-- 2 -->
<div> <div>
<div class="area"> <div class="area">
<div>选择大区</div>
<div style="line-height: 30px;">选择大区</div>
<el-select v-model="managerStr" clearable collapse-tags multiple placeholder="请选择" @change="managerChange"> <el-select v-model="managerStr" clearable collapse-tags multiple placeholder="请选择" @change="managerChange">
<!-- 选择大区 --> <!-- 选择大区 -->
<el-option <el-option
@@ -416,11 +420,11 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="province">
<div class="left">
选择城市
<div class="province" style="margin-top: 10px;">
<div class="left" style="line-height: 30px;">
选择城市
</div> </div>
<div class="right">
<div class="right" >
<div v-for="(item,index) in firstList" :key="item.id"> <div v-for="(item,index) in firstList" :key="item.id">
<div style="display:flex;"> <div style="display:flex;">
<div>{{item.name}}</div> <div>{{item.name}}</div>
@@ -433,7 +437,7 @@
> >
</el-option> </el-option>
</el-select> </el-select>
<div @click="delArea(index,0)">X</div>
<div style="line-height: 30px;margin-left: 10px;" @click="delArea(index,0)">取消</div>
</div> </div>
</div> </div>
<div v-for="(item,index) in thirdList" :key="item.id"> <div v-for="(item,index) in thirdList" :key="item.id">
@@ -459,7 +463,7 @@
> >
</el-option> </el-option>
</el-select> </el-select>
<div @click="delArea(index,1)">X</div>
<div style="line-height: 30px;margin-left: 10px;" @click="delArea(index,1)">取消</div>
</div> </div>
</div> </div>
<!-- 当没有选择区域的时候 --> <!-- 当没有选择区域的时候 -->
@@ -487,11 +491,11 @@
> >
</el-option> </el-option>
</el-select> </el-select>
<div @click="delArea(index,1)">X</div>
<div style="line-height: 30px;margin-left: 10px;" @click="delArea(index,1)">取消</div>
</div> </div>
</div> </div>
</div> </div>
<div @click="addArea">+</div>
<div style="line-height: 30px;" @click="addArea">添加条件</div>
</div> </div>
</div> </div>
</div> </div>
@@ -1568,9 +1572,11 @@
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.cons{
margin-top: 10px;
}
.user { .user {
height: 100%; height: 100%;

&__tree { &__tree {
padding-top: 3px; padding-top: 3px;
padding-right: 20px; padding-right: 20px;
@@ -1586,29 +1592,28 @@
color: #4D74D6; color: #4D74D6;
font-weight: 600; font-weight: 600;
} }
.chose{
.tabcenbox{
display: flex; display: flex;
height: 40px;
border: 1px solid #ccc;
width: 100%;
height: 38px;
text-align: center; text-align: center;
width: 140px;
margin: 10px; margin: 10px;
div{
text-align: center;
line-height: 40px;
// width: 100px;
width: 70px;
}

.ch1{ .ch1{
background: cornflowerblue; background: cornflowerblue;
color:#fff; color:#fff;
} }
.ch2{ .ch2{

color:#ccc; color:#ccc;
} }


} }
.tabcenbox div{
width: 120px;
border: 1px solid #ccc;
text-align: center;
line-height: 38px;
}
// .top{ // .top{
// /deep/ .el-form-item__content{ // /deep/ .el-form-item__content{
// display: inline-flex ; // display: inline-flex ;
@@ -1623,6 +1628,9 @@
} }
.con{ .con{
margin-top: 20px; margin-top: 20px;
padding: 20px;
border-radius:4px;
background: #ffff;
} }
.area{ .area{
display: flex; display: flex;


Loading…
Cancel
Save