|
@@ -14,39 +14,102 @@
|
|
|
@select="selectMenu"
|
|
|
>
|
|
|
<!-- <img src="../../assets/img/commons/jhTop.png" /> -->
|
|
|
- <img v-show="!isCollapse" src="../../assets/img/commons/jhTop.png" />
|
|
|
+ <img
|
|
|
+ v-show="!isCollapse"
|
|
|
+ style="
|
|
|
+ height: 40px;
|
|
|
+ width: auto;
|
|
|
+ padding-top: 20px;
|
|
|
+ padding-left: 10px;
|
|
|
+ padding-right: 10px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ "
|
|
|
+ src="../../assets/img/commons/jhTop1.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"
|
|
|
- >
|
|
|
- <template slot="title">
|
|
|
- <i :class="item.icon"></i>
|
|
|
- <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>
|
|
|
+
|
|
|
+ <div v-for="item in menuList" :key="item.id">
|
|
|
+ <el-menu-item :index="item.path" v-if="!item.hasOwnProperty('child')"
|
|
|
+ ><div class="menu_icon_mm">
|
|
|
+ <img :src="item.icon" class="menu_icon_img" /><span>{{ item.name }}</span>
|
|
|
+ </div></el-menu-item
|
|
|
+ >
|
|
|
+ <div v-if="item.hasOwnProperty('child')">
|
|
|
+ <!-- v-for="item in menuList"
|
|
|
+ :key="item.id"
|
|
|
+ :index="item.path"
|
|
|
+ v-show="item.showItem" -->
|
|
|
+
|
|
|
+ <el-submenu :index="item.path">
|
|
|
+ <template slot="title">
|
|
|
+ <div class="menu_icon_mm">
|
|
|
+ <img :src="item.icon" class="menu_icon_img" />
|
|
|
+ <span class="menu_name">{{ item.name }}</span>
|
|
|
+ </div>
|
|
|
+ </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>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- <el-menu-item index="1">用户管理</el-menu-item> -->
|
|
|
</el-menu>
|
|
|
</el-aside>
|
|
|
- <el-container style="height: 100vh; display: flex; flex-direction: column">
|
|
|
- <el-header class="shadow-menu">
|
|
|
+ <!-- style="height:100vh; display: flex; flex-direction: column; border-top-left-radius: 40px; border-bottom-left-radius: 40px;background-color:#000000" -->
|
|
|
+ <el-container class="el-container-com">
|
|
|
+ <el-header
|
|
|
+ class="shadow-menu"
|
|
|
+ style="
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-top-left-radius: 40px;
|
|
|
+ background-color: #f7f7f7;
|
|
|
+ "
|
|
|
+ >
|
|
|
<el-row class="admin-header-content">
|
|
|
- <el-col :span="12"> </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-row>
|
|
|
+ <!-- <el-col :span="1">
|
|
|
+ <div class="menu-hide" @click="changeMenu">
|
|
|
+ <i class="el-icon-s-fold" style="color: #000; font-size: 20px"></i>
|
|
|
+ </div>
|
|
|
+ </el-col> -->
|
|
|
+ <el-col :span="10">
|
|
|
+ <div class="main_top_1">
|
|
|
+ <div class="blue"> </div>
|
|
|
+ <el-breadcrumb class="admin-breadcrumb" separator=">>">
|
|
|
+ <el-breadcrumb-item>{{ crumbParent }}</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item
|
|
|
+ style="font-weight: 700"
|
|
|
+ v-if="crumbChild && crumbChild != null"
|
|
|
+ >{{ crumbChild }}</el-breadcrumb-item
|
|
|
+ >
|
|
|
+ </el-breadcrumb>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
|
|
|
<el-col :span="12" class="just-right">
|
|
|
- <el-menu
|
|
|
+ <div class="user_out" @mouseenter="mouseenterFun" @mouseleave="mouseLeaveFun">
|
|
|
+ <img class="user_out_img" src="../../assets/menu/userAdmin.png" />
|
|
|
+ <div class="user_out_des">{{ userInfo.userName }}老师</div>
|
|
|
+ <div v-if="isShowMenu" class="user_out_ab">
|
|
|
+ <div class="exit" @click="escape()">退出</div>
|
|
|
+ <div class="update_pass" @click="changePwd()">修改密码</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- <el-menu
|
|
|
:default-active="activeIndex"
|
|
|
class="el-menu-demo"
|
|
|
mode="horizontal"
|
|
@@ -62,7 +125,7 @@
|
|
|
<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>
|
|
|
+ </el-menu> -->
|
|
|
|
|
|
<vue-qr
|
|
|
v-show="false"
|
|
@@ -75,24 +138,6 @@
|
|
|
</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; font-size: 20px"></i>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="10">
|
|
|
- <el-breadcrumb class="admin-breadcrumb" separator="/">
|
|
|
- <el-breadcrumb-item>{{ crumbParent }}</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item v-if="crumbChild && crumbChild != null">{{
|
|
|
- crumbChild
|
|
|
- }}</el-breadcrumb-item>
|
|
|
- </el-breadcrumb>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-header>
|
|
|
-
|
|
|
<el-main style="background-color: #f5f5f5; display: flex">
|
|
|
<div class="el-main-inner">
|
|
|
<transition name="fade" mode="out-in">
|
|
@@ -100,59 +145,60 @@
|
|
|
</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>
|
|
|
|
|
|
<!---lxh-修改密码-->
|
|
|
- <el-dialog
|
|
|
- title="修改密码"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- :close-on-click-modal="false"
|
|
|
- width="40%"
|
|
|
- >
|
|
|
- <div>
|
|
|
- <el-form
|
|
|
- :model="ruleForm"
|
|
|
- :rules="rules"
|
|
|
- ref="ruleForm"
|
|
|
- label-width="150px"
|
|
|
- class="demo-ruleForm"
|
|
|
- >
|
|
|
- <el-form-item label="请输入旧密码" prop="oldpass">
|
|
|
- <el-input
|
|
|
- type="password"
|
|
|
- v-model="ruleForm.oldpass"
|
|
|
- autocomplete="off"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="请输入新密码" prop="pass">
|
|
|
- <el-input
|
|
|
- type="password"
|
|
|
- v-model="ruleForm.pass"
|
|
|
- autocomplete="off"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="确认新密码" prop="checkPass">
|
|
|
- <el-input
|
|
|
- type="password"
|
|
|
- v-model="ruleForm.checkPass"
|
|
|
- autocomplete="off"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
|
|
|
- <el-button @click="resetForm('ruleForm')">重置</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
+ <div class="dig_update">
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ width="40%"
|
|
|
+ style="border-radius: 40px"
|
|
|
+ >
|
|
|
+ <div slot="title">
|
|
|
+ <el-form
|
|
|
+ :model="ruleForm"
|
|
|
+ :rules="rules"
|
|
|
+ :inline="true"
|
|
|
+ ref="ruleForm"
|
|
|
+ label-width="150px"
|
|
|
+ class="demo-ruleForm"
|
|
|
+ >
|
|
|
+ <p class="dig_title">修改密码</p>
|
|
|
+ <div slot=""></div>
|
|
|
+ <div slot="footer"></div>
|
|
|
+ <el-form-item label="请输入旧密码" prop="oldpass">
|
|
|
+ <el-input
|
|
|
+ type="password"
|
|
|
+ v-model="ruleForm.oldpass"
|
|
|
+ autocomplete="off"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="请输入新密码" prop="pass">
|
|
|
+ <el-input
|
|
|
+ type="password"
|
|
|
+ v-model="ruleForm.pass"
|
|
|
+ autocomplete="off"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="确认新密码" prop="checkPass">
|
|
|
+ <el-input
|
|
|
+ type="password"
|
|
|
+ v-model="ruleForm.checkPass"
|
|
|
+ autocomplete="off"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <div class="dig_button">
|
|
|
+
|
|
|
+ <el-button type="info" round @click="resetForm('ruleForm')">重置</el-button>
|
|
|
+ <el-button type="success" round @click="submitForm('ruleForm')">提交</el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</el-container>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -230,6 +276,8 @@ export default {
|
|
|
};
|
|
|
|
|
|
return {
|
|
|
+ //是否显示退出菜单
|
|
|
+ isShowMenu: false,
|
|
|
userInfo: {}, //用户信息
|
|
|
dialogVisible: false, //弹出窗是否可见
|
|
|
size: "small",
|
|
@@ -241,233 +289,65 @@ export default {
|
|
|
menuList: [
|
|
|
{
|
|
|
id: "0",
|
|
|
- name: "渠道信息",
|
|
|
- icon: "el-icon-s-home",
|
|
|
- path: "0",
|
|
|
+ name: "用户管理",
|
|
|
+ icon: require("../../assets/menu/user.png"),
|
|
|
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",
|
|
|
- parentName: "渠道信息",
|
|
|
- path: "/manage/invite",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- {
|
|
|
- id: "04",
|
|
|
- name: "报告记录",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- parentName: "渠道信息",
|
|
|
- path: "/manage/recordListAll",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- {
|
|
|
- id: "05",
|
|
|
- name: "员工管理",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- parentName: "渠道信息",
|
|
|
- path: "/manage/channelUserManage",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- ],
|
|
|
- },//channelUserManage
|
|
|
+ path: "/manage/userManage",
|
|
|
+ },
|
|
|
{
|
|
|
id: "1",
|
|
|
- name: "渠道管理",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "",
|
|
|
+ name: "院管理员管理",
|
|
|
+ icon: require("../../assets/menu/yuan.png"),
|
|
|
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,
|
|
|
- },
|
|
|
- ],
|
|
|
+ path: "/manage/channelInfo",
|
|
|
},
|
|
|
{
|
|
|
id: "2",
|
|
|
- name: "财税报告",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "2",
|
|
|
+ name: "组织架构",
|
|
|
+ icon: require("../../assets/menu/zu.png"),
|
|
|
showItem: true,
|
|
|
- child: [
|
|
|
- {
|
|
|
- id: "21",
|
|
|
- name: "接口价格",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "/manage/interfacePrice",
|
|
|
- parentName: "渠道管理",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- {
|
|
|
- id: "22",
|
|
|
- name: "产品定价",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- parentName: "渠道管理",
|
|
|
- path: "/manage/productPrice",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- {
|
|
|
- id: "23",
|
|
|
- name: "报告记录",
|
|
|
- parentName: "渠道管理",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "/manage/reportList",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- ],
|
|
|
+ path: "/manage/orderSettlement",
|
|
|
},
|
|
|
{
|
|
|
id: "3",
|
|
|
- name: "订单管理",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- path: "3",
|
|
|
+ name: "测试计划",
|
|
|
+ icon: require("../../assets/menu/plan.png"),
|
|
|
+ showItem: true,
|
|
|
+ path: "/manage/invite",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: "4",
|
|
|
+ name: "报告分析",
|
|
|
+ icon: require("../../assets/menu/plan.png"),
|
|
|
showItem: true,
|
|
|
+ // path: "/manage/recordListAll",
|
|
|
child: [
|
|
|
{
|
|
|
- id: "31",
|
|
|
- name: "用户订单",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- parentName: "订单管理",
|
|
|
- path: "/manage/userOrder",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- {
|
|
|
- id: "32",
|
|
|
- name: "邀约订单",
|
|
|
- icon: "el-icon-user-solid",
|
|
|
- parentName: "订单管理",
|
|
|
- path: "/manage/orderInvite",
|
|
|
- showItem: true,
|
|
|
- },
|
|
|
- {
|
|
|
- id: "33",
|
|
|
- name: "订单结算",
|
|
|
+ id: "41",
|
|
|
+ name: "用户报告",
|
|
|
+ parentName: "报告分析",
|
|
|
icon: "el-icon-user-solid",
|
|
|
- parentName: "订单管理",
|
|
|
- path: "/manage/orderSettlementManage",
|
|
|
+ path: "/manage/channelUserManage",
|
|
|
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: "5",
|
|
|
- name: "用户管理",
|
|
|
- icon: "el-icon-s-order",
|
|
|
- path: "/manage/gameRecord2",
|
|
|
- showItem: true,
|
|
|
- child: [
|
|
|
{
|
|
|
- parentName: "用户管理",
|
|
|
- id: "51",
|
|
|
- name: "用户管理",
|
|
|
+ id: "42",
|
|
|
+ name: "计划报告",
|
|
|
+ parentName: "报告分析",
|
|
|
icon: "el-icon-user-solid",
|
|
|
- path: "/manage/userManage",
|
|
|
+ path: "/manage/channelManagement",
|
|
|
showItem: true,
|
|
|
},
|
|
|
{
|
|
|
- parentName: "用户管理",
|
|
|
- id: "52",
|
|
|
- name: "角色管理",
|
|
|
+ id: "43",
|
|
|
+ name: "对比分析",
|
|
|
+ parentName: "报告分析",
|
|
|
icon: "el-icon-user-solid",
|
|
|
- path: "/manage/roleManage",
|
|
|
+ path: "/manage/contract",
|
|
|
showItem: true,
|
|
|
},
|
|
|
],
|
|
|
- },
|
|
|
- // {
|
|
|
- // id: "6",
|
|
|
- // name: "数据大屏",
|
|
|
- // icon: "el-icon-s-order",
|
|
|
- // // path: "/manage/gameRecord",
|
|
|
- // showItem: true,
|
|
|
- // child: [
|
|
|
- // {
|
|
|
- // id: "61",
|
|
|
- // name: "大屏",
|
|
|
- // icon: "el-icon-user-solid",
|
|
|
- // path: "/manage/agencyUserManage",
|
|
|
- // showItem: true,
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
+ }
|
|
|
],
|
|
|
//面包屑页签
|
|
|
crumbParent: "首页",
|
|
@@ -517,11 +397,10 @@ export default {
|
|
|
let codeImage = sessionStorage.getItem("codeImage");
|
|
|
this.urlJump = codeImage + "?invitationCode=";
|
|
|
let that = this;
|
|
|
- // 页面初始化或者刷新页面初始化页签及激活菜单-2020-03-17 lwl
|
|
|
+ // 页面初始化或者刷新页面初始化页签及激活菜单-2020-03-17
|
|
|
this.active = this.$route.path;
|
|
|
this.selectMenu(this.$route.path);
|
|
|
this.bus.$on("menuStatusUpdate", (e) => {
|
|
|
-
|
|
|
that.$refs.menu.activeIndex = e;
|
|
|
that.active = e;
|
|
|
// that.$forceUpdate()
|
|
@@ -538,21 +417,32 @@ export default {
|
|
|
changeMenu: function () {
|
|
|
this.isCollapse = !this.isCollapse;
|
|
|
},
|
|
|
+
|
|
|
+ mouseenterFun() {
|
|
|
+ this.isShowMenu = true;
|
|
|
+ },
|
|
|
+ mouseLeaveFun() {
|
|
|
+ this.isShowMenu = false;
|
|
|
+ },
|
|
|
//匹配获取页签名称-2020-03-17 lwl
|
|
|
selectMenu(param) {
|
|
|
-
|
|
|
this.menuList.forEach((item) => {
|
|
|
+ console.log(item);
|
|
|
if (item.path == param) {
|
|
|
this.crumbParent = item.name;
|
|
|
this.crumbChild = null;
|
|
|
- return;
|
|
|
+ // return;
|
|
|
} else {
|
|
|
- item.child.forEach((i) => {
|
|
|
- if (i.path == param) {
|
|
|
- this.crumbParent = i.parentName;
|
|
|
- this.crumbChild = i.name;
|
|
|
- }
|
|
|
- });
|
|
|
+ //先判断是否有child
|
|
|
+ //如果没有
|
|
|
+ if (item.hasOwnProperty("child")) {
|
|
|
+ item.child.forEach((i) => {
|
|
|
+ if (i.path == param) {
|
|
|
+ this.crumbParent = i.parentName;
|
|
|
+ this.crumbChild = i.name;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -581,16 +471,17 @@ export default {
|
|
|
|
|
|
/*lxh-修改密码*/
|
|
|
submitForm(formName) {
|
|
|
-
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
+ console.log(this.userInfo)
|
|
|
if (valid) {
|
|
|
- this.$http.post(
|
|
|
- "/user/update/password",
|
|
|
- {
|
|
|
- id: this.userInfo.id,
|
|
|
- newPassword: md5(this.ruleForm.pass),
|
|
|
- oldPassword: md5(this.ruleForm.oldpass),
|
|
|
- },
|
|
|
+ this.$http.get(
|
|
|
+ `/system/updatePassword?userNo=${ this.userInfo.userNo}&password=${md5(this.ruleForm.pass)}&oldPassword=${md5(this.ruleForm.oldpass)}`,
|
|
|
+ // {
|
|
|
+ // userNo: this.userInfo.userNo,
|
|
|
+ // password: md5(this.ruleForm.pass),
|
|
|
+ // oldPassword: md5(this.ruleForm.oldpass),
|
|
|
+ // },
|
|
|
+ {},
|
|
|
(res) => {
|
|
|
if (res.code == 2001) {
|
|
|
this.$message({
|
|
@@ -623,7 +514,6 @@ export default {
|
|
|
// 重置表单
|
|
|
resetForm(formName) {
|
|
|
this.$refs[formName].resetFields();
|
|
|
-
|
|
|
},
|
|
|
// 修改密码
|
|
|
changePwd() {
|
|
@@ -634,20 +524,54 @@ export default {
|
|
|
</script>
|
|
|
>
|
|
|
<style>
|
|
|
+.el-submenu .el-menu-item {
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ /* padding: 0 45px; */
|
|
|
+ min-width: auto !important;
|
|
|
+}
|
|
|
+.aside-menu .el-menu-item {
|
|
|
+ margin-left: 20px;
|
|
|
+ color: #ffffff !important;
|
|
|
+ margin-right: 20px;
|
|
|
+ border-radius: 40px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-top: 20px;
|
|
|
+ padding-left: 0px !important;
|
|
|
+}
|
|
|
.el-menu--popup {
|
|
|
/* min-width:100px */
|
|
|
}
|
|
|
.el-submenu__title:hover {
|
|
|
- background-color: #80a1ff;
|
|
|
+ background: #00bf78 !important;
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-right: 20px;
|
|
|
+ border-radius: 40px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-top: 20px;
|
|
|
+ padding-left: 0px !important;
|
|
|
+}
|
|
|
+.el-submenu__title {
|
|
|
+ /* background-color: #158824; */
|
|
|
+ /* margin-left:20px; */
|
|
|
+ margin-right: 20px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-top: 20px;
|
|
|
+ border-radius: 40px;
|
|
|
}
|
|
|
.el-menu {
|
|
|
background-color: #23315a;
|
|
|
+ border-right: 0px;
|
|
|
}
|
|
|
.el-menu-item-group .el-menu-item.is-active {
|
|
|
- background-color: #80a1ff !important;
|
|
|
+ background-color: #00bf78 !important;
|
|
|
}
|
|
|
.el-menu-item-group .el-menu-item:hover {
|
|
|
- background-color: #80a1ff !important;
|
|
|
+ background-color: #00bf78 !important;
|
|
|
+ padding-left: 0px !important;
|
|
|
}
|
|
|
.el-menu-item-group__title {
|
|
|
padding: 0px !important;
|
|
@@ -658,10 +582,20 @@ export default {
|
|
|
.el-menu--horizontal > .el-menu-item:not(.is-disabled):focus,
|
|
|
.el-menu--horizontal > .el-menu-item:not(.is-disabled):hover,
|
|
|
.el-menu--horizontal > .el-submenu .el-submenu__title:hover {
|
|
|
- background-color: transparent !important;
|
|
|
+ /* background-color: transparent !important; */
|
|
|
+ background-color: #00bf78 !important;
|
|
|
+ padding-left: 0px !important;
|
|
|
+}
|
|
|
+.el-menu-item:focus,
|
|
|
+.el-menu-item:hover {
|
|
|
+ outline: 0;
|
|
|
+ background-color: #00bf78 !important;
|
|
|
}
|
|
|
</style>
|
|
|
+
|
|
|
<style lang="less" scoped>
|
|
|
+
|
|
|
+
|
|
|
.el-menu-vertical-demo:not(.el-menu--collapse) {
|
|
|
width: 200px;
|
|
|
min-height: 400px;
|
|
@@ -710,14 +644,9 @@ export default {
|
|
|
/*float: right;*/
|
|
|
/*}*/
|
|
|
|
|
|
-/*.el-menu--horizontal > .el-menu-item {*/
|
|
|
-/*float: right;*/
|
|
|
-/*height: 60px;*/
|
|
|
-/*line-height: 60px;*/
|
|
|
-/*margin: 0;*/
|
|
|
-/*border-bottom: 2px solid transparent;*/
|
|
|
-/*color: #909399;*/
|
|
|
-/*}*/
|
|
|
+// el-menu--horizontal > .el-menu-item {
|
|
|
+// color:#000000
|
|
|
+// }
|
|
|
|
|
|
.top-menu-control {
|
|
|
float: left;
|
|
@@ -729,16 +658,35 @@ export default {
|
|
|
height: 100vh;
|
|
|
text-align: left;
|
|
|
/*padding-top: 60px;*/
|
|
|
- border-top-right-radius: 40px;
|
|
|
- border-bottom-right-radius: 40px;
|
|
|
+ // border-top-right-radius: 40px;
|
|
|
+ // border-bottom-right-radius: 40px;
|
|
|
}
|
|
|
|
|
|
.aside-menu .el-menu-item.is-active {
|
|
|
- background: #80a1ff !important;
|
|
|
+ background: #00bf78 !important;
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-right: 20px;
|
|
|
+ border-radius: 40px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+.aside-menu .el-menu-item {
|
|
|
+ // background: #00BF78 !important;
|
|
|
+ margin-left: 20px;
|
|
|
+ color: #ffffff !important;
|
|
|
+ margin-right: 20px;
|
|
|
+ border-radius: 40px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
.el-menu-item-group .el-menu-item.is-active {
|
|
|
- background: #80a1ff !important;
|
|
|
+ background: #00bf78 !important;
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-right: 20px;
|
|
|
+ padding-left: 0px !important;
|
|
|
}
|
|
|
|
|
|
.fade-enter {
|
|
@@ -818,6 +766,8 @@ export default {
|
|
|
.el-menu--horizontal > .el-submenu .el-submenu__title,
|
|
|
/deep/.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
|
|
|
border-bottom: none !important;
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-right: 20px;
|
|
|
}
|
|
|
|
|
|
/deep/.el-menu--horizontal > .el-submenu .el-submenu__icon-arrow {
|
|
@@ -831,12 +781,52 @@ export default {
|
|
|
.admin-breadcrumb {
|
|
|
padding-top: 3px;
|
|
|
margin-left: -18px;
|
|
|
+ font-weight: 700;
|
|
|
}
|
|
|
|
|
|
.just-right {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: flex-end;
|
|
|
+ .user_out {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .user_out_img {
|
|
|
+ width: 40px;
|
|
|
+ }
|
|
|
+ .user_out_des {
|
|
|
+ margin-right: 40px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+ .user_out_ab {
|
|
|
+ border-bottom-left-radius: 20px;
|
|
|
+ border-bottom-right-radius: 20px;
|
|
|
+ position: absolute;
|
|
|
+ background-color: #ffffff;
|
|
|
+ margin-top: 150px;
|
|
|
+ z-index: 100;
|
|
|
+ .exit {
|
|
|
+ padding-top: 20px;
|
|
|
+ padding-left: 40px;
|
|
|
+ padding-right: 40px;
|
|
|
+ }
|
|
|
+ .update_pass {
|
|
|
+ padding: 20px 40px;
|
|
|
+ }
|
|
|
+ .exit:hover {
|
|
|
+ color: #00bf78;
|
|
|
+ padding-top: 20px;
|
|
|
+ padding-left: 40px;
|
|
|
+ padding-right: 40px;
|
|
|
+ }
|
|
|
+ .update_pass:hover {
|
|
|
+ color: #00bf78;
|
|
|
+ padding: 20px 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.el-main-inner {
|
|
|
display: flex;
|
|
@@ -851,6 +841,7 @@ export default {
|
|
|
box-sizing: border-box !important;
|
|
|
display: flex !important;
|
|
|
overflow: hidden !important;
|
|
|
+ border-bottom-left-radius: 40px;
|
|
|
}
|
|
|
.menu_name {
|
|
|
color: #ffffff;
|
|
@@ -862,11 +853,100 @@ export default {
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
.menu_sub_t1 {
|
|
|
- background-color: #ffffff;
|
|
|
- border-radius: 50%;
|
|
|
+ // background-color: #ffffff;
|
|
|
+ // border-radius: 50%;
|
|
|
width: 5px;
|
|
|
height: 5px;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.el-container-com {
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ // border-top-left-radius: 40px;
|
|
|
+ // border-bottom-left-radius: 40px;
|
|
|
+ background-color: #000000;
|
|
|
+}
|
|
|
+.main_top_1 {
|
|
|
+ border-top-left-radius: 40px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-left: 20px;
|
|
|
+ .blue {
|
|
|
+ background-color: #00bf78;
|
|
|
+ width: 10px;
|
|
|
+ margin-right: 30px;
|
|
|
+ height: 20px;
|
|
|
+ border-radius: 5px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.menu_icon_mm {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ .menu_icon_img {
|
|
|
+ width: 15px;
|
|
|
+ margin-right: 10px;
|
|
|
+ padding-left: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.dig_update /deep/.el-dialog {
|
|
|
+ box-shadow: none !important;
|
|
|
+ background: transparent !important;
|
|
|
+}
|
|
|
+.demo-ruleForm /deep/ .el-form-item {
|
|
|
margin-right: 10px;
|
|
|
+ vertical-align: top;
|
|
|
+ display: flex !important;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+.demo-ruleForm /deep/.el-form-item__label {
|
|
|
+ text-align: left;
|
|
|
+ vertical-align: middle;
|
|
|
+ float: left;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #606266;
|
|
|
+ line-height: 40px;
|
|
|
+ padding: 0 12px 0 0;
|
|
|
+ -webkit-box-sizing: border-box;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
+
|
|
|
+.demo-ruleForm /deep/.el-input{
|
|
|
+ width: 100% !important;
|
|
|
+}
|
|
|
+
|
|
|
+.demo-ruleForm /deep/.el-input__inner{
|
|
|
+ width: 100% !important;
|
|
|
+ background-color: #F7F7F7;
|
|
|
+ border: 0px;
|
|
|
+}
|
|
|
+
|
|
|
+.dig_button{
|
|
|
+ display: flex;
|
|
|
+ width:100%;
|
|
|
+ justify-content: space-around;
|
|
|
+}
|
|
|
+
|
|
|
+.demo-ruleForm {
|
|
|
+ background-color: #ffffff;
|
|
|
+ // border-radius: 20px;
|
|
|
+ margin-right: -10px;
|
|
|
+ margin-top: -10px;
|
|
|
+ padding-right: 100px;
|
|
|
+ padding-left: 100px;
|
|
|
+ border-radius: 20px;
|
|
|
+ padding-top: 20px;
|
|
|
+ padding-bottom: 40px;
|
|
|
+ .dig_title {
|
|
|
+ margin-bottom: 30px;
|
|
|
+ text-align: center;
|
|
|
+ font-weight: 700;
|
|
|
}
|
|
|
}
|
|
|
</style>
|