addPageKDNH.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <!--白名单新增-->
  2. <template>
  3. <div class="add-whitelist">
  4. <div class="top-max-button-title-box">
  5. <p>新增准入白名单</p>
  6. <p class="button-p reset-button-one" @click="backPage">返回</p>
  7. </div>
  8. <div class="form-max-box">
  9. <div class="left">
  10. <el-form :model="form" ref="drawerForm" :rules="rules" >
  11. <el-form-item label="姓名" prop="userIds" style="margin-top:40px;">
  12. <el-select
  13. :disabled="isEdit"
  14. v-model="form.userIds"
  15. filterable
  16. remote
  17. reserve-keyword
  18. placeholder="请输入姓名"
  19. :remote-method="userSelectList"
  20. @change="selectChange"
  21. :loading="loading">
  22. <el-option
  23. v-for="item in optionsUser"
  24. :key="item.userId"
  25. :label="item.nickName"
  26. :value="item.userId">
  27. </el-option>
  28. </el-select>
  29. </el-form-item>
  30. <div class="for-max-box">
  31. <div class="for-box" v-for="(item,index) in userList" :key="index">
  32. <div class="for-min-box">
  33. <p>{{item.deptName ? item.deptName+'-'+item.userName:item.userName}}</p>
  34. <img src="@/assets/newImages/off.png" @click="delItem(index)" v-if="!isEdit">
  35. </div>
  36. </div>
  37. </div>
  38. <p class="inquire-button-one" style="margin:100px 50px;" @click="upButton">提交</p>
  39. </el-form>
  40. </div>
  41. <div class="right">
  42. <div style="text-align: right;margin: 20px;" class="right_t"> <p class="inquire-button-one" style="width: 150px" @click="newAdmittance">新增准入实验室</p></div>
  43. <el-table class="right_b" border v-loading="loading" :data="subjectList">
  44. <el-table-column label="申请实验室" align="left" prop="name" />
  45. <el-table-column label="楼栋" align="left" prop="building" />
  46. <el-table-column label="楼层" align="left" prop="buildName" />
  47. <el-table-column label="学院" align="left" prop="deptName" />
  48. <el-table-column label="实验室负责人" align="left" prop="adminName" />
  49. <el-table-column label="安全分级" align="left" prop="levelName" />
  50. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  51. <template slot-scope="scope">
  52. <div class="button-box">
  53. <p class="table-min-button" @click="handleClick(scope.$index, scope.row,'delete')" ><i class="el-icon-delete"></i>删除</p>
  54. </div>
  55. </template>
  56. </el-table-column>
  57. </el-table>
  58. </div>
  59. </div>
  60. <!--关联实验室弹框-->
  61. <el-dialog title='新增准入实验室' @close="handleClose" :visible.sync="dialogVisible" width="80%">
  62. <el-form :model="dialogForm" ref="dialogForm" :inline="true" label-width="140px">
  63. <el-form-item label="实验室名称" prop="name" >
  64. <el-input
  65. v-model="dialogForm.name"
  66. placeholder="请输入实验室名称"
  67. clearable
  68. size="small"
  69. />
  70. </el-form-item>
  71. <el-form-item label="楼栋" prop="buildId">
  72. <el-select v-model="dialogForm.buildId" placeholder="请选择楼栋" clearable @change="buildChange">
  73. <el-option v-for="(item,index) in buildsDataList" :key="index" :label="item.deptName" :value="item.deptId" />
  74. </el-select>
  75. </el-form-item>
  76. <el-form-item label="楼层" prop="floorId">
  77. <el-select v-model="dialogForm.floorId" placeholder="请选择楼层" >
  78. <el-option
  79. v-for="dict in floorList"
  80. :key="dict.id"
  81. :label="dict.name"
  82. :value="dict.id"
  83. ></el-option>
  84. </el-select>
  85. </el-form-item>
  86. <el-form-item>
  87. <p class="inquire-button-one" style="margin-left:20px;" @click="onSearch">查询</p>
  88. <p class="reset-button-one" style="margin-left:20px;" @click="resetForm">重置</p>
  89. </el-form-item>
  90. </el-form>
  91. <div class="btn_list">
  92. <i class="el-icon-warning"></i>
  93. <i>已选择 {{labWhiteJoinSubList.length}} 项</i>
  94. <i @click="toggleSelection(dialogTable)">全选本页</i>
  95. <!-- <i>选择全部</i>-->
  96. <i></i>
  97. <i @click="toggleSelection()">清除选项</i>
  98. <div class="bottom-button-box">
  99. <el-button class="color_99" @click="closeDialog(1)">关闭</el-button>
  100. <el-button class="color_ff back_one" @click="closeDialog(2)">确定</el-button>
  101. </div>
  102. </div>
  103. <el-table ref="multipleTable" border tooltip-effect="dark" :row-key="getRowKeys" :data="dialogTable"
  104. highlight-current-row @selection-change="handleSelectionChange" style="cursor: pointer;height:500px;">
  105. <el-table-column type="selection" width="55" :reserve-selection="true" align="center"></el-table-column>
  106. <el-table-column label="申请实验室名称" show-overflow-tooltip align="left" prop="name"/>
  107. <el-table-column label="楼栋" align="left" prop="building" />
  108. <el-table-column label="楼层" align="left" prop="buildName" />
  109. <el-table-column label="学院" align="left" prop="deptName" />
  110. <el-table-column label="实验室负责人" align="left" prop="adminName" />
  111. <el-table-column label="安全分级" align="left" prop="levelName" >
  112. <template slot-scope="scope">
  113. <span :style="'color:'+scope.row.fiedColor+';'">{{scope.row.levelName}}</span>
  114. </template>
  115. </el-table-column>
  116. </el-table>
  117. <pagination :page-sizes="[20, 30, 40, 50]"
  118. v-show="total>0"
  119. :total="total"
  120. :page.sync="dialogForm.pageNum"
  121. :limit.sync="dialogForm.pageSize"
  122. @pagination="getUserRoleBySub"
  123. />
  124. <!-- <div class="bottom-button-box" style="padding-top: 20px;text-align: right;">
  125. <el-button class="color_99" @click="closeDialog()">取消</el-button>
  126. <el-button class="color_ff back_one" @click="confirmDialog()">确定</el-button>
  127. </div>-->
  128. </el-dialog>
  129. </div>
  130. </template>
  131. <script>
  132. import {
  133. getAllSubjectByParame,
  134. selectUserListByName,
  135. whitelistAddList,
  136. whitelistEdit, whitelistEditList,
  137. whitelistList,
  138. whitelistSubListEdit
  139. } from "@/api/laboratory/whitelist";
  140. import {listInfo} from "@/api/laboratory/gradeManage";
  141. import {delPlan, getUserRoleBySub} from "@/api/laboratory/plan";
  142. import {buildsList} from "@/api/laboratory/sparseHardware";
  143. import {listFloorByBuildId} from "@/api/laboratory/building";
  144. export default {
  145. name: "add-whitelist",
  146. props:{
  147. pageData:{},
  148. },
  149. data() {
  150. return {
  151. isEdit:false,
  152. form:{},
  153. loading:false,
  154. // 表单校验
  155. rules: {
  156. userIds: [
  157. { required: true, message: "请输入标题", trigger: "blur" },
  158. { required: true, message: "请输入标题", validator: this.spaceJudgment, trigger: "blur" }
  159. ],
  160. },
  161. //展示数组
  162. userList:[],
  163. //搜索角色数组
  164. optionsUser:[],
  165. queryParams:{
  166. pageNum:1,
  167. pageSize:20,
  168. },
  169. total:0,
  170. subjectList:[],
  171. dialogVisible:false,
  172. dialogForm:{
  173. pageNum: 1,
  174. pageSize:20,
  175. name: null,
  176. floorId: null,
  177. whiteUserId:null,
  178. deptId:JSON.parse(localStorage.getItem('user')).deptId,
  179. },
  180. dialogTable:[],
  181. buildsDataList:[],
  182. floorList:[],
  183. labWhiteJoinSubList:[],
  184. arr:[],
  185. };
  186. },
  187. created() {
  188. if(this.pageData.id){
  189. console.log('编辑')
  190. this.isEdit=true;
  191. this.whitelistEdit();
  192. this.whitelistSubListEdit();
  193. this.dialogForm.whiteUserId=this.pageData.userId;
  194. this.getUserRoleBySub();
  195. }else{
  196. this.isEdit=false;
  197. this.getUserRoleBySub();
  198. }
  199. this.buildsList();
  200. },
  201. methods: {
  202. getRowKeys(row) {
  203. return row.subjectId; //指定row-key的一个标识
  204. },
  205. //关闭实验室弹窗
  206. closeDialog(type){
  207. if(type == 1){
  208. this.dialogVisible=false;
  209. }else if(type == 2){
  210. this.subjectList = JSON.parse(JSON.stringify(this.labWhiteJoinSubList));
  211. this.dialogVisible=false;
  212. }
  213. },
  214. //监听关联记录弹窗关闭
  215. handleClose(){
  216. console.log('弹窗关闭');
  217. /*if(this.arr){
  218. console.log('实验室信息回显')
  219. this.$nextTick(() => {
  220. this.arr.forEach(row => {
  221. this.$refs.multipleTable.toggleRowSelection(row,true);
  222. });
  223. })
  224. }*/
  225. },
  226. //取消选中
  227. toggleSelection(rows) {
  228. let _this=this;
  229. if (rows) {
  230. // this.$refs.multipleTable.clearSelection();
  231. rows.forEach(row => {
  232. this.$refs.multipleTable.toggleRowSelection(row,true);
  233. //_this.arr.push(row)
  234. //_this.subjectList.push(row)
  235. });
  236. } else {
  237. this.$refs.multipleTable.clearSelection();
  238. }
  239. },
  240. //选中实验室
  241. handleSelectionChange(val){
  242. console.log(val)
  243. console.log(this.labWhiteJoinSubList)
  244. let _this=this;
  245. this.labWhiteJoinSubList=[];
  246. this.labWhiteJoinSubList=val;
  247. // _this.subjectList=this.labWhiteJoinSubList
  248. _this.arr=this.labWhiteJoinSubList
  249. },
  250. //查询楼栋
  251. buildsList(){
  252. buildsList().then( response => {
  253. this.buildsDataList = response.data;
  254. });
  255. },
  256. //选择楼栋
  257. buildChange(e){
  258. console.log("选择楼栋",e)
  259. //根据学院获取楼栋
  260. listFloorByBuildId(this.dialogForm.buildId).then(response => {
  261. this.$set(this,'floorList', response.data)
  262. this.$set(this.form,'floorId', "")
  263. });
  264. },
  265. //查询
  266. onSearch() {
  267. this.dialogForm.pageNo = 1;
  268. this.getUserRoleBySub();
  269. },
  270. //重置
  271. resetForm() {
  272. this.dialogForm.name = '';
  273. this.dialogForm.floorId = '';
  274. this.dialogForm.buildId = '';
  275. this.floorList=[];
  276. this.onSearch();
  277. },
  278. //新增准入实验室
  279. newAdmittance(){
  280. let _this=this;
  281. this.dialogVisible=true;
  282. if(_this.subjectList[0]){
  283. setTimeout(function(){
  284. _this.$refs.multipleTable.clearSelection();
  285. console.log("============>1")
  286. _this.subjectList.forEach(row => {
  287. console.log("============>2")
  288. _this.$refs.multipleTable.toggleRowSelection(row,true);
  289. });
  290. _this.getUserRoleBySub();
  291. },100);
  292. }else{
  293. if(_this.$refs.multipleTable){
  294. _this.$refs.multipleTable.clearSelection();
  295. }
  296. }
  297. // if(this.arr){
  298. // console.log('实验室信息回显')
  299. // console.log(this.arr)
  300. // if(_this.arr.length==0){
  301. // if(_this.$refs.multipleTable){
  302. // _this.$refs.multipleTable.clearSelection();
  303. // }
  304. // }else{
  305. // _this.$nextTick(() => {
  306. // setTimeout(function(){
  307. // console.log("============>1")
  308. // _this.subjectList.forEach(row => {
  309. // console.log("============>2")
  310. // _this.$refs.multipleTable.toggleRowSelection(row,true);
  311. // });
  312. // },300);
  313. // })
  314. // }
  315. // }
  316. },
  317. //确认按钮
  318. confirmDialog(){
  319. let _this=this;
  320. /*if(_this.labWhiteJoinSubList){
  321. _this.subjectList= _this.labWhiteJoinSubList
  322. _this.arr= _this.labWhiteJoinSubList
  323. _this.dialogVisible=false;
  324. }*/
  325. },
  326. //编辑查询人员信息
  327. whitelistEdit(){
  328. whitelistEdit(this.pageData.id).then(response => {
  329. let data=response.data;
  330. console.log(data)
  331. if(data.userId){
  332. this.$set(this.form,'userIds',data.userName)
  333. this.userSelectList(data.userName);
  334. //this.userList=data
  335. let obj = {
  336. deptId:data.deptId,
  337. deptName:data.deptName,
  338. userId:data.userId,
  339. userName:data.userName,
  340. userNumber:data.userName,
  341. userTelephone:data.phonenumber,
  342. userType:data.userType,
  343. }
  344. this.userList.push(obj);
  345. }
  346. });
  347. },
  348. //编辑-查询实验室信息
  349. whitelistSubListEdit(){
  350. whitelistSubListEdit(this.pageData.userId).then(response => {
  351. if(response.code==200){
  352. let data=response.rows;
  353. this.subjectList=data
  354. }
  355. });
  356. },
  357. /** 查询实验室列表 */
  358. getUserRoleBySub() {
  359. this.loading = true;
  360. let _this=this;
  361. getAllSubjectByParame(this.dialogForm).then(response => {
  362. if(response.code==200){
  363. this.dialogTable = response.rows;
  364. this.total = response.total;
  365. this.loading = false;
  366. console.log(_this.subjectList)
  367. console.log(_this.arr)
  368. if(_this.arr.length==0){
  369. _this.dialogTable.forEach(function (item,index){
  370. _this.subjectList.forEach(function (item2,index2){
  371. if(item.subjectId==item2.subjectId){
  372. _this.arr.push(item)
  373. console.log(_this.arr)
  374. if(_this.$refs.multipleTable){
  375. _this.$nextTick(() => {
  376. _this.$refs.multipleTable.toggleRowSelection(item,true);
  377. })
  378. }
  379. }
  380. })
  381. })
  382. }else{
  383. _this.dialogTable.forEach(function (item,index){
  384. _this.arr.forEach(function (item2,index2){
  385. if(item.subjectId==item2.subjectId){
  386. if(_this.$refs.multipleTable){
  387. _this.$nextTick(() => {
  388. _this.$refs.multipleTable.toggleRowSelection(item,true);
  389. })
  390. }
  391. }
  392. })
  393. })
  394. }
  395. }
  396. });
  397. },
  398. // 上传按钮
  399. upButton(){
  400. let self = this;
  401. if(!this.userList[0]){
  402. this.msgError("请先添加人员")
  403. return
  404. }
  405. this.$confirm('是否确认提交?', "", {
  406. confirmButtonText: "确定",
  407. cancelButtonText: "取消",
  408. type: "warning"
  409. }).then(function() {
  410. console.log(444444)
  411. console.log(self.pageData.id)
  412. if(self.pageData.id){
  413. console.log('编辑提交')
  414. self.whitelistEditList();
  415. }else{
  416. console.log('新增提交')
  417. self.whitelistAddList();
  418. }
  419. }).then(() => {}).catch(() => {});
  420. },
  421. //新增提交
  422. whitelistAddList(){
  423. let labWhiteJoinSubList=[];
  424. this.subjectList.forEach(function (item,index){
  425. labWhiteJoinSubList.push({'subjectId':item.subjectId})
  426. })
  427. let obj = {
  428. labWhitelist:this.userList,
  429. labWhiteJoinSubList:labWhiteJoinSubList
  430. }
  431. whitelistAddList(obj).then(response => {
  432. if(response.code==200){
  433. this.msgSuccess("操作成功")
  434. this.backPage();
  435. }else if(response.code==205){
  436. this.$confirm(response.msg, "警告", {
  437. confirmButtonText: "确定",
  438. cancelButtonText: "取消",
  439. type: "warning"
  440. }).then(() => {
  441. // 确定
  442. this.$router.push({ path: '/comprehensive/laboratoryManagement/accessAuthorization-KDNH' });
  443. }).catch(function() {
  444. // 取消
  445. this.backPage();
  446. });
  447. }
  448. });
  449. },
  450. //编辑提交
  451. whitelistEditList(){
  452. console.log(this.subjectList)
  453. let labWhiteJoinSubList=[];
  454. //循环取出实验室id
  455. this.subjectList.forEach(function (item,index){
  456. labWhiteJoinSubList.push({'subjectId':item.subjectId})
  457. })
  458. let obj = {
  459. userId:this.userList[0].userId,
  460. labWhiteJoinSubList:labWhiteJoinSubList
  461. }
  462. whitelistEditList(obj).then(response => {
  463. this.msgSuccess("操作成功")
  464. this.backPage();
  465. });
  466. },
  467. handleClick(index, row, doType){
  468. console.log(this.subjectList)
  469. let _this=this;
  470. if(doType == 'delete'){//定制预案
  471. this.$confirm('是否确认删除?', "警告", {
  472. confirmButtonText: "确定",
  473. cancelButtonText: "取消",
  474. type: "warning"
  475. }).then(() => {
  476. if(_this.$refs.multipleTable){
  477. _this.$refs.multipleTable.toggleRowSelection(row,false);
  478. }
  479. //this.subjectList.splice(this.subjectList.indexOf(row),1);
  480. let index = this.subjectList.indexOf(row);
  481. if(index!=-1){
  482. this.subjectList.splice(index,1);
  483. return
  484. }
  485. _this.arr=[];
  486. _this.subjectList.forEach(function (item,index){
  487. _this.dialogTable.forEach(function (item2,index2){
  488. if(item.subjectId==item2.subjectId){
  489. _this.arr.push(item2)
  490. }else{
  491. }
  492. })
  493. })
  494. this.msgSuccess("删除成功");
  495. }).catch(() => {
  496. this.msgInfo("取消成功");
  497. });
  498. }
  499. },
  500. //删除
  501. delItem(index){
  502. this.userList.splice(index,1);
  503. },
  504. //新增
  505. selectChange(id){
  506. let self = this;
  507. for(let o=0;o<self.optionsUser.length;o++){
  508. if( id == self.optionsUser[o].userId){
  509. let num = 0;
  510. for(let s=0;s<self.userList.length;s++){
  511. if(self.userList[s].userId == self.optionsUser[o].userId){
  512. num++
  513. }
  514. }
  515. if(num == 0){
  516. let obj = {
  517. deptId:self.optionsUser[o].deptId,
  518. deptName:self.optionsUser[o].deptName,
  519. userId:self.optionsUser[o].userId,
  520. userName:self.optionsUser[o].nickName,
  521. userNumber:self.optionsUser[o].userName,
  522. userTelephone:self.optionsUser[o].phonenumber,
  523. userType:self.optionsUser[o].userType,
  524. }
  525. self.userList.push(obj);
  526. }else{
  527. self.msgError(self.optionsUser[o].nickName+'已在列表中')
  528. }
  529. }
  530. }
  531. },
  532. //返回
  533. backPage(){
  534. this.$parent.pageClick(1);
  535. },
  536. //数据懒加载
  537. userSelectList(query) {
  538. if (query !== '' && query.length>1) {
  539. this.loading = true;
  540. this.userSelectList.nickName=query;
  541. selectUserListByName(query).then(response => {
  542. this.optionsUser = response.data;
  543. this.loading = false;
  544. });
  545. } else {
  546. this.optionsUser = [];
  547. }
  548. },
  549. }
  550. };
  551. </script>
  552. <style scoped lang="scss">
  553. .add-whitelist {
  554. display: flex !important;
  555. flex-direction: column;
  556. height: 100%;
  557. /*box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);*/
  558. padding:20px 20px 20px!important;
  559. .top-max-button-title-box{
  560. display: flex;
  561. border-bottom:1px solid #E0E0E0;
  562. p:nth-child(1){
  563. flex:1;
  564. font-size:16px;
  565. color:#0045AF;
  566. }
  567. p:nth-child(2){
  568. margin-right:20px;
  569. }
  570. }
  571. .form-max-box{
  572. height: 100%;
  573. display: flex;
  574. .left{
  575. width: 24%;
  576. .for-max-box{
  577. margin-left:40px;
  578. .for-box{
  579. display: inline-block;
  580. border-radius:6px;
  581. background: rgba(1,131,250,0.2);
  582. margin:0 10px 10px;
  583. .for-min-box{
  584. display: flex;
  585. p{
  586. flex:1;
  587. padding:0 20px;
  588. margin:0;
  589. line-height:40px;
  590. color:#0183FA;
  591. }
  592. img{
  593. width:16px;
  594. height:16px;
  595. margin:12px 12px;
  596. cursor: pointer;
  597. }
  598. }
  599. }
  600. }
  601. }
  602. .right{
  603. display: flex;
  604. width: 76%;
  605. position: relative;
  606. .right_t{
  607. position: absolute;
  608. right: 20px;
  609. }
  610. .right_b{
  611. margin-top: 80px;
  612. }
  613. }
  614. }
  615. }
  616. .btn_list{
  617. width: 100%;
  618. height: 40px;
  619. background: rgba(1,131,250,0.1);
  620. border-radius: 6px;
  621. display: flex;
  622. justify-content: flex-start;
  623. align-items: center;
  624. margin-bottom: 32px;
  625. >i{
  626. font-style: normal;
  627. display: inline-block;
  628. cursor: pointer;
  629. }
  630. >i:nth-of-type(1){
  631. font-size: 20px;
  632. color: #0045AF;
  633. margin: 0 16px 0 14px;
  634. }
  635. >i:nth-of-type(2){
  636. font-size: 16px;
  637. font-family: Source Han Sans CN;
  638. font-weight: bold;
  639. color: #999999;
  640. line-height: 16px;
  641. }
  642. >i:nth-of-type(3){
  643. font-size: 16px;
  644. font-family: Source Han Sans CN;
  645. font-weight: bold;
  646. color: #0045AF;
  647. line-height: 16px;
  648. margin: 0 28px 0 46px;
  649. }
  650. >i:nth-of-type(4){
  651. font-size: 16px;
  652. font-family: Source Han Sans CN;
  653. font-weight: bold;
  654. color: #0045AF;
  655. line-height: 16px;
  656. }
  657. >i:nth-of-type(5){
  658. font-size: 16px;
  659. font-family: Source Han Sans CN;
  660. font-weight: bold;
  661. color: #FFA312;
  662. line-height: 16px;
  663. margin: 0 40px 0 28px;
  664. }
  665. .bottom-button-box{
  666. display: flex;
  667. width:220px;
  668. margin: 0;
  669. p{
  670. font-size:14px;
  671. height:30px;
  672. width:100px;
  673. line-height:30px;
  674. text-align: center;
  675. border-radius:4px;
  676. }
  677. p:nth-child(1){
  678. border:1px solid #E0E0E0;
  679. margin-right:20px;
  680. }
  681. p:nth-child(2){
  682. border:1px solid #0045AF;
  683. }
  684. }
  685. }
  686. </style>