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.

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