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.

895 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
4 weeks 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
4 weeks ago
4 months ago
4 months ago
4 months ago
2 years ago
2 years ago
4 weeks ago
4 weeks 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
4 weeks ago
2 years ago
4 weeks ago
2 years ago
2 years ago
2 years ago
4 months ago
3 years ago
2 years ago
4 weeks ago
4 weeks 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
4 weeks ago
2 years ago
2 years ago
2 years ago
5 months ago
4 weeks ago
5 months ago
2 years ago
4 weeks ago
4 months ago
4 weeks ago
4 months ago
4 weeks ago
4 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
3 years ago
2 years ago
2 years ago
4 weeks ago
2 years ago
4 weeks ago
5 months ago
4 weeks 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
4 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
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 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. <el-container v-if="localConfig.normal.displayTab">
  127. <common-tab></common-tab>
  128. <el-main style="margin-top: 84px;">
  129. <keep-alive>
  130. <router-view :key="$route.fullPath"></router-view>
  131. </keep-alive>
  132. </el-main>
  133. </el-container>
  134. <el-container v-else>
  135. <el-main style="margin-top: 50px;">
  136. <router-view></router-view>
  137. </el-main>
  138. </el-container>
  139. </el-container>
  140. </div>
  141. <div class="homeBG" v-if="false"></div>
  142. <!-- 修改密码弹框 -->
  143. <el-dialog title="修改密码" :visible.sync="dialogVisible" width="30%" :close-on-click-modal="false">
  144. <el-form :model="form" :rules="rules" ref="ruleForm" label-width="100px">
  145. <el-form-item label="旧密码" prop="oldPassWord">
  146. <el-input v-model="form.oldPassWord" autocomplete="new-password" show-password></el-input>
  147. </el-form-item>
  148. <el-form-item label="新密码" prop="newPassWord">
  149. <el-input v-model="form.newPassWord" autocomplete="new-password" show-password></el-input>
  150. </el-form-item>
  151. <el-form-item label="确认密码" prop="newPassWord">
  152. <el-input v-model="confirmpassword" type="password" autocomplete="new-password" show-password></el-input>
  153. </el-form-item>
  154. </el-form>
  155. <span slot="footer" class="dialog-footer">
  156. <el-button @click="dialogVisible = false"> </el-button>
  157. <el-button type="primary" @click="determine"> </el-button>
  158. </span>
  159. </el-dialog>
  160. <!--通用本地参数设置-->
  161. <el-dialog title="本地参数设置" :visible.sync="dialogWin.LocalConfig" :close-on-click-modal="false" :append-to-body="true"
  162. fullscreen>
  163. <LocalConfig />
  164. </el-dialog>
  165. </div>
  166. </template>
  167. <script>
  168. ///api/app/item/in-filter
  169. import router from "@/router";
  170. import { getapi, postapi } from "@/api/api";
  171. import { mapState } from "vuex";
  172. import { getTreeNode, madeTree } from "../utlis/tree";
  173. import { deepCopy } from "@/utlis/proFunc";
  174. import LocalConfig from "../components/common/LocalConfig.vue";;
  175. import { setDBCom, getDBCom, clearDBCom } from "../utlis/indexedDB";
  176. import CommonTab from '../components/common/CommonTab.vue'
  177. export default {
  178. components: {
  179. LocalConfig,
  180. CommonTab
  181. },
  182. data() {
  183. return {
  184. activeIndex: "0",
  185. menuPriv: [], // 菜单权限
  186. className: "",
  187. index: 1,
  188. isCollapse: false,
  189. user: "",
  190. dialogVisible: false,
  191. password: "",
  192. form: {
  193. oldPassWord: "",
  194. newPassWord: "",
  195. },
  196. confirmpassword: "",
  197. rules: {
  198. oldPassWord: [
  199. { required: true, message: "请输入旧密码", trigger: "blur" },
  200. ],
  201. newPassWord: [
  202. { required: true, message: "请输入新密码", trigger: "blur" },
  203. ],
  204. },
  205. localConfig: {
  206. normal: { // 常规参数
  207. isDevTool: false, // 壳端是否显示打开调试工具的按钮
  208. displayTab: false// 是否显示标签页
  209. }
  210. },
  211. LocalConfigInit: {},
  212. lsysConfig: {
  213. apiurl: "http://10.1.12.140:9529",
  214. softName: "创业体检管理系统"
  215. },
  216. };
  217. },
  218. computed: {
  219. ...mapState(["window", "dialogWin", "sysConfig"]),
  220. BGHeight(){
  221. return String(this.window.pageHeight - 60) + 'px'
  222. },
  223. },
  224. created() {
  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. },
  406. localDBclear() {
  407. clearDBCom()
  408. .then(() => {
  409. this.$message.success({ showClose: true, message: '操作成功!' })
  410. })
  411. .catch(err => {
  412. console.error(err)
  413. this.$message.error({ showClose: true, message: err.message })
  414. })
  415. },
  416. //打开客户端调试工具
  417. toggleDevTools() {
  418. if (!this.$peisAPI) {
  419. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  420. return;
  421. }
  422. this.$peisAPI.toggleDevTools();
  423. },
  424. // 打开客户端设置
  425. clientConfigShow() {
  426. if (!this.$peisAPI) {
  427. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
  428. return
  429. }
  430. this.$peisAPI.clientConfigShow();
  431. },
  432. // 最小化
  433. windowMin() {
  434. if (!this.$peisAPI) {
  435. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  436. return;
  437. }
  438. this.$peisAPI.windowMin();
  439. },
  440. btnMax() {
  441. if (!this.$peisAPI) {
  442. this.$message.info("此功能,需要在壳客户端才可运行!")
  443. return
  444. }
  445. this.$peisAPI.windowMax();
  446. },
  447. // 刷新
  448. reloadIgnoringCache() {
  449. if (!this.$peisAPI) {
  450. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  451. return;
  452. }
  453. this.$peisAPI.reloadIgnoringCache();
  454. },
  455. // 最大化
  456. windowMax() {
  457. if (!this.$peisAPI) {
  458. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  459. return;
  460. }
  461. this.$peisAPI.windowMax();
  462. },
  463. windowClose() {
  464. if (!this.$peisAPI) {
  465. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" });
  466. return;
  467. }
  468. this.$peisAPI.windowClose();
  469. },
  470. },
  471. // components: { router },
  472. };
  473. </script>
  474. <style scoped>
  475. @import "../assets/css/global_card.css";
  476. .homeBG {
  477. background-color: white;
  478. background-image: url('/public/pic/BG.png');
  479. background-size: cover;
  480. height: v-bind("BGHeight");
  481. width: 100%;
  482. }
  483. :deep .el-dropdown-menu__item {
  484. color: #52555f;
  485. font-size: 14px;
  486. font-weight: 400;
  487. font-family: "NotoSansSC-Regular";
  488. }
  489. .dropdownmain:hover,
  490. .el-dropdown-menu__item:not(.is-disabled):hover {
  491. background-color: rgba(20, 96, 243, 0.1);
  492. color: #396ffa;
  493. /* color: #2BCA84; */
  494. font-weight: 700;
  495. font-size: 14px;
  496. font-family: "NotoSansSC-Bold";
  497. }
  498. .titleimg :hover {
  499. width: 30px;
  500. background-color: rgb(34, 149, 98);
  501. z-index: 99;
  502. }
  503. .el-dropdown-link:hover {
  504. /* background-color: rgb(202, 249, 203); */
  505. color: #396ffa;
  506. font-weight: 700;
  507. /* background-color: ; */
  508. /* border-top-left-radius: 5px;
  509. border-top-right-radius: 5px; */
  510. font-family: "NotoSansSC-Bold";
  511. }
  512. .dropdowncolor {
  513. font-size: 12px;
  514. }
  515. .el-dropdown {
  516. color: rgb(140, 135, 134);
  517. font-size: 12px;
  518. }
  519. .currentuser {
  520. width: 32px;
  521. height: 32px;
  522. position: relative;
  523. right: 2%;
  524. top: 10px;
  525. color: #000;
  526. font-size: 18px;
  527. z-index: 99;
  528. }
  529. .registrationimgimges {
  530. width: 20px;
  531. height: 20px;
  532. position: absolute;
  533. left: -15px;
  534. top: 15px;
  535. }
  536. .commonsettingimg {
  537. width: 20px;
  538. height: 20px;
  539. position: absolute;
  540. left: -15px;
  541. top: 15px;
  542. }
  543. .chargeimg {
  544. position: absolute;
  545. left: -15px;
  546. top: 15px;
  547. }
  548. .basicimg {
  549. position: absolute;
  550. left: -17px;
  551. top: 15px;
  552. }
  553. .iconimg {
  554. position: absolute;
  555. left: 0px;
  556. top: 10px;
  557. }
  558. .el-dropdown-link {
  559. font-size: 14px;
  560. margin: 0;
  561. font-weight: 400;
  562. color: #52555f;
  563. font-family: "NotoSansSC-Regular";
  564. }
  565. .principalheader {
  566. background-color: #fff;
  567. opacity: 1;
  568. /* opacity: 0.8;
  569. opacity: 0.8; */
  570. color: #ccc;
  571. border: 1px solid #ccc;
  572. }
  573. .el-dropdown-item {
  574. text-align: center;
  575. }
  576. /*
  577. .el-dropdown-menu {
  578. text-align: center;
  579. overflow: scroll;
  580. max-height: 500px;
  581. width: 150px;
  582. overflow-x: hidden;
  583. margin-left: 5%;
  584. }
  585. */
  586. .el-header {
  587. position: fixed;
  588. padding: 0 10px;
  589. /* top:0;
  590. left: 0; */
  591. width: 100%;
  592. overflow: hidden;
  593. overflow: auto;
  594. z-index: 999;
  595. }
  596. .el-container {
  597. /* position: fixed; */
  598. width: 100%;
  599. flex-direction: column;
  600. }
  601. .el-menu {
  602. border-right: none;
  603. }
  604. .navs {
  605. display: flex;
  606. align-items: center;
  607. /* justify-content: space-between; */
  608. flex-flow: 1;
  609. }
  610. ::v-deep .el-card__body {
  611. /* height: 90vh; */
  612. height: 100%;
  613. overflow-y: auto;
  614. }
  615. .maintitle {
  616. width: 180px;
  617. font-size: 20px;
  618. font-weight: 600;
  619. color: #232748;
  620. margin-left: 10px;
  621. font-family: "NotoSansSC-Bold";
  622. }
  623. ::v-deep .el-dropdown-menu item:not(.is-disabled) {
  624. color: #fff;
  625. }
  626. .el-header {
  627. height: 40px;
  628. }
  629. ::v-deep .el-select-dropdown {
  630. background: #ccc;
  631. }
  632. .operateimg {
  633. position: relative;
  634. left: 0;
  635. top: 5px;
  636. }
  637. .el-aside {
  638. /* height: calc(100vh, -70px); */
  639. height: calc(100vh - 0px);
  640. /* height: 100%; */
  641. height: 91.5vh;
  642. /* height: 100%; */
  643. /* height: calc(100vh, -0px); */
  644. }
  645. .el-main {
  646. height: calc(100vh, -200px);
  647. }
  648. .el-menu-vertical-demo .el-menu {
  649. /* min-height: 100vh; */
  650. height: calc(100vh, -70px);
  651. }
  652. .btn {
  653. width: 120px;
  654. color: #000;
  655. font-weight: 700;
  656. /* margin-left: 60%; */
  657. /* position: relative;
  658. right: -70%; */
  659. margin-left: auto;
  660. }
  661. .collapseandunfoled {
  662. text-align: center;
  663. line-height: 40px;
  664. display: block;
  665. font-size: 18px;
  666. font-weight: 700;
  667. color: #fff;
  668. }
  669. /* .actived {
  670. color: #396FFA!important;
  671. border-bottom: 4px solid #396FFA;
  672. font-weight: 700;
  673. } */
  674. .actived .el-dropdown-link {
  675. color: #396ffa !important;
  676. font-weight: 700;
  677. font-family: "NotoSansSC-Bold";
  678. }
  679. .actived .el-dropdown-link:after {
  680. content: "";
  681. width: 100%;
  682. height: 3px;
  683. background-color: #396ffa;
  684. position: absolute;
  685. bottom: 4px;
  686. left: 0;
  687. }
  688. ::v-deep .el-submenu__title {
  689. color: #FF0000;
  690. }
  691. ::v-deep .el-menu--horizontal>.el-submenu .el-submenu__title {
  692. font-size: 14px;
  693. height: 47px;
  694. line-height: 47px;
  695. font-weight: 700;
  696. font-family: "NotoSansSC-Bold";
  697. color: #52555f;
  698. border-bottom: 3px solid #396ffa;
  699. }
  700. /* ::v-deep .submenutitle.is-active .el-submenu__title{
  701. border-bottom:none
  702. } */
  703. ::v-deep .submenutitle .el-submenu__title {
  704. height: 36px !important;
  705. line-height: 36px !important;
  706. }
  707. ::v-deep .el-menu--horizontal>.el-menu-item {
  708. height: 40px;
  709. line-height: 40px;
  710. }
  711. ::v-deep .el-submenu__title {
  712. padding: 0 5px 0 5px !important;
  713. }
  714. ::v-deep .el-menu--popup {
  715. min-width: auto !important;
  716. /* padding: 5px 10px !important; */
  717. }
  718. ::v-deep .el-submenu .el-menu-item {
  719. min-width: auto !important;
  720. }
  721. ::v-deep .el-menu--horizontal .el-menu .el-menu-item,
  722. .el-menu--horizontal .el-menu .el-submenu__title {
  723. font-size: 14px;
  724. font-weight: 400;
  725. font-family: "NotoSansSC-Regular";
  726. color: #52555f;
  727. }
  728. :v-deep .el-menu-item .is-active {
  729. background-color: #247bb4 !important;
  730. }
  731. ::v-deep .el-menu--horizontal .el-menu-item:not(.is-disabled):focus,
  732. .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
  733. background-color: rgba(20, 96, 243, 0.1);
  734. font-size: 14px;
  735. font-weight: 700;
  736. font-family: "NotoSansSC-Bold";
  737. color: #396ffa;
  738. }
  739. /* ::v-deep .el-menu--horizontal > .el-submenu .el-submenu__icon-arrow {
  740. display: none;
  741. } */
  742. ::v-deep .el-menu--horizontal>.el-submenu .el-submenu__icon-arrow {
  743. vertical-align: middle;
  744. margin-left: 8px;
  745. margin-top: -3px;
  746. position: absolute;
  747. top: 14px;
  748. right: 4px;
  749. }
  750. ::v-deep .submenutitle .el-submenu__title {
  751. font-size: 14px !important;
  752. font-weight: 400 !important;
  753. font-family: "NotoSansSC-Regular" !important;
  754. color: #52555f !important;
  755. }
  756. ::v-deep .submenutitle .el-submenu__title:hover {
  757. background-color: rgba(20, 96, 243, 0.1) !important;
  758. font-size: 14px !important;
  759. font-weight: 700 !important;
  760. font-family: "NotoSansSC-Bold" !important;
  761. color: #396ffa !important;
  762. }
  763. ::v-deep .submenutitle .el-submenu__title {
  764. height: 36px !important;
  765. line-height: 36px !important;
  766. }
  767. ::v-deep .submenutitle .el-submenu__title .el-submenu__icon-arrow {
  768. font-size: 14px !important;
  769. }
  770. ::v-deep .el-menu--horizontal .el-menu .el-menu-item.is-active {
  771. background-color: rgba(20, 96, 243, 0.1) !important;
  772. font-size: 14px !important;
  773. font-weight: 700 !important;
  774. font-family: "NotoSansSC-Bold" !important;
  775. color: #396ffa !important;
  776. }
  777. /* ::v-deep .el-menu--horizontal .el-menu .el-submenu.is-active .el-submenu__title{
  778. background-color: rgba(20, 96, 243, 0.1) !important;
  779. font-size: 14px !important;
  780. font-weight: 700 !important;
  781. font-family: "NotoSansSC-Bold" !important;
  782. color: #396ffa !important;
  783. } */
  784. ::v-deep .el-menu--horizontal .el-menu .el-menu-item,
  785. .el-menu--horizontal .el-menu .el-submenu__title {
  786. padding: 0 15px !important;
  787. }
  788. ::v-deep .el-menu.el-menu--horizontal {
  789. border-bottom: none;
  790. }
  791. /* ::v-deep .el-menu--popup-right-start{
  792. margin-left: 15px !important;
  793. } */
  794. ::v-deep .el-dropdown-menu__item,
  795. .el-menu-item {
  796. font-size: 14px;
  797. padding: 0 5px;
  798. }
  799. ::v-deep .el-menu-demo .el-icon-arrow-down:before {
  800. content: "";
  801. }
  802. /* .project-dropdown{
  803. max-height:300px;
  804. overflow: auto;
  805. }
  806. .project-dropdown::-webkit-scrollbar
  807. {
  808. width: 5px;
  809. height: 5px;
  810. background-color: #F5F5F5;
  811. }
  812. .project-dropdown::-webkit-scrollbar-track
  813. {
  814. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  815. border-radius: 10px;
  816. background-color: #F5F5F5;
  817. } */
  818. </style>