| |
---|
| | ></el-option> |
---|
| | </el-select> |
---|
| | </div> |
---|
| | <div class="DialogList"> |
---|
| | <span class="DialogListName">推送频率(秒):</span> |
---|
| | <span class="DialogListName">推送频率(小时):</span> |
---|
| | <el-input |
---|
| | placeholder="请输入站点名称" |
---|
| | v-model="pushFrequency" |
---|
| | clearable |
---|
| |
---|
| | DialogTitle: "", //弹窗得标题 |
---|
| | platForm: "", //平台编号 |
---|
| | platFormData: [], //平台编号渲染数据 |
---|
| | platFormName: "", //平台名称 |
---|
| | pushFrequency: 28800, //推送频率 |
---|
| | pushFrequency: 8, //推送频率 |
---|
| | startTime: "08:00:00", //时间 |
---|
| | endTime: "08:00:00" //时间 |
---|
| | }; |
---|
| | }, |
---|
| |
---|
| | name: rows.platFormName |
---|
| | } |
---|
| | ]; |
---|
| | this.platForm = rows.platForm; |
---|
| | this.pushFrequency = rows.pushFrequency; |
---|
| | this.pushFrequency = rows.pushFrequency / 3600; |
---|
| | this.startTime = rows.startTime; |
---|
| | this.endTime = rows.endTime; |
---|
| | }, |
---|
| | // 新增 |
---|
| |
---|
| | // 设置默认值 |
---|
| | this.platFormData = response.data.data; |
---|
| | this.platForm = response.data.data[0].platformCode; |
---|
| | this.platFormName = response.data.data[0].name; |
---|
| | this.pushFrequency = 28800; |
---|
| | this.pushFrequency = 8; |
---|
| | this.startTime = "08:00:00"; |
---|
| | this.endTime = "22:00:00"; |
---|
| | } |
---|
| | } else { |
---|
| |
---|
| | params2 = { |
---|
| | data: { |
---|
| | platForm: this.platForm, //平台编号 |
---|
| | platFormName: this.platFormName, //平台名称 |
---|
| | pushFrequency: this.pushFrequency, //推送频率 |
---|
| | pushFrequency: this.pushFrequency * 3600, //推送频率 |
---|
| | startTime: this.startTime, //推送起始时间 |
---|
| | endTime: this.endTime //推送结束时间 |
---|
| | } |
---|
| | }; |
---|
| |
---|
| | PostUrl = this.nozzle.warnRuleInsertUpdateWarnPushRule; |
---|
| | params2 = { |
---|
| | data: { |
---|
| | platForm: this.platForm, //平台编号 |
---|
| | pushFrequency: this.pushFrequency, //推送频率 |
---|
| | pushFrequency: this.pushFrequency * 3600, //推送频率 |
---|
| | startTime: this.startTime, //推送起始时间 |
---|
| | endTime: this.endTime //推送结束时间 |
---|
| | } |
---|
| | }; |
---|
| |
---|
| | |