admissionConfiguration.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  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="total2>0"
  171. :total="total2"
  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. total2:0,
  240. tableData:[],
  241. dateRange:[],
  242. dialogForm:{
  243. pageNum: 1,
  244. pageSize: 20,
  245. userType: '',
  246. searchValue:'',
  247. deptId:'',
  248. },
  249. dialogTitle:'选择学生',
  250. dialogVisible:false,
  251. collegeOptions:[],//学院
  252. labWhiteJoinSubList:[],
  253. dialogTable:[],
  254. userType:1,//判断是学生 1 教职工2
  255. verifyWayList:[],
  256. configuration:{
  257. authType:'',
  258. },
  259. unifyDeploy:false,
  260. // 设置只能选择当前日期及之后的日期
  261. pickerOptions0: {
  262. disabledDate(time) {
  263. return time.getTime() < Date.now();//如果没有后面的-8.64e7就是不可以选择今天的
  264. }
  265. },
  266. }
  267. },
  268. created() {
  269. this.listDepartments();
  270. this.getSignTypeList()
  271. this.subjectmaterial();
  272. this.getList();
  273. },
  274. mounted(){
  275. },
  276. methods:{
  277. //弹出层表格里验证方式改变重新赋值
  278. verifyModeFun(d){
  279. let _this=this;
  280. this.dialogTable.forEach(function(item,index){
  281. if(item.userId==d.userId){
  282. _this.$set(_this.dialogTable,index,d)
  283. }
  284. })
  285. },
  286. //获取当前日期
  287. getdate() {
  288. const dates = new Date()
  289. dates.setMonth(dates.getMonth() + 1)
  290. var pastMonth = dates.getMonth() + 1
  291. var pastDay = dates.getDate()
  292. if (pastMonth >= 1 && pastMonth <= 9) {
  293. pastMonth = '0' + pastMonth
  294. }
  295. if (pastDay >= 0 && pastDay <= 9) {
  296. pastDay = '0' + pastDay
  297. }
  298. const endDate = dates.getFullYear() + '-' + pastMonth + '-' + pastDay
  299. return endDate
  300. },
  301. //查询
  302. onSearch() {
  303. this.dialogForm.pageNo = 1;
  304. this.getUserList();
  305. },
  306. //重置
  307. resetForm() {
  308. this.dialogForm.searchValue = '';
  309. this.dialogForm.deptId = '';
  310. this.onSearch();
  311. },
  312. //统一配置
  313. unifyDeployFun(){
  314. this.unifyDeploy=!this.unifyDeploy
  315. if(this.unifyDeploy==false){
  316. this.configuration.authType='';
  317. }
  318. },
  319. getRowKeys(row) {
  320. return row.userId; //指定row-key的一个标识
  321. },
  322. //监听关联记录弹窗关闭
  323. handleClose(){
  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.total2 = 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.total2 = 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. }
  393. });
  394. },
  395. //获取当前实验室准入配置
  396. subjectId(){
  397. let self = this;
  398. listTemplate({subjectId:this.subjectData.id}).then( response => {
  399. for(let i=0;i<response.data.listStudent.length;i++){
  400. for(let o=0;o<self.listStudent.length;o++){
  401. if(response.data.listStudent[i].id == self.listStudent[o].id){
  402. self.listStudent[o].checkType = true;
  403. }
  404. }
  405. }
  406. for(let i=0;i<response.data.listTeacher.length;i++){
  407. for(let o=0;o<self.listTeacher.length;o++){
  408. if(response.data.listTeacher[i].id == self.listTeacher[o].id){
  409. self.listTeacher[o].checkType = true;
  410. }
  411. }
  412. }
  413. if(!response.data.listStudent[0] && !response.data.listTeacher[0]){
  414. this.newUpDataType = true;
  415. }else{
  416. this.newUpDataType = false;
  417. }
  418. this.form.name=this.subjectData.name
  419. });
  420. },
  421. //提交接口
  422. upDataButton(){
  423. let self = this;
  424. let num = 0;
  425. let newData = {
  426. labSubjectList:[],
  427. studentList:[],
  428. teacherList:[],
  429. };
  430. newData.labSubjectList.push({id:this.subjectData.id});
  431. for(let i=0;i<self.listStudent.length;i++){
  432. if(self.listStudent[i].checkType){
  433. let obj = {
  434. materialId:self.listStudent[i].id,
  435. materialType:self.listStudent[i].materialSuit
  436. };
  437. newData.studentList.push(obj);
  438. num++
  439. }
  440. }
  441. for(let i=0;i<self.listTeacher.length;i++){
  442. if(self.listTeacher[i].checkType){
  443. let obj = {
  444. materialId:self.listTeacher[i].id,
  445. materialType:self.listTeacher[i].materialSuit
  446. };
  447. newData.teacherList.push(obj);
  448. num++
  449. }
  450. }
  451. if(num == 0){
  452. this.msgError("请选择准入条件");
  453. return
  454. }
  455. addlist(newData).then( response => {
  456. this.msgSuccess(this.newUpDataType?"提交成功":"修改成功");
  457. this.$parent.clickPage(1);
  458. });
  459. },
  460. //点击事件
  461. forListClick(item){
  462. item.checkType = !item.checkType;
  463. },
  464. //获取准入模板
  465. subjectmaterial(){
  466. subjectmaterial().then( response => {
  467. for(let i=0;i<response.data.listStudent.length;i++){
  468. response.data.listStudent[i].checkType = false;
  469. }
  470. for(let i=0;i<response.data.listTeacher.length;i++){
  471. response.data.listTeacher[i].checkType = false;
  472. }
  473. this.$set(this,'listStudent',response.data.listStudent);
  474. this.$set(this,'listTeacher',response.data.listTeacher);
  475. this.subjectId();
  476. });
  477. },
  478. //返回按钮
  479. backPage(){
  480. this.$parent.clickPage(1);
  481. },
  482. /** 搜索按钮操作 */
  483. handleQuery() {
  484. this.queryParams.pageNum = 1;
  485. this.getList();
  486. },
  487. /** 重置按钮操作 */
  488. resetQuery() {
  489. this.$set(this,'queryParams',{
  490. pageNum: 1,
  491. pageSize:20,
  492. subjectId:this.subjectData.id,
  493. searchValue: null,
  494. userType:null,
  495. beginTime:null,
  496. endTime:null,
  497. });
  498. this.dateRange=[];
  499. this.handleQuery();
  500. },
  501. handleClick(index,row,doType){
  502. let _this=this;
  503. if(doType=='delete'){//删除
  504. let _this=this
  505. this.$confirm('是否确认删除['+row.userName+']?', "警告", {
  506. confirmButtonText: "确定",
  507. cancelButtonText: "取消",
  508. type: "warning"
  509. }).then(function() {
  510. getSignAuthDelete(row.id).then( response => {
  511. _this.msgSuccess("删除成功");
  512. _this.getList();
  513. });
  514. }).then(() => {
  515. _this.getList();
  516. }).catch(() => {});
  517. }else if(doType=='addStudent'){
  518. _this.unifyDeploy=false;
  519. _this.dialogVisible=true;
  520. _this.dialogTitle='选择学生';
  521. _this.userType=1;
  522. this.getUserList();
  523. }else if(doType=='addTeacher'){
  524. _this.unifyDeploy=false;
  525. _this.dialogVisible=true;
  526. _this.dialogTitle='选择教职工';
  527. _this.userType=2;
  528. this.getUserList();
  529. }
  530. },
  531. /* 新增授权*/
  532. submitForm(){
  533. let _this=this;
  534. let arr=[];
  535. if(this.labWhiteJoinSubList.length>0){
  536. if(_this.configuration.authType){//统一配置
  537. this.labWhiteJoinSubList.forEach(function(item){
  538. 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})
  539. })
  540. }else{
  541. this.labWhiteJoinSubList.forEach(function(item){
  542. 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})
  543. })
  544. }
  545. _this.form.userAuthList=arr;
  546. getSignAuthAdd(_this.form).then(response => {
  547. if(response.code==200){
  548. _this.msgSuccess("新增成功");
  549. _this.dialogVisible=false;
  550. _this.getList();
  551. }else if(response.code==205){
  552. _this.$confirm(response.msg, "警告", {
  553. confirmButtonText: "确定",
  554. cancelButtonText: "取消",
  555. type: "warning"
  556. }).then(function() {
  557. _this.dialogVisible=false;
  558. _this.getList();
  559. }).then(() => {
  560. _this.dialogVisible=false;
  561. _this.getList();
  562. }).catch(() => {});
  563. }
  564. });
  565. }else{
  566. this.msgError("请先选择人员!");
  567. }
  568. },
  569. getList(){
  570. let _this=this;
  571. if(this.dateRange){
  572. this.queryParams.beginTime = this.dateRange[0];
  573. this.queryParams.endTime = this.dateRange[1];
  574. delete this.queryParams.dateRange
  575. }else{
  576. delete this.queryParams.dateRange
  577. }
  578. getSignAuthList(_this.queryParams).then( response => {
  579. let res=response.rows;
  580. this.loading=false;
  581. _this.tableData=res;
  582. _this.total=response.total;
  583. _this.tableData.forEach(function(item) {
  584. _this.verifyWayList.forEach(function(item2) {
  585. if(item.authType==item2.dictValue){
  586. item.authName=item2.dictLabel
  587. }
  588. })
  589. })
  590. });
  591. },
  592. }
  593. }
  594. </script>
  595. <style lang="scss" scoped>
  596. .admissionConfiguration{
  597. flex:1;
  598. overflow-y: scroll;
  599. position: relative;
  600. display: flex;
  601. flex-direction: column;
  602. border-radius:10px!important;
  603. margin:5px 20px 20px 10px!important;
  604. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  605. .form-item{
  606. display: inline-block;
  607. overflow: hidden;
  608. margin-top: 40px;
  609. }
  610. .basics{
  611. display: flex;
  612. justify-content: flex-start;
  613. align-items: center;
  614. .tip{
  615. width: 14px;
  616. height: 14px;
  617. margin-left: 14px;
  618. }
  619. }
  620. .top-title-box{
  621. display: flex;
  622. border-bottom:1px solid #E0E0E0;
  623. margin:0 20px;
  624. p{
  625. margin:20px 0;
  626. line-height: 40px;
  627. }
  628. .title-p{
  629. font-size:18px;
  630. color:#0045AF;
  631. flex: 1;
  632. }
  633. .right-icon{
  634. width:40px;
  635. text-align: center;
  636. }
  637. .right-icon:hover{
  638. cursor: pointer;
  639. background: rgba(0,0,0,0.1);
  640. -webkit-border-radius: 50%;
  641. -moz-border-radius: 50%;
  642. border-radius: 50%;
  643. }
  644. }
  645. .top-title-box2{
  646. display: flex;
  647. border-bottom:1px solid #E0E0E0;
  648. margin:0 20px;
  649. p{
  650. line-height: 14px;
  651. font-size: 14px;
  652. font-family: Microsoft YaHei-Regular, Microsoft YaHei;
  653. color: #333333;
  654. margin-bottom: 30px;
  655. }
  656. .title-p{
  657. font-size:18px;
  658. color:#0045AF;
  659. }
  660. .people-num{
  661. margin-left: 26px;
  662. margin-right: 32px;
  663. font-weight: 400;
  664. }
  665. .fail-num{
  666. font-weight: 400;
  667. }
  668. }
  669. .name-box{
  670. margin:32px 0 0 35px;
  671. font-size:16px;
  672. p{
  673. margin:0;
  674. }
  675. }
  676. .max-for-box{
  677. .for-box{
  678. display: inline-block;
  679. width:400px;
  680. height:60px;
  681. margin:32px 0 0 40px;
  682. cursor: pointer;
  683. border-radius:10px;
  684. overflow: hidden;
  685. position: relative;
  686. div{
  687. display: flex;
  688. line-height:60px;
  689. span:nth-child(1){
  690. margin:0 18px 0 18px;
  691. font-size:16px;
  692. color:#333;
  693. overflow:hidden;
  694. text-overflow:ellipsis;
  695. white-space:nowrap;
  696. }
  697. span:nth-child(2){
  698. font-size:14px;
  699. color:#999999;
  700. overflow:hidden;
  701. text-overflow:ellipsis;
  702. white-space:nowrap;
  703. }
  704. }
  705. .position-img{
  706. position: absolute;
  707. right:0;
  708. bottom:0;
  709. }
  710. }
  711. .for-border-one{
  712. border:1px solid #E0E0E0;
  713. }
  714. .for-border-two{
  715. border:1px solid #349cfb;
  716. }
  717. }
  718. .button-p{
  719. width:80px;
  720. margin:40px auto;
  721. }
  722. /*门禁列表*/
  723. .entrance-table{
  724. margin: 20px;
  725. }
  726. /*弹框*/
  727. .btn_list{
  728. width: 100%;
  729. height: 40px;
  730. background: rgba(1,131,250,0.1);
  731. border-radius: 6px;
  732. display: flex;
  733. justify-content: flex-start;
  734. align-items: center;
  735. margin-bottom: 32px;
  736. >i{
  737. font-style: normal;
  738. display: inline-block;
  739. cursor: pointer;
  740. }
  741. >i:nth-of-type(1){
  742. font-size: 20px;
  743. color: #0045AF;
  744. margin: 0 16px 0 14px;
  745. }
  746. >i:nth-of-type(2){
  747. font-size: 16px;
  748. font-family: Source Han Sans CN;
  749. font-weight: bold;
  750. color: #999999;
  751. line-height: 16px;
  752. }
  753. >i:nth-of-type(3){
  754. font-size: 16px;
  755. font-family: Source Han Sans CN;
  756. font-weight: bold;
  757. color: #0045AF;
  758. line-height: 16px;
  759. margin: 0 28px 0 46px;
  760. }
  761. >i:nth-of-type(4){
  762. font-size: 16px;
  763. font-family: Source Han Sans CN;
  764. font-weight: bold;
  765. color: #0045AF;
  766. line-height: 16px;
  767. }
  768. >i:nth-of-type(5){
  769. font-size: 16px;
  770. font-family: Source Han Sans CN;
  771. font-weight: bold;
  772. color: #FFA312;
  773. line-height: 16px;
  774. margin: 0 40px 0 28px;
  775. }
  776. .bottom-button-box{
  777. display: flex;
  778. width:220px;
  779. margin: 0;
  780. p{
  781. font-size:14px;
  782. height:30px;
  783. width:100px;
  784. line-height:30px;
  785. text-align: center;
  786. border-radius:4px;
  787. }
  788. p:nth-child(1){
  789. border:1px solid #E0E0E0;
  790. margin-right:20px;
  791. }
  792. p:nth-child(2){
  793. border:1px solid #0045AF;
  794. }
  795. }
  796. }
  797. .configuration{
  798. height: 70px;
  799. display: flex;
  800. justify-content: flex-end;
  801. align-items: center;
  802. border-top: 1px solid #D8D8D8;
  803. .el-form-item{
  804. margin-bottom: 0!important;
  805. }
  806. }
  807. /*验证方式*/
  808. .verify-green{
  809. color: #46D417;
  810. margin-right: 10px;
  811. }
  812. .verify-red{
  813. color: #FF0000;
  814. margin-right: 10px;
  815. }
  816. }
  817. </style>