|
|
@@ -20,6 +20,10 @@
|
|
|
<em>策略名称:</em>
|
|
|
<el-input v-model="panel.name" placeholder=""></el-input>
|
|
|
</div>
|
|
|
+ <div class="pline">
|
|
|
+ <em>持续时间:</em>
|
|
|
+ <el-input v-model="panel.duration" type="number" placeholder="单位 秒"></el-input>
|
|
|
+ </div>
|
|
|
<div class="pline">
|
|
|
<em class="label_checked" @click="turnRecord">
|
|
|
<img src="../assets/img/main/true.png" height="15" width="15" v-if="recordState"/>
|
|
|
@@ -203,6 +207,7 @@
|
|
|
end: 0,
|
|
|
distance: 1,
|
|
|
cycle: 0,
|
|
|
+ duration: 0,
|
|
|
},
|
|
|
scopeState: false,
|
|
|
agreement_options: WirelessType(),
|
|
|
@@ -232,6 +237,7 @@
|
|
|
{value: 2, label: '已完成'},
|
|
|
],
|
|
|
time1: globalBt3(2),
|
|
|
+ duration: 0,
|
|
|
},
|
|
|
pageination: {
|
|
|
pageItem: 100,
|
|
|
@@ -266,6 +272,26 @@
|
|
|
this.readTacticsInfo();
|
|
|
}
|
|
|
},
|
|
|
+ panel: {
|
|
|
+ handler(newName, oldName) {
|
|
|
+ if (parseInt(newName.duration) < 0) {
|
|
|
+ this.$notify.error({
|
|
|
+ title: '错误',
|
|
|
+ message: '持续时间不能小于0'
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (parseInt(newName.duration) > 86400) {
|
|
|
+ this.$notify.error({
|
|
|
+ title: '错误',
|
|
|
+ message: '持续时间不能超过86400秒(24小时)'
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ immediate: true
|
|
|
+ },
|
|
|
scan: {
|
|
|
handler(newName, oldName) {
|
|
|
if (parseInt(newName.begin) > 6000) {
|
|
|
@@ -303,6 +329,20 @@
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
+ if (parseInt(newName.duration) < 0) {
|
|
|
+ this.$notify.error({
|
|
|
+ title: '错误',
|
|
|
+ message: '持续时间不能小于0'
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (parseInt(newName.duration) > 86400) {
|
|
|
+ this.$notify.error({
|
|
|
+ title: '错误',
|
|
|
+ message: '持续时间不能超过86400秒(24小时)'
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
|
|
|
// 0-6G现实范围
|
|
|
if (newName.agreement == "13") {
|
|
|
@@ -399,6 +439,23 @@
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
+ if (parseInt(this.panel.duration) < 0) {
|
|
|
+ that.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: '错了哦,持续时间不能小于0',
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (parseInt(this.panel.duration) > 86400) {
|
|
|
+ that.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: '错了哦,持续时间不能超过86400秒(24小时)',
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
let freq06G = [];
|
|
|
let signalList = [];
|
|
|
|
|
|
@@ -434,6 +491,7 @@
|
|
|
|
|
|
// 拼装value
|
|
|
let tacticsValue = {
|
|
|
+ duration: parseInt(this.panel.duration),
|
|
|
freq06G: freq06G,
|
|
|
isRecording: this.recordState,
|
|
|
signalList: signalList,
|
|
|
@@ -533,7 +591,7 @@
|
|
|
tacticsValue = JSON.stringify(tacticsValue);
|
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
|
- id:this.tid,
|
|
|
+ id: this.tid,
|
|
|
name: this.panel.name,
|
|
|
memo: '',
|
|
|
value: tacticsValue
|