-
+
diff --git a/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue b/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue
index 0db3d844..07d3f28f 100644
--- a/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue
@@ -158,14 +158,33 @@ export default {
this.$emit('submit', this.queryParams)
},
exportData() {
- let name
- if (this.queryParams.objId) {
- name = this.getObjName(this.objList, this.queryParams.objId)
+ if (this.objArr.length === 0) {
+ this.$modal.msgError('请选择对象')
+ return false
} else {
- this.$modal.msgWarning("对象不能为空")
+ this.queryParams.objId = this.objArr[this.objArr.length-1]
+ }
+ if (!this.queryParams.type) {
+ this.$modal.msgError('请选择时间维度')
return false
}
- this.$emit('exportD', {name: name})
+ if (!this.queryParams.searchTime) {
+ this.$modal.msgError('请选择时间')
+ return false
+ }
+ switch (this.queryParams.type) {
+ case 1:
+ this.queryParams.searchTime = this.transformTime(this.monthValue)
+ break;
+ case 2:
+ let value = moment(this.weekValue).day(6).format('YYYY-MM-DD') + ' 23:59:59'
+ this.queryParams.searchTime = new Date(value).getTime()
+ break;
+ default:
+ let value2 = moment(this.dateValue).format('YYYY-MM-DD') + ' 23:59:59'
+ this.queryParams.searchTime = new Date(value2).getTime()
+ }
+ this.$emit('exportD', this.queryParams)
},
// 递归取对象name
getObjName(list, id) {
@@ -229,4 +248,4 @@ export default {
margin-top: 10px;
}
}
-
\ No newline at end of file
+
diff --git a/src/views/energy/analysis/qoqAnalysis/index.vue b/src/views/energy/analysis/qoqAnalysis/index.vue
index 6c2ac964..b90776f5 100644
--- a/src/views/energy/analysis/qoqAnalysis/index.vue
+++ b/src/views/energy/analysis/qoqAnalysis/index.vue
@@ -19,7 +19,7 @@
+
+
+
+
diff --git a/src/views/equipment/base/spareParts/List/index.vue b/src/views/equipment/base/spareParts/List/index.vue
index 10bd5dcc..1e61269c 100644
--- a/src/views/equipment/base/spareParts/List/index.vue
+++ b/src/views/equipment/base/spareParts/List/index.vue
@@ -37,12 +37,14 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
@@ -51,14 +53,16 @@
diff --git a/src/views/extend/processTraceability/index.vue b/src/views/extend/processTraceability/index.vue
index d3b9f026..18ea4a8c 100644
--- a/src/views/extend/processTraceability/index.vue
+++ b/src/views/extend/processTraceability/index.vue
@@ -1,8 +1,8 @@