addPage.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  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(self.pageData.id)
  411. if(self.pageData.id){
  412. console.log('编辑提交')
  413. self.whitelistEditList();
  414. }else{
  415. console.log('新增提交')
  416. self.whitelistAddList();
  417. }
  418. }).then(() => {}).catch(() => {});
  419. },
  420. //新增提交
  421. whitelistAddList(){
  422. let labWhiteJoinSubList=[];
  423. this.subjectList.forEach(function (item,index){
  424. labWhiteJoinSubList.push({'subjectId':item.subjectId})
  425. })
  426. let obj = {
  427. labWhitelist:this.userList,
  428. labWhiteJoinSubList:labWhiteJoinSubList
  429. }
  430. whitelistAddList(obj).then(response => {
  431. if(response.code==200){
  432. this.msgSuccess("操作成功")
  433. this.backPage();
  434. }else if(response.code==205){
  435. this.$confirm(response.msg, "警告", {
  436. confirmButtonText: "确定",
  437. cancelButtonText: "取消",
  438. type: "warning"
  439. }).then(() => {
  440. // 确定
  441. this.$router.push({ path: '/comprehensive/laboratoryManagement/accessAuthorization-jinan' });
  442. }).catch(function() {
  443. // 取消
  444. this.backPage();
  445. });
  446. }
  447. });
  448. },
  449. //编辑提交
  450. whitelistEditList(){
  451. console.log(this.subjectList)
  452. let labWhiteJoinSubList=[];
  453. //循环取出实验室id
  454. this.subjectList.forEach(function (item,index){
  455. labWhiteJoinSubList.push({'subjectId':item.subjectId})
  456. })
  457. let obj = {
  458. userId:this.userList[0].userId,
  459. labWhiteJoinSubList:labWhiteJoinSubList
  460. }
  461. whitelistEditList(obj).then(response => {
  462. if(response.code==200){
  463. this.msgSuccess("操作成功")
  464. this.backPage();
  465. }else if(response.code==205){
  466. this.$confirm(response.msg, "警告", {
  467. confirmButtonText: "确定",
  468. cancelButtonText: "取消",
  469. type: "warning"
  470. }).then(() => {
  471. // 确定
  472. this.$router.push({ path: '/comprehensive/laboratoryManagement/accessAuthorization-jinan' });
  473. }).catch(function() {
  474. // 取消
  475. this.backPage();
  476. });
  477. }
  478. });
  479. },
  480. handleClick(index, row, doType){
  481. console.log(this.subjectList)
  482. let _this=this;
  483. if(doType == 'delete'){//定制预案
  484. this.$confirm('是否确认删除?', "警告", {
  485. confirmButtonText: "确定",
  486. cancelButtonText: "取消",
  487. type: "warning"
  488. }).then(() => {
  489. if(_this.$refs.multipleTable){
  490. _this.$refs.multipleTable.toggleRowSelection(row,false);
  491. }
  492. //this.subjectList.splice(this.subjectList.indexOf(row),1);
  493. let index = this.subjectList.indexOf(row);
  494. if(index!=-1){
  495. this.subjectList.splice(index,1);
  496. return
  497. }
  498. _this.arr=[];
  499. _this.subjectList.forEach(function (item,index){
  500. _this.dialogTable.forEach(function (item2,index2){
  501. if(item.subjectId==item2.subjectId){
  502. _this.arr.push(item2)
  503. }else{
  504. }
  505. })
  506. })
  507. this.msgSuccess("删除成功");
  508. }).catch(() => {
  509. this.msgInfo("取消成功");
  510. });
  511. }
  512. },
  513. //删除
  514. delItem(index){
  515. this.userList.splice(index,1);
  516. },
  517. //新增
  518. selectChange(id){
  519. let self = this;
  520. for(let o=0;o<self.optionsUser.length;o++){
  521. if( id == self.optionsUser[o].userId){
  522. let num = 0;
  523. for(let s=0;s<self.userList.length;s++){
  524. if(self.userList[s].userId == self.optionsUser[o].userId){
  525. num++
  526. }
  527. }
  528. if(num == 0){
  529. let obj = {
  530. deptId:self.optionsUser[o].deptId,
  531. deptName:self.optionsUser[o].deptName,
  532. userId:self.optionsUser[o].userId,
  533. userName:self.optionsUser[o].nickName,
  534. userNumber:self.optionsUser[o].userName,
  535. userTelephone:self.optionsUser[o].phonenumber,
  536. userType:self.optionsUser[o].userType,
  537. }
  538. self.userList.push(obj);
  539. }else{
  540. self.msgError(self.optionsUser[o].nickName+'已在列表中')
  541. }
  542. }
  543. }
  544. },
  545. //返回
  546. backPage(){
  547. this.$parent.pageClick(1);
  548. },
  549. //数据懒加载
  550. userSelectList(query) {
  551. if (query !== '' && query.length>1) {
  552. this.loading = true;
  553. this.userSelectList.nickName=query;
  554. selectUserListByName(query).then(response => {
  555. this.optionsUser = response.data;
  556. this.loading = false;
  557. });
  558. } else {
  559. this.optionsUser = [];
  560. }
  561. },
  562. }
  563. };
  564. </script>
  565. <style scoped lang="scss">
  566. .add-whitelist {
  567. display: flex !important;
  568. flex-direction: column;
  569. height: 100%;
  570. /*box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);*/
  571. padding:20px 20px 20px!important;
  572. .top-max-button-title-box{
  573. display: flex;
  574. border-bottom:1px solid #E0E0E0;
  575. p:nth-child(1){
  576. flex:1;
  577. font-size:16px;
  578. color:#0045AF;
  579. }
  580. p:nth-child(2){
  581. margin-right:20px;
  582. }
  583. }
  584. .form-max-box{
  585. height: 100%;
  586. display: flex;
  587. .left{
  588. width: 24%;
  589. .for-max-box{
  590. margin-left:40px;
  591. .for-box{
  592. display: inline-block;
  593. border-radius:6px;
  594. background: rgba(1,131,250,0.2);
  595. margin:0 10px 10px;
  596. .for-min-box{
  597. display: flex;
  598. p{
  599. flex:1;
  600. padding:0 20px;
  601. margin:0;
  602. line-height:40px;
  603. color:#0183FA;
  604. }
  605. img{
  606. width:16px;
  607. height:16px;
  608. margin:12px 12px;
  609. cursor: pointer;
  610. }
  611. }
  612. }
  613. }
  614. }
  615. .right{
  616. display: flex;
  617. width: 76%;
  618. position: relative;
  619. .right_t{
  620. position: absolute;
  621. right: 20px;
  622. }
  623. .right_b{
  624. margin-top: 80px;
  625. }
  626. }
  627. }
  628. }
  629. .btn_list{
  630. width: 100%;
  631. height: 40px;
  632. background: rgba(1,131,250,0.1);
  633. border-radius: 6px;
  634. display: flex;
  635. justify-content: flex-start;
  636. align-items: center;
  637. margin-bottom: 32px;
  638. >i{
  639. font-style: normal;
  640. display: inline-block;
  641. cursor: pointer;
  642. }
  643. >i:nth-of-type(1){
  644. font-size: 20px;
  645. color: #0045AF;
  646. margin: 0 16px 0 14px;
  647. }
  648. >i:nth-of-type(2){
  649. font-size: 16px;
  650. font-family: Source Han Sans CN;
  651. font-weight: bold;
  652. color: #999999;
  653. line-height: 16px;
  654. }
  655. >i:nth-of-type(3){
  656. font-size: 16px;
  657. font-family: Source Han Sans CN;
  658. font-weight: bold;
  659. color: #0045AF;
  660. line-height: 16px;
  661. margin: 0 28px 0 46px;
  662. }
  663. >i:nth-of-type(4){
  664. font-size: 16px;
  665. font-family: Source Han Sans CN;
  666. font-weight: bold;
  667. color: #0045AF;
  668. line-height: 16px;
  669. }
  670. >i:nth-of-type(5){
  671. font-size: 16px;
  672. font-family: Source Han Sans CN;
  673. font-weight: bold;
  674. color: #FFA312;
  675. line-height: 16px;
  676. margin: 0 40px 0 28px;
  677. }
  678. .bottom-button-box{
  679. display: flex;
  680. width:220px;
  681. margin: 0;
  682. p{
  683. font-size:14px;
  684. height:30px;
  685. width:100px;
  686. line-height:30px;
  687. text-align: center;
  688. border-radius:4px;
  689. }
  690. p:nth-child(1){
  691. border:1px solid #E0E0E0;
  692. margin-right:20px;
  693. }
  694. p:nth-child(2){
  695. border:1px solid #0045AF;
  696. }
  697. }
  698. }
  699. </style>