You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

853 lines
24 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
5 months ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
5 months ago
4 months ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
5 months ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 months ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
4 months ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div style="background: #F4F8FF">
  3. <div style="position: absolute; top:15px;right:5px; z-index: 1000;">
  4. <el-tooltip class="item" content="刷新" placement="left">
  5. <i class="el-icon-refresh" @click="reloadIgnoringCache"
  6. style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
  7. </el-tooltip>
  8. <i class="el-icon-minus" @click="windowMin" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
  9. <i class="el-icon-copy-document" @click="btnMax" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
  10. <i class="el-icon-close" @click="windowClose" style="padding-right: 5px;font-size: 22px;cursor:pointer;"></i>
  11. </div>
  12. <div>
  13. <el-container>
  14. <el-header style="height:50px; line-height: 40px" class="principalheader">
  15. <div class="navs">
  16. <img src="@/assets/images/logo2.png" alt="" style="width: 24px; height: 24px" />
  17. <div class="maintitle">{{ lsysConfig.softName }}</div>
  18. <!--动态生成菜单 add by pengj 'text-align: center;width:' + (window.pageWidth - 280) + 'px;display:flex;'
  19. <div :style="'display:flex;justify-content:center;width:' + (window.pageWidth - 300) + 'px;'">
  20. <div v-for="menu in menuPriv" :key="menu.id"
  21. :class="className == menu.displayName ? `actived ${menu.displayName}` : menu.displayName">
  22. <el-dropdown @command="handleCommand" class="">
  23. <span class="el-dropdown-link" style="margin:0 5px;">{{ menu.displayName }}</span>
  24. <el-dropdown-menu slot="dropdown" class="project-dropdown">
  25. <el-dropdown-item v-for="page in menu.treeChildren" :key="page.id"
  26. :command="beforeHandleCommand(menu.displayName, page.routeUrl)" class="dropdownmain">
  27. {{ page.displayName }}
  28. </el-dropdown-item>
  29. </el-dropdown-menu>
  30. </el-dropdown>
  31. </div>
  32. </div>
  33. -->
  34. <!--动态生成菜单支持多级 add by pengj -->
  35. <div :style="`display:flex;justify-content:center;width: ${(window.pageWidth - 450)}px;`">
  36. <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect"
  37. style="display: flex">
  38. <!--1级菜单-->
  39. <template v-for="menu1 in menuPriv">
  40. <el-menu-item :key="menu1.id" v-if="menu1.menuType == '1'" :index="menu1.id">
  41. {{ menu1.displayName }}
  42. </el-menu-item>
  43. </template>
  44. <template v-for="menu1 in menuPriv">
  45. <el-submenu :popper-append-to-body="false" :key="menu1.id" v-if="menu1.menuType == '0'"
  46. :index="menu1.id">
  47. <template slot="title">{{ menu1.displayName }}</template>
  48. <!--2级菜单-->
  49. <template v-for="menu2 in menu1.treeChildren">
  50. <el-menu-item :key="menu2.id" v-if="menu2.menuType == '1'" :index="menu2.id">{{ menu2.displayName
  51. }}</el-menu-item>
  52. </template>
  53. <template v-for="menu2 in menu1.treeChildren">
  54. <el-submenu :popper-append-to-body="false" :key="menu2.id" v-if="menu2.menuType == '0'"
  55. :index="menu2.id" class="submenutitle">
  56. <template slot="title">
  57. <div style="padding:0 10px;margin-right: 8px;">{{ menu2.displayName }}</div>
  58. </template>
  59. <!--3级菜单-->
  60. <template v-for="menu3 in menu2.treeChildren">
  61. <el-menu-item :key="menu3.id" v-if="menu3.menuType == '1'" :index="menu3.id">{{
  62. menu3.displayName }}</el-menu-item>
  63. </template>
  64. <template v-for="menu3 in menu2.treeChildren">
  65. <el-submenu :popper-append-to-body="false" :key="menu3.id" v-if="menu3.menuType == '0'"
  66. :index="menu3.id">
  67. <template slot="title">
  68. <div style="padding:0 10px;margin-right: 8px;">{{ menu3.displayName }}</div>
  69. </template>
  70. <!--4级菜单-->
  71. <template v-for="menu4 in menu3.treeChildren">
  72. <el-menu-item :key="menu4.id" v-if="menu4.menuType == '1'" :index="menu4.id">{{
  73. menu4.displayName }}</el-menu-item>
  74. </template>
  75. <template v-for="menu4 in menu3.treeChildren">
  76. <el-submenu :popper-append-to-body="false" :key="menu4.id" v-if="menu4.menuType == '0'"
  77. :index="menu4.id">
  78. <template slot="title">
  79. <div style="padding:0 10px;margin-right: 8px;">{{ menu4.displayName }}</div>
  80. </template>
  81. </el-submenu>
  82. </template>
  83. </el-submenu>
  84. </template>
  85. </el-submenu>
  86. </template>
  87. </el-submenu>
  88. </template>
  89. </el-menu>
  90. </div>
  91. <!-- -->
  92. <div @contextmenu.prevent="onContextmenu">
  93. <img src="@/assets/images/me.png" alt="" class="currentuser" />
  94. <!-- <i class="el-icon-arrow-down el-icon--right"></i> -->
  95. <el-dropdown>
  96. <span class="el-dropdown-link" style="color: #222531; font-weight: 700">
  97. <!-- <img
  98. src="@/assets/images/frame.png"
  99. alt=""
  100. style="width: 20px; height: 20px"
  101. class="operateimg"
  102. /> -->
  103. {{ user }} <i class="el-icon-arrow-down el-icon--right"></i>
  104. </span>
  105. <el-dropdown-menu slot="dropdown">
  106. <el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
  107. <el-dropdown-item @click.native="editpassword">修改密码</el-dropdown-item>
  108. <el-dropdown-item @click.native="localSet">本地设置</el-dropdown-item>
  109. <el-dropdown-item v-if="LocalConfig.normal.isDevTool"
  110. @click.native="toggleDevTools">调试工具</el-dropdown-item>
  111. <el-dropdown-item @click.native="clientConfigShow">客户端参数</el-dropdown-item>
  112. <el-dropdown-item @click.native="localDBclear">清除本地缓存</el-dropdown-item>
  113. <!--
  114. <el-dropdown-item @click.native="windowMax"
  115. >最大化</el-dropdown-item
  116. >
  117. <el-dropdown-item @click.native="windowClose"
  118. >关闭</el-dropdown-item
  119. >
  120. -->
  121. </el-dropdown-menu>
  122. </el-dropdown>
  123. </div>
  124. </div>
  125. </el-header>
  126. <!-- 修改密码弹框 -->
  127. <el-dialog title="修改密码" :visible.sync="dialogVisible" width="30%" :close-on-click-modal="false">
  128. <el-form :model="form" :rules="rules" ref="ruleForm" label-width="100px">
  129. <el-form-item label="旧密码" prop="oldPassWord">
  130. <el-input v-model="form.oldPassWord" autocomplete="new-password" show-password></el-input>
  131. </el-form-item>
  132. <el-form-item label="新密码" prop="newPassWord">
  133. <el-input v-model="form.newPassWord" autocomplete="new-password" show-password></el-input>
  134. </el-form-item>
  135. <el-form-item label="确认密码" prop="newPassWord">
  136. <el-input v-model="confirmpassword" type="password" autocomplete="new-password" show-password></el-input>
  137. </el-form-item>
  138. </el-form>
  139. <span slot="footer" class="dialog-footer">
  140. <el-button @click="dialogVisible = false"> </el-button>
  141. <el-button type="primary" @click="determine"> </el-button>
  142. </span>
  143. </el-dialog>
  144. <el-container v-if="LocalConfig.normal.displayTab">
  145. <common-tab></common-tab>
  146. <el-main style="margin-top: 84px;">
  147. <keep-alive>
  148. <router-view></router-view>
  149. </keep-alive>
  150. </el-main>
  151. </el-container>
  152. <el-container v-else>
  153. <el-main style="margin-top: 50px;">
  154. <router-view></router-view>
  155. </el-main>
  156. </el-container>
  157. </el-container>
  158. </div>
  159. <div>
  160. <!--通用本地参数设置-->
  161. <el-dialog title="本地参数设置" :visible.sync="dialogWin.LocalConfig" :close-on-click-modal="false"
  162. :append-to-body="true" width="800px" height="600px">
  163. <LocalConfig />
  164. </el-dialog>
  165. </div>
  166. </div>
  167. </template>
  168. <script>
  169. ///api/app/item/in-filter
  170. import router from "@/router";
  171. import { getapi, postapi } from "@/api/api";
  172. import { mapState } from "vuex";
  173. import { getTreeNode, madeTree } from "../utlis/tree";
  174. import { deepCopy } from "@/utlis/proFunc";
  175. import LocalConfig from "../components/common/LocalConfig.vue";;
  176. import { setDBCom, getDBCom, clearDBCom } from "../utlis/indexedDB";
  177. import CommonTab from '../components/common/CommonTab.vue'
  178. export default {
  179. components: {
  180. LocalConfig,
  181. CommonTab
  182. },
  183. data() {
  184. return {
  185. activeIndex: "0",
  186. menuPriv: [], // 菜单权限
  187. className: "",
  188. index: 1,
  189. isCollapse: false,
  190. user: "",
  191. dialogVisible: false,
  192. password: "",
  193. form: {
  194. oldPassWord: "",
  195. newPassWord: "",
  196. },
  197. confirmpassword: "",
  198. rules: {
  199. oldPassWord: [
  200. { required: true, message: "请输入旧密码", trigger: "blur" },
  201. ],
  202. newPassWord: [
  203. { required: true, message: "请输入新密码", trigger: "blur" },
  204. ],
  205. },
  206. LocalConfig: {
  207. normal: { // 常规参数
  208. isDevTool: false, // 壳端是否显示打开调试工具的按钮
  209. displayTab:false// 是否显示标签页
  210. }
  211. },
  212. LocalConfigInit: {},
  213. lsysConfig: {
  214. apiurl: "http://10.1.12.140:9529",
  215. softName: "创业体检管理系统"
  216. }
  217. };
  218. },
  219. computed: {
  220. ...mapState(["window", "dialogWin", "sysConfig"]),
  221. },
  222. created() {
  223. let expires_in = parseInt(window.sessionStorage.getItem("expires_in"));
  224. //console.log("dqtime / expires_in",dqtime,expires_in)
  225. if (!expires_in) {
  226. router.push({ path: "/Login" });
  227. return;
  228. }
  229. try {
  230. this.lsysConfig = JSON.parse(window.sessionStorage.getItem("sysConfig"))
  231. } catch (error) {
  232. this.lsysConfig = this.sysConfig
  233. }
  234. this.password = this.changepassword;
  235. // console.log(this.password);
  236. // console.log(this.$store.state.changepassword, "ssssssssssss");
  237. this.user = window.sessionStorage.getItem("user");
  238. this.LocalConfigInit = deepCopy(this.LocalConfig)
  239. let LocalConfig = window.localStorage.getItem("LocalConfig") || null
  240. try {
  241. this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
  242. } catch (error) {
  243. console.log('window.localStorage.getItem("LocalConfig")', error)
  244. }
  245. },
  246. mounted() {
  247. //获取当前用户的菜单权限
  248. this.getUserAllPriv();
  249. // this.getUserMenuPriv();
  250. },
  251. methods: {
  252. onContextmenu(event) {
  253. if (!this.$peisAPI) return
  254. console.log('this.$peisAPI.contextMenuForPeis()')
  255. this.$peisAPI.contextMenuForPeis()
  256. .then(res => {
  257. console.log('res', res)
  258. })
  259. .catch(err => {
  260. console.log('err', err)
  261. })
  262. .finally(() => {
  263. console.log('finally')
  264. })
  265. },
  266. // 菜单操作
  267. handleSelect(key, keyPath) {
  268. // console.log(key, keyPath);
  269. // tree: any, childNodeName: any, idName: any, idVal: any
  270. let node = getTreeNode(this.menuPriv, "treeChildren", "id", key);
  271. if (node && this.$route.path !== '/' + node.routeUrl){
  272. this.$store.commit('selectMenu', node)
  273. this.$router.push({ path: node.routeUrl });
  274. }
  275. },
  276. //获取用户所有权限
  277. getUserAllPriv() {
  278. getapi("/api/app/menuinfo/getmymenuinfolist").then((res) => {
  279. if (res.code > -1) {
  280. window.sessionStorage.setItem("userPriv", JSON.stringify(res.data));
  281. let menuPriv = res.data.filter(e => { return e.menuType == '0' || e.menuType == '1' })
  282. this.menuPriv = madeTree(menuPriv, 'treeChildren', 'parentId', 'id', null)
  283. this.menuPriv = this.menuFilter(this.menuPriv)
  284. }
  285. });
  286. },
  287. //获取用户菜单树
  288. getUserMenuPriv() {
  289. getapi("/api/app/menuinfo/getmymenuinfotreelist").then((res) => {
  290. if (res.code > -1) {
  291. this.menuPriv = res.data;
  292. this.menuPriv = this.menuFilter(this.menuPriv);
  293. console.log("this.menuPriv", this.menuPriv);
  294. }
  295. });
  296. },
  297. // 过滤菜单
  298. menuFilter(menu) {
  299. return menu.filter((e) => {
  300. if (e.menuType == "0" || e.menuType == "1") {
  301. if (e.treeChildren && e.treeChildren.length > 0) {
  302. let temp = e.treeChildren.filter((e1) => {
  303. return e1.menuType == "0" || e1.menuType == "1";
  304. });
  305. if (temp.length > 0) {
  306. e.menuType = "0";
  307. e.treeChildren = this.menuFilter(e.treeChildren);
  308. } else {
  309. e.menuType = "1";
  310. }
  311. } else {
  312. e.menuType = "1";
  313. }
  314. return e;
  315. }
  316. });
  317. },
  318. handleCommand(val) {
  319. this.className = val.flag;
  320. if (this.router.path != val.command) {
  321. this.router.path = val.command;
  322. this.$router.push({ path: val.command }).catch(() => { });
  323. }
  324. // let menuId = arguments[1].$parent.$el.id
  325. // let menuList = document.getElementById(menuId)
  326. // console.log(menuList)
  327. },
  328. beforeHandleCommand(flag, command) {
  329. return {
  330. flag: flag,
  331. command: command,
  332. };
  333. },
  334. //确定修改密码按钮
  335. determine() {
  336. this.$refs.ruleForm.validate((valid) => {
  337. if (valid) {
  338. if (!this.form.oldPassWord) {
  339. this.$message.warning("请输入旧密码");
  340. } else if (this.confirmpassword != this.form.newPassWord) {
  341. this.$message.warning("二次输入的密码不一致");
  342. } else {
  343. postapi("/api/identity/users/updatepassword", this.form)
  344. .then(res => {
  345. if (res.code > -1) {
  346. console.log("修改成功");
  347. this.dialogVisible = false;
  348. }
  349. });
  350. }
  351. }
  352. });
  353. },
  354. //修改密码
  355. editpassword() {
  356. this.form.oldPassWord = ""
  357. this.confirmpassword = ""
  358. this.form.newPassWord = ""
  359. this.dialogVisible = true;
  360. },
  361. //退出登录
  362. logout() {
  363. // window.sessionStorage.removeItem("tokentype");
  364. // window.sessionStorage.removeItem("token");
  365. // window.sessionStorage.removeItem(['expires_in','tokentype','refresh_token','user','token'])
  366. window.sessionStorage.clear();
  367. this.$router.push({ path: "/login" });
  368. },
  369. // 本地设置
  370. localSet() {
  371. // this.dialogWin.LocalConfig = true
  372. this.$router.push({ path: "/LocalConfig" });
  373. },
  374. localDBclear(){
  375. clearDBCom()
  376. .then(() => {
  377. this.$message.success({showClose:true,message:'操作成功!'})
  378. })
  379. .catch(err => {
  380. console.error(err)
  381. this.$message.error({showClose:true,message:err.message})
  382. })
  383. },
  384. //打开客户端调试工具
  385. toggleDevTools() {
  386. if (!this.$peisAPI) {
  387. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  388. return;
  389. }
  390. this.$peisAPI.toggleDevTools();
  391. },
  392. // 打开客户端设置
  393. clientConfigShow() {
  394. if (!this.$peisAPI) {
  395. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
  396. return
  397. }
  398. this.$peisAPI.clientConfigShow();
  399. },
  400. // 最小化
  401. windowMin() {
  402. if (!this.$peisAPI) {
  403. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  404. return;
  405. }
  406. this.$peisAPI.windowMin();
  407. },
  408. btnMax() {
  409. if (!this.$peisAPI) {
  410. this.$message.info("此功能,需要在壳客户端才可运行!")
  411. return
  412. }
  413. this.$peisAPI.windowMax();
  414. },
  415. // 刷新
  416. reloadIgnoringCache() {
  417. if (!this.$peisAPI) {
  418. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  419. return;
  420. }
  421. this.$peisAPI.reloadIgnoringCache();
  422. },
  423. // 最大化
  424. windowMax() {
  425. if (!this.$peisAPI) {
  426. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  427. return;
  428. }
  429. this.$peisAPI.windowMax();
  430. },
  431. windowClose() {
  432. if (!this.$peisAPI) {
  433. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  434. return;
  435. }
  436. this.$peisAPI.windowClose();
  437. },
  438. },
  439. // components: { router },
  440. };
  441. </script>
  442. <style scoped>
  443. @import "../assets/css/global_card.css";
  444. :deep .el-dropdown-menu__item {
  445. color: #52555f;
  446. font-size: 14px;
  447. font-weight: 400;
  448. font-family: "NotoSansSC-Regular";
  449. }
  450. .dropdownmain:hover,
  451. .el-dropdown-menu__item:not(.is-disabled):hover {
  452. background-color: rgba(20, 96, 243, 0.1);
  453. color: #396ffa;
  454. /* color: #2BCA84; */
  455. font-weight: 700;
  456. font-size: 14px;
  457. font-family: "NotoSansSC-Bold";
  458. }
  459. .titleimg :hover {
  460. width: 30px;
  461. background-color: rgb(34, 149, 98);
  462. z-index: 99;
  463. }
  464. .el-dropdown-link:hover {
  465. /* background-color: rgb(202, 249, 203); */
  466. color: #396ffa;
  467. font-weight: 700;
  468. /* background-color: ; */
  469. /* border-top-left-radius: 5px;
  470. border-top-right-radius: 5px; */
  471. font-family: "NotoSansSC-Bold";
  472. }
  473. .dropdowncolor {
  474. font-size: 12px;
  475. }
  476. .el-dropdown {
  477. color: rgb(140, 135, 134);
  478. font-size: 12px;
  479. }
  480. .currentuser {
  481. width: 32px;
  482. height: 32px;
  483. position: relative;
  484. right: 2%;
  485. top: 10px;
  486. color: #000;
  487. font-size: 18px;
  488. z-index: 99;
  489. }
  490. .registrationimgimges {
  491. width: 20px;
  492. height: 20px;
  493. position: absolute;
  494. left: -15px;
  495. top: 15px;
  496. }
  497. .commonsettingimg {
  498. width: 20px;
  499. height: 20px;
  500. position: absolute;
  501. left: -15px;
  502. top: 15px;
  503. }
  504. .chargeimg {
  505. position: absolute;
  506. left: -15px;
  507. top: 15px;
  508. }
  509. .basicimg {
  510. position: absolute;
  511. left: -17px;
  512. top: 15px;
  513. }
  514. .iconimg {
  515. position: absolute;
  516. left: 0px;
  517. top: 10px;
  518. }
  519. .el-dropdown-link {
  520. font-size: 14px;
  521. margin: 0;
  522. font-weight: 400;
  523. color: #52555f;
  524. font-family: "NotoSansSC-Regular";
  525. }
  526. .principalheader {
  527. background-color: #fff;
  528. opacity: 1;
  529. /* opacity: 0.8;
  530. opacity: 0.8; */
  531. color: #ccc;
  532. border: 1px solid #ccc;
  533. }
  534. .el-dropdown-item {
  535. text-align: center;
  536. }
  537. /*
  538. .el-dropdown-menu {
  539. text-align: center;
  540. overflow: scroll;
  541. max-height: 500px;
  542. width: 150px;
  543. overflow-x: hidden;
  544. margin-left: 5%;
  545. }
  546. */
  547. .el-header {
  548. position: fixed;
  549. padding: 0 10px;
  550. /* top:0;
  551. left: 0; */
  552. width: 100%;
  553. overflow: hidden;
  554. overflow: auto;
  555. z-index: 999;
  556. }
  557. .el-container {
  558. /* position: fixed; */
  559. width: 100%;
  560. flex-direction: column;
  561. }
  562. .el-menu {
  563. border-right: none;
  564. }
  565. .navs {
  566. display: flex;
  567. align-items: center;
  568. /* justify-content: space-between; */
  569. flex-flow: 1;
  570. }
  571. ::v-deep .el-card__body {
  572. /* height: 90vh; */
  573. height: 100%;
  574. overflow-y: auto;
  575. }
  576. .maintitle {
  577. width: 180px;
  578. font-size: 20px;
  579. font-weight: 600;
  580. color: #232748;
  581. margin-left: 10px;
  582. font-family: "NotoSansSC-Bold";
  583. }
  584. ::v-deep .el-dropdown-menu item:not(.is-disabled) {
  585. color: #fff;
  586. }
  587. .el-header {
  588. height: 40px;
  589. }
  590. ::v-deep .el-select-dropdown {
  591. background: #ccc;
  592. }
  593. .operateimg {
  594. position: relative;
  595. left: 0;
  596. top: 5px;
  597. }
  598. .el-aside {
  599. /* height: calc(100vh, -70px); */
  600. height: calc(100vh - 0px);
  601. /* height: 100%; */
  602. height: 91.5vh;
  603. /* height: 100%; */
  604. /* height: calc(100vh, -0px); */
  605. }
  606. .el-main {
  607. height: calc(100vh,-200px);
  608. }
  609. .el-menu-vertical-demo .el-menu {
  610. /* min-height: 100vh; */
  611. height: calc(100vh, -70px);
  612. }
  613. .btn {
  614. width: 120px;
  615. color: #000;
  616. font-weight: 700;
  617. /* margin-left: 60%; */
  618. /* position: relative;
  619. right: -70%; */
  620. margin-left: auto;
  621. }
  622. .collapseandunfoled {
  623. text-align: center;
  624. line-height: 40px;
  625. display: block;
  626. font-size: 18px;
  627. font-weight: 700;
  628. color: #fff;
  629. }
  630. /* .actived {
  631. color: #396FFA!important;
  632. border-bottom: 4px solid #396FFA;
  633. font-weight: 700;
  634. } */
  635. .actived .el-dropdown-link {
  636. color: #396ffa !important;
  637. font-weight: 700;
  638. font-family: "NotoSansSC-Bold";
  639. }
  640. .actived .el-dropdown-link:after {
  641. content: "";
  642. width: 100%;
  643. height: 3px;
  644. background-color: #396ffa;
  645. position: absolute;
  646. bottom: 4px;
  647. left: 0;
  648. }
  649. ::v-deep .el-submenu__title {
  650. color: #FF0000;
  651. }
  652. ::v-deep .el-menu--horizontal>.el-submenu .el-submenu__title {
  653. font-size: 14px;
  654. height: 47px;
  655. line-height: 47px;
  656. font-weight: 700;
  657. font-family: "NotoSansSC-Bold";
  658. color: #52555f;
  659. border-bottom: 3px solid #396ffa;
  660. }
  661. /* ::v-deep .submenutitle.is-active .el-submenu__title{
  662. border-bottom:none
  663. } */
  664. ::v-deep .submenutitle .el-submenu__title {
  665. height: 36px !important;
  666. line-height: 36px !important;
  667. }
  668. ::v-deep .el-menu--horizontal>.el-menu-item {
  669. height: 40px;
  670. line-height: 40px;
  671. }
  672. ::v-deep .el-submenu__title {
  673. padding: 0 5px 0 5px !important;
  674. }
  675. ::v-deep .el-menu--popup {
  676. min-width: auto !important;
  677. /* padding: 5px 10px !important; */
  678. }
  679. ::v-deep .el-submenu .el-menu-item {
  680. min-width: auto !important;
  681. }
  682. ::v-deep .el-menu--horizontal .el-menu .el-menu-item,
  683. .el-menu--horizontal .el-menu .el-submenu__title {
  684. font-size: 14px;
  685. font-weight: 400;
  686. font-family: "NotoSansSC-Regular";
  687. color: #52555f;
  688. }
  689. :v-deep .el-menu-item .is-active {
  690. background-color: #247bb4 !important;
  691. }
  692. ::v-deep .el-menu--horizontal .el-menu-item:not(.is-disabled):focus,
  693. .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
  694. background-color: rgba(20, 96, 243, 0.1);
  695. font-size: 14px;
  696. font-weight: 700;
  697. font-family: "NotoSansSC-Bold";
  698. color: #396ffa;
  699. }
  700. /* ::v-deep .el-menu--horizontal > .el-submenu .el-submenu__icon-arrow {
  701. display: none;
  702. } */
  703. ::v-deep .el-menu--horizontal>.el-submenu .el-submenu__icon-arrow {
  704. vertical-align: middle;
  705. margin-left: 8px;
  706. margin-top: -3px;
  707. position: absolute;
  708. top: 14px;
  709. right: 4px;
  710. }
  711. ::v-deep .submenutitle .el-submenu__title {
  712. font-size: 14px !important;
  713. font-weight: 400 !important;
  714. font-family: "NotoSansSC-Regular" !important;
  715. color: #52555f !important;
  716. }
  717. ::v-deep .submenutitle .el-submenu__title:hover {
  718. background-color: rgba(20, 96, 243, 0.1) !important;
  719. font-size: 14px !important;
  720. font-weight: 700 !important;
  721. font-family: "NotoSansSC-Bold" !important;
  722. color: #396ffa !important;
  723. }
  724. ::v-deep .submenutitle .el-submenu__title {
  725. height: 36px !important;
  726. line-height: 36px !important;
  727. }
  728. ::v-deep .submenutitle .el-submenu__title .el-submenu__icon-arrow {
  729. font-size: 14px !important;
  730. }
  731. ::v-deep .el-menu--horizontal .el-menu .el-menu-item.is-active {
  732. background-color: rgba(20, 96, 243, 0.1) !important;
  733. font-size: 14px !important;
  734. font-weight: 700 !important;
  735. font-family: "NotoSansSC-Bold" !important;
  736. color: #396ffa !important;
  737. }
  738. /* ::v-deep .el-menu--horizontal .el-menu .el-submenu.is-active .el-submenu__title{
  739. background-color: rgba(20, 96, 243, 0.1) !important;
  740. font-size: 14px !important;
  741. font-weight: 700 !important;
  742. font-family: "NotoSansSC-Bold" !important;
  743. color: #396ffa !important;
  744. } */
  745. ::v-deep .el-menu--horizontal .el-menu .el-menu-item,
  746. .el-menu--horizontal .el-menu .el-submenu__title {
  747. padding: 0 15px !important;
  748. }
  749. ::v-deep .el-menu.el-menu--horizontal {
  750. border-bottom: none;
  751. }
  752. /* ::v-deep .el-menu--popup-right-start{
  753. margin-left: 15px !important;
  754. } */
  755. ::v-deep .el-dropdown-menu__item,
  756. .el-menu-item {
  757. font-size: 14px;
  758. padding: 0 5px;
  759. }
  760. ::v-deep .el-menu-demo .el-icon-arrow-down:before {
  761. content: "";
  762. }
  763. /* .project-dropdown{
  764. max-height:300px;
  765. overflow: auto;
  766. }
  767. .project-dropdown::-webkit-scrollbar
  768. {
  769. width: 5px;
  770. height: 5px;
  771. background-color: #F5F5F5;
  772. }
  773. .project-dropdown::-webkit-scrollbar-track
  774. {
  775. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  776. border-radius: 10px;
  777. background-color: #F5F5F5;
  778. } */
  779. </style>