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.

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