|
@@ -25,6 +25,7 @@ |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd" |
|
|
start-placeholder="开始日期" |
|
|
start-placeholder="开始日期" |
|
|
end-placeholder="结束日期" |
|
|
end-placeholder="结束日期" |
|
|
|
|
|
:picker-options="pickerOptions" |
|
|
> |
|
|
> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</div> |
|
|
</div> |
|
@@ -153,6 +154,27 @@ export default { |
|
|
value: "", |
|
|
value: "", |
|
|
input: "", |
|
|
input: "", |
|
|
tableData: [], |
|
|
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: { |
|
|
fromobj: { |
|
|
staDate: "", |
|
|
staDate: "", |
|
|
endDate: "", |
|
|
endDate: "", |
|
@@ -172,15 +194,15 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
// 权限 |
|
|
// 权限 |
|
|
this.sta_idx_download = this.permissions["sta_idx_download"]; |
|
|
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) { |
|
|
if (Object.keys(this.$route.query).length > 0) { |
|
|
var isnull = this.$route.query.flag; |
|
|
var isnull = this.$route.query.flag; |
|
|
if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; |
|
|
if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; |
|
|
if (isnull.customtime) this.customtime = isnull.customtime; |
|
|
if (isnull.customtime) this.customtime = isnull.customtime; |
|
|
this.fromobj.staDate = isnull.starttime; |
|
|
this.fromobj.staDate = isnull.starttime; |
|
|
this.fromobj.endDate = isnull.endoftime; |
|
|
this.fromobj.endDate = isnull.endoftime; |
|
|
this.fromobj.projectId = isnull.houseId |
|
|
|
|
|
|
|
|
this.fromobj.projectId = isnull.houseId; |
|
|
this.fromobj.keywords = isnull.keywordsId; |
|
|
this.fromobj.keywords = isnull.keywordsId; |
|
|
if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { |
|
|
if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { |
|
|
this.TimetoAhoose = 6; |
|
|
this.TimetoAhoose = 6; |
|
@@ -195,10 +217,19 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
// 导出 |
|
|
// 导出 |
|
|
downLoads() { |
|
|
downLoads() { |
|
|
|
|
|
let datatype = ""; |
|
|
|
|
|
if (this.TimetoAhoose == 6) { |
|
|
|
|
|
datatype = ""; |
|
|
|
|
|
} else { |
|
|
|
|
|
datatype = this.TimetoAhoose; |
|
|
|
|
|
} |
|
|
exportMethodPost( |
|
|
exportMethodPost( |
|
|
"autoSR/matchKeywords/receptionRecordExport", |
|
|
"autoSR/matchKeywords/receptionRecordExport", |
|
|
"画像详情", |
|
|
"画像详情", |
|
|
this.fromobj |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
...this.fromobj, |
|
|
|
|
|
dateType: datatype |
|
|
|
|
|
} |
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|