Commit 45e33ff9 authored by renjintao's avatar renjintao

userName

parent 9132db3b
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
methods: { methods: {
initial() { initial() {
this.bugForm.pagePath = window.location.href this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName') this.bugForm.createor = this.$store.state.userInfo.userName
}, },
//初始化编辑信息 //初始化编辑信息
editeInfo(value) { editeInfo(value) {
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
pagePath: window.location.href, pagePath: window.location.href,
content: '', content: '',
imgPaths: [], imgPaths: [],
createor: localStorage.getItem('userName'), createor: this.$store.state.userInfo.userName,
level: 1, level: 1,
name: '' name: ''
} }
......
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
//修改事件 //修改事件
addSave() { addSave() {
let param = this.$refs.edit.addBugInfo() let param = this.$refs.edit.addBugInfo()
param.auditUser = localStorage.getItem('userName') param.auditUser = this.$store.state.userInfo.userName
if (param.id != null) { if (param.id != null) {
//增加确定 //增加确定
this.$http.bug.createorupdate(param).then((res) => { this.$http.bug.createorupdate(param).then((res) => {
...@@ -373,7 +373,7 @@ export default { ...@@ -373,7 +373,7 @@ export default {
//确定/关闭操作 //确定/关闭操作
detailSave() { detailSave() {
let param = this.$refs.detail.addBugInfo() let param = this.$refs.detail.addBugInfo()
param.auditUser = localStorage.getItem('userName') param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id] param.ids = [param.id]
if (param.id != null) { if (param.id != null) {
//增加确定 //增加确定
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
} else { } else {
param = this.$refs.detail.addBugInfo() param = this.$refs.detail.addBugInfo()
} }
param.auditUser = localStorage.getItem('userName') param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id] param.ids = [param.id]
param.statusNew = 5 param.statusNew = 5
if (param.id != null) { if (param.id != null) {
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
//this.showBt = false //this.showBt = false
this.selectBatch = 100 this.selectBatch = 100
} }
this.listBatch.auditUser = localStorage.getItem('userName') this.listBatch.auditUser = this.$store.state.userInfo.userName
}, },
//批量操作 //批量操作
statuChange(value) { statuChange(value) {
......
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