|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="cqcy-content">
|
|
|
+ <div v-if="hideMainViewFlag" class="cqcy-content">
|
|
|
<el-button v-if="roleCodeList.indexOf(__self.clientRole) > -1"
|
|
|
type="primary" icon="el-icon-circle-plus-outline"
|
|
|
size="mini" @click="addIndexChartBtnEvent">添加图表
|
|
@@ -84,22 +84,22 @@
|
|
|
v-model="chartForm.valueTakingMode"
|
|
|
:label="item.value">{{ item.label }}</el-radio>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="取值时间:" prop="dateRange">
|
|
|
- <el-date-picker
|
|
|
- v-model="chartForm.dateRange"
|
|
|
- type="datetimerange"
|
|
|
- :clearable="false"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始时间"
|
|
|
- end-placeholder="结束时间"
|
|
|
- placeholder="选择取值时间范围"
|
|
|
- :picker-options="{
|
|
|
- format: 'yyyy-MM-dd HH:mm:ss'
|
|
|
- }"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- :default-time="['09:00:00', '18:00:00']">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
+<!-- <el-form-item label="取值时间:" prop="dateRange">-->
|
|
|
+<!-- <el-date-picker-->
|
|
|
+<!-- v-model="chartForm.dateRange"-->
|
|
|
+<!-- type="datetimerange"-->
|
|
|
+<!-- :clearable="false"-->
|
|
|
+<!-- range-separator="至"-->
|
|
|
+<!-- start-placeholder="开始时间"-->
|
|
|
+<!-- end-placeholder="结束时间"-->
|
|
|
+<!-- placeholder="选择取值时间范围"-->
|
|
|
+<!-- :picker-options="{-->
|
|
|
+<!-- format: 'yyyy-MM-dd HH:mm:ss'-->
|
|
|
+<!-- }"-->
|
|
|
+<!-- value-format="yyyy-MM-dd HH:mm:ss"-->
|
|
|
+<!-- :default-time="['09:00:00', '18:00:00']">-->
|
|
|
+<!-- </el-date-picker>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
<el-divider content-position="left">取值周期设置</el-divider>
|
|
|
<div class="cy-line">
|
|
|
<el-form-item label="时间单位:" prop="bucketType">
|
|
@@ -139,6 +139,7 @@
|
|
|
<!-- 选择用户组 -->
|
|
|
<user-group ref="userGroup" @update-message="updateUserGroupEmit"></user-group>
|
|
|
</div>
|
|
|
+ <div v-else></div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -158,6 +159,7 @@ export default {
|
|
|
return {
|
|
|
roleCodeList: [],
|
|
|
dialogIndexChartVisible: false,
|
|
|
+ hideMainViewFlag: true,
|
|
|
chartDataList: [],
|
|
|
chartTotal: 0,
|
|
|
chartPage: 1,
|
|
@@ -223,6 +225,9 @@ export default {
|
|
|
this.getIndexAllChart()
|
|
|
},
|
|
|
methods: {
|
|
|
+ hideMainView(flag) {
|
|
|
+ this.hideMainViewFlag = flag
|
|
|
+ },
|
|
|
sizeChartChangeEvent(val) {
|
|
|
this.chartPage = 1
|
|
|
this.chartLimit = val
|
|
@@ -274,10 +279,10 @@ export default {
|
|
|
showAlertMsgWin(this, null, '图表名称不能为空!')
|
|
|
return
|
|
|
}
|
|
|
- if (this.chartForm.dateRange.length == 0) {
|
|
|
- showAlertMsgWin(this, null, '取值时间不能为空!')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.chartForm.dateRange.length == 0) {
|
|
|
+ // showAlertMsgWin(this, null, '取值时间不能为空!')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.chartForm.chartItemList.length == 0) {
|
|
|
showAlertMsgWin(this, null, '数据项不能为空!')
|
|
|
return
|
|
@@ -286,8 +291,8 @@ export default {
|
|
|
showAlertMsgWin(this, null, '用户组不能为空!')
|
|
|
return
|
|
|
}
|
|
|
- this.chartForm.startTime = this.chartForm.dateRange[0]
|
|
|
- this.chartForm.endTime = this.chartForm.dateRange[1]
|
|
|
+ // this.chartForm.startTime = this.chartForm.dateRange[0]
|
|
|
+ // this.chartForm.endTime = this.chartForm.dateRange[1]
|
|
|
saveIndexChart(this.chartForm).then(res => {
|
|
|
this.dialogIndexChartVisible = false
|
|
|
this.getIndexAllChart()
|