|
@@ -8,6 +8,7 @@
|
|
label-width="120px"
|
|
label-width="120px"
|
|
:model="formLabelAlign"
|
|
:model="formLabelAlign"
|
|
:rules="rules"
|
|
:rules="rules"
|
|
|
|
+ :validate-on-rule-change="true"
|
|
ref="infopointform"
|
|
ref="infopointform"
|
|
>
|
|
>
|
|
<el-form-item label="全局编码" prop="EqId">
|
|
<el-form-item label="全局编码" prop="EqId">
|
|
@@ -31,8 +32,14 @@
|
|
v-model="formLabelAlign.code"
|
|
v-model="formLabelAlign.code"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="信息点名称" v-show="InfoItem &&InfoItem.data.properties.infoData">
|
|
|
|
- <el-input @change="changeText" v-model="formLabelAlign.subName"></el-input>
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="信息点名称"
|
|
|
|
+ v-show="InfoItem && InfoItem.data.properties.infoData"
|
|
|
|
+ >
|
|
|
|
+ <el-input
|
|
|
|
+ @change="changeText"
|
|
|
|
+ v-model="formLabelAlign.subName"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
@@ -71,6 +78,15 @@ export default {
|
|
// 提交表单
|
|
// 提交表单
|
|
submitForm() {
|
|
submitForm() {
|
|
this.$refs["infopointform"].validate((valid) => {
|
|
this.$refs["infopointform"].validate((valid) => {
|
|
|
|
+ //保存信息点值
|
|
|
|
+ // if (this.InfoItem) {
|
|
|
|
+ // this.InfoItem.data.properties.infoData = {
|
|
|
|
+ // equipId: this.formLabelAlign.EqId,
|
|
|
|
+ // classCode: this.formLabelAlign.classCode,
|
|
|
|
+ // code: this.formLabelAlign.code,
|
|
|
|
+ // };
|
|
|
|
+ // }
|
|
|
|
+ // 做校验判断
|
|
if (valid) {
|
|
if (valid) {
|
|
// 请求信息
|
|
// 请求信息
|
|
this.queryMsg();
|
|
this.queryMsg();
|
|
@@ -103,7 +119,6 @@ export default {
|
|
if (this.InfoItem) {
|
|
if (this.InfoItem) {
|
|
if (this.InfoItem.data.properties.infoData) {
|
|
if (this.InfoItem.data.properties.infoData) {
|
|
this.$delete(this.InfoItem.data.properties, "infoData");
|
|
this.$delete(this.InfoItem.data.properties, "infoData");
|
|
- console.log("this.InfoItem.data.properties",this.InfoItem.data.properties);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|