PersonList.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <div class="manage-root organize-manage person-list">
  3. <Header />
  4. <div class="manage-root-contain">
  5. <nav-menu class="manage-root-contain-left" :activeMenuIndex="activeMenuIndex"></nav-menu>
  6. <div class="manage-root-contain-right personnel-manage-right">
  7. <breadcrumb :breadcrumbList="breadcrumbList" class="breadcrumb-box"></breadcrumb>
  8. <div class="personal-inner" v-if="info">
  9. <div class="common-title-box">
  10. <h3>{{info.name}}<span class="total-number">共{{info.person_count_audited}}人</span></h3>
  11. <div class="btn-box">
  12. <el-button type="primary" size="small" @click="handleBatchImport">批量导入</el-button>
  13. </div>
  14. </div>
  15. <div class="tabs">
  16. <a :class="[tabsIndex===0?'active':'']" @click="handleChangeTabs(0)">人员列表</a>
  17. <a :class="[tabsIndex===1?'active':'']" @click="handleChangeTabs(1)">人员审核 {{info.person_count_wait_audit}}</a>
  18. </div>
  19. <div class="search">
  20. <div class="search-box">
  21. <div class="search-item">
  22. <label>搜索</label>
  23. <el-input
  24. placeholder="输入搜索内容"
  25. v-model="searchInput">
  26. <i slot="suffix" class="el-input__icon el-icon-search" @click="getList(1)" style="cursor: pointer;"></i>
  27. </el-input>
  28. </div>
  29. <div class="search-item">
  30. <label>权限</label>
  31. <el-select v-model="searchType" @change="getList(1)" placeholder="请选择">
  32. <el-option
  33. v-for="item in typeList"
  34. :key="item.account_type"
  35. :label="item.account_type_name"
  36. :value="item.account_type">
  37. </el-option>
  38. </el-select>
  39. </div>
  40. <div class="search-item" v-if="tabsIndex===0">
  41. <label>状态</label>
  42. <el-select v-model="searchStatus" @change="getList(1)" placeholder="请选择">
  43. <el-option
  44. v-for="item in searchStatusList"
  45. :key="item.value"
  46. :label="item.label"
  47. :value="item.value">
  48. </el-option>
  49. </el-select>
  50. </div>
  51. <div class="search-item" v-if="tabsIndex===1">
  52. <label>状态</label>
  53. <el-select v-model="searchAuditStatus" @change="getList(1)" placeholder="请选择">
  54. <el-option
  55. v-for="item in searchAuditStatusList"
  56. :key="item.value"
  57. :label="item.label"
  58. :value="item.value">
  59. </el-option>
  60. </el-select>
  61. </div>
  62. </div>
  63. <div class="search-right" v-if="tabsIndex===0">
  64. <el-button class="gray-btn" size="small" @click="handleUp('','up',multipleSelection)">开启选中用户</el-button>
  65. <el-button class="pink-btn" size="small" @click="handleUp('','down',multipleSelection)">停用选中用户</el-button>
  66. <el-button class="red-btn" size="small" @click="handleDelete('',multipleSelection)">删除选中用户</el-button>
  67. </div>
  68. <div class="search-right" v-if="tabsIndex===1">
  69. <el-button class="gray-btn" size="small" @click="handleAudit('','up',multipleSelection)">同意选中用户</el-button>
  70. <el-button class="pink-btn" size="small" @click="handleAudit('','down',multipleSelection)">拒绝选中用户</el-button>
  71. </div>
  72. </div>
  73. <template v-if="tabsIndex===0">
  74. <el-table
  75. class="search-table"
  76. :data="tableData"
  77. style="width: 100%"
  78. key="table"
  79. @sort-change="handleSort"
  80. :default-sort = dataSort
  81. :max-height="tableHeight"
  82. @selection-change="handleSelectionChange">
  83. <el-table-column
  84. type="selection"
  85. width="40"
  86. fixed>
  87. </el-table-column>
  88. <el-table-column
  89. prop="user_name"
  90. label="用户名"
  91. sortable="custom"
  92. min-width="132"
  93. class-name="user-info">
  94. <template slot-scope="scope">
  95. <img class="touxiang" :src="scope.row.image_url?scope.row.image_url:require('../../assets/avatar.png')" />
  96. <span class="name">{{scope.row.user_name}}</span>
  97. </template>
  98. </el-table-column>
  99. <el-table-column
  100. prop="real_name"
  101. label="真实姓名"
  102. width="103">
  103. </el-table-column>
  104. <el-table-column
  105. prop="sex_name"
  106. label="性别"
  107. width="56">
  108. </el-table-column>
  109. <el-table-column
  110. prop="type"
  111. label="权限"
  112. width="88" >
  113. <template slot-scope="scope">
  114. {{scope.row.is_manager==='true'?'管理员':'普通用户'}}
  115. </template>
  116. </el-table-column>
  117. <el-table-column
  118. prop="email"
  119. label="邮箱"
  120. sortable="custom"
  121. min-width="180">
  122. </el-table-column>
  123. <el-table-column
  124. prop="phone"
  125. label="手机号"
  126. sortable="custom"
  127. width="160">
  128. </el-table-column>
  129. <el-table-column
  130. prop="register_time"
  131. label="注册时间"
  132. sortable="custom"
  133. width="144">
  134. <template slot-scope="scope">
  135. {{scope.row.register_time?scope.row.register_time.substring(0,16):'-'}}
  136. </template>
  137. </el-table-column>
  138. <el-table-column
  139. prop="status"
  140. label="状态"
  141. width="116" >
  142. <template slot-scope="scope">
  143. <div class="status-box">
  144. <span :style="{background:statusList[scope.row.status].bg}"></span>
  145. <b :style="{color:statusList[scope.row.status].color}">{{statusList[scope.row.status].text}}</b>
  146. </div>
  147. </template>
  148. </el-table-column>
  149. <el-table-column
  150. fixed="right"
  151. label="操作"
  152. width="140">
  153. <template slot-scope="scope">
  154. <el-button
  155. @click.native.prevent="handleEdit(scope.row)"
  156. type="text"
  157. size="small"
  158. class="primary-btn">
  159. 编辑
  160. </el-button>
  161. <el-button
  162. @click.native.prevent="handleUp(scope.row, 'up')"
  163. type="text"
  164. size="small"
  165. class="primary-btn"
  166. v-if="scope.row.status===0">
  167. 开启
  168. </el-button>
  169. <el-button
  170. @click.native.prevent="handleUp(scope.row, 'down')"
  171. type="text"
  172. size="small"
  173. class="red-btn"
  174. v-else-if="scope.row.status===1">
  175. 停用
  176. </el-button>
  177. <el-button
  178. @click.native.prevent="handleDelete(scope.row)"
  179. type="text"
  180. size="small"
  181. class="red-btn"
  182. v-if="scope.row.status===0">
  183. 删除
  184. </el-button>
  185. </template>
  186. </el-table-column>
  187. </el-table>
  188. <el-pagination
  189. background
  190. @size-change="(val)=>handleSizeChange(val,'pageSize','pageNumber')"
  191. @current-change="(val)=>handleCurrentChange(val,'pageNumber')"
  192. :current-page="pageNumber"
  193. :page-sizes="[10, 20, 30, 40]"
  194. :page-size="pageSize"
  195. layout="total, prev, pager, next, sizes, jumper"
  196. :total="total_count">
  197. </el-pagination>
  198. </template>
  199. <template v-if="tabsIndex===1">
  200. <el-table
  201. class="search-table"
  202. :data="tableData"
  203. style="width: 100%"
  204. :max-height="tableHeight"
  205. key="auditTable"
  206. @sort-change="handleSort"
  207. :default-sort = dataSorts
  208. @selection-change="handleSelectionChange">
  209. <el-table-column
  210. type="selection"
  211. width="40"
  212. fixed>
  213. </el-table-column>
  214. <el-table-column
  215. prop="user_name"
  216. label="用户名"
  217. sortable="custom"
  218. min-width="132"
  219. class-name="user-info">
  220. <template slot-scope="scope">
  221. <img class="touxiang" :src="scope.row.image_url?scope.row.image_url:require('../../assets/avatar.png')" />
  222. <span class="name">{{scope.row.user_name}}</span>
  223. </template>
  224. </el-table-column>
  225. <el-table-column
  226. prop="real_name"
  227. label="真实姓名"
  228. width="103">
  229. </el-table-column>
  230. <el-table-column
  231. prop="sex_name"
  232. label="性别"
  233. width="56">
  234. </el-table-column>
  235. <el-table-column
  236. prop="email"
  237. label="邮箱"
  238. sortable="custom"
  239. min-width="180">
  240. </el-table-column>
  241. <el-table-column
  242. prop="phone"
  243. label="手机号"
  244. sortable="custom"
  245. width="160">
  246. </el-table-column>
  247. <el-table-column
  248. prop="apply_time"
  249. label="申请时间"
  250. sortable="custom"
  251. width="144">
  252. <template slot-scope="scope">
  253. {{scope.row.apply_time?scope.row.apply_time.substring(0,16):'-'}}
  254. </template>
  255. </el-table-column>
  256. <el-table-column
  257. prop="audit_time"
  258. label="审核时间"
  259. sortable="custom"
  260. width="144">
  261. <template slot-scope="scope">
  262. {{scope.row.audit_time?scope.row.audit_time.substring(0,16):'-'}}
  263. </template>
  264. </el-table-column>
  265. <el-table-column
  266. prop="status"
  267. label="状态"
  268. width="116" >
  269. <template slot-scope="scope">
  270. <div class="status-box" v-if="auditStatusList[scope.row.audit_status]">
  271. <span :style="{background:auditStatusList[scope.row.audit_status].bg}"></span>
  272. <b :style="{color:auditStatusList[scope.row.audit_status].color}">{{auditStatusList[scope.row.audit_status].text}}</b>
  273. </div>
  274. </template>
  275. </el-table-column>
  276. <el-table-column
  277. fixed="right"
  278. label="操作"
  279. width="140">
  280. <template slot-scope="scope">
  281. <el-button
  282. @click.native.prevent="handleLook(scope.row)"
  283. type="text"
  284. size="small"
  285. class="primary-btn">
  286. 查看
  287. </el-button>
  288. <el-button
  289. @click.native.prevent="handleAudit(scope.row,'up')"
  290. type="text"
  291. size="small"
  292. class="primary-btn">
  293. 同意
  294. </el-button>
  295. <el-button
  296. @click.native.prevent="handleAudit(scope.row,'down')"
  297. type="text"
  298. size="small"
  299. class="red-btn"
  300. v-if="scope.row.audit_status===0">
  301. 拒绝
  302. </el-button>
  303. </template>
  304. </el-table-column>
  305. </el-table>
  306. <el-pagination
  307. background
  308. @size-change="(val)=>handleSizeChange(val,'pageSizes','pageNumbers')"
  309. @current-change="(val)=>handleCurrentChange(val,'pageNumbers')"
  310. :current-page="pageNumbers"
  311. :page-sizes="[10, 20, 30, 40]"
  312. :page-size="pageSizes"
  313. layout="total, prev, pager, next, sizes, jumper"
  314. :total="total_count">
  315. </el-pagination>
  316. </template>
  317. </div>
  318. </div>
  319. </div>
  320. <el-dialog
  321. :visible.sync="importFlag"
  322. :show-close="false"
  323. :close-on-click-modal="false"
  324. :modal-append-to-body="false"
  325. width="398px"
  326. class="login-dialog person-dialog"
  327. v-if="importFlag">
  328. <batch-import @closeDialog="closeDialog"></batch-import>
  329. </el-dialog>
  330. </div>
  331. </template>
  332. <script>
  333. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  334. //例如:import 《组件名称》from ‘《组件路径》';
  335. import Header from "../../components/Header.vue";
  336. import NavMenu from "../../components/NavMenu.vue"
  337. import Breadcrumb from '../../components/Breadcrumb.vue';
  338. import BatchImport from './BatchImport.vue'
  339. import {
  340. provinceAndCityData
  341. } from "element-china-area-data";
  342. import { getLogin } from "@/api/ajax";
  343. export default {
  344. //import引入的组件需要注入到对象中才能使用
  345. components: { Header, NavMenu, Breadcrumb, BatchImport },
  346. props: {},
  347. data() {
  348. //这里存放数据
  349. return {
  350. provinceAndCityData,
  351. activeMenuIndex: "organize_manage",
  352. breadcrumbList:[
  353. {
  354. icon:'school-line',
  355. url:'',
  356. text:''
  357. },
  358. {
  359. icon:'',
  360. url:'',
  361. text:'机构管理'
  362. }
  363. ],
  364. searchInput: '',
  365. searchType: -1,
  366. searchStatus: -1,
  367. searchAuditStatus: -1,
  368. typeList:[
  369. {
  370. account_type:-1,
  371. account_type_name:'全部'
  372. },
  373. {
  374. account_type:1,
  375. account_type_name:'管理员'
  376. },
  377. {
  378. account_type:0,
  379. account_type_name:'普通用户'
  380. }
  381. ],
  382. searchAuditStatusList:[
  383. {
  384. value:-1,
  385. label:'全部'
  386. },
  387. {
  388. value:0,
  389. label:'待审核'
  390. },
  391. {
  392. value:2,
  393. label:'已拒绝'
  394. }
  395. ], // 审核状态列表
  396. searchStatusList:[
  397. {
  398. value:-1,
  399. label:'全部'
  400. },
  401. {
  402. value:1,
  403. label:'正常'
  404. },
  405. {
  406. value:0,
  407. label:'停用'
  408. }
  409. ],
  410. statusList:{
  411. 1:{
  412. text:'正常',
  413. bg:'#165DFF',
  414. color:''
  415. },
  416. 0:{
  417. text:'停用',
  418. bg:'#F53F3F',
  419. color:'#F53F3F'
  420. }
  421. },
  422. auditStatusList:{
  423. 0:{
  424. text:'待审核',
  425. bg:'#165DFF',
  426. color:''
  427. },
  428. 2:{
  429. text:'已拒绝',
  430. bg:'#F53F3F',
  431. color:'#F53F3F'
  432. }
  433. },
  434. tableData:[],
  435. pageSize: window.localStorage.getItem('pageSizec')?Number(window.localStorage.getItem('pageSize-people')):10,
  436. pageNumber: window.localStorage.getItem('pageNumber-people')?Number(window.localStorage.getItem('pageNumber-people')):1,
  437. tableHeight: "", // 表格高度
  438. orgName:'', // 机构名称
  439. id:this.$route.query.id?this.$route.query.id:'',
  440. multipleSelection:[],
  441. tabsIndex:0,
  442. pageSizes: window.localStorage.getItem('pageSize-check')?Number(window.localStorage.getItem('pageSize-check')):10,
  443. pageNumbers: window.localStorage.getItem('pageNumber-check')?Number(window.localStorage.getItem('pageNumber-check')):1,
  444. importFlag: false, // 批量导入flag
  445. info: null,
  446. total_count: 0,
  447. dataSort: {},
  448. dataSorts: {}
  449. }
  450. },
  451. //计算属性 类似于data概念
  452. computed: {
  453. },
  454. //监控data中数据变化
  455. watch: {},
  456. //方法集合
  457. methods: {
  458. handleSort(value){
  459. let dataSort = {
  460. prop: value.prop,
  461. order: value.order
  462. }
  463. if(this.tabsIndex===0){
  464. this.dataSort = dataSort
  465. }else{
  466. this.dataSorts = dataSort
  467. }
  468. this.getList()
  469. },
  470. // 查询列表
  471. getList(page){
  472. if(page){
  473. this.pageNumber = page
  474. }
  475. let MethodName = "/OrgServer/Manager/PageQuery/PageQueryPersonList";
  476. let order_column_list = []
  477. if(this.tabsIndex===0){
  478. if(this.dataSort != {}){
  479. if(this.dataSort.order=='descending'){
  480. order_column_list = [this.dataSort.prop + ':desc']
  481. }else if(this.dataSort.order=='ascending'){
  482. // 升序不传值
  483. order_column_list = [this.dataSort.prop]
  484. }else{
  485. order_column_list = ['register_time:desc']
  486. }
  487. }else{
  488. order_column_list = ['register_time:desc']
  489. }
  490. }else{
  491. if(this.dataSorts != {}){
  492. if(this.dataSort.order=='descending'){
  493. order_column_list = [this.dataSorts.prop + ':desc']
  494. }else if(this.dataSort.order=='ascending'){
  495. // 升序不传值
  496. order_column_list = [this.dataSorts.prop]
  497. }else{
  498. order_column_list = ['apply_time:desc']
  499. }
  500. }else{
  501. order_column_list = ['apply_time:desc']
  502. }
  503. }
  504. let data = {
  505. org_id: this.id,
  506. search_content:this.searchInput.trim(),
  507. role_type:this.searchType,
  508. status:this.tabsIndex===0?this.searchStatus:-1,
  509. audit_status:this.tabsIndex===1?this.searchAuditStatus:-1,
  510. page_capacity:this.tabsIndex===0?this.pageSize:this.pageSizes,
  511. cur_page:this.tabsIndex===0?this.pageNumber:this.pageNumbers,
  512. list_type: this.tabsIndex*1,
  513. order_column_list: order_column_list
  514. }
  515. getLogin(MethodName, data)
  516. .then((res) => {
  517. if(res.status===1){
  518. this.tableData = res.person_list
  519. this.total_count = res.total_count
  520. }
  521. })
  522. .catch(() => {
  523. this.loading = false
  524. });
  525. },
  526. // 创建机构或者编辑信息
  527. handleEdit(row){
  528. // 根据登录用户判断当前用户是不是超管 在table里加上disabled
  529. // 点击时记录页码和每页条数
  530. window.localStorage.setItem('pageSize',this.pageSize)
  531. window.localStorage.setItem('pageNumber',this.pageNumber)
  532. this.$router.push({
  533. path: "/editOrgPerson",
  534. query: {
  535. id: row?row.id:''
  536. },
  537. });
  538. },
  539. // 人员管理
  540. handleLook(row){
  541. window.localStorage.setItem('pageSize-check',this.pageSizes)
  542. window.localStorage.setItem('pageNumber-check',this.pageNumbers)
  543. this.$router.push({
  544. path: "/editOrgPerson",
  545. query: {
  546. id: row?row.id:'',
  547. page: 'personCheck'
  548. },
  549. });
  550. },
  551. // 停用 启用
  552. handleUp(row,type,arr) {
  553. if(!row&&arr.length===0){
  554. return false
  555. }
  556. let Mname = "/OrgServer/Manager/PersonManager/EnablePerson";
  557. let data = {
  558. id_list: arr?arr:[row.id]
  559. };
  560. if (type==='up') {
  561. // 下架状态
  562. data.is_enable = "true";
  563. } else if (type==='down') {
  564. data.is_enable = "false";
  565. }
  566. getLogin(Mname, data).then(res => {
  567. this.$message.success("操作成功");
  568. this.getList()
  569. });
  570. },
  571. // 通过 拒绝
  572. handleAudit(row,type,arr) {
  573. if(!row&&arr.length===0){
  574. return false
  575. }
  576. let Mname = "/OrgServer/Manager/PersonManager/AuditPerson";
  577. let data = {
  578. id_list: arr?arr:[row.id]
  579. };
  580. if (type==='up') {
  581. // 下架状态
  582. data.is_pass = "true";
  583. } else if (type==='down') {
  584. data.is_pass = "false";
  585. }
  586. getLogin(Mname, data).then(res => {
  587. this.$message.success("操作成功");
  588. this.getList()
  589. });
  590. },
  591. handleSizeChange(val,type,page) {
  592. this[type] = val
  593. this[page] = 1
  594. this.getList()
  595. },
  596. handleCurrentChange(val,type) {
  597. this[type] = val
  598. this.getList()
  599. },
  600. //计算table高度(动态设置table高度)
  601. getTableHeight() {
  602. let tableH = 434; //距离页面下方的高度
  603. let tableHeightDetil = window.innerHeight - tableH;
  604. if (tableHeightDetil <= 300) {
  605. this.tableHeight = 300;
  606. } else {
  607. this.tableHeight = window.innerHeight - tableH;
  608. }
  609. },
  610. // 删除
  611. handleDelete(row,arr){
  612. this.$confirm('确定删除吗?', '提示', {
  613. confirmButtonText: '确定',
  614. cancelButtonText: '取消',
  615. type: 'warning'
  616. }).then(() => {
  617. if(!row&&arr.length===0){
  618. return false
  619. }
  620. let Mname = "/OrgServer/Manager/PersonManager/DeletePerson";
  621. let data = {
  622. id_list: arr?arr:[row.id]
  623. };
  624. getLogin(Mname, data).then(res => {
  625. this.$message.success("删除成功");
  626. this.getList()
  627. });
  628. }).catch(() => {
  629. this.$message({
  630. type: 'info',
  631. message: '已取消删除'
  632. });
  633. });
  634. },
  635. // 复选框
  636. handleSelectionChange(val) {
  637. this.multipleSelection = []
  638. val.forEach(item => {
  639. this.multipleSelection.push(item.id)
  640. });
  641. },
  642. handleChangeTabs(value){
  643. this.tabsIndex = value
  644. // this.pageNumber = 1
  645. this.getList()
  646. },
  647. // 批量导入
  648. handleBatchImport(){
  649. this.importFlag = true
  650. },
  651. // 关闭批量导入
  652. closeDialog(){
  653. this.importFlag = false
  654. this.getList()
  655. this.getInfo()
  656. },
  657. // 获取机构信息
  658. getInfo(){
  659. let MethodName = "/OrgServer/Manager/OrgManager/GetOrgTitleInfo";
  660. let data = {
  661. id: this.id,
  662. }
  663. getLogin(MethodName, data)
  664. .then((res) => {
  665. if(res.status===1){
  666. this.info = res
  667. let obj = {
  668. icon:'',
  669. url:'',
  670. text:res.name
  671. }
  672. this.breadcrumbList=[
  673. {
  674. icon:'school-line',
  675. url:'',
  676. text:''
  677. },
  678. {
  679. icon:'',
  680. url:'',
  681. text:'机构管理'
  682. }
  683. ]
  684. this.breadcrumbList.push(obj)
  685. }
  686. })
  687. .catch(() => {
  688. });
  689. },
  690. },
  691. //生命周期 - 创建完成(可以访问当前this实例)
  692. created() {
  693. this.getList()
  694. this.getTableHeight();
  695. if(this.id){
  696. this.getInfo()
  697. }else{
  698. this.breadcrumbList=[
  699. {
  700. icon:'school-line',
  701. url:'',
  702. text:''
  703. },
  704. {
  705. icon:'',
  706. url:'',
  707. text:'机构管理'
  708. }
  709. ]
  710. let obj = {
  711. icon:'',
  712. url:'',
  713. text:'青岛科技大学'
  714. }
  715. this.breadcrumbList.push(obj)
  716. }
  717. },
  718. //生命周期 - 挂载完成(可以访问DOM元素)
  719. mounted() {
  720. },
  721. //生命周期-创建之前
  722. beforeCreated() { },
  723. //生命周期-挂载之前
  724. beforeMount() { },
  725. //生命周期-更新之前
  726. beforUpdate() { },
  727. //生命周期-更新之后
  728. updated() { },
  729. //生命周期-销毁之前
  730. beforeDestory() { },
  731. //生命周期-销毁完成
  732. destoryed() { },
  733. //如果页面有keep-alive缓存功能,这个函数会触发
  734. activated() { }
  735. }
  736. </script>
  737. <style lang="scss" scoped>
  738. /* @import url(); 引入css类 */
  739. .total-number{
  740. color: #86909C;
  741. font-weight: 400;
  742. font-size: 14px;
  743. line-height: 22px;
  744. margin-left: 4px;
  745. }
  746. .tabs{
  747. display: flex;
  748. padding: 16px 0;
  749. a{
  750. font-size: 14px;
  751. line-height: 22px;
  752. color: #4E5969;
  753. border-radius: 100px;
  754. padding: 5px 16px;
  755. margin-right: 12px;
  756. &:hover{
  757. background: #F2F3F5;
  758. }
  759. &.active{
  760. background: #F2F3F5;
  761. font-weight: 500;
  762. color: #165DFF;
  763. }
  764. }
  765. }
  766. .search{
  767. display: flex;
  768. justify-content: space-between;
  769. align-items: flex-end;
  770. }
  771. .search-box{
  772. padding-top: 0;
  773. }
  774. .search-right{
  775. height: 34px;
  776. button{
  777. font-size: 14px;
  778. }
  779. .pink-btn{
  780. background: #FFECE8;
  781. color: #F53F3F;
  782. border-color: #FFECE8;
  783. &:hover{
  784. background: #fde0da;
  785. border-color: #fde0da;
  786. }
  787. &:focus{
  788. background: #f8cfc6;
  789. border-color: #f8cfc6;
  790. }
  791. }
  792. .red-btn{
  793. background: #F53F3F;
  794. color: #fff;
  795. border-color: #F53F3F;
  796. &:hover{
  797. background: #ed3b3b;
  798. }
  799. &:focus{
  800. background: #ec1111;
  801. }
  802. }
  803. }
  804. </style>
  805. <style lang="scss">
  806. .organize-manage{
  807. .el-cascader{
  808. width: 160px;
  809. height: 32px;
  810. line-height: 32px;
  811. .el-input{
  812. width: 100%;
  813. height: 32px;
  814. }
  815. }
  816. }
  817. .person-dialog{
  818. .el-dialog{
  819. border-radius: 8px;
  820. }
  821. }
  822. .person-list{
  823. .user-info{
  824. .cell{
  825. display: flex;
  826. align-items: center;
  827. .touxiang{
  828. width: 24px;
  829. height: 24px;
  830. border-radius: 50%;
  831. margin-right: 8px;
  832. }
  833. }
  834. }
  835. }
  836. </style>