|
@@ -120,17 +120,18 @@
|
|
|
/>
|
|
|
|
|
|
<el-date-picker
|
|
|
- v-model="item.Date"
|
|
|
+ v-model="item.FixDate"
|
|
|
v-else-if="item.DateType===3"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
type="date"
|
|
|
placeholder="选择日期"
|
|
|
style="width: 150px"
|
|
|
+ @change="changeParams"
|
|
|
/>
|
|
|
|
|
|
<span>
|
|
|
- <i class="el-icon-view" v-if="item.ShowTips" @click="item.ShowTips=!item.ShowTips"/>
|
|
|
- <img :src="$icons.no_view" v-else style="width:24px;height:24px" @click="item.ShowTips=!item.ShowTips">
|
|
|
+ <i class="el-icon-view" v-if="item.ShowTips===1" @click="()=>{item.ShowTips=item.ShowTips===1?0:1;changeParams()}"/>
|
|
|
+ <img :src="$icons.no_view" v-else style="width:24px;height:24px" @click="()=>{item.ShowTips=item.ShowTips===1?0:1;changeParams()}">
|
|
|
</span>
|
|
|
|
|
|
<el-button type="text" v-if="index===0" @click="addDateHandle">
|
|
@@ -173,7 +174,7 @@ export default {
|
|
|
TagX: '',
|
|
|
TagY: '',
|
|
|
DateConfigList: [
|
|
|
- { DateType: 1,Num: 0,Date:'',ShowTips: true },
|
|
|
+ { DateType: 1,Num: 0,FixDate:'',ShowTips: 1 },
|
|
|
],
|
|
|
},
|
|
|
unitOpt: [
|
|
@@ -206,21 +207,22 @@ export default {
|
|
|
if(this.form.DateConfigList.length === 5) return this.$message.warning('日期数量已达上限')
|
|
|
|
|
|
this.form.DateConfigList.push({
|
|
|
- DateType: 1,Num: 1,Date:'',ShowTips: true
|
|
|
+ DateType: 1,Num: 1,FixDate:'',ShowTips: 1
|
|
|
})
|
|
|
|
|
|
this.changeParams()
|
|
|
},
|
|
|
|
|
|
initData(data) {
|
|
|
- const { ChartName,CalculateValue,CalculateUnit,TagX,TagY,DateConfigList } = data;
|
|
|
+ const { ChartName,CalculateValue,CalculateUnit,TagX,TagY,DateConfigList,PercentType } = data;
|
|
|
this.form = {
|
|
|
ChartName,
|
|
|
CalculateValue,
|
|
|
CalculateUnit,
|
|
|
TagX,
|
|
|
TagY,
|
|
|
- DateConfigList
|
|
|
+ DateConfigList,
|
|
|
+ PercentType: PercentType||0
|
|
|
}
|
|
|
},
|
|
|
|