Commit 1991ad92 by wangql

解决获取不到user的问题

1 parent 9b8da1b0
......@@ -359,7 +359,6 @@ export default {
type: 'warning'
})
.then(() => {
console.log(row[index].recordId)
this.cancelPublish(row[index].recordId)
})
.catch(err => this.error(err))
......@@ -563,8 +562,9 @@ export default {
const params = this.$deep_clone(this.noticeForm)
!params.recordId && delete params.recordId
params.merchants = params.merchants.join(',')
params.operatorId = this.operater.id
params.operatorName = this.operater.realname
var opt = this.$get_session_config().user
params.operatorId = opt.id
params.operatorName = opt.realname
params.method = nmMethods.Create
request.req(params).then(res => {
notice.okTips('创建成功')
......@@ -580,8 +580,9 @@ export default {
const params = this.$deep_clone(this.noticeForm)
!params.recordId && delete params.recordId
params.merchants = params.merchants.join(',')
params.operatorId = this.operater.id
params.operatorName = this.operater.realname
var opt = this.$get_session_config().user
params.operatorId = opt.id
params.operatorName = opt.realname
params.method = nmMethods.CreateCheck
request.req(params).then(res => {
notice.okTips('发布成功')
......@@ -617,7 +618,6 @@ export default {
resetSearch(this.noticeForm)
},
goEdit() {
console.log(this.noticeForm)
this.detailVisible = !this.detailVisible
this.addVisible = !this.addVisible
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!