|
@@ -417,6 +417,14 @@ export default {
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ prop1: "searchStartTime",
|
|
|
|
+ prop2: "searchEndTime",
|
|
|
|
+ placeholder1: "查询开始时间",
|
|
|
|
+ placeholder2: "查询结束时间",
|
|
|
|
+ scope: "moreDataPicker",
|
|
|
|
+ Diszing: true,
|
|
|
|
+ },
|
|
{
|
|
{
|
|
prop: "realname",
|
|
prop: "realname",
|
|
placeholder: "请输入学员姓名",
|
|
placeholder: "请输入学员姓名",
|
|
@@ -534,7 +542,7 @@ export default {
|
|
listInfos: [],
|
|
listInfos: [],
|
|
recordList: [{ keyValueArrays: [] }], //记录列表
|
|
recordList: [{ keyValueArrays: [] }], //记录列表
|
|
activeIndex: 0,
|
|
activeIndex: 0,
|
|
- activeDCIndex:0, //导出按钮索引
|
|
|
|
|
|
+ activeDCIndex: 0, //导出按钮索引
|
|
DCLIST: [
|
|
DCLIST: [
|
|
{ label: "全部", value: 0 },
|
|
{ label: "全部", value: 0 },
|
|
{ label: "待审核", value: 2 },
|
|
{ label: "待审核", value: 2 },
|
|
@@ -550,9 +558,10 @@ export default {
|
|
this.search();
|
|
this.search();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- exputs() {
|
|
|
|
|
|
+ exputs(data) {
|
|
|
|
+ this.$modal.loading("正在导出数据,请稍后...");
|
|
this.$api
|
|
this.$api
|
|
- .inquirebaseprofileExport({ status: this.activeDCIndex })
|
|
|
|
|
|
+ .inquirebaseprofileExport(data)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
let url = baseUrls.baseURL + "common/download?fileName=" + res.msg;
|
|
let url = baseUrls.baseURL + "common/download?fileName=" + res.msg;
|
|
@@ -561,15 +570,39 @@ export default {
|
|
document.body.appendChild(link);
|
|
document.body.appendChild(link);
|
|
link.dowmload = fileName;
|
|
link.dowmload = fileName;
|
|
link.href = url;
|
|
link.href = url;
|
|
- console.log(link)
|
|
|
|
- link.click();
|
|
|
|
- link.remove();
|
|
|
|
- this.$message.success("批量导出成功");
|
|
|
|
- this.dialogDR = false;
|
|
|
|
|
|
+ console.log(link);
|
|
|
|
+ link.click();
|
|
|
|
+ link.remove();
|
|
|
|
+ this.$message.success("批量导出成功");
|
|
|
|
+ this.dialogDR = false;
|
|
}
|
|
}
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ let { message } = err;
|
|
|
|
+ if (message.includes("timeout")) {
|
|
|
|
+ this.$message.error(
|
|
|
|
+ "数据体量过大,无法正常导出,请调整导出的日期范围,缩小数据体量"
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .finally(() => {
|
|
|
|
+ this.$modal.closeLoading();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
moreActive() {
|
|
moreActive() {
|
|
|
|
+ let data = {
|
|
|
|
+ changeStatus: this.formData.changeStatus || "",
|
|
|
|
+ status: this.formData.status || 0,
|
|
|
|
+ educationTypeId: this.formData.educationTypeId || "",
|
|
|
|
+ businessId: this.formData.businessId || "",
|
|
|
|
+ majorId: this.formData.majorId || "",
|
|
|
|
+ schoolId: this.formData.schoolId || "",
|
|
|
|
+ realname: this.formData.realname || "",
|
|
|
|
+ searchStartTime: this.formData.searchStartTime / 1000 || "",
|
|
|
|
+ searchEndTime: this.formData.searchEndTime / 1000 || "",
|
|
|
|
+ };
|
|
|
|
+ this.exputs(data);
|
|
|
|
+ return;
|
|
this.activeDCIndex = 0;
|
|
this.activeDCIndex = 0;
|
|
this.dialogDR = true;
|
|
this.dialogDR = true;
|
|
},
|
|
},
|
|
@@ -595,12 +628,13 @@ export default {
|
|
item.keyValue = JSON.parse(item.keyValue);
|
|
item.keyValue = JSON.parse(item.keyValue);
|
|
var arst = [];
|
|
var arst = [];
|
|
for (let k in item.keyValue) {
|
|
for (let k in item.keyValue) {
|
|
- if(item.keyValue[k].value){
|
|
|
|
|
|
+ if (item.keyValue[k].fieldName) {
|
|
arst.push(item.keyValue[k]);
|
|
arst.push(item.keyValue[k]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
item.keyValueArrays = arst;
|
|
item.keyValueArrays = arst;
|
|
});
|
|
});
|
|
|
|
+ this.activeIndex = 0;
|
|
this.recordList = res.rows;
|
|
this.recordList = res.rows;
|
|
this.dialogVisibleRecord = true;
|
|
this.dialogVisibleRecord = true;
|
|
});
|
|
});
|
|
@@ -654,8 +688,15 @@ export default {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
+ var data = JSON.parse(JSON.stringify(this.formData));
|
|
|
|
+ if (this.formData.searchStartTime) {
|
|
|
|
+ data.searchStartTime = data.searchStartTime / 1000;
|
|
|
|
+ }
|
|
|
|
+ if (this.formData.searchEndTime) {
|
|
|
|
+ data.searchEndTime = data.searchEndTime / 1000;
|
|
|
|
+ }
|
|
this.$api
|
|
this.$api
|
|
- .inquirebaseprofile(this.formData)
|
|
|
|
|
|
+ .inquirebaseprofile(data)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.tableData = res.rows;
|
|
this.tableData = res.rows;
|
|
this.total = res.total;
|
|
this.total = res.total;
|
|
@@ -702,7 +743,9 @@ export default {
|
|
this.listData = res.data;
|
|
this.listData = res.data;
|
|
var arst = [];
|
|
var arst = [];
|
|
for (let k in res.data.keyValue) {
|
|
for (let k in res.data.keyValue) {
|
|
- arst.push(res.data.keyValue[k]);
|
|
|
|
|
|
+ if (res.data.keyValue[k].fieldName) {
|
|
|
|
+ arst.push(res.data.keyValue[k]);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.listInfos = arst;
|
|
this.listInfos = arst;
|
|
});
|
|
});
|