Browse Source

修改

master
风继续吹 1 year ago
parent
commit
bcd022855d
2 changed files with 50 additions and 4 deletions
  1. +35
    -4
      src/views/Statistics/Insightintothedetails.vue
  2. +15
    -0
      src/views/Statistics/ai/createReport.vue

+ 35
- 4
src/views/Statistics/Insightintothedetails.vue View File

@@ -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
}
);
},



+ 15
- 0
src/views/Statistics/ai/createReport.vue View File

@@ -44,6 +44,11 @@
handleChange(file, fileList, 'system');
}
"
:on-remove="
(file, fileList) => {
handleChange(file, fileList, 'system');
}
"
:file-list="system"
:accept="acceptList"
>
@@ -68,6 +73,11 @@
handleChange(file, fileList, 'user');
}
"
:on-remove="
(file, fileList) => {
handleChange(file, fileList, 'user');
}
"
:accept="acceptList"
:file-list="user"
>
@@ -92,6 +102,11 @@
handleChange(file, fileList, 'assistant');
}
"
:on-remove="
(file, fileList) => {
handleChange(file, fileList, 'assistant');
}
"
:accept="acceptList"
:file-list="assistant"
>


Loading…
Cancel
Save