unitAdmin.vue 5.04 KB
Newer Older
xulili's avatar
xulili committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<template>
 <!-- 平台用户单位管理员账号管理 -->
  <div class="unit-admin-wrapper height100">
      <div class="search-container">
          <el-form :inline="true" :model="form">
            <el-form-item>
                <el-input
                 v-model="form.user" 
                 placeholder="请输入管理人员姓名"
                 suffix-icon="el-icon-search"
                 clearable
                >
                </el-input>
            </el-form-item>
             <el-form-item>
               <el-select 
                v-model="form.status" 
                 placeholder="请选择单位名称"
                clearable 
               >
                 <el-option
                     v-for="item in options"
                     :key="item.value"
                     :label="item.label"
                     :value="item.value"
                    ></el-option>
               </el-select>
            </el-form-item>
             <el-form-item>
             <el-cascader :options="areaOption" :show-all-levels="false"></el-cascader>
            </el-form-item>
            <el-form-item>
                <div class="btn-group">
                   <el-button type="primary" @click="handleSubmit">查询</el-button>
                   <el-button @click="handleReset">重置</el-button>
                </div>     
            </el-form-item>
        </el-form>
        <div class="page-tip">
            <span class="page-tip-title">页面说明:</span>
            <span class="page-tips">管理员姓名即管理员用户名。可以新增账号,“*”为必填项。可以对账号信息进行修改及重置密码</span>
        </div>
      </div>
      <div class="table-content">
          <div class="btn-group">
               <el-button type="primary">新建账号</el-button>
          </div>
           <!-- <party-table :feildList="feildList" :list="list"></party-table> -->
           <account-table
            :feildList="feildList"
            :list="list"
            @action="handleAction"
           />
           <party-pagination/>
      </div>
xulili's avatar
xulili committed
56
      <!-- <user-dialog/> -->
xulili's avatar
xulili committed
57 58 59 60 61
  </div>
</template>
<script>
import { partyPagination } from '@/components/index'
import accountTable from './components/accountTable'
xulili's avatar
xulili committed
62
// import userDialog from './userDialog/index'
xulili's avatar
xulili committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
export default {
    data(){
        return{
            form:{
                user:'',
                status:''
            },
            addForm:{

            },
            areaOption:[],
            options:[
               {label:'待激活',value:0},
               {label:'活跃',value:1},
               {label:'禁用待审核',value:2},
               {label:'禁用',value:3},
            ],
            feildList:[
                {prop:'username',label:'运维人员姓名'},
                {prop:'org',label:'运维区域'},
                {prop:'endTime',label:'到期时间'},
                {prop:'status',label:'账号状态'},
                {prop:'',label:'操作',isEdit:true, width:280},
            ],
            list: [
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'},
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'},
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
                { username: '丁晓晓', org:'北京市政府',type:'系统管理员',endTime:'永久有效', status:'活跃'}, 
              ]
        }
    },
xulili's avatar
xulili committed
103
    components:{ partyPagination, accountTable},
xulili's avatar
xulili committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
    mounted(){

    },
    methods:{
        handleSubmit(){

        },
        handleReset(){
            this.form.user = ''
        },
        // 弹窗关闭
        handleClose(){
          this.$confirm('确认关闭?')
          .then(_ => {
            done();
          })
          .catch(_ => {});
        },
        handleAction(params){
            console.log(params.type)
        }
    }
}
</script>
<style lang="less" scoped>

</style>