|
@@ -1,74 +1,85 @@
|
|
|
<template>
|
|
|
- <el-container>
|
|
|
- <el-header class="shadow-menu">
|
|
|
- <el-row class="admin-header-content">
|
|
|
- <el-col :span="12">
|
|
|
- <div class="admin-logo-content">
|
|
|
- <!-- <img src="../../assets/manage/manage_logo.png" alt="" />-->
|
|
|
- 锦泓税务报告
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <!--<el-col :offset="15" :span="1">-->
|
|
|
- <!--<div class="admin-head-content" key="large">-->
|
|
|
- <!--<el-avatar :size="size" :src="circleUrl"></el-avatar>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</el-col>-->
|
|
|
- <el-col :span="12" class="just-right">
|
|
|
- <el-menu
|
|
|
- :default-active="activeIndex"
|
|
|
- class="el-menu-demo"
|
|
|
- mode="horizontal"
|
|
|
- background-color="#57ACBB"
|
|
|
- text-color="#fff"
|
|
|
- active-text-color="#fff"
|
|
|
- >
|
|
|
- <el-submenu index="2" class="rightExit">
|
|
|
- <template slot="title" :size="size" :src="circleUrl">{{
|
|
|
- userInfo.name
|
|
|
- }}</template>
|
|
|
- <el-menu-item v-if="userType == 2" index="2-1" @click="downCode(userInfo.name+'-'+userInfo.userNumber)">下载专属邀请码</el-menu-item>
|
|
|
- <el-menu-item index="2-1" @click="escape()">退出</el-menu-item>
|
|
|
- <el-menu-item index="2-1" @click="changePwd()"
|
|
|
- >修改密码</el-menu-item
|
|
|
- >
|
|
|
- </el-submenu>
|
|
|
- </el-menu>
|
|
|
-<!-- <vue-qr v-show='false' :ref="'Qrcode'+userInfo.id" :text='urlJump+userInfo.invitationCode' :size="500" :width='1' ></vue-qr>-->
|
|
|
- <vue-qr v-show='false' :ref="userInfo.name+'-'+userInfo.userNumber" :text='urlJump+userInfo.invitationCode' :size="500" :width='1' ></vue-qr>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-header>
|
|
|
- <el-container>
|
|
|
- <el-aside style="width: auto">
|
|
|
-
|
|
|
- <el-menu
|
|
|
- ref='menu'
|
|
|
- class="el-menu-vertical-demo shadow-menu aside-menu"
|
|
|
- :router="true"
|
|
|
- :default-active="active"
|
|
|
- :collapse="isCollapse"
|
|
|
- text-color="#333"
|
|
|
- active-text-color="#fff"
|
|
|
- @select="selectMenu"
|
|
|
+ <el-container style="height: 100vh; overflow: hidden">
|
|
|
+ <el-aside style="width: auto">
|
|
|
+ <el-menu
|
|
|
+ :unique-opened="true"
|
|
|
+ ref="menu"
|
|
|
+ :collapse-transition="false"
|
|
|
+ class="el-menu-vertical-demo shadow-menu aside-menu"
|
|
|
+ :router="true"
|
|
|
+ :default-active="active"
|
|
|
+ :collapse="isCollapse"
|
|
|
+ text-color="#333"
|
|
|
+ active-text-color="#fff"
|
|
|
+ @select="selectMenu"
|
|
|
+ >
|
|
|
+ <!-- <img src="../../assets/img/commons/jhTop.png" /> -->
|
|
|
+ <img v-show="!isCollapse" src="../../assets/img/commons/jhTop.png" />
|
|
|
+ <img
|
|
|
+ v-show="isCollapse"
|
|
|
+ style="menu_top_suo"
|
|
|
+ src="../../assets/img/commons/jhTopSuo.png"
|
|
|
+ />
|
|
|
+ <el-submenu
|
|
|
+ v-for="item in menuList"
|
|
|
+ :key="item.id"
|
|
|
+ :index="item.path"
|
|
|
+ v-show="item.showItem"
|
|
|
>
|
|
|
- <el-menu-item
|
|
|
- v-for="item in menuList"
|
|
|
- :key="item.id"
|
|
|
- :index="item.path"
|
|
|
- v-show="item.showItem"
|
|
|
- >
|
|
|
+ <template slot="title">
|
|
|
<i :class="item.icon"></i>
|
|
|
- <span slot="title">{{ item.name }}</span>
|
|
|
- </el-menu-item>
|
|
|
- </el-menu>
|
|
|
- </el-aside>
|
|
|
-
|
|
|
- <el-container>
|
|
|
+ <span class="menu_name">{{ item.name }}</span>
|
|
|
+ </template>
|
|
|
+ <el-menu-item-group>
|
|
|
+ <el-menu-item v-for="el in item.child" :key="el.id" :index="el.path">
|
|
|
+ <span class="menu_sub_tt"
|
|
|
+ ><span class="menu_sub_t1"></span>{{ el.name }}</span
|
|
|
+ >
|
|
|
+ </el-menu-item>
|
|
|
+ </el-menu-item-group>
|
|
|
+ </el-submenu>
|
|
|
+ </el-menu>
|
|
|
+ </el-aside>
|
|
|
+ <el-container style="height: 100vh; display: flex; flex-direction: column">
|
|
|
+ <el-header class="shadow-menu">
|
|
|
+ <el-row class="admin-header-content">
|
|
|
+ <el-col :span="12"> </el-col>
|
|
|
+
|
|
|
+ <el-col :span="12" class="just-right">
|
|
|
+ <el-menu
|
|
|
+ :default-active="activeIndex"
|
|
|
+ class="el-menu-demo"
|
|
|
+ mode="horizontal"
|
|
|
+ background-color="#57ACBB"
|
|
|
+ text-color="#fff"
|
|
|
+ active-text-color="#fff"
|
|
|
+ >
|
|
|
+ <el-submenu index="2" class="rightExit">
|
|
|
+ <template slot="title" :size="size" :src="circleUrl">{{
|
|
|
+ userInfo.userName
|
|
|
+ }}</template>
|
|
|
+
|
|
|
+ <el-menu-item index="2-1" @click="escape()">退出</el-menu-item>
|
|
|
+ <el-menu-item index="2-1" @click="changePwd()">修改密码</el-menu-item>
|
|
|
+ </el-submenu>
|
|
|
+ </el-menu>
|
|
|
+
|
|
|
+ <vue-qr
|
|
|
+ v-show="false"
|
|
|
+ :ref="userInfo.name + '-' + userInfo.userNumber"
|
|
|
+ :text="urlJump + userInfo.invitationCode"
|
|
|
+ :size="500"
|
|
|
+ :width="1"
|
|
|
+ ></vue-qr>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-header>
|
|
|
+ <el-container style="flex: 1; overflow: auto">
|
|
|
<el-header class="main-header">
|
|
|
<el-row>
|
|
|
<el-col :span="1">
|
|
|
<div class="menu-hide" @click="changeMenu">
|
|
|
- <i class="el-icon-s-fold" style="color: #000"></i>
|
|
|
+ <i class="el-icon-s-fold" style="color: #000; font-size: 20px"></i>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
@@ -82,20 +93,21 @@
|
|
|
</el-row>
|
|
|
</el-header>
|
|
|
|
|
|
- <el-main class="el-mains" style="background-color: #f5f5f5">
|
|
|
- <transition name="fade" mode="out-in">
|
|
|
- <router-view></router-view>
|
|
|
- </transition>
|
|
|
+ <el-main style="background-color: #f5f5f5; display: flex">
|
|
|
+ <div class="el-main-inner">
|
|
|
+ <transition name="fade" mode="out-in">
|
|
|
+ <router-view></router-view>
|
|
|
+ </transition>
|
|
|
+ </div>
|
|
|
</el-main>
|
|
|
-
|
|
|
+ <!-- <el-footer>
|
|
|
+ <div style="background-color:#000000">递交</div>
|
|
|
+ </el-footer> -->
|
|
|
+ <!-- <el-footer style="padding-left: 0px; padding-right: 0px">
|
|
|
+ <Footer />
|
|
|
+ </el-footer> -->
|
|
|
</el-container>
|
|
|
-
|
|
|
</el-container>
|
|
|
- <!-- <Footer
|
|
|
- /> -->
|
|
|
- <el-footer style="padding-left: 0px; padding-right: 0px"
|
|
|
- ><Footer
|
|
|
- /></el-footer>
|
|
|
|
|
|
<!---lxh-修改密码-->
|
|
|
<el-dialog
|
|
@@ -135,9 +147,7 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="submitForm('ruleForm')"
|
|
|
- >提交</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
|
|
|
<el-button @click="resetForm('ruleForm')">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -147,7 +157,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import md5 from "md5";
|
|
|
-import vueQr from 'vue-qr'
|
|
|
+import vueQr from "vue-qr";
|
|
|
import { mapGetters, mapActions } from "vuex";
|
|
|
import { oSessionStorage } from "@/utils/utils";
|
|
|
import register from "@/components/Register";
|
|
@@ -156,7 +166,7 @@ export default {
|
|
|
name: "manageMain",
|
|
|
components: {
|
|
|
vueQr,
|
|
|
- Footer
|
|
|
+ Footer,
|
|
|
},
|
|
|
computed: {
|
|
|
// ...mapGetters(['sacleListName']),
|
|
@@ -223,61 +233,189 @@ export default {
|
|
|
userInfo: {}, //用户信息
|
|
|
dialogVisible: false, //弹出窗是否可见
|
|
|
size: "small",
|
|
|
- circleUrl:
|
|
|
- "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
|
|
|
+ circleUrl: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
|
|
|
activeIndex: "10",
|
|
|
activeIndex2: "1",
|
|
|
isCollapse: false,
|
|
|
userType: "",
|
|
|
menuList: [
|
|
|
{
|
|
|
- id: 0,
|
|
|
- name: "首页",
|
|
|
+ id: "0",
|
|
|
+ name: "渠道信息",
|
|
|
icon: "el-icon-s-home",
|
|
|
- path: "/manage/adminHome",
|
|
|
+ path: "0",
|
|
|
showItem: true,
|
|
|
+ child: [
|
|
|
+ {
|
|
|
+ id: "01",
|
|
|
+ name: "签约详情",
|
|
|
+ parentName: "渠道信息",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/channelInfo",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: "02",
|
|
|
+ name: "订单结算",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ parentName: "渠道信息",
|
|
|
+ path: "/manage/orderSettlement",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // id: "03",
|
|
|
+ // name: "邀请链接",
|
|
|
+ // icon: "el-icon-user-solid",
|
|
|
+ // path: "/manage/agencyUserManage",
|
|
|
+ // showItem: true,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // id: "04",
|
|
|
+ // name: "报告记录",
|
|
|
+ // icon: "el-icon-user-solid",
|
|
|
+ // path: "/manage/agencyUserManage",
|
|
|
+ // showItem: true,
|
|
|
+ // },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
- id: 1,
|
|
|
- name: "代理管理",
|
|
|
+ id: "1",
|
|
|
+ name: "渠道管理",
|
|
|
icon: "el-icon-user-solid",
|
|
|
- path: "/manage/agencyUserManage",
|
|
|
+ path: "",
|
|
|
showItem: true,
|
|
|
+ child: [
|
|
|
+ {
|
|
|
+ id: "11",
|
|
|
+ name: "渠道信息",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ parentName: "渠道管理",
|
|
|
+ path: "/manage/channelManagement",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: "12",
|
|
|
+ name: "签约详情",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ parentName: "渠道管理",
|
|
|
+ path: "/manage/contract",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
+ /*
|
|
|
+ {
|
|
|
+ id: '2',
|
|
|
+ name: "财税报告",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/doctorUserManage",
|
|
|
+ showItem: true,
|
|
|
+ child:[{
|
|
|
+ id: '21',
|
|
|
+ name: "接口价格",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },{
|
|
|
+ id: '22',
|
|
|
+ name: "产品定价",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },{
|
|
|
+ id: '23',
|
|
|
+ name: "报告记录",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '3',
|
|
|
+ name: "订单管理",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/userManage",
|
|
|
+ showItem: true,
|
|
|
+ child:[
|
|
|
+ {
|
|
|
+ id: '31',
|
|
|
+ name: "用户订单",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '32',
|
|
|
+ name: "邀约订单",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '33',
|
|
|
+ name: "订单结算",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '4',
|
|
|
+ name: "邀请管理",
|
|
|
+ icon: "el-icon-s-order",
|
|
|
+ path: "/manage/gameRecord1",
|
|
|
+ showItem: true,
|
|
|
+ child:[
|
|
|
+ {
|
|
|
+ id: '41',
|
|
|
+ name: "邀请链接",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },*/
|
|
|
{
|
|
|
- id: 2,
|
|
|
- name: "医生管理",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "/manage/doctorUserManage",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- // {
|
|
|
- // id: 2,
|
|
|
- // name: "医生用户管理",
|
|
|
- // icon: "el-icon-user-solid",
|
|
|
- // path: "2",
|
|
|
- // showItem: true,
|
|
|
- // },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
+ id: "5",
|
|
|
name: "用户管理",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "/manage/userManage",
|
|
|
+ icon: "el-icon-s-order",
|
|
|
+ path: "/manage/gameRecord2",
|
|
|
showItem: true,
|
|
|
+ child: [
|
|
|
+ {
|
|
|
+ parentName: "用户管理",
|
|
|
+ id: "51",
|
|
|
+ name: "用户管理",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/userManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ parentName: "用户管理",
|
|
|
+ id: "52",
|
|
|
+ name: "角色管理",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/roleManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
- // {
|
|
|
- // id: 4,
|
|
|
- // name: "用户记录",
|
|
|
- // icon: "el-icon-s-order",
|
|
|
- // path: "/manage/userRecord",
|
|
|
- // showItem: true,
|
|
|
- // },
|
|
|
{
|
|
|
- id: 5,
|
|
|
- name: "游戏记录",
|
|
|
+ id: "6",
|
|
|
+ name: "数据大屏",
|
|
|
icon: "el-icon-s-order",
|
|
|
- path: "/manage/gameRecord",
|
|
|
+ // path: "/manage/gameRecord",
|
|
|
showItem: true,
|
|
|
+ child: [
|
|
|
+ {
|
|
|
+ id: "61",
|
|
|
+ name: "大屏",
|
|
|
+ icon: "el-icon-user-solid",
|
|
|
+ path: "/manage/agencyUserManage",
|
|
|
+ showItem: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
//面包屑页签
|
|
@@ -295,37 +433,28 @@ export default {
|
|
|
},
|
|
|
rules: {
|
|
|
pass: [{ required: true, validator: validatePass, trigger: "blur" }],
|
|
|
- checkPass: [
|
|
|
- { required: true, validator: validatePass2, trigger: "blur" },
|
|
|
- ],
|
|
|
- oldpass: [
|
|
|
- { required: true, validator: validatePassOld, trigger: "blur" },
|
|
|
- ],
|
|
|
+ checkPass: [{ required: true, validator: validatePass2, trigger: "blur" }],
|
|
|
+ oldpass: [{ required: true, validator: validatePassOld, trigger: "blur" }],
|
|
|
},
|
|
|
ifAdmin: false,
|
|
|
ifSupAdmin: false,
|
|
|
active: "/manage/adminHome",
|
|
|
- urlJump:'http://152.136.24.101:8997?invitationCode=', //二维码跳转链接
|
|
|
+ urlJump: "http://152.136.24.101:8997?invitationCode=", //二维码跳转链接
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
if (oSessionStorage.getItem("userInfo")) {
|
|
|
this.userInfo = JSON.parse(oSessionStorage.getItem("userInfo"));
|
|
|
- this.userType = this.userInfo.roleType;
|
|
|
+ this.userType = this.userInfo.type;
|
|
|
console.log(this.userInfo, "有用户信息吗");
|
|
|
//假如是代理用户则 //代理用户菜单不显示
|
|
|
- if (this.userType == "3") {
|
|
|
+ if (this.userType == "0") {
|
|
|
for (let i = 0; i < this.menuList.length; i++) {
|
|
|
- if (this.menuList[i].id == "1") {
|
|
|
- this.menuList[i].showItem = false;
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (this.userType == "2") {
|
|
|
- for (let i = 0; i < this.menuList.length; i++) {
|
|
|
- if (this.menuList[i].id == "2") {
|
|
|
- this.menuList[i].showItem = false;
|
|
|
- }
|
|
|
- if (this.menuList[i].id == "1") {
|
|
|
+ if (
|
|
|
+ this.menuList[i].id == "5" ||
|
|
|
+ this.menuList[i].id == "6" ||
|
|
|
+ this.menuList[i].id == "1"
|
|
|
+ ) {
|
|
|
this.menuList[i].showItem = false;
|
|
|
}
|
|
|
}
|
|
@@ -333,16 +462,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- let codeImage = sessionStorage.getItem('codeImage');
|
|
|
- this.urlJump=codeImage+'?invitationCode='
|
|
|
- let that =this;
|
|
|
+ let codeImage = sessionStorage.getItem("codeImage");
|
|
|
+ this.urlJump = codeImage + "?invitationCode=";
|
|
|
+ let that = this;
|
|
|
// 页面初始化或者刷新页面初始化页签及激活菜单-2020-03-17 lwl
|
|
|
this.active = this.$route.path;
|
|
|
- // debugger;
|
|
|
this.selectMenu(this.$route.path);
|
|
|
this.bus.$on("menuStatusUpdate", (e) => {
|
|
|
- console.log(that.$refs.menu.activeIndex)
|
|
|
- that.$refs.menu.activeIndex=e
|
|
|
+ console.log(that.$refs.menu.activeIndex);
|
|
|
+ that.$refs.menu.activeIndex = e;
|
|
|
that.active = e;
|
|
|
// that.$forceUpdate()
|
|
|
that.selectMenu(e);
|
|
@@ -366,17 +494,24 @@ export default {
|
|
|
this.crumbParent = item.name;
|
|
|
this.crumbChild = null;
|
|
|
return;
|
|
|
+ } else {
|
|
|
+ item.child.forEach((i) => {
|
|
|
+ if (i.path == param) {
|
|
|
+ this.crumbParent = i.parentName;
|
|
|
+ this.crumbChild = i.name;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
//下载专属二维码
|
|
|
downCode(linkId) {
|
|
|
- const iconUrl =this.$refs[linkId].$el.src;
|
|
|
- const a = document.createElement('a');
|
|
|
- const event =new MouseEvent('click');
|
|
|
- a.download=linkId;
|
|
|
- a.href=iconUrl;
|
|
|
- a.dispatchEvent(event)
|
|
|
+ const iconUrl = this.$refs[linkId].$el.src;
|
|
|
+ const a = document.createElement("a");
|
|
|
+ const event = new MouseEvent("click");
|
|
|
+ a.download = linkId;
|
|
|
+ a.href = iconUrl;
|
|
|
+ a.dispatchEvent(event);
|
|
|
},
|
|
|
// 退出
|
|
|
escape() {
|
|
@@ -394,21 +529,28 @@ export default {
|
|
|
|
|
|
/*lxh-修改密码*/
|
|
|
submitForm(formName) {
|
|
|
- console.log(this.userInfo)
|
|
|
+ console.log(this.userInfo);
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- this.$http.post(
|
|
|
- "/v1/system/updatePassword",
|
|
|
- {
|
|
|
- id: this.userInfo.id,
|
|
|
- password: md5(this.ruleForm.pass),
|
|
|
- oldPassword: md5(this.ruleForm.oldpass),
|
|
|
- },
|
|
|
- (res) => {
|
|
|
- (this.ruleForm.oldpass = ""),
|
|
|
- (this.ruleForm.pass = ""),
|
|
|
- (this.ruleForm.checkPass = ""),
|
|
|
- (this.dialogVisible = false);
|
|
|
+ this.$http.post(
|
|
|
+ "/user/update/password",
|
|
|
+ {
|
|
|
+ id: this.userInfo.id,
|
|
|
+ newPassword: md5(this.ruleForm.pass),
|
|
|
+ oldPassword: md5(this.ruleForm.oldpass),
|
|
|
+ },
|
|
|
+ (res) => {
|
|
|
+ if (res.code == 2001) {
|
|
|
+ this.$message({
|
|
|
+ message: "旧密码错误",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.ruleForm.oldpass = "";
|
|
|
+ this.ruleForm.pass = "";
|
|
|
+ this.ruleForm.checkPass = "";
|
|
|
+ this.dialogVisible = false;
|
|
|
this.$message({
|
|
|
message: "密码修改完成!",
|
|
|
type: "success",
|
|
@@ -418,7 +560,8 @@ export default {
|
|
|
path: "/",
|
|
|
});
|
|
|
}
|
|
|
- );
|
|
|
+ }
|
|
|
+ );
|
|
|
} else {
|
|
|
console.log("error submit!!");
|
|
|
return false;
|
|
@@ -437,6 +580,27 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
+>
|
|
|
+<style>
|
|
|
+.el-submenu__title:hover {
|
|
|
+ background-color: #80a1ff;
|
|
|
+}
|
|
|
+.el-menu {
|
|
|
+ background-color: #23315a;
|
|
|
+}
|
|
|
+.el-menu-item-group .el-menu-item.is-active {
|
|
|
+ background-color: #80a1ff !important;
|
|
|
+}
|
|
|
+.el-menu-item-group .el-menu-item:hover {
|
|
|
+ background-color: #80a1ff !important;
|
|
|
+}
|
|
|
+.el-menu-item-group__title {
|
|
|
+ padding: 0px !important;
|
|
|
+ line-height: normal;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #909399;
|
|
|
+}
|
|
|
+</style>
|
|
|
<style lang="less" scoped>
|
|
|
.el-menu-vertical-demo:not(.el-menu--collapse) {
|
|
|
width: 200px;
|
|
@@ -494,17 +658,23 @@ export default {
|
|
|
}
|
|
|
|
|
|
.aside-menu {
|
|
|
+ background-color: #000000;
|
|
|
/*height: 98vh;*/
|
|
|
- height: 92vh;
|
|
|
+ height: 100vh;
|
|
|
text-align: left;
|
|
|
/*padding-top: 60px;*/
|
|
|
+ border-top-right-radius: 40px;
|
|
|
+ border-bottom-right-radius: 40px;
|
|
|
}
|
|
|
+
|
|
|
.aside-menu .el-menu-item.is-active {
|
|
|
- background: #57acbb !important;
|
|
|
+ background: #80a1ff !important;
|
|
|
}
|
|
|
+
|
|
|
.el-menu-item-group .el-menu-item.is-active {
|
|
|
- background: #57acbb !important;
|
|
|
+ background: #80a1ff !important;
|
|
|
}
|
|
|
+
|
|
|
.fade-enter {
|
|
|
opacity: 0;
|
|
|
}
|
|
@@ -517,6 +687,7 @@ export default {
|
|
|
.fade-enter-active {
|
|
|
transition: opacity 0s;
|
|
|
}
|
|
|
+
|
|
|
/*.rightExit {*/
|
|
|
/*float: right !important;*/
|
|
|
/*}*/
|
|
@@ -540,9 +711,11 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
.admin-header-content .el-col {
|
|
|
height: 100% !important;
|
|
|
}
|
|
|
+
|
|
|
.admin-header-content .admin-logo-content {
|
|
|
/*box-sizing: border-box;*/
|
|
|
/*width: 100%;*/
|
|
@@ -555,10 +728,12 @@ export default {
|
|
|
text-align: left;
|
|
|
line-height: 45px;
|
|
|
}
|
|
|
+
|
|
|
.admin-header-content .admin-logo-content img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
.admin-header-content .admin-head-content {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -568,26 +743,63 @@ export default {
|
|
|
align-items: center;
|
|
|
flex: 1;
|
|
|
}
|
|
|
+
|
|
|
.admin-header-content .el-menu-demo {
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
.el-menu--horizontal > .el-submenu .el-submenu__title,
|
|
|
/deep/.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
|
|
|
border-bottom: none !important;
|
|
|
}
|
|
|
+
|
|
|
/deep/.el-menu--horizontal > .el-submenu .el-submenu__icon-arrow {
|
|
|
color: #fff;
|
|
|
}
|
|
|
+
|
|
|
.el-menu.el-menu--horizontal {
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
+
|
|
|
.admin-breadcrumb {
|
|
|
padding-top: 3px;
|
|
|
margin-left: -18px;
|
|
|
}
|
|
|
+
|
|
|
.just-right {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
+.el-main-inner {
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 20px;
|
|
|
+ border-radius: 40px;
|
|
|
+}
|
|
|
+.el-main {
|
|
|
+ box-sizing: border-box !important;
|
|
|
+ display: flex !important;
|
|
|
+ overflow: hidden !important;
|
|
|
+}
|
|
|
+.menu_name {
|
|
|
+ color: #ffffff;
|
|
|
+}
|
|
|
+.menu_sub_tt {
|
|
|
+ margin-left: 10px;
|
|
|
+ color: white;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ .menu_sub_t1 {
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 50%;
|
|
|
+ width: 5px;
|
|
|
+ height: 5px;
|
|
|
+ margin-right:10px
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|