configDialog.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  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">
  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">
  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 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 class="el-icon-arrow-left" @click="userArrowButton(1)"></p>
  96. <p 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 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">
  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. configDialogType:true,
  180. configPageType:1,
  181. checkDataList:[],
  182. checkList:[
  183. {
  184. key:"2",
  185. label:"实验室负责人",
  186. },
  187. {
  188. key:"1",
  189. label:"实验室安全责任人",
  190. },
  191. {
  192. key:"3",
  193. label:"老师",
  194. },
  195. {
  196. key:"4",
  197. label:"学生",
  198. },
  199. ],
  200. checkType:false,
  201. /*===================================人员选择相关===================================*/
  202. deptSelectList:[],
  203. userQueryParamsLeft:{
  204. pageNum:1,
  205. pageSize:20,
  206. searchValue:"",
  207. deptId:"",
  208. filtType:1
  209. },
  210. userTableListLeft:[],
  211. userTotalLeft:0,
  212. userNumLeft:0,
  213. userIdsLeft:[],
  214. userQueryParamsRight:{
  215. pageNum:1,
  216. pageSize:20,
  217. deptId:"",
  218. searchValue:"",
  219. filtType:2
  220. },
  221. userTableListRight:[],
  222. userTotalRight:0,
  223. userNumRight:0,
  224. userIdsRight:[],
  225. leftDateRange:[],
  226. rightDateRange:[],
  227. //选中巡查人员列表
  228. dialogTableList:[],
  229. //选中页面人员列表数据
  230. dialogTableDataList:[],
  231. }
  232. },
  233. created(){
  234. },
  235. mounted(){
  236. this.checkSet();
  237. this.listDepartments();
  238. },
  239. methods:{
  240. //提交
  241. upDataButton(){
  242. let self = this;
  243. let obj = {
  244. staffType:this.configDialogData.staffType,
  245. setSubjectLead:false,
  246. setSubjectSafety:false,
  247. setTeacher:false,
  248. setStudent:false,
  249. };
  250. for(let i=0;i<self.checkDataList.length;i++){
  251. if(self.checkDataList[i] == '1'){
  252. obj.setSubjectLead = true;
  253. }else if(self.checkDataList[i] == '2'){
  254. obj.setSubjectSafety = true;
  255. }else if(self.checkDataList[i] == '3'){
  256. obj.setTeacher = true;
  257. }else if(self.checkDataList[i] == '4'){
  258. obj.setStudent = true;
  259. }
  260. }
  261. obj.sysUserVoList = obj.setStudent?this.dialogTableList:[]
  262. checkSetAdd(obj).then(response => {
  263. this.msgSuccess(response.msg);
  264. this.$parent.configButton(3)
  265. })
  266. },
  267. //获取配置
  268. checkSet(){
  269. checkSet({staffType:this.configDialogData.staffType}).then(response => {
  270. let list = [];
  271. if(response.data.setSubjectLead){
  272. //实验室负责人
  273. list.push('1');
  274. }
  275. if(response.data.setSubjectSafety){
  276. //实验室安全责任人
  277. list.push('2');
  278. }
  279. if(response.data.setTeacher){
  280. //全部老师
  281. list.push('3');
  282. }
  283. if(response.data.setStudent){
  284. //全部学生
  285. list.push('4');
  286. this.$set(this,'checkType',true);
  287. }
  288. this.$set(this,'checkDataList',list);
  289. this.$set(this,'dialogTableList',response.data.userStuList);
  290. });
  291. },
  292. //人员选择
  293. configUserButton(type){
  294. let self = this;
  295. if(this.configPageType != type){
  296. if(type == 2){
  297. this.$set(self,'dialogTableDataList',JSON.parse(JSON.stringify(this.dialogTableList)));
  298. this.userResetQueryLeft();
  299. this.userResetQueryRight();
  300. this.$set(this,'configPageType',type);
  301. }else{
  302. checkStaffUserList.then(response => {
  303. this.dialogTableList = response.data;
  304. });
  305. this.$set(this,'configPageType',type);
  306. }
  307. }
  308. },
  309. //选择器
  310. checkboxChange(val){
  311. if(val[0]){
  312. let num = 0;
  313. for(let i=0;i<val.length;i++){
  314. if(val[i] == '4'){
  315. num++
  316. }
  317. }
  318. this.$set(this,'checkType',num != 0?true:false);
  319. }else{
  320. this.$set(this,'checkType',false);
  321. }
  322. },
  323. //窗口关闭
  324. addDialogAllOff(){
  325. this.$parent.configButton(2)
  326. },
  327. addDialogOff(){
  328. if(this.configPageType == 1){
  329. this.$parent.configButton(2)
  330. }else{
  331. this.$set(this,'configPageType',1);
  332. }
  333. },
  334. addUserButton(){
  335. this.$set(this,'dialogTableList',this.dialogTableDataList);
  336. this.$set(this,'configPageType',1);
  337. },
  338. /*===================================人员选择相关===================================*/
  339. //查询
  340. userHandleQueryLeft(){
  341. this.$set(this.userQueryParamsLeft,'pageNum',1);
  342. this.$set(this,'userNumLeft',0);
  343. this.$set(this,'userIdsLeft',[]);
  344. if (this.$refs.leftUserTable){
  345. this.$refs.leftUserTable.clearSelection();
  346. }
  347. this.userGetListLeft();
  348. },
  349. //重置
  350. userResetQueryLeft(){
  351. this.$set(this,'leftDateRange',[])
  352. this.$set(this,'userQueryParamsLeft',{
  353. pageNum:1,
  354. pageSize:20,
  355. searchValue:"",
  356. deptId:"",
  357. filtType:1
  358. });
  359. this.userHandleQueryLeft();
  360. },
  361. //查询接口
  362. userGetListLeft(){
  363. let self = this;
  364. let leftObj = JSON.parse(JSON.stringify(this.userQueryParamsLeft));
  365. leftObj.filtCheckUserIdList = [];
  366. for(let i=0;i<self.dialogTableDataList.length;i++){
  367. let obj = {
  368. userId:self.dialogTableDataList[i].userId,
  369. subjectId:self.dialogTableDataList[i].subId
  370. }
  371. leftObj.filtCheckUserIdList.push(obj)
  372. }
  373. if(this.leftDateRange[0]){
  374. leftObj.beginTime = this.leftDateRange[0]
  375. }else{
  376. leftObj.beginTime = ""
  377. }
  378. if(this.leftDateRange[1]){
  379. leftObj.endTime = this.leftDateRange[1]
  380. }else{
  381. leftObj.endTime = ""
  382. }
  383. checkStaffUserList(leftObj).then(response => {
  384. this.userTotalLeft = response.data.total;
  385. this.userTableListLeft = response.data.records;
  386. });
  387. },
  388. //查询
  389. userHandleQueryRight(){
  390. this.$set(this.userQueryParamsRight,'pageNum',1);
  391. this.$set(this,'userNumRight',0);
  392. this.$set(this,'userIdsRight',[]);
  393. if(this.$refs.rightUserTable){
  394. this.$refs.rightUserTable.clearSelection();
  395. }
  396. this.userGetListRight();
  397. },
  398. //重置
  399. userResetQueryRight(){
  400. this.$set(this,'rightDateRange',[])
  401. this.$set(this,'userQueryParamsRight',{
  402. pageNum:1,
  403. pageSize:20,
  404. deptId:"",
  405. searchValue:"",
  406. filtType:2
  407. });
  408. this.userHandleQueryRight();
  409. },
  410. //查询接口
  411. userGetListRight(){
  412. let self = this;
  413. let rightObj = JSON.parse(JSON.stringify(this.userQueryParamsRight));
  414. rightObj.notFiltCheckUserIdList = [];
  415. for(let i=0;i<self.dialogTableDataList.length;i++){
  416. let obj = {
  417. userId:self.dialogTableDataList[i].userId,
  418. subjectId:self.dialogTableDataList[i].subId
  419. }
  420. rightObj.notFiltCheckUserIdList.push(obj)
  421. }
  422. if(this.rightDateRange[0]){
  423. rightObj.beginTime = this.rightDateRange[0]
  424. }else{
  425. rightObj.beginTime = ""
  426. }
  427. if(this.rightDateRange[1]){
  428. rightObj.endTime = this.rightDateRange[1]
  429. }else{
  430. rightObj.endTime = ""
  431. }
  432. checkStaffUserList(rightObj).then(response => {
  433. this.userTotalRight = response.data.total;
  434. this.userTableListRight = response.data.records;
  435. });
  436. },
  437. //穿梭按钮
  438. userArrowButton(type){
  439. let self = this;
  440. if(type == 1){
  441. //右至左
  442. if(this.$refs.rightUserTable.selection[0]){
  443. let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
  444. let userIdsRight = JSON.parse(JSON.stringify(this.$refs.rightUserTable.selection))
  445. for(let i=0;i<userIdsRight.length;i++){
  446. for(let s=0;s<list.length;s++){
  447. if(userIdsRight[i].userId == list[s].userId && userIdsRight[i].subjectId == list[s].subId){
  448. list.splice(s,1);
  449. s--
  450. }
  451. }
  452. }
  453. this.$set(this,'dialogTableDataList',list);
  454. this.$refs.rightUserTable.clearSelection();
  455. this.userGetListLeft();
  456. this.userGetListRight();
  457. }else{
  458. this.msgError('请先勾选右侧列表')
  459. }
  460. }else if(type == 2){
  461. //左至右
  462. if(this.$refs.leftUserTable.selection[0]){
  463. let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
  464. let userIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftUserTable.selection))
  465. console.log('userIdsLeft',userIdsLeft)
  466. for(let i=0;i<userIdsLeft.length;i++){
  467. let obj = {
  468. subId:userIdsLeft[i].subjectId,
  469. subName:userIdsLeft[i].subjectName,
  470. subRom:userIdsLeft[i].roomNum,
  471. deptId:userIdsLeft[i].deptId,
  472. deptName:userIdsLeft[i].deptName,
  473. userId:userIdsLeft[i].userId,
  474. nickName:userIdsLeft[i].userName,
  475. userNumber:userIdsLeft[i].userNumber,
  476. phonenumber:userIdsLeft[i].phonenumber,
  477. validBeginTime:userIdsLeft[i].validBeginTime,
  478. validEndTime:userIdsLeft[i].validEndTime,
  479. }
  480. list.push(obj);
  481. }
  482. // for(let i=0;i<self.userIdsLeft.length;i++){
  483. // for(let o=0;o<self.userTableListLeft.length;o++){
  484. // if(self.userIdsLeft[i] == self.userTableListLeft[o].userId){
  485. // let obj = {
  486. // subId:self.userTableListLeft[o].subjectId,
  487. // subName:self.userTableListLeft[o].subjectName,
  488. // subRom:self.userTableListLeft[o].roomNum,
  489. // deptId:self.userTableListLeft[o].deptId,
  490. // deptName:self.userTableListLeft[o].deptName,
  491. // userId:self.userTableListLeft[o].userId,
  492. // nickName:self.userTableListLeft[o].userName,
  493. // userNumber:self.userTableListLeft[o].userNumber,
  494. // phonenumber:self.userTableListLeft[o].phonenumber,
  495. // validBeginTime:self.userTableListLeft[o].validBeginTime,
  496. // validEndTime:self.userTableListLeft[o].validEndTime,
  497. // }
  498. // list.push(obj);
  499. // }
  500. // }
  501. // }
  502. this.$set(this,'dialogTableDataList',list);
  503. this.$refs.leftUserTable.clearSelection();
  504. this.userGetListLeft();
  505. this.userGetListRight();
  506. }else{
  507. this.msgError('请先勾选左侧列表')
  508. }
  509. }
  510. },
  511. /*===记录勾选数据===
  512. 需要再el-table 添加 :row-key="getRowKeys"
  513. 需要在selection 添加 :reserve-selection="true"
  514. */
  515. getRowKeys(row) {
  516. return row.id
  517. },
  518. userChangeLeft(selection){
  519. this.userNumLeft = selection.length;
  520. this.userIdsLeft = selection.map(item => item.userId);
  521. },
  522. userChangeRight(selection){
  523. this.userNumRight = selection.length;
  524. this.userIdsRight = selection.map(item => item.userId);
  525. },
  526. //获取学院列表
  527. listDepartments(){
  528. listDepartments().then(response => {
  529. this.deptSelectList = response.data;
  530. });
  531. },
  532. }
  533. }
  534. </script>
  535. <style scoped lang="scss">
  536. .configDialog{
  537. overflow: hidden;
  538. .configDialog-box{
  539. height:600px;
  540. display: flex;
  541. flex-direction: column;
  542. overflow: hidden;
  543. .configDialog-content-box{
  544. flex:1;
  545. padding:0 70px;
  546. .configDialog-content-min-box{
  547. height:160px;
  548. border-radius:4px;
  549. border: 1px solid #F5F5F5;
  550. padding:0 30px;
  551. position: relative;
  552. .configDialog-content-min-title{
  553. margin-top:19px;
  554. margin-bottom:32px;
  555. line-height:20px;
  556. font-size:14px;
  557. color:#333;
  558. }
  559. .configDialog-content-min-checkbox{
  560. }
  561. .configDialog-content-min-button{
  562. position: absolute;
  563. top:65px;
  564. right:205px;
  565. background-color: #0045AF;
  566. width:70px;
  567. height:30px;
  568. line-height:30px;
  569. text-align: center;
  570. color:#fff;
  571. border-radius:4px;
  572. cursor: pointer;
  573. }
  574. .configDialog-content-min-text-box{
  575. display: flex;
  576. margin-top:15px;
  577. p{
  578. width:240px;
  579. color:#999999;
  580. }
  581. }
  582. }
  583. }
  584. .dialog-footer-box{
  585. display: flex;
  586. }
  587. }
  588. .configDialog-user-box{
  589. height:600px;
  590. display: flex;
  591. flex-direction: column;
  592. overflow: hidden;
  593. .configDialog-user-content-box{
  594. flex:1;
  595. display: flex;
  596. overflow: hidden;
  597. .dept-table-title-box{
  598. display: flex;
  599. padding:0 20px;
  600. background: rgba(1,131,250,0.1);
  601. p{
  602. flex:1;
  603. color:#0183FA;
  604. font-size:16px;
  605. line-height:40px;
  606. }
  607. p:nth-child(1){
  608. text-align: left;
  609. }
  610. p:nth-child(2){
  611. text-align: right;
  612. }
  613. }
  614. .dept-table-max-box{
  615. border: 1px solid #e0e0e0;
  616. flex:1;
  617. display: flex;
  618. flex-direction: column;
  619. overflow: hidden;
  620. padding:20px;
  621. .form-index{
  622. .el-input__inner{
  623. border-right:none;
  624. padding-right:0;
  625. }
  626. .el-input-group__append{
  627. background: #fff;
  628. cursor: pointer;
  629. padding:0 10px;
  630. }
  631. }
  632. input{
  633. border: 1px solid #DCDFE6;
  634. }
  635. }
  636. .left-max-box{
  637. height:550px;
  638. display: flex;
  639. flex-direction: column;
  640. overflow: hidden;
  641. width:639px;
  642. }
  643. .right-max-box{
  644. height:550px;
  645. display: flex;
  646. flex-direction: column;
  647. overflow: hidden;
  648. width:639px;
  649. }
  650. .center-box{
  651. width:60px;
  652. p{
  653. display: block;
  654. border-radius:50%;
  655. width:30px;
  656. height:30px;
  657. line-height:30px;
  658. text-align: center;
  659. background: rgba(245,245,245,1);
  660. color:rgba(62,62,62,1);
  661. cursor: pointer;
  662. font-size:16px;
  663. }
  664. p:nth-child(1){
  665. margin:270px 16px 0;
  666. }
  667. p:nth-child(2){
  668. margin:14px 16px 0;
  669. }
  670. p:hover{
  671. color:#fff;
  672. background: #0183fa;
  673. }
  674. }
  675. ::v-deep .el-range-editor--small .el-range__icon{
  676. display: none;
  677. }
  678. ::v-deep .el-range-editor--small .el-range__close-icon{
  679. display: none;
  680. }
  681. ::v-deep .el-date-editor .el-range-input{
  682. width:45%;
  683. }
  684. ::v-deep .el-range-editor--small .el-range-separator{
  685. line-height:30px;
  686. }
  687. ::v-deep .el-input-group__append, .el-input-group__prepend{
  688. background-color: #fff;
  689. }
  690. .form-index{
  691. ::v-deep .el-input--medium .el-input__inner{
  692. border:1px solid #DCDFE6;
  693. border-right:none;
  694. padding-right:0;
  695. }
  696. ::v-deep .el-input-group__append{
  697. padding:0 10px;
  698. cursor: pointer;
  699. }
  700. }
  701. }
  702. .dialog-footer-box{
  703. display: flex;
  704. }
  705. }
  706. ::v-deep .el-dialog__body{
  707. padding: 30px 20px!important;
  708. }
  709. }
  710. </style>