|
@@ -216,12 +216,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
open(analyticFeedbackList, index, row, columns) {
|
|
|
- console.log(this.userNames)
|
|
|
this.isBg = true
|
|
|
this.analyticFeedbackList = _.cloneDeep(analyticFeedbackList)
|
|
|
this.rowIndex = _.cloneDeep(index)
|
|
|
this.$refs.normalDialog.visible = true
|
|
|
- console.log(columns)
|
|
|
row && (this.row = { ...row })
|
|
|
columns && (this.columns = [...columns])
|
|
|
this.initAnalysis()
|
|
@@ -248,6 +246,7 @@ export default {
|
|
|
initAnalysis() {
|
|
|
let peopleKey = ''
|
|
|
// let peoples = ''
|
|
|
+ const username = localStorage.getItem('username')
|
|
|
// 找到 责任人 的 headerKey
|
|
|
this.columns.forEach(clickItem => {
|
|
|
if (!peopleKey && clickItem.name === '责任人') {
|
|
@@ -264,10 +263,10 @@ export default {
|
|
|
contentItem: ''
|
|
|
}))
|
|
|
} else {
|
|
|
- console.log(254)
|
|
|
this.options.forEach((elm, elmIndex) => {
|
|
|
- if (elm.isCommitted && elm.feedbackCharge) {
|
|
|
- this.isCommittedUser.push(elm.feedbackCharge)
|
|
|
+ // 找到没有提交分析反馈的人员清单
|
|
|
+ if (this.analyticFeedbackList[elmIndex].isCommitted && this.analyticFeedbackList[elmIndex].feedbackCharge) {
|
|
|
+ this.isCommittedUser.push(this.analyticFeedbackList[elmIndex].feedbackCharge)
|
|
|
}
|
|
|
if (!this.analyticFeedbackList[elmIndex]) {
|
|
|
this.analyticFeedbackList[elmIndex] = {
|
|
@@ -278,8 +277,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- const username = localStorage.getItem('username')
|
|
|
- if (this.options.filter(elm => elm === localStorage.getItem('username')).length) {
|
|
|
+
|
|
|
+ if (this.options.filter(elm => elm === username).length && this.isCommittedUser.indexOf(username) < 0) {
|
|
|
this.feedbackCharge = username
|
|
|
} else {
|
|
|
this.feedbackCharge = ''
|
|
@@ -289,7 +288,6 @@ export default {
|
|
|
const analyticFeedbackList = [...this.analyticFeedbackList]
|
|
|
analyticFeedbackList.forEach(elm => {
|
|
|
if (elm && elm.feedbackCharge && elm.feedbackCharge === this.feedbackCharge) {
|
|
|
- console.log(elm, elm.analyticContents)
|
|
|
if (!elm.analyticContents) {
|
|
|
elm.analyticContents = []
|
|
|
} else {
|
|
@@ -363,7 +361,6 @@ export default {
|
|
|
this.$refs.normalDialog.visible = true
|
|
|
},
|
|
|
updateModule(key) {
|
|
|
- // console.log(key)
|
|
|
const { analyticFeedbackList, rowIndex } = this
|
|
|
if (key && key === 'Submission') {
|
|
|
analyticFeedbackList.forEach(elm => {
|