|
@@ -539,16 +539,24 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- /** 查询用户列表 */
|
|
|
+ /** 查询列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- if (this.dateRange.length > 0) {
|
|
|
- this.queryParams.startTime = this.dateRange[0];
|
|
|
- this.queryParams.endTime = this.dateRange[1];
|
|
|
+ let dateRange = Array.isArray(this.dateRange) ? this.dateRange : [];
|
|
|
+ if (dateRange.length > 0) {
|
|
|
+ this.queryParams.startTime = dateRange[0];
|
|
|
+ this.queryParams.endTime = dateRange[1];
|
|
|
+ } else {
|
|
|
+ this.queryParams.startTime = undefined;
|
|
|
+ this.queryParams.endTime = undefined;
|
|
|
}
|
|
|
- if (this.datResearch.length > 0) {
|
|
|
- this.queryParams.researchStart = this.datResearch[0];
|
|
|
- this.queryParams.researchEnd = this.datResearch[1];
|
|
|
+ let datResearch = Array.isArray(this.datResearch) ? this.datResearch : [];
|
|
|
+ if (datResearch.length > 0) {
|
|
|
+ this.queryParams.researchStart = datResearch[0];
|
|
|
+ this.queryParams.researchEnd = datResearch[1];
|
|
|
+ } else {
|
|
|
+ this.queryParams.researchStart = undefined;
|
|
|
+ this.queryParams.researchEnd = undefined;
|
|
|
}
|
|
|
this.queryParams.roleType = 3;
|
|
|
listRecord(this.queryParams).then((response) => {
|