unitAdmin.vue 5.23 KB
<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"
                ></el-input>
            </el-form-item>
            <el-form-item>
                <el-input
                 v-model="form.user" 
                 placeholder="请输入用户名"
                 suffix-icon="el-icon-search"
                ></el-input>
            </el-form-item>
            <el-form-item>
                <el-cascader :options="options" :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>
           <party-pagination/>
      </div>
      <user-dialog/>
  </div>
</template>
<script>
import { partyPagination,partyTable } from '@/components/index'
import userDialog from './userDialog/index'
import area from '@/config/area'
export default {
    data(){
        return{
            options: area,
            form:{
                user:''
            },
            addForm:{

            },
            
            feildList:[
                {prop:'date',label:'日期'},
                {prop:'name',label:'姓名'},
                {prop:'address',label:'地址'},
            ],
            list: [
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 
                { date: '2016-05-02',name: '王小虎',  address: '上海市普陀区金沙江路 1518 弄'}, 

              ]
        }
    },
    components:{ partyPagination, partyTable, userDialog},
    mounted(){

    },
    methods:{
        handleSubmit(){

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

</style>