Navbar.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. <template>
  2. <el-menu
  3. :default-active="activeIndex"
  4. mode="horizontal"
  5. background-color=""
  6. text-color="#000"
  7. active-text-color="#4392f7"
  8. @select="handleSelect"
  9. >
  10. <!-- <el-icon
  11. :size="20"
  12. v-show="!menuclose"
  13. class="fold"
  14. @click="SpreadMenu(true)"
  15. ><Fold
  16. /></el-icon>
  17. <el-icon
  18. :size="20"
  19. v-show="menuclose"
  20. class="fold"
  21. @click="SpreadMenu(false)"
  22. ><Expand
  23. /></el-icon> -->
  24. <div class="logo">
  25. <!-- <img src="@/assets/nanchang.png" style="width: 30px; height: 30px" /> -->
  26. <span>自动全流程低空物流信息管控系统</span>
  27. </div>
  28. <div class="login">
  29. <div
  30. class="message"
  31. @click="messageClick"
  32. v-if="btnRoles.xinxi.chaxun == 1"
  33. >
  34. <el-badge :value="store.state.messageNum" class="item">
  35. <img
  36. src="@/assets/images/message.png"
  37. style="width: 20px; height: 20px; cursor: pointer"
  38. alt=""
  39. />
  40. </el-badge>
  41. <span>信息</span>
  42. </div>
  43. <div
  44. class="monitoring"
  45. @click="monitoringClick"
  46. v-if="btnRoles.jiancezhongxin.chaxun == 1"
  47. >
  48. <img
  49. src="@/assets/images/monitoring.png"
  50. style="width: 20px; height: 20px; cursor: pointer"
  51. alt=""
  52. />
  53. <span>监测中心</span>
  54. </div>
  55. <span class="dateTime">{{ dateTime }}</span>
  56. <!-- <div class="flex flex-wrap items-center" style="cursor: pointer">
  57. <el-dropdown :hide-on-click="false" trigger="click">
  58. <el-avatar :size="20">
  59. <el-icon :size="20" color=""><QuestionFilled /></el-icon>
  60. </el-avatar>
  61. <template #dropdown>
  62. <el-dropdown-menu>
  63. <el-dropdown-item @click="operateClick">
  64. <el-icon class="switchButton" :size="20" color="#000">
  65. <img
  66. src="@/assets/operate.png"
  67. style="width: 20px; height: 20px"
  68. alt=""
  69. />
  70. </el-icon>
  71. <span>操作说明</span>
  72. </el-dropdown-item>
  73. <el-dropdown-item @click="contactClick">
  74. <el-icon class="switchButton" :size="20" color="#000">
  75. <img
  76. src="@/assets/contact.png"
  77. style="width: 20px; height: 20px"
  78. alt=""
  79. />
  80. </el-icon>
  81. <span>联系我们</span>
  82. </el-dropdown-item>
  83. <el-dialog
  84. :append-to-body="true"
  85. custom-class="pw"
  86. v-model="uppasswordShow"
  87. title="修改密码"
  88. width="500"
  89. :before-close="uppasswordClose"
  90. align-center
  91. :close-on-click-modal="false"
  92. >
  93. <el-form
  94. ref="ruleFormRef"
  95. :model="ruleForm"
  96. :rules="rules"
  97. label-width="100px"
  98. class="demo-ruleForm"
  99. :size="formSize"
  100. label-position="left"
  101. status-icon
  102. >
  103. <el-form-item label="原密码" prop="oldpass">
  104. <el-input
  105. v-model="ruleForm.oldpass"
  106. placeholder="请输入原密码"
  107. clearable
  108. />
  109. </el-form-item>
  110. <el-form-item label="新密码" prop="nowpass">
  111. <el-input
  112. v-model="ruleForm.nowpass"
  113. placeholder="请输入新密码"
  114. clearable
  115. />
  116. </el-form-item>
  117. <el-form-item label="确定新密码" prop="correctpass">
  118. <el-input
  119. v-model="ruleForm.correctpass"
  120. placeholder="请再次输入新密码"
  121. clearable
  122. />
  123. </el-form-item>
  124. <p
  125. style="
  126. padding-bottom: 20px;
  127. font-size: 12px;
  128. color: rgb(43, 151, 252);
  129. border-bottom: 1px solid rgba(230, 230, 230, 1);
  130. "
  131. >
  132. 注:密码格式为8-20位正确密码(大小写字母·字符·数字)
  133. </p>
  134. <el-form-item class="options">
  135. <el-button class="queding" @click="submitForm(ruleFormRef)">
  136. 确定
  137. </el-button>
  138. <el-button class="congzhi" @click="resetForm(ruleFormRef)"
  139. >重置</el-button
  140. >
  141. </el-form-item>
  142. </el-form>
  143. </el-dialog>
  144. <el-dialog
  145. class="operate"
  146. v-model="operateShow"
  147. title="操作说明"
  148. width="500"
  149. :before-close="operateClose"
  150. align-center
  151. :close-on-click-modal="false"
  152. :close-on-press-escape="false"
  153. >
  154. <div class="operateUl">
  155. <p>
  156. <span @click="lookFile(0)">建设单位_操作说明</span>
  157. <span @click="downFile(0)">下载</span>
  158. </p>
  159. <p>
  160. <span @click="lookFile(1)">县(区)管理员_操作说明</span
  161. ><span @click="downFile(1)">下载</span>
  162. </p>
  163. <p>
  164. <span @click="lookFile(2)">市级管理员_操作说明</span>
  165. <span @click="downFile(2)">下载</span>
  166. </p>
  167. <p>
  168. <span @click="lookFile(3)">省级管理员_操作说明</span>
  169. <span @click="downFile(3)">下载</span>
  170. </p>
  171. </div>
  172. <div class="options">
  173. <el-button class="queding" @click="operateClose">
  174. 关闭
  175. </el-button>
  176. </div>
  177. </el-dialog>
  178. <el-dialog
  179. class="operate"
  180. v-model="contactShow"
  181. title="联系我们"
  182. width="500"
  183. :before-close="contactClose"
  184. align-center
  185. :close-on-click-modal="false"
  186. :close-on-press-escape="false"
  187. >
  188. <div class="operateUl">
  189. <div style="margin: 15px 0">
  190. <span>联系人:</span>
  191. <span>邱工</span>
  192. </div>
  193. <div>
  194. <span>联系电话:</span
  195. ><span>0791-88514176 &nbsp;&nbsp; 18896551060</span>
  196. </div>
  197. </div>
  198. <div class="options">
  199. <el-button class="queding" @click="contactClose">
  200. 关闭
  201. </el-button>
  202. </div>
  203. </el-dialog>
  204. <el-dialog
  205. class="preview"
  206. v-model="previewShow"
  207. title="预览文档"
  208. width="1200"
  209. :before-close="previewClose"
  210. align-center
  211. :close-on-click-modal="false"
  212. :close-on-press-escape="false"
  213. >
  214. <div class="pre" v-loading="previewLoading">
  215. <vue-office-docx
  216. v-if="lookDocx"
  217. :src="lookDocx"
  218. @rendered="renderedHandler"
  219. @error="errorHandler"
  220. />
  221. </div>
  222. </el-dialog>
  223. </el-dropdown-menu>
  224. </template>
  225. </el-dropdown>
  226. </div> -->
  227. <div class="flex flex-wrap items-center" style="cursor: pointer">
  228. <el-dropdown :hide-on-click="false" trigger="click">
  229. <el-avatar :size="30">
  230. <img src="../../assets/images/touxiang.png" />
  231. </el-avatar>
  232. <template #dropdown>
  233. <el-dropdown-menu>
  234. <!-- <el-dropdown-item @click="uppassword">
  235. <el-icon class="switchButton" :size="20" color="#000">
  236. <Lock />
  237. </el-icon>
  238. <span>修改密码</span>
  239. </el-dropdown-item> -->
  240. <el-dialog
  241. class="pw"
  242. v-model="uppasswordShow"
  243. title="修改密码"
  244. width="500"
  245. :before-close="uppasswordClose"
  246. align-center
  247. :close-on-click-modal="false"
  248. >
  249. <el-form
  250. ref="ruleFormRef"
  251. :model="ruleForm"
  252. :rules="rules"
  253. label-width="100px"
  254. class="demo-ruleForm"
  255. :size="formSize"
  256. label-position="left"
  257. status-icon
  258. >
  259. <el-form-item label="原密码" prop="oldpass">
  260. <el-input
  261. v-model="ruleForm.oldpass"
  262. placeholder="请输入原密码"
  263. clearable
  264. />
  265. </el-form-item>
  266. <el-form-item label="新密码" prop="nowpass">
  267. <el-input
  268. v-model="ruleForm.nowpass"
  269. placeholder="请输入新密码"
  270. clearable
  271. />
  272. </el-form-item>
  273. <el-form-item label="确定新密码" prop="correctpass">
  274. <el-input
  275. v-model="ruleForm.correctpass"
  276. placeholder="请再次输入新密码"
  277. clearable
  278. />
  279. </el-form-item>
  280. <p
  281. style="
  282. padding-bottom: 20px;
  283. font-size: 12px;
  284. color: rgb(43, 151, 252);
  285. border-bottom: 1px solid rgba(230, 230, 230, 1);
  286. "
  287. >
  288. 注:密码格式为8-20位正确密码(大小写字母·字符·数字)
  289. </p>
  290. <el-form-item class="options">
  291. <el-button class="queding" @click="submitForm(ruleFormRef)">
  292. 确定
  293. </el-button>
  294. <el-button class="congzhi" @click="resetForm(ruleFormRef)"
  295. >重置</el-button
  296. >
  297. </el-form-item>
  298. </el-form>
  299. </el-dialog>
  300. <el-dropdown-item @click="loginOut">
  301. <el-icon class="switchButton" :size="20" color="#000">
  302. <SwitchButton />
  303. </el-icon>
  304. <span>退出登录</span>
  305. </el-dropdown-item>
  306. </el-dropdown-menu>
  307. </template>
  308. </el-dropdown>
  309. </div>
  310. <span class="name">{{ username }}</span>
  311. </div>
  312. </el-menu>
  313. </template>
  314. <script setup>
  315. import { ref, reactive, onBeforeMount, onMounted, watch, computed } from "vue";
  316. import { ElMessage, ElMessageBox, ElNotification } from "element-plus";
  317. import { useStore } from "vuex";
  318. import { useRouter } from "vue-router";
  319. import { dayjs } from "element-plus";
  320. import axios from "axios";
  321. //引入VueOfficeDocx组件
  322. import VueOfficeDocx from "@vue-office/docx";
  323. //引入相关样式
  324. import "@vue-office/docx/lib/index.css";
  325. const api = ref();
  326. const btnRoles = ref();
  327. const store = useStore();
  328. const router = useRouter();
  329. const username = ref(); // 账号名称
  330. const activeIndex = ref(); // 路由路径
  331. const loginOutDialogVisible = ref(false); // 退出按钮
  332. const menuclose = ref(false); // 左边状态栏展开按钮状态
  333. const uppasswordShow = ref(false); // 修改密码展示框
  334. const ruleForm = reactive({
  335. oldpass: "",
  336. nowpass: "",
  337. correctpass: "",
  338. });
  339. const ruleFormRef = ref();
  340. // 表单验证
  341. // 确定密码验证
  342. // const validatePass = (rule, value, callback) => {
  343. // if (
  344. // !/^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\._\+(){}])[0-9a-zA-Z!@#$%^&*,\\._\+(){}]{8,20}$/.test(
  345. // value
  346. // )
  347. // ) {
  348. // callback(new Error("请输入8-20位正确密码(大小写字母·字符·数字)"));
  349. // } else if (ruleForm.nowpass != ruleForm.correctpass) {
  350. // callback(new Error("输入的两次密码不一致"));
  351. // } else {
  352. // callback();
  353. // }
  354. // };
  355. const rules = reactive({
  356. oldpass: [
  357. {
  358. required: true,
  359. message: "原密码不能为空",
  360. trigger: "blur",
  361. },
  362. ],
  363. nowpass: [
  364. {
  365. required: true,
  366. message: "新密码不能为空",
  367. trigger: "blur",
  368. },
  369. // {
  370. // min: 8,
  371. // max: 20,
  372. // pattern:
  373. // /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\._\+(){}])[0-9a-zA-Z!@#$%^&*,\\._\+(){}]{8,20}$/,
  374. // message: "请输入8-20位正确密码(大小写字母·字符·数字)",
  375. // trigger: "blur",
  376. // },
  377. ],
  378. correctpass: [
  379. {
  380. required: true,
  381. message: "确认密码不能为空",
  382. trigger: "blur",
  383. },
  384. // { validator: validatePass, trigger: "blur" },
  385. ],
  386. });
  387. const messageNum = ref(store.state.messageNum); // 信息条数
  388. // const messageNum = computed(() => {
  389. // console.log(store.state.messageNum);
  390. // store.state.messageNum
  391. // });
  392. // 操作说明
  393. const operateShow = ref(false);
  394. const operateList = ref();
  395. const lookDocx = ref(); // 预览的这个文件
  396. // 预览文档
  397. const previewShow = ref(false);
  398. const previewLoading = ref(false);
  399. // 联系我们
  400. const contactShow = ref(false);
  401. // 监控消息通知数量
  402. // watch(
  403. // () => store.state.user.activeIndex,
  404. // (newValue, oldValue) => {
  405. // titlenumber.value = newValue;
  406. // console.log(newValue, "路由地址");
  407. // }
  408. // );
  409. const dateTime = ref(
  410. dayjs().format("YYYY-MM-DD") + ` 星期四 ` + dayjs().format("HH:mm:ss")
  411. ); // 时间
  412. // 选择菜单
  413. // const handleSelect = (key, keyPath) => {
  414. // store.commit("navbarUpdata", key);
  415. // activeIndex.value = key;
  416. // };
  417. // 展开按钮
  418. const SpreadMenu = (flag) => {
  419. store.commit("menuClose", flag);
  420. menuclose.value = flag;
  421. };
  422. // 修改密码
  423. const uppassword = () => {
  424. uppasswordShow.value = true;
  425. };
  426. const uppasswordClose = () => {
  427. uppasswordShow.value = false;
  428. ruleFormRef.value.resetFields();
  429. };
  430. // 提交修改密码表单
  431. const submitForm = async (formEl) => {
  432. if (!formEl) return;
  433. await formEl.validate(async (valid, fields) => {
  434. if (valid) {
  435. let data = {
  436. oldPassword: ruleForm.oldpass,
  437. newPassword: ruleForm.nowpass,
  438. confirmPassword: ruleForm.correctpass,
  439. };
  440. let resUpdata = await axios({
  441. method: "post",
  442. url: api.value + "/login/ChangePassword",
  443. headers: {
  444. tokenP: sessionStorage.getItem("tokenP"),
  445. user_head: sessionStorage.getItem("userhead"),
  446. },
  447. data: data,
  448. });
  449. if (resUpdata.data.code == 200) {
  450. ElMessage({
  451. type: "success",
  452. showClose: true,
  453. message: resUpdata.data.message,
  454. center: true,
  455. });
  456. sessionStorage.removeItem("tokenP");
  457. sessionStorage.removeItem("userName");
  458. sessionStorage.removeItem("tokenP");
  459. sessionStorage.removeItem("roleId");
  460. sessionStorage.removeItem("userhead");
  461. sessionStorage.removeItem("provinceId");
  462. sessionStorage.removeItem("cityId");
  463. sessionStorage.removeItem("districtId");
  464. sessionStorage.removeItem("address");
  465. sessionStorage.removeItem("addressId");
  466. uppasswordShow.value = false;
  467. ruleFormRef.value.resetFields();
  468. router.removeRoute("jianguanCloud");
  469. ElNotification({
  470. type: "warning",
  471. title: "提示!!!",
  472. message: "密码已修改,2s后退出到登录页面",
  473. // duration: 0,
  474. // position: "top-right",
  475. });
  476. setTimeout(() => {
  477. router.push({ path: "/" });
  478. }, 2000);
  479. } else {
  480. ElMessage({
  481. type: "error",
  482. showClose: true,
  483. message: resUpdata.data.message,
  484. center: true,
  485. });
  486. }
  487. } else {
  488. console.log("error submit!", fields);
  489. }
  490. });
  491. };
  492. // 重置表单
  493. const resetForm = (formEl) => {
  494. // console.log("重置表单");
  495. if (!formEl) return;
  496. formEl.resetFields();
  497. };
  498. // 信息中心
  499. const messageClick = () => {
  500. router.push({
  501. path: "/delivery/message",
  502. });
  503. };
  504. // 监测中心
  505. const monitoringClick = () => {
  506. router.push({
  507. path: "/delivery/monitoring",
  508. });
  509. };
  510. // 操作说明
  511. const operateClick = async () => {
  512. operateShow.value = true;
  513. let res = await axios({
  514. method: "get",
  515. url: api.value + "/login/operatingInstructions",
  516. headers: {
  517. tokenP: sessionStorage.getItem("tokenP"),
  518. user_head: sessionStorage.getItem("userhead"),
  519. },
  520. });
  521. console.log(res, "操作说明列表");
  522. if (res.data.code == 200) {
  523. operateList.value = res.data.data;
  524. } else {
  525. ElMessage({
  526. type: "error",
  527. showClose: true,
  528. message: res.data.message,
  529. center: true,
  530. });
  531. }
  532. };
  533. const downFile = (flag) => {
  534. window.location.href = operateList.value[flag].url;
  535. };
  536. const operateClose = () => {
  537. operateShow.value = false;
  538. };
  539. // 预览文档弹窗
  540. const lookFile = (flag) => {
  541. let urls =
  542. "https://jgy-1325577833.cos.ap-guangzhou.myqcloud.com/%E7%9C%81%E7%BA%A7%E7%AE%A1%E7%90%86%E5%91%98_%E6%93%8D%E4%BD%9C%E8%AF%B4%E6%98%8E.docx";
  543. // lookDocx.value = urls;
  544. lookDocx.value = operateList.value[flag].url;
  545. previewShow.value = true;
  546. previewLoading.value = true;
  547. };
  548. const previewClose = () => {
  549. previewShow.value = false;
  550. lookDocx.value = "";
  551. };
  552. // 预览功能
  553. const renderedHandler = () => {
  554. console.log("渲染完成");
  555. previewLoading.value = false;
  556. };
  557. const errorHandler = () => {
  558. console.log("渲染失败");
  559. previewLoading.value = false;
  560. ElMessage({
  561. type: "error",
  562. showClose: true,
  563. message: "预览失败",
  564. center: true,
  565. });
  566. };
  567. // 联系我们
  568. const contactClick = () => {
  569. contactShow.value = true;
  570. };
  571. const contactClose = () => {
  572. contactShow.value = false;
  573. };
  574. const loginOut = () => {
  575. ElMessageBox.confirm("是否退出登录?", "提示", {
  576. confirmButtonText: "确认",
  577. cancelButtonText: "取消",
  578. type: "warning",
  579. })
  580. .then(() => {
  581. sessionStorage.removeItem("userName");
  582. sessionStorage.removeItem("token");
  583. sessionStorage.removeItem("roleList");
  584. sessionStorage.removeItem("btnRoles");
  585. sessionStorage.removeItem("sidevarItem");
  586. router.push({
  587. path: `/delivery/login`,
  588. });
  589. router.removeRoute("jianguanCloud");
  590. ElMessage({
  591. type: "success",
  592. message: "退出成功",
  593. });
  594. })
  595. .catch(() => {
  596. ElMessage({
  597. type: "info",
  598. message: "已取消登录",
  599. });
  600. });
  601. };
  602. watch(
  603. () => sessionStorage.getItem("messageNum"),
  604. (newValue) => {
  605. console.log(newValue,'监听 信息条数');
  606. const storedData = sessionStorage.getItem('messageNum');
  607. if (newValue !== storedData) {
  608. messageNum.value = newValue; // 只在 sessionStorage 变化时更新,避免无限循环
  609. }
  610. },
  611. { immediate: true }
  612. ); // 使用 immediate: true 来立即执行一次回调函数,以处理初始化情况
  613. onBeforeMount(() => {
  614. btnRoles.value = JSON.parse(sessionStorage.getItem("btnRoles"));
  615. console.log(btnRoles.value);
  616. });
  617. onMounted(() => {
  618. api.value = store.state.user.api;
  619. activeIndex.value = store.state.user.navbar;
  620. username.value = sessionStorage.getItem("userName");
  621. setInterval(() => {
  622. var week = ["日", "一", "二", "三", "四", "五", "六"];
  623. var datas = dayjs().day();
  624. dateTime.value =
  625. dayjs().format("YYYY-MM-DD") +
  626. ` 星期${week[datas]} ` +
  627. dayjs().format("HH:mm:ss");
  628. }, 1000);
  629. axios({
  630. method: "get",
  631. url: api.value + "/drone-message/unread",
  632. headers: {
  633. token: sessionStorage.getItem("token"),
  634. user_head: sessionStorage.getItem("userhead"),
  635. },
  636. }).then((res) => {
  637. console.log(res, "未读信息条数");
  638. if (res.data.data.unread > 0) {
  639. sessionStorage.setItem("messageNum", res.data.data.unread);
  640. messageNum.value = res.data.data.unread;
  641. store.state.messageNum = res.data.data.unread;
  642. } else {
  643. sessionStorage.setItem("messageNum", "");
  644. messageNum.value = "";
  645. store.state.messageNum = ""
  646. }
  647. });
  648. });
  649. </script>
  650. <style scoped lang="scss">
  651. .el-menu--horizontal {
  652. border-bottom: none;
  653. display: flex;
  654. align-items: center;
  655. height: 64px;
  656. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  657. background-color: #fff;
  658. // box-shadow: 5px 5px 10px 0px rgba(213, 228, 252, 1);
  659. .logo {
  660. left: 90px;
  661. display: flex;
  662. align-items: center;
  663. span {
  664. margin-left: 20px;
  665. font-size: 24px;
  666. font-weight: 600;
  667. }
  668. }
  669. .login {
  670. color: #000;
  671. display: flex;
  672. align-items: center;
  673. position: absolute;
  674. right: 10px;
  675. top: 17px;
  676. // 信息
  677. .message {
  678. margin: 0 28px 0 6px;
  679. cursor: pointer;
  680. display: flex;
  681. align-items: center;
  682. span {
  683. color: rgba(102, 102, 102, 1);
  684. padding: 0 0 0 12px;
  685. }
  686. }
  687. // 监测中心
  688. .monitoring {
  689. margin: 0 28px 0 6px;
  690. cursor: pointer;
  691. display: flex;
  692. align-items: center;
  693. span {
  694. color: rgba(0, 97, 255, 1);
  695. padding: 0 0 0 5px;
  696. }
  697. }
  698. .dateTime {
  699. margin-right: 20px;
  700. }
  701. .el-badge {
  702. display: flex;
  703. align-items: center;
  704. // :deep(.el-badge__content) {
  705. // width: 2px;
  706. // height: 14px;
  707. // }
  708. }
  709. .items-center {
  710. margin-left: 20px;
  711. }
  712. .name {
  713. height: 20px;
  714. line-height: 20px;
  715. text-decoration: underline;
  716. padding: 0 10px;
  717. margin: 0 10px;
  718. border-left: 2px solid #ccc;
  719. }
  720. .link {
  721. display: flex;
  722. align-items: center;
  723. }
  724. .switchButton {
  725. cursor: pointer;
  726. }
  727. }
  728. .login:focus {
  729. outline: none;
  730. }
  731. .fold {
  732. width: 46px;
  733. height: 65px;
  734. }
  735. .fold:hover {
  736. cursor: pointer;
  737. background-color: rgba(67, 146, 249, 0.1);
  738. }
  739. }
  740. .cockpit {
  741. background-color: #000;
  742. }
  743. // 详情
  744. :deep(.pw) {
  745. border-radius: 11px;
  746. .el-dialog__header {
  747. border-radius: 11px 11px 0 0;
  748. background: rgba(237, 241, 245, 1);
  749. font-weight: 600;
  750. margin: 0;
  751. height: 32px;
  752. .el-dialog__headerbtn {
  753. outline: none;
  754. }
  755. }
  756. .el-dialog__body {
  757. .options {
  758. display: flex;
  759. flex-direction: row-reverse;
  760. .el-form-item__content {
  761. margin-left: 0 !important;
  762. flex: none;
  763. }
  764. .queding {
  765. background: linear-gradient(
  766. 90deg,
  767. rgb(38, 151, 255) 0%,
  768. rgb(102, 181, 255) 100%
  769. );
  770. border: none !important;
  771. color: #fff;
  772. // border: 0.5px solid rgba(9, 101, 98, 1) !important;
  773. }
  774. }
  775. }
  776. }
  777. // 操作说明
  778. :deep(.operate) {
  779. // height: 420px;
  780. border-radius: 11px;
  781. .el-dialog__header {
  782. border-radius: 11px 11px 0 0;
  783. background: rgba(237, 241, 245, 1);
  784. font-weight: 600;
  785. margin: 0;
  786. .el-dialog__headerbtn {
  787. outline: none;
  788. }
  789. }
  790. .el-dialog__body {
  791. padding: 0 30px 0 30px;
  792. .operateUl {
  793. p {
  794. width: 220px;
  795. color: rgba(46, 176, 241, 1);
  796. display: flex;
  797. justify-content: space-between;
  798. span {
  799. cursor: pointer;
  800. }
  801. }
  802. }
  803. .options {
  804. margin: 20px 0;
  805. display: flex;
  806. flex-direction: row-reverse;
  807. .queding {
  808. margin-left: 20px;
  809. background: linear-gradient(
  810. 90deg,
  811. rgba(38, 151, 255, 1) 0%,
  812. rgba(102, 181, 255, 1) 100%
  813. );
  814. border: none;
  815. }
  816. .quxiao {
  817. border: 1px solid rgba(43, 151, 252, 1);
  818. color: rgba(43, 151, 252, 1);
  819. }
  820. }
  821. }
  822. }
  823. // 预览文档
  824. :deep(.preview) {
  825. border-radius: 11px;
  826. .el-dialog__header {
  827. border-radius: 11px 11px 0 0;
  828. background: rgba(237, 241, 245, 1);
  829. font-weight: 600;
  830. margin: 0;
  831. .el-dialog__headerbtn {
  832. outline: none;
  833. }
  834. }
  835. .el-dialog__body {
  836. padding: 20px;
  837. height: 800px;
  838. .pre {
  839. height: 100%;
  840. .vue-office-docx {
  841. height: 100%;
  842. .vue-office-docx-main {
  843. height: 100%;
  844. }
  845. }
  846. }
  847. }
  848. }
  849. </style>
  850. <style lang="scss">
  851. .el-overlay {
  852. .el-message-box__btns {
  853. .el-button--primary {
  854. background: linear-gradient(
  855. 90deg,
  856. rgb(38, 151, 255) 0%,
  857. rgb(102, 181, 255) 100%
  858. );
  859. }
  860. }
  861. .el-overlay-dialog {
  862. .pw {
  863. border-radius: 11px;
  864. .el-dialog__header {
  865. border-radius: 11px 11px 0 0;
  866. background: rgba(237, 241, 245, 1);
  867. font-weight: 600;
  868. margin: 0;
  869. .el-dialog__headerbtn {
  870. outline: none;
  871. }
  872. }
  873. .el-dialog__body {
  874. padding: 30px 20px 10px 20px;
  875. .el-input {
  876. width: 200px;
  877. }
  878. .options {
  879. margin-left: 170px;
  880. }
  881. }
  882. }
  883. }
  884. }
  885. </style>