DeptManage.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <template>
  2. <div>
  3. <crumbs :title="title + hospitaiName" linkTo="MedicalTermCDSS">
  4. <el-form :inline="true" class="demo-form-inline">
  5. <el-form-item style="marginBottom: 0px">
  6. <el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
  7. <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
  8. <el-button size="mini" @click="handleMatchData">预匹配</el-button>
  9. <el-button size="mini" @click="importPage" style="margin:0 10px">{{uploadInfo}}</el-button>
  10. <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
  11. <el-button size="mini" @click="exportData">导出</el-button>
  12. </el-form-item>
  13. </el-form>
  14. </crumbs>
  15. <div class="searchBar">
  16. <div class="searchContent">
  17. <el-form :inline="true" class="demo-form-inline">
  18. <el-form-item class="selectMedicine" label="标准术语状态:">
  19. <el-select size="mini" v-model="filter.status" placeholder="请选择" clearable>
  20. <el-option
  21. v-for="item in statusList"
  22. :label="item.name"
  23. :value="item.id"
  24. :key="item.id"
  25. ></el-option>
  26. </el-select>
  27. </el-form-item>
  28. <el-form-item label="匹配状态:" class="selectMedicine">
  29. <el-select size="mini" v-model="filter.match" placeholder="请选择" clearable>
  30. <el-option
  31. v-for="item in matchList"
  32. :label="item.name"
  33. :value="item.id"
  34. :key="item.id"
  35. ></el-option>
  36. </el-select>
  37. </el-form-item>
  38. <el-form-item label="医院科室名称:">
  39. <el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
  40. </el-form-item>
  41. <el-form-item label="标准科室名称:">
  42. <el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
  43. </el-form-item>
  44. <el-form-item class="dododo">
  45. <el-button size="mini" @click="filterDatas">检索</el-button>
  46. <el-button size="mini" type="warning" @click="addRelation">添加关联</el-button>
  47. </el-form-item>
  48. </el-form>
  49. </div>
  50. </div>
  51. <div class="contentsOther">
  52. <el-table :data="list" border style="width: 100%">
  53. <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
  54. <el-table-column :resizable="false" prop="gmtModified" label="操作时间" width="180"></el-table-column>
  55. <el-table-column :resizable="false" prop="hisCode" label="医院科室编码" show-overflow-tooltip></el-table-column>
  56. <el-table-column :resizable="false" prop="hisName" label="医院科室名称" show-overflow-tooltip></el-table-column>
  57. <el-table-column :resizable="false" prop="uniqueName" label="标准科室名称" show-overflow-tooltip></el-table-column>
  58. <el-table-column :resizable="false" prop="operate" label="标准术语状态">
  59. <template slot-scope="scope">
  60. <span v-if="scope.row.uniqueName && scope.row.uniqueName!=''">{{scope.row.status == 0?'禁用':'启用'}}</span>
  61. </template>
  62. </el-table-column>
  63. <el-table-column :resizable="false" prop="operate" label="匹配状态">
  64. <template slot-scope="scope">
  65. <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column :resizable="false" prop="operate" label="操作">
  69. <template slot-scope="scope">
  70. <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
  71. <span style="margin:0 3px;">|</span>
  72. <el-button
  73. @click="showDelDialog(scope.row.id)"
  74. class="delete"
  75. type="text"
  76. size="small"
  77. >删除</el-button>
  78. </template>
  79. </el-table-column>
  80. </el-table>
  81. <div class="pagination pagepage">
  82. <el-pagination
  83. :current-page.sync="currentPage"
  84. @current-change="currentChange"
  85. background
  86. :page-size="pageSize"
  87. :page-sizes="pageSizeArr"
  88. @size-change="handleSizeChange"
  89. :layout="pageLayout"
  90. :total="total"
  91. ></el-pagination>
  92. </div>
  93. </div>
  94. <LtModal
  95. v-if="modalVisiable"
  96. @func="getMsgFormSon"
  97. :meal="'科室名称'"
  98. :standard="'科室名称'"
  99. :tip="'科室关联'"
  100. :type="7"
  101. :hospitalId="hospitalId"
  102. :data="data"
  103. ></LtModal>
  104. </div>
  105. </template>
  106. <script>
  107. import api from '@api/cdss.js';
  108. import config from '@api/config.js';
  109. import utils from '@api/utils.js';
  110. import LtModal from '@base/LtModal';
  111. export default {
  112. name: 'DeptManage',
  113. data: function() {
  114. return {
  115. list: [],
  116. searched: false,
  117. filter: {
  118. hisName: '', // 医院诊断名称
  119. uniqueName: '', //标准诊断名称
  120. match: '',
  121. status:''
  122. },
  123. matchList: [
  124. { id: '', name: '全部' },
  125. { id: 1, name: '已匹配' },
  126. { id: 0, name: '未匹配' },
  127. { id: 2, name: '多项匹配' }
  128. ],
  129. statusList: [
  130. { id: '', name: '全部' },
  131. { id: 1, name: '启用' },
  132. { id: 0, name: '禁用' },
  133. ],
  134. currentPage: 1,
  135. pageSize: config.pageSize,
  136. pageSizeArr: config.pageSizeArr,
  137. pageLayout: config.pageLayout,
  138. total: 0,
  139. fileName: '',
  140. formData: {},
  141. headers: {},
  142. uploadInfo: '导入',
  143. title: '科室关联维护 | ',
  144. hospitaiName: '',
  145. hospitalId: '',
  146. modalVisiable: false,
  147. data: {}
  148. };
  149. },
  150. components: {
  151. LtModal
  152. },
  153. created() {
  154. const { data } = this.$route.params;
  155. this.hospitaiName = (data && data.name) || localStorage.getItem('name');
  156. this.hospitalId = (data && data.hospitalId) || localStorage.getItem('hospitalId');
  157. const that = this;
  158. //返回时避免参数未赋值就获取列表
  159. setTimeout(function() {
  160. that.getDataList();
  161. });
  162. // 非首页 编辑页返回 设置 this.currentPage
  163. if (Object.keys(this.$route.params).length !== 0) {
  164. this.currentPage = this.$route.params.currentPage;
  165. }
  166. },
  167. watch: {
  168. filter: {
  169. handler: function() {
  170. this.searched = false;
  171. },
  172. deep: true
  173. }
  174. },
  175. beforeRouteEnter(to, from, next) {
  176. next(vm => {
  177. //const pm = to.param;
  178. Object.assign(vm, to.params);
  179. vm.inCurrentPage = to.params.currentPage;
  180. });
  181. },
  182. methods: {
  183. // 预匹配
  184. handleMatchData() {
  185. let inp = document.getElementById('upFileMatch');
  186. inp.click();
  187. },
  188. // 导入数据
  189. uploadFileMatch(e) {
  190. let fileInfo = e.target.files[0];
  191. let extend = fileInfo.name.substring(fileInfo.name.lastIndexOf('.') + 1);
  192. if (extend != 'xls' && extend != 'xlsx') {
  193. this.$message({ message: '请根据模板进行导入', type: 'error' });
  194. return;
  195. }
  196. e.preventDefault();
  197. let formData = new FormData();
  198. formData.append('file', fileInfo);
  199. formData.append('type', 7);
  200. const header = {
  201. headers: {
  202. 'Content-Type': 'multipart/form-data'
  203. }
  204. };
  205. const loading = this.$loading({
  206. lock: true,
  207. text: '预匹配中...',
  208. spinner: 'el-icon-loading',
  209. background: 'rgba(0, 0, 0, 0.7)'
  210. });
  211. api.dataDeptVerify(formData, header).then(res => {
  212. if (res.data.code === '00020007' || res.data.code === '00020004') {
  213. loading.close();
  214. this.$alert(`${res.data.msg}`, '提示', {
  215. confirmButtonText: '确定',
  216. type: 'warning'
  217. })
  218. .then(() => {})
  219. .catch(() => {});
  220. } else {
  221. api.precDeptDataMatch(formData, header).then(res => {
  222. setTimeout(() => {
  223. loading.close();
  224. }, 800);
  225. if (res.status === 200) {
  226. utils.downloadExportedData(
  227. res.data,
  228. '科室关联数据(预匹配).xls'
  229. );
  230. }
  231. });
  232. }
  233. });
  234. let inp = document.getElementById('upFileMatch');
  235. inp.value = '';
  236. },
  237. handleSizeChange(val) {
  238. this.pageSize = val;
  239. this.currentPage = utils.getCurrentPage(
  240. this.currentPage,
  241. this.total,
  242. this.pageSize
  243. );
  244. this.getDataList();
  245. },
  246. // 获取列表数据
  247. getDataList(isTurnPage) {
  248. const params = this.getFilterItems(isTurnPage);
  249. this.searched = true;
  250. const loading = this.$loading({
  251. lock: true,
  252. text: 'Loading',
  253. spinner: 'el-icon-loading',
  254. background: 'rgba(0, 0, 0, 0.7)'
  255. });
  256. api.getDeptPage(params).then(res => {
  257. loading.close();
  258. if (res.data.code === '0') {
  259. this.list = res.data.data && res.data.data.records;
  260. }
  261. this.total = res.data.data && res.data.data.total;
  262. if (this.inCurrentPage !== undefined) {
  263. this.currentPage = this.inCurrentPage;
  264. this.inCurrentPage = undefined;
  265. }
  266. });
  267. },
  268. // 处理列表请求数据参数
  269. getFilterItems(isTurnPage) {
  270. const { data } = this.$route.params;
  271. //翻页时筛选条件没点确定则清空
  272. if (isTurnPage && !this.searched) {
  273. this.clearFilter();
  274. }
  275. const param = {
  276. current: this.inCurrentPage || this.currentPage,
  277. size: this.pageSize,
  278. hisName: this.filter.hisName.trim(),
  279. uniqueName: this.filter.uniqueName.trim(),
  280. uniqueCode: '',
  281. hospitalId: (data && data.hospitalId) || localStorage.getItem('hospitalId'),
  282. type: 7,
  283. isMatch: this.filter.match,
  284. status: this.filter.status,
  285. };
  286. return param;
  287. },
  288. filterDatas() {
  289. this.currentPage = 1;
  290. this.getDataList();
  291. },
  292. addRelation() {
  293. const pam = this.searched
  294. ? {
  295. currentPage: this.currentPage,
  296. pageSize: this.pageSize,
  297. filter: this.filter
  298. }
  299. : { currentPage: this.currentPage, pageSize: this.pageSize };
  300. // this.$router.push({
  301. // name: 'AddDept',
  302. // params: Object.assign(pam, {
  303. // isEdit: false,
  304. // data: { hospitalId: this.hospitalId },
  305. // hospitaiName: this.hospitaiName
  306. // })
  307. // });
  308. this.data = {};
  309. this.showModal();
  310. },
  311. // 修改诊断关联-跳转至编辑页面
  312. modifyRelation(row) {
  313. const item = Object.assign({}, row);
  314. const pam = this.searched
  315. ? {
  316. currentPage: this.currentPage,
  317. pageSize: this.pageSize,
  318. filter: this.filter
  319. }
  320. : { currentPage: this.currentPage, pageSize: this.pageSize };
  321. // this.$router.push({
  322. // name: 'AddDept',
  323. // params: Object.assign(pam, {
  324. // isEdit: true,
  325. // data: { ...item, hospitalId: this.hospitalId },
  326. // hospitaiName: this.hospitaiName
  327. // })
  328. // });
  329. this.data = item;
  330. this.showModal();
  331. },
  332. currentChange(next) {
  333. this.currentPage = next;
  334. this.getDataList(true);
  335. // if (this.cacheData[next]) { //如果已请求过该页数据,则使用缓存不重复请求
  336. // this.list = this.cacheData[next];
  337. // } else {
  338. // this.getDataList();
  339. // }
  340. },
  341. // 清空搜索参数
  342. clearFilter() {
  343. this.filter = {
  344. hisName: '',
  345. uniqueName: ''
  346. };
  347. },
  348. indexMethod(index) {
  349. return (this.currentPage - 1) * this.pageSize + index + 1;
  350. },
  351. getTagType(val) {
  352. return val;
  353. },
  354. warning(msg, type) {
  355. this.$message({
  356. showClose: true,
  357. message: msg,
  358. type: type || 'warning'
  359. });
  360. },
  361. showConfirmDialog(msg, resolve) {
  362. this.$alert(msg, '提示', {
  363. confirmButtonText: '删除',
  364. // cancelButtonText: '取消',
  365. // cancelButtonClass: 'cancelBtn',
  366. // confirmButtonClass: 'confirmC',
  367. type: 'warning'
  368. })
  369. .then(() => {
  370. resolve();
  371. })
  372. .catch(() => {});
  373. },
  374. // 删除关联
  375. showDelDialog(id) {
  376. this.showConfirmDialog('是否删除该关联?', () => {
  377. api
  378. .deleteDeptRecord({ id: id })
  379. .then(res => {
  380. if (res.data.code == '0') {
  381. if (!this.searched) {
  382. //未点确认时清空搜索条件
  383. this.clearFilter();
  384. }
  385. if (this.list.length == 1) {
  386. //当前在最后一页且只有一条数据时,删除后跳到前一页
  387. this.currentPage =
  388. this.currentPage === 1 ? 1 : this.currentPage - 1;
  389. }
  390. this.getDataList();
  391. this.warning(res.data.msg || '操作成功', 'success');
  392. } else {
  393. this.warning(res.data.msg);
  394. }
  395. })
  396. .catch(error => {
  397. if (error.code === '900010001') {
  398. return false;
  399. }
  400. this.warning(error);
  401. });
  402. });
  403. },
  404. // 导出数据
  405. exportData() {
  406. this.$alert('确定要导出全部科室关联数据吗?', '', {
  407. confirmButtonText: '确定',
  408. // cancelButtonText: '取消',
  409. // cancelButtonClass: 'leftbtn',
  410. // customClass: 'exportBox6',
  411. title: '提示',
  412. type: 'warning'
  413. // beforeClose: (action, instance, done) => {
  414. // if (action === 'confirm') {
  415. // // instance.confirmButtonLoading = true;
  416. // // instance.confirmButtonText = '导出中...';
  417. // done()
  418. // api.exportDeptRecord().then(res => {
  419. // if (res.status === 200) {
  420. // setTimeout(() => {
  421. // utils.downloadExportedData(res.data, '科室关联数据.xls');
  422. // // done();
  423. // }, 1500);
  424. // }
  425. // });
  426. // } else {
  427. // done();
  428. // }
  429. // }
  430. })
  431. .then(() => {
  432. api
  433. .exportDeptRecord({
  434. hospitalId: this.hospitalId,
  435. type: 7,
  436. isMatch: this.filter.match
  437. })
  438. .then(res => {
  439. if (res.status === 200) {
  440. this.$message({ message: '导出成功', type: 'success' });
  441. utils.downloadExportedData(res.data, '科室关联数据.xls');
  442. }
  443. });
  444. })
  445. .catch(() => {});
  446. },
  447. // 导入模板
  448. exportModule() {
  449. api.exportDeptModule({ type: 7 }).then(res => {
  450. if (res.status === 200) {
  451. setTimeout(() => {
  452. utils.downloadExportedData(res.data, '科室导入模板.xls');
  453. }, 1500);
  454. }
  455. });
  456. },
  457. // 点击导入
  458. importPage() {
  459. let inp = document.getElementById('upFile');
  460. inp.click();
  461. },
  462. // 导入数据
  463. uploadFile(e) {
  464. let fileInfo = e.target.files[0];
  465. let extend = fileInfo.name.substring(fileInfo.name.lastIndexOf('.') + 1);
  466. if (extend != 'xls' && extend != 'xlsx') {
  467. this.$message({ message: '请根据模板进行导入', type: 'error' });
  468. return;
  469. }
  470. // this.fileName = e.target.files[0].name; // 表单同步显示
  471. e.preventDefault();
  472. let formData = new FormData();
  473. formData.append('file', fileInfo);
  474. formData.append('hospitalId', this.hospitalId);
  475. formData.append('type', 7);
  476. formData.append('uesrId', localStorage.getItem('uesrId'));
  477. const header = {
  478. headers: {
  479. 'Content-Type': 'multipart/form-data'
  480. }
  481. };
  482. // this.uploadInfo = '导入中...';
  483. // api.importExcelDataVerify(formData, header).then(res => {
  484. // if (res.data.code === '00020001') {
  485. // this.$confirm(`${res.data.msg}`, '提示', {
  486. // confirmButtonText: '确定',
  487. // cancelButtonText: '取消',
  488. // type: 'warning'
  489. // })
  490. // .then(() => {
  491. // this.importDeptRecord(formData, header);
  492. // })
  493. // .catch(() => {
  494. // setTimeout(() => {
  495. // this.uploadInfo = '导入';
  496. // }, 300);
  497. // });
  498. // } else if (res.data.data === true) {
  499. // this.importDeptRecord(formData, header);
  500. // } else {
  501. // this.$alert(`${res.data.msg}`, '提示', {
  502. // confirmButtonText: '确定',
  503. // // cancelButtonText: '取消',
  504. // // cancelButtonClass: 'cancelSure',
  505. // // confirmButtonClass: 'sure',
  506. // // customClass: 'exportConfirm',
  507. // type: 'warning'
  508. // })
  509. // .then(() => {})
  510. // .catch(() => {});
  511. // setTimeout(() => {
  512. // this.uploadInfo = '导入';
  513. // }, 300);
  514. // }
  515. // });
  516. this.importDeptRecord(formData, header)
  517. //解决上传相同文件不触发change
  518. let inp = document.getElementById('upFile');
  519. inp.value = '';
  520. },
  521. importDeptRecord(formData, header) {
  522. let that = this
  523. api.importDeptRecord(formData, header).then(res => {
  524. if (res.headers['content-disposition']) {
  525. this.downloadUrl(res);
  526. this.getDataList();
  527. } else {
  528. let r = new FileReader();
  529. r.onload = function() {
  530. if (this.result) {
  531. const code = JSON.parse(this.result);
  532. if (code.code === '00020007') {
  533. that
  534. .$alert(`${code.msg}`, '提示', {
  535. confirmButtonText: '确定',
  536. // cancelButtonText: '取消',
  537. // cancelButtonClass: 'cancelSure',
  538. // confirmButtonClass: 'sure',
  539. // customClass: 'exportConfirm',
  540. type: 'warning'
  541. })
  542. .then(() => {})
  543. .catch(() => {});
  544. }
  545. } else {
  546. that.$alert(`导入成功`, '提示', {
  547. confirmButtonText: '确定',
  548. // cancelButtonText: '取消',
  549. // cancelButtonClass: 'cancelSure',
  550. // confirmButtonClass: 'sure',
  551. // customClass: 'exportConfirm',
  552. type: 'success'
  553. });
  554. that.getDataList();
  555. }
  556. };
  557. r.readAsText(res.data);
  558. }
  559. // if ((res.data.code === '00020007')) {
  560. // this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
  561. // confirmButtonText: '确定',
  562. // type: 'warning'
  563. // })
  564. // .then(() => {})
  565. // .catch(() => {});
  566. // this.getDataList(); // 重新获取列表
  567. // setTimeout(() => {
  568. // this.uploadInfo = '导入';
  569. // }, 300);
  570. // } else if (res.data.data === true && res.status === 200) {
  571. // this.$alert(`导入成功`, '提示', {
  572. // confirmButtonText: '确定',
  573. // type: 'success'
  574. // })
  575. // .then(() => {})
  576. // .catch(() => {});
  577. // this.getDataList(); // 重新获取列表
  578. // setTimeout(() => {
  579. // this.uploadInfo = '导入';
  580. // }, 300);
  581. // } else {
  582. // this.$alert(`${res.data.msg}`, '提示', {
  583. // confirmButtonText: '确定',
  584. // type: 'warning'
  585. // })
  586. // .then(() => {})
  587. // .catch(() => {});
  588. // setTimeout(() => {
  589. // this.uploadInfo = '导入';
  590. // }, 300);
  591. // }
  592. });
  593. },
  594. downloadUrl(res) {
  595. var disposition = res.headers['content-disposition'];
  596. var fileName = decodeURI(
  597. disposition.split('filename=')[1].split(';filename*=')[0]
  598. );
  599. let blob = new Blob([res.data], { type: 'application/.xls' }); //.xls是我和后台约定好的文件格式
  600. let link = document.createElement('a');
  601. link.href = window.URL.createObjectURL(blob);
  602. link.download = fileName;
  603. link.click();
  604. link.remove();
  605. },
  606. /********新增编辑弹窗**********/
  607. showModal() {
  608. this.modalVisiable = true;
  609. },
  610. getMsgFormSon(data) {
  611. if (data == 'close') {
  612. this.modalVisiable = false;
  613. } else {
  614. this.modalVisiable = false;
  615. this.getDataList();
  616. }
  617. }
  618. }
  619. };
  620. </script>
  621. <style lang="less" scoped>
  622. @import '../../../less/admin.less';
  623. .delete {
  624. color: red;
  625. }
  626. .delete:hover {
  627. color: red;
  628. }
  629. .pagination {
  630. min-width: 1010px;
  631. }
  632. .downTemplate {
  633. margin-right: 8px;
  634. span {
  635. color: #02a7f0;
  636. }
  637. }
  638. #upFile {
  639. display: none;
  640. }
  641. #upFileMatch {
  642. display: none;
  643. }
  644. .el-message-box {
  645. /deep/.cancelBtn {
  646. background-color: #d7d7d7;
  647. border-color: transparent;
  648. }
  649. /deep/.confirmC {
  650. background-color: #ff545b !important;
  651. border-color: transparent !important;
  652. }
  653. /deep/.el-message-box__header {
  654. border-bottom: 1px solid #dcdfe6;
  655. }
  656. }
  657. .exportBox6 {
  658. /deep/ .el-message-box__btns {
  659. margin-top: 20px;
  660. }
  661. /deep/ .el-message-box__message {
  662. // text-align: center;
  663. }
  664. /deep/.leftbtn {
  665. background-color: #d7d7d7;
  666. border-color: transparent !important;
  667. }
  668. /deep/ .el-message-box__header {
  669. border-bottom: 1px solid #dcdfe6;
  670. }
  671. }
  672. .exportConfirm {
  673. .cancelSure {
  674. display: none;
  675. }
  676. }
  677. .searchBar {
  678. min-width: 980px;
  679. height: 60px;
  680. display: flex;
  681. justify-content: center;
  682. align-items: center;
  683. background-color: #dee2ea;
  684. z-index: 9999;
  685. padding: 40px 20px 0;
  686. .searchContent {
  687. height: 40px;
  688. flex: 1;
  689. background-color: #fff;
  690. display: flex;
  691. justify-content: flex-end;
  692. float: right;
  693. }
  694. }
  695. .contentsOther {
  696. padding: 0 20px;
  697. }
  698. </style>