admissionConfiguration.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  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 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" @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:'',
  233. subjectId:this.subjectData.id,
  234. beginTime:null,
  235. endTime:null,
  236. },
  237. total:0,
  238. tableData:[],
  239. dateRange:[],
  240. dialogForm:{
  241. pageNum: 1,
  242. pageSize: 20,
  243. userType: '',
  244. searchValue:'',
  245. deptId:'',
  246. },
  247. dialogTitle:'选择学生',
  248. dialogVisible:false,
  249. collegeOptions:[],//学院
  250. labWhiteJoinSubList:[],
  251. dialogTable:[],
  252. userType:1,//判断是学生 1 教职工2
  253. verifyWayList:[],
  254. configuration:{
  255. authType:'',
  256. },
  257. unifyDeploy:false,
  258. // 设置只能选择当前日期及之后的日期
  259. pickerOptions0: {
  260. disabledDate(time) {
  261. return time.getTime() < Date.now();//如果没有后面的-8.64e7就是不可以选择今天的
  262. }
  263. },
  264. }
  265. },
  266. created() {
  267. this.listDepartments();
  268. this.getSignTypeList()
  269. this.subjectmaterial();
  270. this.getList();
  271. },
  272. mounted(){
  273. },
  274. methods:{
  275. //弹出层表格里验证方式改变重新赋值
  276. verifyModeFun(d){
  277. let _this=this;
  278. this.dialogTable.forEach(function(item,index){
  279. if(item.userId==d.userId){
  280. _this.$set(_this.dialogTable,index,d)
  281. }
  282. })
  283. },
  284. //获取当前日期
  285. getdate() {
  286. const dates = new Date()
  287. dates.setMonth(dates.getMonth() + 1)
  288. var pastMonth = dates.getMonth() + 1
  289. var pastDay = dates.getDate()
  290. if (pastMonth >= 1 && pastMonth <= 9) {
  291. pastMonth = '0' + pastMonth
  292. }
  293. if (pastDay >= 0 && pastDay <= 9) {
  294. pastDay = '0' + pastDay
  295. }
  296. const endDate = dates.getFullYear() + '-' + pastMonth + '-' + pastDay
  297. return endDate
  298. },
  299. //查询
  300. onSearch() {
  301. this.dialogForm.pageNo = 1;
  302. this.getUserList();
  303. },
  304. //重置
  305. resetForm() {
  306. this.dialogForm.searchValue = '';
  307. this.dialogForm.deptId = '';
  308. this.onSearch();
  309. },
  310. //统一配置
  311. unifyDeployFun(){
  312. this.unifyDeploy=!this.unifyDeploy
  313. if(this.unifyDeploy==false){
  314. this.configuration.authType='';
  315. }
  316. },
  317. getRowKeys(row) {
  318. return row.userId; //指定row-key的一个标识
  319. },
  320. //监听关联记录弹窗关闭
  321. handleClose(){
  322. console.log('弹窗关闭');
  323. this.$refs.multipleTable.clearSelection();
  324. this.dialogForm.searchValue='';
  325. this.dialogForm.pageNum=1;
  326. this.dialogForm.deptId='';
  327. this.configuration.authType='';
  328. },
  329. //取消选中
  330. toggleSelection(rows) {
  331. let _this=this;
  332. if (rows) {
  333. rows.forEach(row => {
  334. this.$refs.multipleTable.toggleRowSelection(row,true);
  335. });
  336. } else {
  337. this.$refs.multipleTable.clearSelection();
  338. }
  339. },
  340. //选中实验室
  341. handleSelectionChange(val){
  342. let _this=this;
  343. this.labWhiteJoinSubList=[];
  344. this.labWhiteJoinSubList=val;
  345. },
  346. //已授权列表
  347. handleSelectionChange2(val){
  348. let _this=this;
  349. this.impowerList=[];
  350. this.impowerList=val;
  351. },
  352. //获取学院列表
  353. listDepartments(){
  354. listDepartments().then(response => {
  355. this.collegeOptions = response.data;
  356. });
  357. },
  358. /** 弹框查询列表 */
  359. getUserList() {//type 1学生 2教职工
  360. let _this=this;
  361. this.loading = true;
  362. if(_this.userType==1){
  363. this.dialogForm.userType=22
  364. listUser(this.addDateRange(this.dialogForm, this.dateRange)).then(response => {
  365. this.dialogTable = response.rows;
  366. this.total = response.total;
  367. this.loading = false;
  368. this.dialogTable.forEach(function(item) {
  369. item.authType='2'
  370. })
  371. }
  372. );
  373. }else if(_this.userType==2){
  374. this.dialogForm.userType=11
  375. listUser(this.addDateRange(this.dialogForm, this.dateRange)).then(response => {
  376. this.dialogTable = response.rows;
  377. this.total = response.total;
  378. this.loading = false;
  379. this.dialogTable.forEach(function(item) {
  380. item.authType='2'
  381. })
  382. }
  383. );
  384. }
  385. },
  386. /** 查询门禁授权类型 */
  387. getSignTypeList(){
  388. getSignTypeList().then(response => {
  389. if(response.code==200){
  390. this.verifyWayList=response.rows
  391. console.log(this.verifyWayList)
  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. deptId:"",
  493. name: '',
  494. });
  495. this.handleQuery();
  496. },
  497. handleClick(index,row,doType){
  498. let _this=this;
  499. if(doType=='delete'){//删除
  500. let _this=this
  501. console.log(row)
  502. this.$confirm('是否确认删除['+row.userName+']门禁授权?', "警告", {
  503. confirmButtonText: "确定",
  504. cancelButtonText: "取消",
  505. type: "warning"
  506. }).then(function() {
  507. getSignAuthDelete(row.id).then( response => {
  508. _this.msgSuccess("删除成功");
  509. _this.getList();
  510. });
  511. }).then(() => {
  512. _this.getList();
  513. }).catch(() => {});
  514. }else if(doType=='addStudent'){
  515. _this.unifyDeploy=false;
  516. _this.dialogVisible=true;
  517. _this.dialogTitle='选择学生';
  518. _this.userType=1;
  519. this.getUserList();
  520. }else if(doType=='addTeacher'){
  521. _this.unifyDeploy=false;
  522. _this.dialogVisible=true;
  523. _this.dialogTitle='选择教职工';
  524. _this.userType=2;
  525. this.getUserList();
  526. }
  527. },
  528. /* 新增授权*/
  529. submitForm(){
  530. let _this=this;
  531. let arr=[];
  532. if(this.labWhiteJoinSubList.length>0){
  533. if(_this.configuration.authType){//统一配置
  534. this.labWhiteJoinSubList.forEach(function(item){
  535. 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})
  536. })
  537. }else{
  538. this.labWhiteJoinSubList.forEach(function(item){
  539. 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})
  540. })
  541. }
  542. _this.form.userAuthList=arr;
  543. getSignAuthAdd(_this.form).then(response => {
  544. if(response.code==200){
  545. _this.msgSuccess("新增成功");
  546. _this.dialogVisible=false;
  547. _this.getList();
  548. }else if(response.code==205){
  549. _this.$confirm(response.msg, "警告", {
  550. confirmButtonText: "确定",
  551. cancelButtonText: "取消",
  552. type: "warning"
  553. }).then(function() {
  554. _this.dialogVisible=false;
  555. _this.getList();
  556. }).then(() => {
  557. _this.dialogVisible=false;
  558. _this.getList();
  559. }).catch(() => {});
  560. }
  561. });
  562. }else{
  563. this.msgError("请先选择人员!");
  564. }
  565. },
  566. getList(){
  567. let _this=this;
  568. if(this.dateRange){
  569. this.queryParams.beginTime = this.dateRange[0];
  570. this.queryParams.endTime = this.dateRange[1];
  571. delete this.queryParams.dateRange
  572. }else{
  573. delete this.queryParams.dateRange
  574. }
  575. getSignAuthList(_this.queryParams).then( response => {
  576. let res=response.rows;
  577. this.loading=false;
  578. _this.tableData=res;
  579. _this.total=response.total;
  580. _this.tableData.forEach(function(item) {
  581. _this.verifyWayList.forEach(function(item2) {
  582. if(item.authType==item2.dictValue){
  583. item.authName=item2.dictLabel
  584. }
  585. })
  586. })
  587. });
  588. },
  589. }
  590. }
  591. </script>
  592. <style lang="scss" scoped>
  593. .admissionConfiguration{
  594. flex:1;
  595. overflow-y: scroll;
  596. position: relative;
  597. display: flex;
  598. flex-direction: column;
  599. border-radius:10px!important;
  600. margin:5px 20px 20px 10px!important;
  601. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  602. .form-item{
  603. display: inline-block;
  604. overflow: hidden;
  605. margin-top: 40px;
  606. }
  607. .basics{
  608. display: flex;
  609. justify-content: flex-start;
  610. align-items: center;
  611. .tip{
  612. width: 14px;
  613. height: 14px;
  614. margin-left: 14px;
  615. }
  616. }
  617. .top-title-box{
  618. display: flex;
  619. border-bottom:1px solid #E0E0E0;
  620. margin:0 20px;
  621. p{
  622. margin:20px 0;
  623. line-height: 40px;
  624. }
  625. .title-p{
  626. font-size:18px;
  627. color:#0045AF;
  628. flex: 1;
  629. }
  630. .right-icon{
  631. width:40px;
  632. text-align: center;
  633. }
  634. .right-icon:hover{
  635. cursor: pointer;
  636. background: rgba(0,0,0,0.1);
  637. -webkit-border-radius: 50%;
  638. -moz-border-radius: 50%;
  639. border-radius: 50%;
  640. }
  641. }
  642. .top-title-box2{
  643. display: flex;
  644. border-bottom:1px solid #E0E0E0;
  645. margin:0 20px;
  646. p{
  647. line-height: 14px;
  648. font-size: 14px;
  649. font-family: Microsoft YaHei-Regular, Microsoft YaHei;
  650. color: #333333;
  651. margin-bottom: 30px;
  652. }
  653. .title-p{
  654. font-size:18px;
  655. color:#0045AF;
  656. }
  657. .people-num{
  658. margin-left: 26px;
  659. margin-right: 32px;
  660. font-weight: 400;
  661. }
  662. .fail-num{
  663. font-weight: 400;
  664. }
  665. }
  666. .name-box{
  667. margin:32px 0 0 35px;
  668. font-size:16px;
  669. p{
  670. margin:0;
  671. }
  672. }
  673. .max-for-box{
  674. .for-box{
  675. display: inline-block;
  676. width:400px;
  677. height:60px;
  678. margin:32px 0 0 40px;
  679. cursor: pointer;
  680. border-radius:10px;
  681. overflow: hidden;
  682. position: relative;
  683. div{
  684. display: flex;
  685. line-height:60px;
  686. span:nth-child(1){
  687. margin:0 18px 0 18px;
  688. font-size:16px;
  689. color:#333;
  690. overflow:hidden;
  691. text-overflow:ellipsis;
  692. white-space:nowrap;
  693. }
  694. span:nth-child(2){
  695. font-size:14px;
  696. color:#999999;
  697. overflow:hidden;
  698. text-overflow:ellipsis;
  699. white-space:nowrap;
  700. }
  701. }
  702. .position-img{
  703. position: absolute;
  704. right:0;
  705. bottom:0;
  706. }
  707. }
  708. .for-border-one{
  709. border:1px solid #E0E0E0;
  710. }
  711. .for-border-two{
  712. border:1px solid #349cfb;
  713. }
  714. }
  715. .button-p{
  716. width:80px;
  717. margin:40px auto;
  718. }
  719. /*门禁列表*/
  720. .entrance-table{
  721. margin: 20px;
  722. }
  723. /*弹框*/
  724. .btn_list{
  725. width: 100%;
  726. height: 40px;
  727. background: rgba(1,131,250,0.1);
  728. border-radius: 6px;
  729. display: flex;
  730. justify-content: flex-start;
  731. align-items: center;
  732. margin-bottom: 32px;
  733. >i{
  734. font-style: normal;
  735. display: inline-block;
  736. cursor: pointer;
  737. }
  738. >i:nth-of-type(1){
  739. font-size: 20px;
  740. color: #0045AF;
  741. margin: 0 16px 0 14px;
  742. }
  743. >i:nth-of-type(2){
  744. font-size: 16px;
  745. font-family: Source Han Sans CN;
  746. font-weight: bold;
  747. color: #999999;
  748. line-height: 16px;
  749. }
  750. >i:nth-of-type(3){
  751. font-size: 16px;
  752. font-family: Source Han Sans CN;
  753. font-weight: bold;
  754. color: #0045AF;
  755. line-height: 16px;
  756. margin: 0 28px 0 46px;
  757. }
  758. >i:nth-of-type(4){
  759. font-size: 16px;
  760. font-family: Source Han Sans CN;
  761. font-weight: bold;
  762. color: #0045AF;
  763. line-height: 16px;
  764. }
  765. >i:nth-of-type(5){
  766. font-size: 16px;
  767. font-family: Source Han Sans CN;
  768. font-weight: bold;
  769. color: #FFA312;
  770. line-height: 16px;
  771. margin: 0 40px 0 28px;
  772. }
  773. .bottom-button-box{
  774. display: flex;
  775. width:220px;
  776. margin: 0;
  777. p{
  778. font-size:14px;
  779. height:30px;
  780. width:100px;
  781. line-height:30px;
  782. text-align: center;
  783. border-radius:4px;
  784. }
  785. p:nth-child(1){
  786. border:1px solid #E0E0E0;
  787. margin-right:20px;
  788. }
  789. p:nth-child(2){
  790. border:1px solid #0045AF;
  791. }
  792. }
  793. }
  794. .configuration{
  795. height: 70px;
  796. display: flex;
  797. justify-content: flex-end;
  798. align-items: center;
  799. border-top: 1px solid #D8D8D8;
  800. .el-form-item{
  801. margin-bottom: 0!important;
  802. }
  803. }
  804. /*验证方式*/
  805. .verify-green{
  806. color: #46D417;
  807. margin-right: 10px;
  808. }
  809. .verify-red{
  810. color: #FF0000;
  811. margin-right: 10px;
  812. }
  813. }
  814. </style>