|
|
@@ -278,9 +278,10 @@ export default {
|
|
|
getVisitsDetail({ visitsId: this.urlParameter.visitId }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
let arr = [];
|
|
|
- res.data.sfaTaskList.forEach((val, ind) => {
|
|
|
- arr.push(ind);
|
|
|
- });
|
|
|
+ res.data.sfaTaskList &&
|
|
|
+ res.data.sfaTaskList.forEach((val, ind) => {
|
|
|
+ arr.push(ind);
|
|
|
+ });
|
|
|
this.activeNames = arr;
|
|
|
this.list = res.data;
|
|
|
if (res.data.visitSource != 2) {
|