|
|
@@ -25,6 +25,7 @@ |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
:picker-options="pickerOptions" |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</div> |
|
|
@@ -153,6 +154,27 @@ export default { |
|
|
|
value: "", |
|
|
|
input: "", |
|
|
|
tableData: [], |
|
|
|
pickerMinDate: '', |
|
|
|
// 日期选择器的 |
|
|
|
pickerOptions: { |
|
|
|
onPick: (obj) => { |
|
|
|
this.pickerMinDate = new Date(obj.minDate).getTime(); |
|
|
|
}, |
|
|
|
disabledDate: (time) => { |
|
|
|
if (this.pickerMinDate) { |
|
|
|
const day1 = 30 * 24 * 3600 * 1000; |
|
|
|
let maxTime = this.pickerMinDate + day1; |
|
|
|
let minTime = this.pickerMinDate - day1; |
|
|
|
return ( |
|
|
|
time.getTime() >= maxTime || |
|
|
|
time.getTime() <= minTime || |
|
|
|
time.getTime() >= Date.now() - 1 * 24 * 3600 * 1000 |
|
|
|
); |
|
|
|
} else { |
|
|
|
return time.getTime() > Date.now() - 1 * 24 * 3600 * 1000; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
fromobj: { |
|
|
|
staDate: "", |
|
|
|
endDate: "", |
|
|
@@ -172,15 +194,15 @@ export default { |
|
|
|
mounted() { |
|
|
|
// 权限 |
|
|
|
this.sta_idx_download = this.permissions["sta_idx_download"]; |
|
|
|
console.log(this.$route.query) |
|
|
|
console.log(Object.keys(this.$route.query)) |
|
|
|
console.log(this.$route.query); |
|
|
|
console.log(Object.keys(this.$route.query)); |
|
|
|
if (Object.keys(this.$route.query).length > 0) { |
|
|
|
var isnull = this.$route.query.flag; |
|
|
|
if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; |
|
|
|
if (isnull.customtime) this.customtime = isnull.customtime; |
|
|
|
this.fromobj.staDate = isnull.starttime; |
|
|
|
this.fromobj.endDate = isnull.endoftime; |
|
|
|
this.fromobj.projectId = isnull.houseId |
|
|
|
this.fromobj.projectId = isnull.houseId; |
|
|
|
this.fromobj.keywords = isnull.keywordsId; |
|
|
|
if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { |
|
|
|
this.TimetoAhoose = 6; |
|
|
@@ -195,10 +217,19 @@ export default { |
|
|
|
methods: { |
|
|
|
// 导出 |
|
|
|
downLoads() { |
|
|
|
let datatype = ""; |
|
|
|
if (this.TimetoAhoose == 6) { |
|
|
|
datatype = ""; |
|
|
|
} else { |
|
|
|
datatype = this.TimetoAhoose; |
|
|
|
} |
|
|
|
exportMethodPost( |
|
|
|
"autoSR/matchKeywords/receptionRecordExport", |
|
|
|
"画像详情", |
|
|
|
this.fromobj |
|
|
|
{ |
|
|
|
...this.fromobj, |
|
|
|
dateType: datatype |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
|
|
|
|