addPage.vue 22 KB

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