|
@@ -1112,30 +1112,31 @@ export default {
|
|
|
},
|
|
|
lookover(row){
|
|
|
console.log('lookover',row);
|
|
|
+ const newRow = JSON.parse(JSON.stringify(row))
|
|
|
if(this.user.userNameNeedTranslate == 1) {
|
|
|
let obj = {name: '',text: ''}
|
|
|
|
|
|
- if (row.msg) {
|
|
|
- let match = row.msg.match(/\$userName=(.*?)\$(.*)/);
|
|
|
+ if (newRow.msg) {
|
|
|
+ let match = newRow.msg.match(/\$userName=(.*?)\$(.*)/);
|
|
|
if (match) {
|
|
|
obj.name = match[1];
|
|
|
obj.text = match[2];
|
|
|
} else {
|
|
|
- obj.text = row.msg;
|
|
|
+ obj.text = newRow.msg;
|
|
|
}
|
|
|
}
|
|
|
- // if(row.msg.indexOf('$userName=') != '-1') {
|
|
|
- // let str = row.msg.split('$userName=')[1]
|
|
|
+ // if(newRow.msg.indexOf('$userName=') != '-1') {
|
|
|
+ // let str = newRow.msg.split('$userName=')[1]
|
|
|
// let arr = str.split('$')
|
|
|
// obj.name = arr[0]
|
|
|
// obj.text = arr[1]
|
|
|
// } else {
|
|
|
- // obj.text = row.msg
|
|
|
+ // obj.text = newRow.msg
|
|
|
// }
|
|
|
- row.msg = obj
|
|
|
- this.contractForm = row
|
|
|
+ newRow.msg = obj
|
|
|
+ this.contractForm = newRow
|
|
|
} else {
|
|
|
- this.contractForm = row
|
|
|
+ this.contractForm = newRow
|
|
|
}
|
|
|
this.fileList = this.contractForm.files ? this.contractForm.files : []
|
|
|
for(let i in this.fileList){
|