DrugManage.vue 23 KB

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