configDialog.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. <template>
  2. <el-dialog class="configDialog"
  3. :title="configDialogData.staffType==1?'检查人员配置':'整改人员配置'" :visible.sync="configDialogType" v-if="configDialogType"
  4. @close="addDialogAllOff" width="1373px" append-to-body>
  5. <div class="configDialog-box" v-if="configPageType == 1">
  6. <div class="configDialog-content-box">
  7. <div class="configDialog-content-min-box">
  8. <p class="configDialog-content-min-title">实验室检查人员配置:</p>
  9. <div class="configDialog-content-min-checkbox">
  10. <el-checkbox-group v-model="checkDataList" @change="checkboxChange" :disabled="!editType">
  11. <el-checkbox style="width:170px;margin-right:70px;"
  12. v-for="item in checkList" :value="item.key" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
  13. </el-checkbox-group>
  14. </div>
  15. <p v-if="checkType" class="configDialog-content-min-button" @click="configUserButton(2)">配置</p>
  16. <div class="configDialog-content-min-text-box">
  17. <p></p>
  18. <p></p>
  19. <p>实验室白名单内的老师</p>
  20. <p v-if="checkType">拥有实验室安全准入资格的学生</p>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="dialog-footer-box" v-hasPermi="['check:set:edit']">
  25. <p class="dialog-footer-button-null"></p>
  26. <p class="dialog-footer-button-info" @click="addDialogOff">取消</p>
  27. <p class="dialog-footer-button-primary" @click="upDataButton">确定</p>
  28. <p class="dialog-footer-button-null"></p>
  29. </div>
  30. </div>
  31. <div class="configDialog-user-box" v-if="configPageType == 2">
  32. <div class="configDialog-user-content-box">
  33. <div class="left-max-box">
  34. <div class="dept-table-title-box">
  35. <p>待选人员</p>
  36. <p>{{userNumLeft}}/{{userTotalLeft}}</p>
  37. </div>
  38. <div class="dept-table-max-box">
  39. <el-form :model="userQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  40. <el-form-item label="" prop="deptId">
  41. <el-select v-model="userQueryParamsLeft.deptId" clearable placeholder="选择部门" style="width: 110px">
  42. <el-option
  43. v-for="item in deptSelectList"
  44. :key="item.deptId"
  45. :label="item.deptName"
  46. :value="item.deptId">
  47. </el-option>
  48. </el-select>
  49. </el-form-item>
  50. <el-form-item>
  51. <el-date-picker
  52. :clearable="false"
  53. v-model="leftDateRange"
  54. size="small"
  55. style="width: 180px"
  56. value-format="yyyy-MM-dd"
  57. type="daterange"
  58. range-separator="-"
  59. start-placeholder="开始日期"
  60. end-placeholder="结束日期"
  61. ></el-date-picker>
  62. </el-form-item>
  63. <el-form-item label="" prop="searchValue" class="form-index" style="margin-right:0;">
  64. <el-input
  65. maxLength="30"
  66. v-model="userQueryParamsLeft.searchValue"
  67. placeholder="姓名/手机号/实验室"
  68. style="width: 178px">
  69. <p class="el-icon-search" slot="append" @click="userHandleQueryLeft"></p>
  70. </el-input>
  71. </el-form-item>
  72. <el-form-item style="margin-right:0;margin-left: 10px;">
  73. <p class="inquire-button-one" @click="userResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
  74. </el-form-item>
  75. </el-form>
  76. <el-table ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
  77. <el-table-column v-if="editType" type="selection" width="50" :reserve-selection="true" align="center"/>
  78. <el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
  79. <el-table-column label="学号" align="center" prop="userNumber" show-overflow-tooltip width="80"/>
  80. <el-table-column label="手机号" align="center" prop="phonenumber" show-overflow-tooltip width="100"/>
  81. <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip width="80"/>
  82. <el-table-column label="准入有效期" align="center" prop="deptName" show-overflow-tooltip width="200">
  83. <template slot-scope="scope">{{scope.row.validBeginTime}} 至 {{scope.row.validEndTime}}</template>
  84. </el-table-column>
  85. </el-table>
  86. <pagination :page-sizes="[20, 30, 40, 50]"
  87. v-show="userTotalLeft>0"
  88. :total="userTotalLeft"
  89. :page.sync="userQueryParamsLeft.pageNum"
  90. :limit.sync="userQueryParamsLeft.pageSize"
  91. @pagination="userGetListLeft"/>
  92. </div>
  93. </div>
  94. <div class="center-box">
  95. <p v-if="editType" class="el-icon-arrow-left" @click="userArrowButton(1)"></p>
  96. <p v-if="editType" class="el-icon-arrow-right" @click="userArrowButton(2)"></p>
  97. </div>
  98. <div class="right-max-box">
  99. <div class="dept-table-title-box">
  100. <p>已选成员</p>
  101. <p>{{userNumRight}}/{{userTotalRight}}</p>
  102. </div>
  103. <div class="dept-table-max-box">
  104. <el-form :model="userQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  105. <el-form-item label="" prop="deptId">
  106. <el-select v-model="userQueryParamsRight.deptId" clearable placeholder="选择部门" style="width: 110px">
  107. <el-option
  108. v-for="item in deptSelectList"
  109. :key="item.deptId"
  110. :label="item.deptName"
  111. :value="item.deptId">
  112. </el-option>
  113. </el-select>
  114. </el-form-item>
  115. <el-form-item>
  116. <el-date-picker
  117. :clearable="false"
  118. v-model="rightDateRange"
  119. size="small"
  120. style="width: 180px"
  121. value-format="yyyy-MM-dd"
  122. type="daterange"
  123. range-separator="-"
  124. start-placeholder="开始日期"
  125. end-placeholder="结束日期"
  126. ></el-date-picker>
  127. </el-form-item>
  128. <el-form-item label="" prop="searchValue" class="form-index" style="margin-right:0;">
  129. <el-input
  130. maxLength="30"
  131. v-model="userQueryParamsRight.searchValue"
  132. placeholder="姓名/手机号/实验室"
  133. style="width: 178px">
  134. <p class="el-icon-search" slot="append" @click="userHandleQueryRight"></p>
  135. </el-input>
  136. </el-form-item>
  137. <el-form-item style="margin-right:0;margin-left: 10px;">
  138. <p class="inquire-button-one" @click="userResetQueryRight" style="width:60px;margin-right:0;">重置</p>
  139. </el-form-item>
  140. </el-form>
  141. <el-table ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
  142. <el-table-column v-if="editType" type="selection" width="50" :reserve-selection="true" align="center"/>
  143. <el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
  144. <el-table-column label="学号" align="center" prop="userNumber" show-overflow-tooltip width="80"/>
  145. <el-table-column label="手机号" align="center" prop="phonenumber" show-overflow-tooltip width="100"/>
  146. <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip width="80"/>
  147. <el-table-column label="准入有效期" align="center" prop="deptName" show-overflow-tooltip width="200">
  148. <template slot-scope="scope">{{scope.row.validBeginTime}} 至 {{scope.row.validEndTime}}</template>
  149. </el-table-column>
  150. </el-table>
  151. <pagination :page-sizes="[20, 30, 40, 50]"
  152. v-show="userTotalRight>0"
  153. :total="userTotalRight"
  154. :page.sync="userQueryParamsRight.pageNum"
  155. :limit.sync="userQueryParamsRight.pageSize"
  156. @pagination="userGetListRight"/>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="dialog-footer-box" v-hasPermi="['check:set:edit']">
  161. <p class="dialog-footer-button-null"></p>
  162. <p class="dialog-footer-button-info" @click="addDialogOff">返回</p>
  163. <p class="dialog-footer-button-primary" @click="addUserButton">确定</p>
  164. <p class="dialog-footer-button-null"></p>
  165. </div>
  166. </div>
  167. </el-dialog>
  168. </template>
  169. <script>
  170. import { listDepartments } from "@/api/system/dept";
  171. import { checkSet,checkSetAdd,checkStaffUserList } from '@/api/safetyCheck/index'
  172. export default {
  173. name: 'configDialog',
  174. props:{
  175. configDialogData:{},
  176. },
  177. data(){
  178. return{
  179. editType:this.hasPermiDom(['check:set:edit']),
  180. configDialogType:true,
  181. configPageType:1,
  182. checkDataList:[],
  183. checkList:[
  184. {
  185. key:"2",
  186. label:"实验室负责人",
  187. },
  188. {
  189. key:"1",
  190. label:"实验室安全责任人",
  191. },
  192. {
  193. key:"3",
  194. label:"老师",
  195. },
  196. {
  197. key:"4",
  198. label:"学生",
  199. },
  200. ],
  201. checkType:false,
  202. /*===================================人员选择相关===================================*/
  203. deptSelectList:[],
  204. userQueryParamsLeft:{
  205. pageNum:1,
  206. pageSize:20,
  207. searchValue:"",
  208. deptId:"",
  209. filtType:1
  210. },
  211. userTableListLeft:[],
  212. userTotalLeft:0,
  213. userNumLeft:0,
  214. userIdsLeft:[],
  215. userQueryParamsRight:{
  216. pageNum:1,
  217. pageSize:20,
  218. deptId:"",
  219. searchValue:"",
  220. filtType:2
  221. },
  222. userTableListRight:[],
  223. userTotalRight:0,
  224. userNumRight:0,
  225. userIdsRight:[],
  226. leftDateRange:[],
  227. rightDateRange:[],
  228. //选中巡查人员列表
  229. dialogTableList:[],
  230. //选中页面人员列表数据
  231. dialogTableDataList:[],
  232. }
  233. },
  234. created(){
  235. },
  236. mounted(){
  237. this.checkSet();
  238. this.listDepartments();
  239. },
  240. methods:{
  241. //提交
  242. upDataButton(){
  243. let self = this;
  244. let obj = {
  245. staffType:this.configDialogData.staffType,
  246. setSubjectLead:false,
  247. setSubjectSafety:false,
  248. setTeacher:false,
  249. setStudent:false,
  250. };
  251. for(let i=0;i<self.checkDataList.length;i++){
  252. if(self.checkDataList[i] == '2'){
  253. obj.setSubjectLead = true;
  254. }else if(self.checkDataList[i] == '1'){
  255. obj.setSubjectSafety = true;
  256. }else if(self.checkDataList[i] == '3'){
  257. obj.setTeacher = true;
  258. }else if(self.checkDataList[i] == '4'){
  259. obj.setStudent = true;
  260. }
  261. }
  262. obj.sysUserVoList = obj.setStudent?this.dialogTableList:[]
  263. if(obj.setStudent){
  264. if(!obj.sysUserVoList[0]){
  265. this.msgError('并未勾选任何学生')
  266. return
  267. }
  268. }
  269. checkSetAdd(obj).then(response => {
  270. this.msgSuccess(response.msg);
  271. this.$parent.configButton(3)
  272. })
  273. },
  274. //获取配置
  275. checkSet(){
  276. checkSet({staffType:this.configDialogData.staffType}).then(response => {
  277. let list = [];
  278. if(response.data.setSubjectLead){
  279. //实验室负责人
  280. list.push('2');
  281. }
  282. if(response.data.setSubjectSafety){
  283. //实验室安全责任人
  284. list.push('1');
  285. }
  286. if(response.data.setTeacher){
  287. //全部老师
  288. list.push('3');
  289. }
  290. if(response.data.setStudent){
  291. //全部学生
  292. list.push('4');
  293. this.$set(this,'checkType',true);
  294. }
  295. this.$set(this,'checkDataList',list);
  296. this.$set(this,'dialogTableList',response.data.userStuList);
  297. });
  298. },
  299. //人员选择
  300. configUserButton(type){
  301. let self = this;
  302. if(this.configPageType != type){
  303. if(type == 2){
  304. this.$set(self,'dialogTableDataList',JSON.parse(JSON.stringify(this.dialogTableList)));
  305. this.userResetQueryLeft();
  306. this.userResetQueryRight();
  307. this.$set(this,'configPageType',type);
  308. }else{
  309. checkStaffUserList.then(response => {
  310. this.dialogTableList = response.data;
  311. });
  312. this.$set(this,'configPageType',type);
  313. }
  314. }
  315. },
  316. //选择器
  317. checkboxChange(val){
  318. if(val[0]){
  319. let num = 0;
  320. for(let i=0;i<val.length;i++){
  321. if(val[i] == '4'){
  322. num++
  323. }
  324. }
  325. this.$set(this,'checkType',num != 0?true:false);
  326. }else{
  327. this.$set(this,'checkType',false);
  328. }
  329. },
  330. //窗口关闭
  331. addDialogAllOff(){
  332. this.$parent.configButton(2)
  333. },
  334. addDialogOff(){
  335. if(this.configPageType == 1){
  336. this.$parent.configButton(2)
  337. }else{
  338. this.$set(this,'configPageType',1);
  339. }
  340. },
  341. addUserButton(){
  342. this.$set(this,'dialogTableList',this.dialogTableDataList);
  343. this.$set(this,'configPageType',1);
  344. },
  345. /*===================================人员选择相关===================================*/
  346. //查询
  347. userHandleQueryLeft(){
  348. this.$set(this.userQueryParamsLeft,'pageNum',1);
  349. this.$set(this,'userNumLeft',0);
  350. this.$set(this,'userIdsLeft',[]);
  351. if (this.$refs.leftUserTable){
  352. this.$refs.leftUserTable.clearSelection();
  353. }
  354. this.userGetListLeft();
  355. },
  356. //重置
  357. userResetQueryLeft(){
  358. this.$set(this,'leftDateRange',[])
  359. this.$set(this,'userQueryParamsLeft',{
  360. pageNum:1,
  361. pageSize:20,
  362. searchValue:"",
  363. deptId:"",
  364. filtType:1
  365. });
  366. this.userHandleQueryLeft();
  367. },
  368. //查询接口
  369. userGetListLeft(){
  370. let self = this;
  371. let leftObj = JSON.parse(JSON.stringify(this.userQueryParamsLeft));
  372. leftObj.filtCheckUserIdList = [];
  373. for(let i=0;i<self.dialogTableDataList.length;i++){
  374. let obj = {
  375. userId:self.dialogTableDataList[i].userId,
  376. subjectId:self.dialogTableDataList[i].subId
  377. }
  378. leftObj.filtCheckUserIdList.push(obj)
  379. }
  380. if(this.leftDateRange[0]){
  381. leftObj.beginTime = this.leftDateRange[0]
  382. }else{
  383. leftObj.beginTime = ""
  384. }
  385. if(this.leftDateRange[1]){
  386. leftObj.endTime = this.leftDateRange[1]
  387. }else{
  388. leftObj.endTime = ""
  389. }
  390. checkStaffUserList(leftObj).then(response => {
  391. this.userTotalLeft = response.data.total;
  392. this.userTableListLeft = response.data.records;
  393. });
  394. },
  395. //查询
  396. userHandleQueryRight(){
  397. this.$set(this.userQueryParamsRight,'pageNum',1);
  398. this.$set(this,'userNumRight',0);
  399. this.$set(this,'userIdsRight',[]);
  400. if(this.$refs.rightUserTable){
  401. this.$refs.rightUserTable.clearSelection();
  402. }
  403. this.userGetListRight();
  404. },
  405. //重置
  406. userResetQueryRight(){
  407. this.$set(this,'rightDateRange',[])
  408. this.$set(this,'userQueryParamsRight',{
  409. pageNum:1,
  410. pageSize:20,
  411. deptId:"",
  412. searchValue:"",
  413. filtType:2
  414. });
  415. this.userHandleQueryRight();
  416. },
  417. //查询接口
  418. userGetListRight(){
  419. let self = this;
  420. let rightObj = JSON.parse(JSON.stringify(this.userQueryParamsRight));
  421. rightObj.notFiltCheckUserIdList = [];
  422. for(let i=0;i<self.dialogTableDataList.length;i++){
  423. let obj = {
  424. userId:self.dialogTableDataList[i].userId,
  425. subjectId:self.dialogTableDataList[i].subId
  426. }
  427. rightObj.notFiltCheckUserIdList.push(obj)
  428. }
  429. if(this.rightDateRange[0]){
  430. rightObj.beginTime = this.rightDateRange[0]
  431. }else{
  432. rightObj.beginTime = ""
  433. }
  434. if(this.rightDateRange[1]){
  435. rightObj.endTime = this.rightDateRange[1]
  436. }else{
  437. rightObj.endTime = ""
  438. }
  439. checkStaffUserList(rightObj).then(response => {
  440. this.userTotalRight = response.data.total;
  441. this.userTableListRight = response.data.records;
  442. });
  443. },
  444. //穿梭按钮
  445. userArrowButton(type){
  446. let self = this;
  447. if(type == 1){
  448. //右至左
  449. if(this.$refs.rightUserTable.selection[0]){
  450. let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
  451. let userIdsRight = JSON.parse(JSON.stringify(this.$refs.rightUserTable.selection))
  452. for(let i=0;i<userIdsRight.length;i++){
  453. for(let s=0;s<list.length;s++){
  454. if(userIdsRight[i].userId == list[s].userId && userIdsRight[i].subjectId == list[s].subId){
  455. list.splice(s,1);
  456. s--
  457. }
  458. }
  459. }
  460. this.$set(this,'dialogTableDataList',list);
  461. this.$refs.rightUserTable.clearSelection();
  462. this.userHandleQueryLeft();
  463. this.userHandleQueryRight();
  464. }else{
  465. this.msgError('请先勾选右侧列表')
  466. }
  467. }else if(type == 2){
  468. //左至右
  469. if(this.$refs.leftUserTable.selection[0]){
  470. let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
  471. let userIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftUserTable.selection))
  472. console.log('userIdsLeft',userIdsLeft)
  473. for(let i=0;i<userIdsLeft.length;i++){
  474. let obj = {
  475. subId:userIdsLeft[i].subjectId,
  476. subName:userIdsLeft[i].subjectName,
  477. subRom:userIdsLeft[i].roomNum,
  478. deptId:userIdsLeft[i].deptId,
  479. deptName:userIdsLeft[i].deptName,
  480. userId:userIdsLeft[i].userId,
  481. nickName:userIdsLeft[i].userName,
  482. userNumber:userIdsLeft[i].userNumber,
  483. phonenumber:userIdsLeft[i].phonenumber,
  484. validBeginTime:userIdsLeft[i].validBeginTime,
  485. validEndTime:userIdsLeft[i].validEndTime,
  486. }
  487. list.push(obj);
  488. }
  489. this.$set(this,'dialogTableDataList',list);
  490. this.$refs.leftUserTable.clearSelection();
  491. this.userHandleQueryLeft();
  492. this.userHandleQueryRight();
  493. }else{
  494. this.msgError('请先勾选左侧列表')
  495. }
  496. }
  497. },
  498. /*===记录勾选数据===
  499. 需要再el-table 添加 :row-key="getRowKeys"
  500. 需要在selection 添加 :reserve-selection="true"
  501. */
  502. getRowKeys(row) {
  503. return row.id
  504. },
  505. userChangeLeft(selection){
  506. this.userNumLeft = selection.length;
  507. this.userIdsLeft = selection.map(item => item.userId);
  508. },
  509. userChangeRight(selection){
  510. this.userNumRight = selection.length;
  511. this.userIdsRight = selection.map(item => item.userId);
  512. },
  513. //获取学院列表
  514. listDepartments(){
  515. listDepartments().then(response => {
  516. this.deptSelectList = response.data;
  517. });
  518. },
  519. }
  520. }
  521. </script>
  522. <style scoped lang="scss">
  523. .configDialog{
  524. overflow: hidden;
  525. .configDialog-box{
  526. height:600px;
  527. display: flex;
  528. flex-direction: column;
  529. overflow: hidden;
  530. .configDialog-content-box{
  531. flex:1;
  532. padding:0 70px;
  533. .configDialog-content-min-box{
  534. height:160px;
  535. border-radius:4px;
  536. border: 1px solid #F5F5F5;
  537. padding:0 30px;
  538. position: relative;
  539. .configDialog-content-min-title{
  540. margin-top:19px;
  541. margin-bottom:32px;
  542. line-height:20px;
  543. font-size:14px;
  544. color:#333;
  545. }
  546. .configDialog-content-min-checkbox{
  547. }
  548. .configDialog-content-min-button{
  549. position: absolute;
  550. top:65px;
  551. right:205px;
  552. background-color: #0045AF;
  553. width:70px;
  554. height:30px;
  555. line-height:30px;
  556. text-align: center;
  557. color:#fff;
  558. border-radius:4px;
  559. cursor: pointer;
  560. }
  561. .configDialog-content-min-text-box{
  562. display: flex;
  563. margin-top:15px;
  564. p{
  565. width:240px;
  566. color:#999999;
  567. }
  568. }
  569. }
  570. }
  571. .dialog-footer-box{
  572. display: flex;
  573. }
  574. }
  575. .configDialog-user-box{
  576. height:600px;
  577. display: flex;
  578. flex-direction: column;
  579. overflow: hidden;
  580. .configDialog-user-content-box{
  581. flex:1;
  582. display: flex;
  583. overflow: hidden;
  584. .dept-table-title-box{
  585. display: flex;
  586. padding:0 20px;
  587. background: rgba(1,131,250,0.1);
  588. p{
  589. flex:1;
  590. color:#0183FA;
  591. font-size:16px;
  592. line-height:40px;
  593. }
  594. p:nth-child(1){
  595. text-align: left;
  596. }
  597. p:nth-child(2){
  598. text-align: right;
  599. }
  600. }
  601. .dept-table-max-box{
  602. border: 1px solid #e0e0e0;
  603. flex:1;
  604. display: flex;
  605. flex-direction: column;
  606. overflow: hidden;
  607. padding:20px;
  608. .form-index{
  609. .el-input__inner{
  610. border-right:none;
  611. padding-right:0;
  612. }
  613. .el-input-group__append{
  614. background: #fff;
  615. cursor: pointer;
  616. padding:0 10px;
  617. }
  618. }
  619. input{
  620. border: 1px solid #DCDFE6;
  621. }
  622. }
  623. .left-max-box{
  624. height:550px;
  625. display: flex;
  626. flex-direction: column;
  627. overflow: hidden;
  628. width:639px;
  629. }
  630. .right-max-box{
  631. height:550px;
  632. display: flex;
  633. flex-direction: column;
  634. overflow: hidden;
  635. width:639px;
  636. }
  637. .center-box{
  638. width:60px;
  639. p{
  640. display: block;
  641. border-radius:50%;
  642. width:30px;
  643. height:30px;
  644. line-height:30px;
  645. text-align: center;
  646. background: rgba(245,245,245,1);
  647. color:rgba(62,62,62,1);
  648. cursor: pointer;
  649. font-size:16px;
  650. }
  651. p:nth-child(1){
  652. margin:270px 16px 0;
  653. }
  654. p:nth-child(2){
  655. margin:14px 16px 0;
  656. }
  657. p:hover{
  658. color:#fff;
  659. background: #0183fa;
  660. }
  661. }
  662. ::v-deep .el-range-editor--small .el-range__icon{
  663. display: none;
  664. }
  665. ::v-deep .el-range-editor--small .el-range__close-icon{
  666. display: none;
  667. }
  668. ::v-deep .el-date-editor .el-range-input{
  669. width:45%;
  670. }
  671. ::v-deep .el-range-editor--small .el-range-separator{
  672. line-height:30px;
  673. }
  674. ::v-deep .el-input-group__append, .el-input-group__prepend{
  675. background-color: #fff;
  676. }
  677. .form-index{
  678. ::v-deep .el-input--medium .el-input__inner{
  679. border:1px solid #DCDFE6;
  680. border-right:none;
  681. padding-right:0;
  682. }
  683. ::v-deep .el-input-group__append{
  684. padding:0 10px;
  685. cursor: pointer;
  686. }
  687. }
  688. }
  689. .dialog-footer-box{
  690. display: flex;
  691. }
  692. }
  693. ::v-deep .el-dialog__body{
  694. padding: 30px 20px!important;
  695. }
  696. }
  697. </style>