Commit e30a3801 authored by renjintao's avatar renjintao

userName

parent 62b9e3b6
...@@ -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) {
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,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) {
......
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,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
}, },
canselFooter() { canselFooter() {
this.footerBar = false this.footerBar = false
......
...@@ -472,7 +472,7 @@ export default { ...@@ -472,7 +472,7 @@ export default {
this.formdata.change_process_file = ""; this.formdata.change_process_file = "";
this.formdata.compilation_temporary_process = ""; this.formdata.compilation_temporary_process = "";
this.formdata.inspection_date = ""; this.formdata.inspection_date = "";
this.formdata.inspection_person_name = localStorage.getItem("userName"); this.formdata.inspection_person_name = this.$store.state.userInfo.userName;
this.formdata.status = 1; this.formdata.status = 1;
this.formdata.note = ""; this.formdata.note = "";
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
this.mod.routingHeaderId = entryModel.routingHeaderId this.mod.routingHeaderId = entryModel.routingHeaderId
this.mod.routingDetailId = entryModel.routingDetailId this.mod.routingDetailId = entryModel.routingDetailId
this.mod.checkName = localStorage.getItem('userName') this.mod.checkName = this.$store.state.userInfo.userName
this.mod.check_Status = 3 this.mod.check_Status = 3
this.product_code = '' this.product_code = ''
this.board_code = '' this.board_code = ''
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
}, },
resource: [], resource: [],
selectList: [], selectList: [],
libraryTube: localStorage.getItem('userName') //库管员 libraryTube: this.$store.state.userInfo.userName //库管员
} }
}, },
props: {}, props: {},
......
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