Commit e30a3801 authored by renjintao's avatar renjintao

userName

parent 62b9e3b6
......@@ -101,7 +101,7 @@ export default {
methods: {
initial() {
this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName')
this.bugForm.createor = this.$store.state.userInfo.userName
},
//初始化编辑信息
editeInfo(value) {
......@@ -150,7 +150,7 @@ export default {
pagePath: window.location.href,
content: '',
imgPaths: [],
createor: localStorage.getItem('userName'),
createor: this.$store.state.userInfo.userName,
level: 1,
name: ''
}
......
......@@ -349,7 +349,7 @@ export default {
//修改事件
addSave() {
let param = this.$refs.edit.addBugInfo()
param.auditUser = localStorage.getItem('userName')
param.auditUser = this.$store.state.userInfo.userName
if (param.id != null) {
//增加确定
this.$http.bug.createorupdate(param).then((res) => {
......@@ -373,7 +373,7 @@ export default {
//确定/关闭操作
detailSave() {
let param = this.$refs.detail.addBugInfo()
param.auditUser = localStorage.getItem('userName')
param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id]
if (param.id != null) {
//增加确定
......@@ -398,7 +398,7 @@ export default {
} else {
param = this.$refs.detail.addBugInfo()
}
param.auditUser = localStorage.getItem('userName')
param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id]
param.statusNew = 5
if (param.id != null) {
......@@ -440,7 +440,7 @@ export default {
//this.showBt = false
this.selectBatch = 100
}
this.listBatch.auditUser = localStorage.getItem('userName')
this.listBatch.auditUser = this.$store.state.userInfo.userName
},
//批量操作
statuChange(value) {
......
......@@ -85,7 +85,7 @@ export default {
methods: {
initial() {
this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName')
this.bugForm.createor = this.$store.state.userInfo.userName
},
//初始化编辑信息
editeInfo(value) {
......
......@@ -345,7 +345,7 @@ export default {
//this.showBt = false
this.selectBatch = 100
}
this.listBatch.auditUser = localStorage.getItem('userName')
this.listBatch.auditUser = this.$store.state.userInfo.userName
},
canselFooter() {
this.footerBar = false
......
......@@ -472,7 +472,7 @@ export default {
this.formdata.change_process_file = "";
this.formdata.compilation_temporary_process = "";
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.note = "";
......
......@@ -113,7 +113,7 @@ export default {
this.mod.routingHeaderId = entryModel.routingHeaderId
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.product_code = ''
this.board_code = ''
......
......@@ -107,7 +107,7 @@ export default {
},
resource: [],
selectList: [],
libraryTube: localStorage.getItem('userName') //库管员
libraryTube: this.$store.state.userInfo.userName //库管员
}
},
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