提交 c93972ed authored 作者: 林国禄's avatar 林国禄

更新指标

上级 ff643c12
...@@ -304,9 +304,11 @@ export default { ...@@ -304,9 +304,11 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if(this.form.levelValue != null){ if(this.form.levelValue != null && this.form.levelValue.length > 0){
this.form.parentId = this.form.levelValue[this.form.levelValue.length-1];//上级id this.form.parentId = this.form.levelValue[this.form.levelValue.length-1];//上级id
this.form.levelValue = JSON.stringify(this.form.levelValue) this.form.levelValue = JSON.stringify(this.form.levelValue)
}else {
this.form.levelValue = null;
} }
if (this.form.id != null) { if (this.form.id != null) {
......
...@@ -496,9 +496,11 @@ export default { ...@@ -496,9 +496,11 @@ export default {
} }
//处理指标层级 //处理指标层级
if(this.form.levelValue != null){ if(this.form.levelValue != null && this.form.levelValue.length > 0){
this.form.targetLevelId = this.form.levelValue[this.form.levelValue.length-1];//指标分类id this.form.targetLevelId = this.form.levelValue[this.form.levelValue.length-1];//指标分类id
this.form.levelValue = JSON.stringify(this.form.levelValue) this.form.levelValue = JSON.stringify(this.form.levelValue)
}else {
this.form.levelValue = null;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论