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

修改

parent bdc9cd0a
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <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"> <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="icon" href=" " type="image/x-icon" />
<!-- <link rel="stylesheet" href="//at.alicdn.com/t/font_2011217_f70ptj9y4oc.css">--> <link rel="shortcut icon" href=" " type="image/x-icon" />
<!-- 新增电子签章依赖 开始--> <!-- 新增电子签章依赖 开始-->
<!-- 核心功能 start --> <!-- 核心功能 start -->
<script type="text/javascript" src="./kinggrid/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="./kinggrid/jquery-1.8.3.min.js"></script>
......
...@@ -236,6 +236,8 @@ ...@@ -236,6 +236,8 @@
<script> <script>
import { api, statusEnum } from './mock' import { api, statusEnum } from './mock'
import { Store } from '@/utils/storage'
import { storeKey } from '@/utils/auth'
export default { export default {
name: 'AdminList', name: 'AdminList',
data() { data() {
...@@ -639,7 +641,8 @@ obj=this.typeform*/ ...@@ -639,7 +641,8 @@ obj=this.typeform*/
/** 个人数据列表查询*/ /** 个人数据列表查询*/
findContract() { findContract() {
console.log('登录人ID', localStorage.getItem('UserID')) 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', this.$axios.get('http://117.122.212.101:8090/contract/contract/queryContractByPage',
{ {
params: { params: {
...@@ -666,7 +669,8 @@ obj=this.typeform*/ ...@@ -666,7 +669,8 @@ obj=this.typeform*/
}, },
/** 部门数据列表查询*/ /** 部门数据列表查询*/
deptFindContract() { 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', this.$axios.get('http://117.122.212.101:8090/contract/contract/queryContractByPage',
{ {
params: { params: {
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
:underline="false" :underline="false"
@click="goDetail('/forgetPwd')" @click="goDetail('/forgetPwd')"
> >
<!-- <router-link to="/forgetPwd">忘记密码</router-link>--> <!-- <router-link to="/forgetPwd">忘记密码</router-link>-->
</el-link> </el-link>
</div> </div>
</div> </div>
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
this.loading = false this.loading = false
const username = res.data.data.USER_ID const username = res.data.data.USER_ID
Store.set(storeKey.token, `${Math.random()}_${new Date().getTime()}`) 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) { if (rememberMe) {
Store.set('username', username) Store.set('username', username)
Store.set('password', encrypt(password)) 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