Commit 2df7a2fc authored by 仇晓婷's avatar 仇晓婷

优化

parent 52938112
......@@ -12,7 +12,12 @@
</Col>
<Col :span="12">
<FormItem :label="l('name')" prop="materialId">
<Materiel v-model="entity.materialId" @on-change="change" :materialType="materialType" :codeRuleType='codeRuleType'></Materiel>
<Materiel
v-model="entity.materialId"
@on-change="change"
:materialType="materialType"
:codeRuleType="codeRuleType"
></Materiel>
</FormItem>
</Col>
......@@ -185,6 +190,8 @@ export default {
v = 0;
}
// this.$set(this.entity.customProperties,u.filed,v)
this.entity[u.field] = "";
this.entity.json[u.field] = "";
this.$set(this.entity, u.filed, v);
});
}
......
......@@ -191,7 +191,8 @@ export default {
if (u.dataType == 1 || u.dataType == 2) {
v = 0;
}
// this.$set(this.entity.customProperties,u.filed,v)
this.entity[u.field] = "";
this.entity.json[u.field] = "";
this.$set(this.entity, u.filed, v);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment