|
@@ -52,9 +52,19 @@
|
|
<a-form-model-item
|
|
<a-form-model-item
|
|
:labelCol="labelCol"
|
|
:labelCol="labelCol"
|
|
:wrapperCol="wrapperCol"
|
|
:wrapperCol="wrapperCol"
|
|
- prop="tagName"
|
|
|
|
- label="历史记录条数">
|
|
|
|
- <a-input-number placeholder="历史记录条数" v-model="model.lognum" />
|
|
|
|
|
|
+ prop="lognum"
|
|
|
|
+ v-if="model.iflog=='Y'"
|
|
|
|
+ label="获取历史记录条数">
|
|
|
|
+ <a-input-number placeholder="获取历史记录条数" v-model="model.lognum" />
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+
|
|
|
|
+ <a-form-model-item
|
|
|
|
+ :labelCol="labelCol"
|
|
|
|
+ :wrapperCol="wrapperCol"
|
|
|
|
+ prop="logduration"
|
|
|
|
+ v-if="model.iflog=='Y'"
|
|
|
|
+ label="获取历史记录时长(H)">
|
|
|
|
+ <a-input-number placeholder="获取历史记录时长(H)" v-model="model.logduration" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
|
|
|
</a-form-model>
|
|
</a-form-model>
|
|
@@ -88,6 +98,8 @@
|
|
validatorRules: {
|
|
validatorRules: {
|
|
paramName: [{required: true, message: '请输入大屏参数名称!'}],
|
|
paramName: [{required: true, message: '请输入大屏参数名称!'}],
|
|
tagName: [{required: true, message: '请输入webaccess点名!'}],
|
|
tagName: [{required: true, message: '请输入webaccess点名!'}],
|
|
|
|
+ lognum: [{required: true, message: '请输入获取历史记录条数!'}],
|
|
|
|
+ // logduration: [{required: true, message: '请输入获取历史记录时长(小时)!'}],
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -122,6 +134,9 @@
|
|
this.$refs.form.validate(valid => {
|
|
this.$refs.form.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
that.confirmLoading = true;
|
|
that.confirmLoading = true;
|
|
|
|
+ if (this.model.iflog=='N') {
|
|
|
|
+ this.model.lognum=0;
|
|
|
|
+ }
|
|
let obj;
|
|
let obj;
|
|
if (!this.model.id) {
|
|
if (!this.model.id) {
|
|
obj = addDashParam(this.model);
|
|
obj = addDashParam(this.model);
|