admissionConfiguration.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  1. <!--实验室准入配置-->
  2. <template>
  3. <div class="admissionConfiguration scrollbar-box">
  4. <div class="top-title-box">
  5. <p class="title-p">基本信息</p>
  6. <p class="right-button reset-button-one" @click="backPage">返回</p>
  7. </div>
  8. <div class="basics">
  9. <el-form ref="form" :model="form" label-width="120px">
  10. <el-form-item label="适用实验室:" prop="name" class="form-item">
  11. <el-input
  12. style="width:320px;"
  13. maxlength="30"
  14. v-model="form.name"
  15. placeholder=""
  16. clearable
  17. size="small"
  18. disabled
  19. />
  20. </el-form-item>
  21. </el-form>
  22. </div>
  23. <!--门禁授权-->
  24. <div class="top-title-box2" v-if="subjectData.xxpCardInfoId">
  25. <p class="title-p">门禁授权</p>
  26. </div>
  27. <div class="entrance-table" v-if="subjectData.xxpCardInfoId">
  28. <el-form :model="queryParams" ref="queryParams" :inline="true">
  29. <el-form-item label="关键字" prop="searchValue" label-width="60px">
  30. <el-input
  31. maxlength="20"
  32. v-model="queryParams.searchValue"
  33. placeholder="请输入姓名"
  34. clearable
  35. style="width: 200px"
  36. />
  37. </el-form-item>
  38. <el-form-item label="类别" label-width="50px">
  39. <el-select v-model="queryParams.userType" placeholder="请选择类别" clearable style="width: 140px" >
  40. <el-option label="学生" value="22" />
  41. <el-option label="教职工" value="11" />
  42. </el-select>
  43. </el-form-item>
  44. <el-form-item label="授权时间段" label-width="100px">
  45. <el-date-picker
  46. :clearable="false"
  47. v-model="dateRange"
  48. size="small"
  49. style="width: 240px"
  50. value-format="yyyy-MM-dd"
  51. type="daterange"
  52. range-separator="-"
  53. start-placeholder="开始日期"
  54. end-placeholder="结束日期"
  55. ></el-date-picker>
  56. </el-form-item>
  57. <el-form-item style="float: right;">
  58. <el-col :span="1.5">
  59. <p class="inquire-button-one"
  60. style="width:120px;margin-right:10px;"
  61. @click="handleClick('','','addStudent')"
  62. >新增学生授权</p>
  63. <p class="inquire-button-one"
  64. style="width:120px;margin-right:0;"
  65. @click="handleClick('','','addTeacher')"
  66. >新增教职工授权</p>
  67. </el-col>
  68. </el-form-item>
  69. <el-form-item>
  70. <p class="inquire-button-one" style="margin-left:20px;" @click="handleQuery">查询</p>
  71. <p class="reset-button-one" style="margin-left:20px;" @click="resetQuery">重置</p>
  72. </el-form-item>
  73. </el-form>
  74. <el-table v-loading="loading" border :data="tableData" height="500">
  75. <el-table-column label="所属单位" align="left" prop="deptName" show-overflow-tooltip/>
  76. <el-table-column label="姓名" align="left" prop="userName"></el-table-column>
  77. <el-table-column label="验证方式" align="left" prop="authName"></el-table-column>
  78. <el-table-column label="类别" align="left" prop="userType" width="120px">
  79. <template slot-scope="scope">
  80. <span v-if="scope.row.userType==11">教职工</span>
  81. <span v-if="scope.row.userType==22">学生</span>
  82. </template>
  83. </el-table-column>
  84. <el-table-column label="授权时间" align="left" prop="createTime" show-overflow-tooltip></el-table-column>
  85. <el-table-column label="授权人" align="left" prop="createBy"></el-table-column>
  86. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="80">
  87. <template slot-scope="scope">
  88. <div class="button-box" style="display: flex;justify-content: flex-start;">
  89. <p class="table-min-button" @click="handleClick('',scope.row,'delete')">删除</p>
  90. </div>
  91. </template>
  92. </el-table-column>
  93. </el-table>
  94. <div style="margin-top: 20px">
  95. <pagination :page-sizes="[20, 30, 40, 50]"
  96. v-show="total>0"
  97. :total="total"
  98. style="margin:0;"
  99. :page.sync="queryParams.pageNum"
  100. :limit.sync="queryParams.pageSize"
  101. @pagination="getList"
  102. />
  103. </div>
  104. </div>
  105. <div class="top-title-box">
  106. <p class="title-p">准入信息配置</p>
  107. </div>
  108. <div class="max-for-box">
  109. <div class="for-box" v-for="(item,index) in listStudent" :key="index" :class="item.checkType?'for-border-two':'for-border-one'" @click="forListClick(item)">
  110. <div><span>{{item.materialName}}</span><span>{{item.materialDescribe}}</span></div>
  111. <img class="position-img" v-if="item.checkType" src="@/assets/ZDimages/icon_30.png" alt="">
  112. </div>
  113. </div>
  114. <p class="inquire-button-one button-p" @click="upDataButton">{{newUpDataType?'提交':'修改'}}</p>
  115. <!--关联实验室弹框-->
  116. <el-dialog :title=dialogTitle @close="handleClose" :visible.sync="dialogVisible" width="80%">
  117. <el-form :model="dialogForm" ref="dialogForm" :inline="true" label-width="140px">
  118. <el-form-item label="关键字" prop="name" >
  119. <el-input
  120. v-model="dialogForm.searchValue"
  121. placeholder="请输入名称/联系方式"
  122. clearable
  123. size="small"
  124. />
  125. </el-form-item>
  126. <el-form-item label="所属单位" prop="deptId" label-width="80px">
  127. <el-select v-model="dialogForm.deptId" clearable placeholder="请选择学院">
  128. <el-option
  129. v-for="item in collegeOptions"
  130. :key="item.deptId"
  131. :label="item.deptName"
  132. :value="item.deptId">
  133. </el-option>
  134. </el-select>
  135. </el-form-item>
  136. <el-form-item>
  137. <p class="inquire-button-one" style="margin-left:20px;" @click="onSearch">查询</p>
  138. <p class="reset-button-one" style="margin-left:20px;" @click="resetForm">重置</p>
  139. </el-form-item>
  140. </el-form>
  141. <div class="btn_list">
  142. <i class="el-icon-warning"></i>
  143. <i>已选择 {{labWhiteJoinSubList.length}} 项目</i>
  144. <i @click="toggleSelection(dialogTable)">全选本页</i>
  145. <i></i>
  146. <i @click="toggleSelection()">清除选项</i>
  147. </div>
  148. <el-table ref="multipleTable" border tooltip-effect="dark" :row-key="getRowKeys" :data="dialogTable"
  149. highlight-current-row @selection-change="handleSelectionChange" style="cursor: pointer;height:500px;">
  150. <el-table-column type="selection" width="55" :reserve-selection="true" align="center"></el-table-column>
  151. <el-table-column label="所属单位" align="left" prop="deptName"/>
  152. <el-table-column label="姓名" align="left" prop="nickName" />
  153. <el-table-column label="导师" align="left" prop="tutorUserName" v-if="userType==1"/>
  154. <el-table-column label="专业" align="left" prop="major" v-if="userType==1"/>
  155. <el-table-column label="身份" align="left" prop="positionName" v-if="userType==2"/>
  156. <el-table-column label="验证方式" align="left" prop="authType">
  157. <template slot-scope="scope">
  158. <el-select v-model="scope.row.authType" @change="verifyModeFun(scope.row)" clearable >
  159. <el-option
  160. v-for="item in verifyWayList"
  161. :key="item.dictValue"
  162. :label="item.dictLabel"
  163. :value="item.dictValue">
  164. </el-option>
  165. </el-select>
  166. </template>
  167. </el-table-column>
  168. </el-table>
  169. <pagination :page-sizes="[20, 30, 40, 50]"
  170. v-show="total>0"
  171. :total="total"
  172. :page.sync="dialogForm.pageNum"
  173. :limit.sync="dialogForm.pageSize"
  174. @pagination="getUserList"
  175. />
  176. <div class="configuration">
  177. <el-form :model="configuration" ref="queryForm" :inline="true" v-if="unifyDeploy">
  178. <el-form-item label="验证方式:" prop="name">
  179. <el-select v-model="configuration.authType" clearable >
  180. <el-option
  181. v-for="item in verifyWayList"
  182. :key="item.dictValue"
  183. :label="item.dictLabel"
  184. :value="item.dictValue">
  185. </el-option>
  186. </el-select>
  187. </el-form-item>
  188. </el-form>
  189. <p :class="unifyDeploy?'add-button-one-120':'inquire-button-one'" @click="unifyDeployFun()">{{unifyDeploy?'取消统一配置':'统一配置'}}</p>
  190. <el-button class="color_ff back_one" style="height: 42px" @click="submitForm()">确定</el-button>
  191. </div>
  192. </el-dialog>
  193. </div>
  194. </template>
  195. <script>
  196. import { listTemplate, subjectmaterial, addlist } from "@/api/laboratory/admissionConfiguration";
  197. import {
  198. AddImpowerHaikang,
  199. delUserHaikang,
  200. getHaikangUserList, getSignAuthAdd, getSignAuthDelete, getSignAuthList,
  201. getSignTypeList
  202. } from '@/api/laboratory/subject'
  203. import { listDepartments } from '@/api/system/dept'
  204. import { listUser } from '@/api/permissionRequired'
  205. export default {
  206. name: "admissionConfiguration",
  207. props:{
  208. subjectData:{},
  209. },
  210. data() {
  211. return {
  212. loading:false,
  213. //学生模板
  214. listStudent:[],
  215. //老师模板
  216. listTeacher:[],
  217. newUpDataType:false,
  218. form:{
  219. jurisdiction:[],
  220. },
  221. timecardList:[{
  222. value: '人脸/指纹/刷卡/密码',
  223. label: '人脸/指纹/刷卡/密码'
  224. }, {
  225. value: '人脸/指纹/刷卡/密码',
  226. label: '人脸/指纹/刷卡/密码'
  227. },],
  228. // 查询参数
  229. queryParams: {
  230. pageNum: 1,
  231. pageSize:20,
  232. searchValue:null,
  233. userType:null,
  234. subjectId:this.subjectData.id,
  235. beginTime:null,
  236. endTime:null,
  237. },
  238. total:0,
  239. tableData:[],
  240. dateRange:[],
  241. dialogForm:{
  242. pageNum: 1,
  243. pageSize: 20,
  244. userType: '',
  245. searchValue:'',
  246. deptId:'',
  247. },
  248. dialogTitle:'选择学生',
  249. dialogVisible:false,
  250. collegeOptions:[],//学院
  251. labWhiteJoinSubList:[],
  252. dialogTable:[],
  253. userType:1,//判断是学生 1 教职工2
  254. verifyWayList:[],
  255. configuration:{
  256. authType:'',
  257. },
  258. unifyDeploy:false,
  259. // 设置只能选择当前日期及之后的日期
  260. pickerOptions0: {
  261. disabledDate(time) {
  262. return time.getTime() < Date.now();//如果没有后面的-8.64e7就是不可以选择今天的
  263. }
  264. },
  265. }
  266. },
  267. created() {
  268. this.listDepartments();
  269. this.getSignTypeList()
  270. this.subjectmaterial();
  271. this.getList();
  272. },
  273. mounted(){
  274. },
  275. methods:{
  276. //弹出层表格里验证方式改变重新赋值
  277. verifyModeFun(d){
  278. let _this=this;
  279. this.dialogTable.forEach(function(item,index){
  280. if(item.userId==d.userId){
  281. _this.$set(_this.dialogTable,index,d)
  282. }
  283. })
  284. },
  285. //获取当前日期
  286. getdate() {
  287. const dates = new Date()
  288. dates.setMonth(dates.getMonth() + 1)
  289. var pastMonth = dates.getMonth() + 1
  290. var pastDay = dates.getDate()
  291. if (pastMonth >= 1 && pastMonth <= 9) {
  292. pastMonth = '0' + pastMonth
  293. }
  294. if (pastDay >= 0 && pastDay <= 9) {
  295. pastDay = '0' + pastDay
  296. }
  297. const endDate = dates.getFullYear() + '-' + pastMonth + '-' + pastDay
  298. return endDate
  299. },
  300. //查询
  301. onSearch() {
  302. this.dialogForm.pageNo = 1;
  303. this.getUserList();
  304. },
  305. //重置
  306. resetForm() {
  307. this.dialogForm.searchValue = '';
  308. this.dialogForm.deptId = '';
  309. this.onSearch();
  310. },
  311. //统一配置
  312. unifyDeployFun(){
  313. this.unifyDeploy=!this.unifyDeploy
  314. if(this.unifyDeploy==false){
  315. this.configuration.authType='';
  316. }
  317. },
  318. getRowKeys(row) {
  319. return row.userId; //指定row-key的一个标识
  320. },
  321. //监听关联记录弹窗关闭
  322. handleClose(){
  323. console.log('弹窗关闭');
  324. this.$refs.multipleTable.clearSelection();
  325. this.dialogForm.searchValue='';
  326. this.dialogForm.pageNum=1;
  327. this.dialogForm.deptId='';
  328. this.configuration.authType='';
  329. },
  330. //取消选中
  331. toggleSelection(rows) {
  332. let _this=this;
  333. if (rows) {
  334. rows.forEach(row => {
  335. this.$refs.multipleTable.toggleRowSelection(row,true);
  336. });
  337. } else {
  338. this.$refs.multipleTable.clearSelection();
  339. }
  340. },
  341. //选中实验室
  342. handleSelectionChange(val){
  343. let _this=this;
  344. this.labWhiteJoinSubList=[];
  345. this.labWhiteJoinSubList=val;
  346. },
  347. //已授权列表
  348. handleSelectionChange2(val){
  349. let _this=this;
  350. this.impowerList=[];
  351. this.impowerList=val;
  352. },
  353. //获取学院列表
  354. listDepartments(){
  355. listDepartments().then(response => {
  356. this.collegeOptions = response.data;
  357. });
  358. },
  359. /** 弹框查询列表 */
  360. getUserList() {//type 1学生 2教职工
  361. let _this=this;
  362. this.loading = true;
  363. if(_this.userType==1){
  364. this.dialogForm.userType=22
  365. listUser(this.addDateRange(this.dialogForm)).then(response => {
  366. this.dialogTable = response.rows;
  367. this.total = response.total;
  368. this.loading = false;
  369. this.dialogTable.forEach(function(item) {
  370. item.authType='2'
  371. })
  372. }
  373. );
  374. }else if(_this.userType==2){
  375. this.dialogForm.userType=11
  376. listUser(this.addDateRange(this.dialogForm)).then(response => {
  377. this.dialogTable = response.rows;
  378. this.total = response.total;
  379. this.loading = false;
  380. this.dialogTable.forEach(function(item) {
  381. item.authType='2'
  382. })
  383. }
  384. );
  385. }
  386. },
  387. /** 查询门禁授权类型 */
  388. getSignTypeList(){
  389. getSignTypeList().then(response => {
  390. if(response.code==200){
  391. this.verifyWayList=response.rows
  392. console.log(this.verifyWayList)
  393. }
  394. });
  395. },
  396. //获取当前实验室准入配置
  397. subjectId(){
  398. let self = this;
  399. listTemplate({subjectId:this.subjectData.id}).then( response => {
  400. for(let i=0;i<response.data.listStudent.length;i++){
  401. for(let o=0;o<self.listStudent.length;o++){
  402. if(response.data.listStudent[i].id == self.listStudent[o].id){
  403. self.listStudent[o].checkType = true;
  404. }
  405. }
  406. }
  407. for(let i=0;i<response.data.listTeacher.length;i++){
  408. for(let o=0;o<self.listTeacher.length;o++){
  409. if(response.data.listTeacher[i].id == self.listTeacher[o].id){
  410. self.listTeacher[o].checkType = true;
  411. }
  412. }
  413. }
  414. if(!response.data.listStudent[0] && !response.data.listTeacher[0]){
  415. this.newUpDataType = true;
  416. }else{
  417. this.newUpDataType = false;
  418. }
  419. this.form.name=this.subjectData.name
  420. });
  421. },
  422. //提交接口
  423. upDataButton(){
  424. let self = this;
  425. let num = 0;
  426. let newData = {
  427. labSubjectList:[],
  428. studentList:[],
  429. teacherList:[],
  430. };
  431. newData.labSubjectList.push({id:this.subjectData.id});
  432. for(let i=0;i<self.listStudent.length;i++){
  433. if(self.listStudent[i].checkType){
  434. let obj = {
  435. materialId:self.listStudent[i].id,
  436. materialType:self.listStudent[i].materialSuit
  437. };
  438. newData.studentList.push(obj);
  439. num++
  440. }
  441. }
  442. for(let i=0;i<self.listTeacher.length;i++){
  443. if(self.listTeacher[i].checkType){
  444. let obj = {
  445. materialId:self.listTeacher[i].id,
  446. materialType:self.listTeacher[i].materialSuit
  447. };
  448. newData.teacherList.push(obj);
  449. num++
  450. }
  451. }
  452. if(num == 0){
  453. this.msgError("请选择准入条件");
  454. return
  455. }
  456. addlist(newData).then( response => {
  457. this.msgSuccess(this.newUpDataType?"提交成功":"修改成功");
  458. this.$parent.clickPage(1);
  459. });
  460. },
  461. //点击事件
  462. forListClick(item){
  463. item.checkType = !item.checkType;
  464. },
  465. //获取准入模板
  466. subjectmaterial(){
  467. subjectmaterial().then( response => {
  468. for(let i=0;i<response.data.listStudent.length;i++){
  469. response.data.listStudent[i].checkType = false;
  470. }
  471. for(let i=0;i<response.data.listTeacher.length;i++){
  472. response.data.listTeacher[i].checkType = false;
  473. }
  474. this.$set(this,'listStudent',response.data.listStudent);
  475. this.$set(this,'listTeacher',response.data.listTeacher);
  476. this.subjectId();
  477. });
  478. },
  479. //返回按钮
  480. backPage(){
  481. this.$parent.clickPage(1);
  482. },
  483. /** 搜索按钮操作 */
  484. handleQuery() {
  485. this.queryParams.pageNum = 1;
  486. this.getList();
  487. },
  488. /** 重置按钮操作 */
  489. resetQuery() {
  490. this.$set(this,'queryParams',{
  491. pageNum: 1,
  492. pageSize:20,
  493. subjectId:this.subjectData.id,
  494. searchValue: null,
  495. userType:null,
  496. beginTime:null,
  497. endTime:null,
  498. });
  499. this.dateRange=[];
  500. this.handleQuery();
  501. },
  502. handleClick(index,row,doType){
  503. let _this=this;
  504. if(doType=='delete'){//删除
  505. let _this=this
  506. console.log(row)
  507. this.$confirm('是否确认删除['+row.userName+']门禁授权?', "警告", {
  508. confirmButtonText: "确定",
  509. cancelButtonText: "取消",
  510. type: "warning"
  511. }).then(function() {
  512. getSignAuthDelete(row.id).then( response => {
  513. _this.msgSuccess("删除成功");
  514. _this.getList();
  515. });
  516. }).then(() => {
  517. _this.getList();
  518. }).catch(() => {});
  519. }else if(doType=='addStudent'){
  520. _this.unifyDeploy=false;
  521. _this.dialogVisible=true;
  522. _this.dialogTitle='选择学生';
  523. _this.userType=1;
  524. this.getUserList();
  525. }else if(doType=='addTeacher'){
  526. _this.unifyDeploy=false;
  527. _this.dialogVisible=true;
  528. _this.dialogTitle='选择教职工';
  529. _this.userType=2;
  530. this.getUserList();
  531. }
  532. },
  533. /* 新增授权*/
  534. submitForm(){
  535. let _this=this;
  536. let arr=[];
  537. if(this.labWhiteJoinSubList.length>0){
  538. if(_this.configuration.authType){//统一配置
  539. this.labWhiteJoinSubList.forEach(function(item){
  540. arr.push({'userId':item.userId,'userName':item.nickName,'authType':_this.configuration.authType,'userType':item.userType,'subjectId':_this.subjectData.id,'subjectName':_this.subjectData.name,'hardwareId':_this.subjectData.xxpCardInfoId,'deptId':item.deptId,'deptName':item.deptName})
  541. })
  542. }else{
  543. this.labWhiteJoinSubList.forEach(function(item){
  544. arr.push({'userId':item.userId,'userName':item.nickName,'userType':item.userType,'subjectId':_this.subjectData.id,'subjectName':_this.subjectData.name,'hardwareId':_this.subjectData.xxpCardInfoId,'deptId':item.deptId,'deptName':item.deptName,'authType':item.authType})
  545. })
  546. }
  547. _this.form.userAuthList=arr;
  548. getSignAuthAdd(_this.form).then(response => {
  549. if(response.code==200){
  550. _this.msgSuccess("新增成功");
  551. _this.dialogVisible=false;
  552. _this.getList();
  553. }else if(response.code==205){
  554. _this.$confirm(response.msg, "警告", {
  555. confirmButtonText: "确定",
  556. cancelButtonText: "取消",
  557. type: "warning"
  558. }).then(function() {
  559. _this.dialogVisible=false;
  560. _this.getList();
  561. }).then(() => {
  562. _this.dialogVisible=false;
  563. _this.getList();
  564. }).catch(() => {});
  565. }
  566. });
  567. }else{
  568. this.msgError("请先选择人员!");
  569. }
  570. },
  571. getList(){
  572. let _this=this;
  573. if(this.dateRange){
  574. this.queryParams.beginTime = this.dateRange[0];
  575. this.queryParams.endTime = this.dateRange[1];
  576. delete this.queryParams.dateRange
  577. }else{
  578. delete this.queryParams.dateRange
  579. }
  580. getSignAuthList(_this.queryParams).then( response => {
  581. let res=response.rows;
  582. this.loading=false;
  583. _this.tableData=res;
  584. _this.total=response.total;
  585. _this.tableData.forEach(function(item) {
  586. _this.verifyWayList.forEach(function(item2) {
  587. if(item.authType==item2.dictValue){
  588. item.authName=item2.dictLabel
  589. }
  590. })
  591. })
  592. });
  593. },
  594. }
  595. }
  596. </script>
  597. <style lang="scss" scoped>
  598. .admissionConfiguration{
  599. flex:1;
  600. overflow-y: scroll;
  601. position: relative;
  602. display: flex;
  603. flex-direction: column;
  604. border-radius:10px!important;
  605. margin:5px 20px 20px 10px!important;
  606. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  607. .form-item{
  608. display: inline-block;
  609. overflow: hidden;
  610. margin-top: 40px;
  611. }
  612. .basics{
  613. display: flex;
  614. justify-content: flex-start;
  615. align-items: center;
  616. .tip{
  617. width: 14px;
  618. height: 14px;
  619. margin-left: 14px;
  620. }
  621. }
  622. .top-title-box{
  623. display: flex;
  624. border-bottom:1px solid #E0E0E0;
  625. margin:0 20px;
  626. p{
  627. margin:20px 0;
  628. line-height: 40px;
  629. }
  630. .title-p{
  631. font-size:18px;
  632. color:#0045AF;
  633. flex: 1;
  634. }
  635. .right-icon{
  636. width:40px;
  637. text-align: center;
  638. }
  639. .right-icon:hover{
  640. cursor: pointer;
  641. background: rgba(0,0,0,0.1);
  642. -webkit-border-radius: 50%;
  643. -moz-border-radius: 50%;
  644. border-radius: 50%;
  645. }
  646. }
  647. .top-title-box2{
  648. display: flex;
  649. border-bottom:1px solid #E0E0E0;
  650. margin:0 20px;
  651. p{
  652. line-height: 14px;
  653. font-size: 14px;
  654. font-family: Microsoft YaHei-Regular, Microsoft YaHei;
  655. color: #333333;
  656. margin-bottom: 30px;
  657. }
  658. .title-p{
  659. font-size:18px;
  660. color:#0045AF;
  661. }
  662. .people-num{
  663. margin-left: 26px;
  664. margin-right: 32px;
  665. font-weight: 400;
  666. }
  667. .fail-num{
  668. font-weight: 400;
  669. }
  670. }
  671. .name-box{
  672. margin:32px 0 0 35px;
  673. font-size:16px;
  674. p{
  675. margin:0;
  676. }
  677. }
  678. .max-for-box{
  679. .for-box{
  680. display: inline-block;
  681. width:400px;
  682. height:60px;
  683. margin:32px 0 0 40px;
  684. cursor: pointer;
  685. border-radius:10px;
  686. overflow: hidden;
  687. position: relative;
  688. div{
  689. display: flex;
  690. line-height:60px;
  691. span:nth-child(1){
  692. margin:0 18px 0 18px;
  693. font-size:16px;
  694. color:#333;
  695. overflow:hidden;
  696. text-overflow:ellipsis;
  697. white-space:nowrap;
  698. }
  699. span:nth-child(2){
  700. font-size:14px;
  701. color:#999999;
  702. overflow:hidden;
  703. text-overflow:ellipsis;
  704. white-space:nowrap;
  705. }
  706. }
  707. .position-img{
  708. position: absolute;
  709. right:0;
  710. bottom:0;
  711. }
  712. }
  713. .for-border-one{
  714. border:1px solid #E0E0E0;
  715. }
  716. .for-border-two{
  717. border:1px solid #349cfb;
  718. }
  719. }
  720. .button-p{
  721. width:80px;
  722. margin:40px auto;
  723. }
  724. /*门禁列表*/
  725. .entrance-table{
  726. margin: 20px;
  727. }
  728. /*弹框*/
  729. .btn_list{
  730. width: 100%;
  731. height: 40px;
  732. background: rgba(1,131,250,0.1);
  733. border-radius: 6px;
  734. display: flex;
  735. justify-content: flex-start;
  736. align-items: center;
  737. margin-bottom: 32px;
  738. >i{
  739. font-style: normal;
  740. display: inline-block;
  741. cursor: pointer;
  742. }
  743. >i:nth-of-type(1){
  744. font-size: 20px;
  745. color: #0045AF;
  746. margin: 0 16px 0 14px;
  747. }
  748. >i:nth-of-type(2){
  749. font-size: 16px;
  750. font-family: Source Han Sans CN;
  751. font-weight: bold;
  752. color: #999999;
  753. line-height: 16px;
  754. }
  755. >i:nth-of-type(3){
  756. font-size: 16px;
  757. font-family: Source Han Sans CN;
  758. font-weight: bold;
  759. color: #0045AF;
  760. line-height: 16px;
  761. margin: 0 28px 0 46px;
  762. }
  763. >i:nth-of-type(4){
  764. font-size: 16px;
  765. font-family: Source Han Sans CN;
  766. font-weight: bold;
  767. color: #0045AF;
  768. line-height: 16px;
  769. }
  770. >i:nth-of-type(5){
  771. font-size: 16px;
  772. font-family: Source Han Sans CN;
  773. font-weight: bold;
  774. color: #FFA312;
  775. line-height: 16px;
  776. margin: 0 40px 0 28px;
  777. }
  778. .bottom-button-box{
  779. display: flex;
  780. width:220px;
  781. margin: 0;
  782. p{
  783. font-size:14px;
  784. height:30px;
  785. width:100px;
  786. line-height:30px;
  787. text-align: center;
  788. border-radius:4px;
  789. }
  790. p:nth-child(1){
  791. border:1px solid #E0E0E0;
  792. margin-right:20px;
  793. }
  794. p:nth-child(2){
  795. border:1px solid #0045AF;
  796. }
  797. }
  798. }
  799. .configuration{
  800. height: 70px;
  801. display: flex;
  802. justify-content: flex-end;
  803. align-items: center;
  804. border-top: 1px solid #D8D8D8;
  805. .el-form-item{
  806. margin-bottom: 0!important;
  807. }
  808. }
  809. /*验证方式*/
  810. .verify-green{
  811. color: #46D417;
  812. margin-right: 10px;
  813. }
  814. .verify-red{
  815. color: #FF0000;
  816. margin-right: 10px;
  817. }
  818. }
  819. </style>