深基坑(实时数据):导出功能
This commit is contained in:
parent
90760d8d8b
commit
d61deafbf8
@ -560,7 +560,7 @@
|
|||||||
style="margin-right: 10px"
|
style="margin-right: 10px"
|
||||||
>{{$t('message.deepFoundConfig.pointNo')}}</span>
|
>{{$t('message.deepFoundConfig.pointNo')}}</span>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="devNum2"
|
v-model="exportData.measurePointNumber"
|
||||||
:placeholder="$t('message.deepFoundConfig.placeholderText')"
|
:placeholder="$t('message.deepFoundConfig.placeholderText')"
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
@ -571,7 +571,7 @@
|
|||||||
style="margin-right: 10px"
|
style="margin-right: 10px"
|
||||||
>{{$t('message.deepFoundConfig.alarmStatus')}}</span>
|
>{{$t('message.deepFoundConfig.alarmStatus')}}</span>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="alarmStatus2"
|
v-model="exportData.alarmState"
|
||||||
clearable
|
clearable
|
||||||
:placeholder="$t('message.deepFoundConfig.placeholderText2')"
|
:placeholder="$t('message.deepFoundConfig.placeholderText2')"
|
||||||
>
|
>
|
||||||
@ -617,6 +617,11 @@
|
|||||||
plain
|
plain
|
||||||
@click="selectDeepExcavationCurrentData"
|
@click="selectDeepExcavationCurrentData"
|
||||||
>{{$t('message.deepFoundConfig.search')}}</el-button>
|
>{{$t('message.deepFoundConfig.search')}}</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
@click="exportDataFn"
|
||||||
|
>导出</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="currentPointDetail" class="tables" height="560">
|
<el-table :data="currentPointDetail" class="tables" height="560">
|
||||||
<!-- 测点编号 -->
|
<!-- 测点编号 -->
|
||||||
@ -1430,9 +1435,13 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
showActiveDetail: false,
|
showActiveDetail: false,
|
||||||
devNum2: "",
|
|
||||||
alarmStatus2: "",
|
|
||||||
acquisitionTime: [],
|
acquisitionTime: [],
|
||||||
|
exportData:{
|
||||||
|
alarmState:"",
|
||||||
|
measurePointNumber:"",
|
||||||
|
startTime:"",
|
||||||
|
endTime: "",
|
||||||
|
},
|
||||||
startX: "",
|
startX: "",
|
||||||
startY: "",
|
startY: "",
|
||||||
ratio: 1,
|
ratio: 1,
|
||||||
@ -1538,8 +1547,8 @@ export default {
|
|||||||
this.deleteInfo = false;
|
this.deleteInfo = false;
|
||||||
},
|
},
|
||||||
closeActiveDetail() {
|
closeActiveDetail() {
|
||||||
this.devNum2 = "";
|
this.exportData.measurePointNumber = "";
|
||||||
this.alarmStatus2 = "";
|
this.exportData.alarmState = "";
|
||||||
this.showActiveDetail = false;
|
this.showActiveDetail = false;
|
||||||
this.selectDeepExcavationMonitorTypeList();
|
this.selectDeepExcavationMonitorTypeList();
|
||||||
},
|
},
|
||||||
@ -1756,17 +1765,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
selectDeepExcavationCurrentData() {
|
selectDeepExcavationCurrentData() {
|
||||||
let data = {
|
let data = this.exportData
|
||||||
alarmState: this.alarmStatus2 ? this.alarmStatus2 : "",
|
data.startTime = this.acquisitionTime != "" ? this.acquisitionTime[0] : "",
|
||||||
measurePointNumber: this.devNum2,
|
data.endTime = this.acquisitionTime != "" ? this.acquisitionTime[1] : "",
|
||||||
relaId: this.relaId,
|
data.pageNo = this.pagInfo2.pageNo,
|
||||||
projectSn: this.projectSn,
|
data.pageSize = this.pagInfo2.pageSize
|
||||||
startTime: this.acquisitionTime != null ? this.acquisitionTime[0] : "",
|
|
||||||
endTime: this.acquisitionTime != null ? this.acquisitionTime[1] : "",
|
|
||||||
pageNo: this.pagInfo2.pageNo,
|
|
||||||
pageSize: this.pagInfo2.pageSize
|
|
||||||
};
|
|
||||||
// selectDeepExcavationCurrentDataApi
|
|
||||||
selectDeepExcavationCurrentDataListApi(data).then(res => {
|
selectDeepExcavationCurrentDataListApi(data).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@ -1776,6 +1779,20 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 导出数据
|
||||||
|
exportDataFn(){
|
||||||
|
this.exportData.startTime = this.acquisitionTime != "" ? this.acquisitionTime[0] : "",
|
||||||
|
this.exportData.endTime = this.acquisitionTime != "" ? this.acquisitionTime[1] : "",
|
||||||
|
console.log('=======导出传进去的参数',this.exportData)
|
||||||
|
window.location.href =
|
||||||
|
this.$http.defaults.baseURL +
|
||||||
|
'xmgl/deepExcavationCurrentData/exportData?alarmState=' + this.exportData.alarmState +
|
||||||
|
'&measurePointNumber=' + this.exportData.measurePointNumber +
|
||||||
|
'&projectSn=' + this.projectSn +
|
||||||
|
'&relaId=' + this.relaId +
|
||||||
|
'&startTime=' + this.exportData.startTime +
|
||||||
|
'&endTime=' + this.exportData.endTime
|
||||||
|
},
|
||||||
// 获取当前时间 返回YYYY-MM-DD HH:mm:ss
|
// 获取当前时间 返回YYYY-MM-DD HH:mm:ss
|
||||||
selectNowDate() {
|
selectNowDate() {
|
||||||
var date = new Date(),
|
var date = new Date(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user