|
|
@@ -18,7 +18,7 @@
|
|
|
<el-col :span="19">
|
|
|
<el-form-item prop="timeRange" label="有效时段">
|
|
|
<el-time-picker style="width:100%" v-model="formData.timeRange" value-format="HH:mm:ss"
|
|
|
- is-range start-placeholder="开始时间" end-placeholder="结束时间" @change="startDateChanged">
|
|
|
+ is-range start-placeholder="开始时间" end-placeholder="结束时间">
|
|
|
</el-time-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -100,6 +100,7 @@ export default {
|
|
|
...mapMutations([]),
|
|
|
reset() {
|
|
|
return {
|
|
|
+ thresholdId: null,
|
|
|
thresholdCode: null,
|
|
|
thresholdName: null,
|
|
|
timeRange: ['00:00:00', '23:59:59'],
|
|
|
@@ -112,6 +113,7 @@ export default {
|
|
|
this.isEdit=false;
|
|
|
if (param.thresholdCode){
|
|
|
this.formData = {
|
|
|
+ thresholdId: param.thresholdId,
|
|
|
thresholdCode: param.thresholdCode,
|
|
|
thresholdName: param.thresholdName,
|
|
|
timeRange: [param.beginTime,param.endTime],
|