| | |
| | | <div class="headerContent"> |
| | | <div class="search"> |
| | | <span>筛选条件:</span> |
| | | <el-input placeholder="请输入内容"></el-input> |
| | | <el-input v-model="content" placeholder="请输入内容"></el-input> |
| | | <div class="findBtn"> |
| | | <el-button type="primary">查询</el-button> |
| | | <el-button type="primary" @click="search()">查询</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="addUser"> |
| | |
| | | :data="tableData" style="width: 100%" :row-class-name="tableRowClassName"> |
| | | <el-table-column type="selection" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column label="用户ID" min-width="10"> |
| | | <el-table-column label="部门ID" min-width="10"> |
| | | <template slot-scope="scope">{{ scope.row.id }}</template> |
| | | </el-table-column> |
| | | <el-table-column prop="nickName" label="用户名称" min-width="10"> |
| | | <el-table-column prop="departName" label="部门名称" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="username" label="所属姓名" min-width="10"> |
| | | <el-table-column prop="departType" label="部门类型" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="mobile" label="联系方式" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="note" label="所属角色" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="departName" label="所属部门" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="jobTitle" label="所属职务" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="createTime" label="创建时间" min-width="10"> |
| | | <el-table-column prop="departDes" label="部门描述" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="启用" min-width="10"> |
| | | <template slot-scope="scope"> |
| | |
| | | dialogCreate: false, |
| | | dialogUpdate: false, |
| | | user: '', |
| | | content: '', |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | let { id, status } = obj; |
| | | status == true ? status = 1 : status = 0; |
| | | console.log(id, status); |
| | | this.$axios.post(`sccg/admin/updateStatus/` + id + '?status=' + status).then(res => { |
| | | this.$axios.post(`/sccg/depart/status`,{id:id,status:status}).then(res => { |
| | | console.log(res); |
| | | }) |
| | | }, |
| | |
| | | const that = this; |
| | | this.dialogCreate = false; |
| | | // 获取所有用户信息 |
| | | this.$axios.get('sccg/admin/list').then(res => { |
| | | this.$axios.get('sccg/depart/page').then(res => { |
| | | if (res.code === 200) { |
| | | res.data.records.forEach(item => { |
| | | item.createTime = helper(item.createTime); |
| | | item.status == 1 ? item.status = true : item.status = false; |
| | | }) |
| | | that.tableData = res.data.records; |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 获取用户列表 |
| | | search() { |
| | | const that = this; |
| | | this.dialogCreate = false; |
| | | // 获取所有用户信息 |
| | | this.$axios.get('sccg/depart/page', { |
| | | params: { |
| | | departName: this.content |
| | | } |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | res.data.records.forEach(item => { |
| | | item.createTime = helper(item.createTime); |
| | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | | display: flex; |
| | |
| | | // padding: 0 40px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .mainTitle { |
| | | line-height: 60px; |
| | | } |
| | |
| | | .el-table { |
| | | color: #4b9bb7; |
| | | font-size: 10px; |
| | | |
| | | .operation { |
| | | display: flex; |
| | | // justify-content: space-around; |
| | | color: #0079fe; |
| | | span{ |
| | | |
| | | span { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | span:hover { |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | } |
| | | .el-dialog__header,.el-dialog__body{ |
| | | |
| | | .el-dialog__header, |
| | | .el-dialog__body { |
| | | background-color: #06122c; |
| | | } |
| | | |
| | | .el-table .warning-row { |
| | | background: #06122c; |
| | | } |
| | | .el-input__inner{ |
| | | |
| | | .el-input__inner { |
| | | background-color: #09152f; |
| | | } |
| | | |
| | | .el-table .success-row { |
| | | background: #071f39; |
| | | } |
| | | |
| | | .switchStyle .el-switch__label { |
| | | position: absolute; |
| | | display: none; |
| | | color: #fff; |
| | | } |
| | | .el-switch__core{ |
| | | background-color: rgba(166, 166, 166, 1) ; |
| | | } |
| | | .switchStyle .el-switch__label--left { |
| | | } |
| | | |
| | | .el-switch__core { |
| | | background-color: rgba(166, 166, 166, 1); |
| | | } |
| | | |
| | | .switchStyle .el-switch__label--left { |
| | | z-index: 9; |
| | | left: 20px; |
| | | } |
| | | .switchStyle .el-switch__label--right { |
| | | } |
| | | |
| | | .switchStyle .el-switch__label--right { |
| | | z-index: 9; |
| | | left: 4px; |
| | | } |
| | | .switchStyle .el-switch__label.is-active { |
| | | } |
| | | |
| | | .switchStyle .el-switch__label.is-active { |
| | | display: block; |
| | | } |
| | | .switchStyle.el-switch .el-switch__core, |
| | | .el-switch .el-switch__label { |
| | | } |
| | | |
| | | .switchStyle.el-switch .el-switch__core, |
| | | .el-switch .el-switch__label { |
| | | width: 50px !important; |
| | | } |
| | | } |
| | | </style> |