Commit d8148df2 authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents 7b9c781c 8c172a8e
<template> <template>
<div class="account"> <div class="account">
<Carousel v-model="value1" autoplay :autoplay-speed="5000" loop class="zmd"> <Carousel v-model="value1" autoplay :autoplay-speed="5000" loop class="zmd">
<CarouselItem> <!-- <CarouselItem>
<div class="bg bg0">1</div> <div class="bg bg0">1</div>
</CarouselItem> </CarouselItem> -->
<CarouselItem> <CarouselItem>
<div class="bg bg1">1</div> <div class="bg bg1">1</div>
</CarouselItem> </CarouselItem>
......
...@@ -482,10 +482,11 @@ export default { ...@@ -482,10 +482,11 @@ export default {
let datalist = [] let datalist = []
let userInfo =this.$store.state.admin.user.info;
for (let i = 0; i < this.data1.length; i++) { for (let i = 0; i < this.data1.length; i++) {
let obj = this.data1[i] let obj = this.data1[i]
if (obj.productstatus1 == 0 && obj.productstatus != 0) { if (obj.productstatus1 == 0 && obj.productstatus != 0) {
obj.report_user_name = localStorage.getItem('userName') obj.report_user_name =userInfo.name
datalist.push(obj) datalist.push(obj)
} }
} }
......
...@@ -227,9 +227,9 @@ export default { ...@@ -227,9 +227,9 @@ export default {
}, },
getCurrentUser(e) { getCurrentUser(e) {
if (e) { if (e) {
let userInfo = this.$store.admin.user.info; let userInfo =this.$store.state.admin.user.info;
this.user.cardno = userInfo.login_id this.user.cardno = userInfo.login_id
this.user.user_name =userInfo.userName this.user.user_name =userInfo.name
this.user.user_id = userInfo.userId this.user.user_id = userInfo.userId
} else { } else {
this.user.cardno = '' this.user.cardno = ''
......
...@@ -238,8 +238,8 @@ export default { ...@@ -238,8 +238,8 @@ export default {
}, },
getCurrentUser(e) { getCurrentUser(e) {
if (e) { if (e) {
let userInfo = this.$store.state.userInfo; let userInfo = this.$store.state.admin.user.info;
console.log(userInfo);
this.user.cardno = userInfo.login_id this.user.cardno = userInfo.login_id
this.user.user_name = userInfo.name this.user.user_name = userInfo.name
this.user.user_id = userInfo.userId this.user.user_id = userInfo.userId
......
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