|
@@ -229,20 +229,21 @@ export default {
|
|
|
this.content = data.comment
|
|
this.content = data.comment
|
|
|
this.value = +data.commentScore
|
|
this.value = +data.commentScore
|
|
|
this.trainingData = data
|
|
this.trainingData = data
|
|
|
- this.trainingData.taskUserList.map(item => {
|
|
|
|
|
- if (item.type == 1) {
|
|
|
|
|
- this.taskUserList.push(item.userName)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (this.trainingData.taskUserList && this.trainingData.taskUserList.length > 0) {
|
|
|
|
|
+ this.trainingData.taskUserList.forEach(item => {
|
|
|
|
|
+ if (item.type == 1) {
|
|
|
|
|
+ this.taskUserList.push(item.userName)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.qsUserList.push(item.userName)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.taskUserList = this.taskUserList.join(',')
|
|
this.taskUserList = this.taskUserList.join(',')
|
|
|
- this.trainingData.taskUserList.map(item => {
|
|
|
|
|
- if (item.type == 2) {
|
|
|
|
|
- this.qsUserList.push(item.userName)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+
|
|
|
this.qsUserList = this.qsUserList.join(',')
|
|
this.qsUserList = this.qsUserList.join(',')
|
|
|
|
|
+
|
|
|
this.signUserList = data.taskUserList || []
|
|
this.signUserList = data.taskUserList || []
|
|
|
- let list = data.fileList || []
|
|
|
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
|
list.forEach(item => {
|
|
list.forEach(item => {
|
|
|
let i = JSON.parse(item)
|
|
let i = JSON.parse(item)
|