Commit 376b3099 authored by 张伯涛's avatar 张伯涛

修改

parent bdc9cd0a
......@@ -4,8 +4,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- <link rel="icon" href="<%= BASE_URL %>home_logo.png">-->
<!-- <link rel="stylesheet" href="//at.alicdn.com/t/font_2011217_f70ptj9y4oc.css">-->
<link rel="icon" href=" " type="image/x-icon" />
<link rel="shortcut icon" href=" " type="image/x-icon" />
<!-- 新增电子签章依赖 开始-->
<!-- 核心功能 start -->
<script type="text/javascript" src="./kinggrid/jquery-1.8.3.min.js"></script>
......
......@@ -236,6 +236,8 @@
<script>
import { api, statusEnum } from './mock'
import { Store } from '@/utils/storage'
import { storeKey } from '@/utils/auth'
export default {
name: 'AdminList',
data() {
......@@ -639,7 +641,8 @@ obj=this.typeform*/
/** 个人数据列表查询*/
findContract() {
console.log('登录人ID', localStorage.getItem('UserID'))
const userID = localStorage.getItem('UserID')
// const userID = localStorage.getItem('UserID')
const userID = JSON.parse(Store.get(storeKey.user)).userId
this.$axios.get('http://117.122.212.101:8090/contract/contract/queryContractByPage',
{
params: {
......@@ -666,7 +669,8 @@ obj=this.typeform*/
},
/** 部门数据列表查询*/
deptFindContract() {
const deptId = localStorage.getItem('UserID')
const deptId = JSON.parse(Store.get(storeKey.user)).deptId
console.log('参数deptId', deptId)
this.$axios.get('http://117.122.212.101:8090/contract/contract/queryContractByPage',
{
params: {
......
......@@ -64,7 +64,7 @@
:underline="false"
@click="goDetail('/forgetPwd')"
>
<!-- <router-link to="/forgetPwd">忘记密码</router-link>-->
<!-- <router-link to="/forgetPwd">忘记密码</router-link>-->
</el-link>
</div>
</div>
......@@ -158,7 +158,7 @@ export default {
this.loading = false
const username = res.data.data.USER_ID
Store.set(storeKey.token, `${Math.random()}_${new Date().getTime()}`)
Store.set(storeKey.user, JSON.stringify({ userName: username, userId: res.data.data.USER_ID, avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif' }))
Store.set(storeKey.user, JSON.stringify({ userName: username, userId: res.data.data.USER_ID, deptId: res.data.data.DEPT_CODE, avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif' }))
if (rememberMe) {
Store.set('username', username)
Store.set('password', encrypt(password))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment