|
@@ -81,6 +81,7 @@
|
|
|
<el-table-column
|
|
|
prop="patrolDate"
|
|
|
label="巡更日期"
|
|
|
+ width="110"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -276,7 +277,7 @@ export default {
|
|
|
|
|
|
standard () {
|
|
|
this.$http.get('/czc-community/patrol/record/standard/detail', { recordId: this.thisObj.id }).then(({ data, status, msg }) => {
|
|
|
- if (status == 0) {
|
|
|
+ if (status == 0 && data != null) {
|
|
|
|
|
|
this.tableData.communityName = data.communityName;
|
|
|
this.tableData.routeName = data.routeName;
|
|
@@ -301,6 +302,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ } else {
|
|
|
+ this.tableData = [];
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -379,6 +382,7 @@ export default {
|
|
|
|
|
|
this.standard();
|
|
|
} else {
|
|
|
+ this.thisObj.patrolDate = (this.thisObj.patrolDate).substr(0, 10);
|
|
|
this.tableData.push(this.thisObj);
|
|
|
this.getDetail(this.thisObj.id);
|
|
|
this.getTrack(this.thisObj.id);
|