|
|
@@ -68,7 +68,9 @@ export default {
|
|
|
open: false,
|
|
|
ruleForm: {
|
|
|
id: undefined,
|
|
|
- subName: "",
|
|
|
+ subId: undefined,
|
|
|
+ lineName: "",
|
|
|
+ conductMode: "",
|
|
|
mainCapacity: undefined,
|
|
|
alarmThreshold: undefined,
|
|
|
remark: undefined,
|
|
|
@@ -104,7 +106,8 @@ export default {
|
|
|
this.type = type;
|
|
|
this.open = true;
|
|
|
this.resetForm();
|
|
|
- if (id) this.info(id);
|
|
|
+ if (type === "add") this.ruleForm.subId = id;
|
|
|
+ if (id && type !== "add") this.info(id);
|
|
|
},
|
|
|
info(id) {
|
|
|
this.$http({
|
|
|
@@ -122,6 +125,8 @@ export default {
|
|
|
this.ruleForm = {
|
|
|
id: undefined,
|
|
|
lineName: "",
|
|
|
+ subId: undefined,
|
|
|
+ conductMode: "",
|
|
|
mainCapacity: undefined,
|
|
|
alarmThreshold: undefined,
|
|
|
remark: undefined,
|