| | |
| | | openDialog() { |
| | | //新增和修改共同调用(有改动 不需要在使用edit,方法没什么影响) |
| | | this.getFormTemplate(); |
| | | if (this.type === "add" || (this.type !== "add" && this.status === "amend")) { |
| | | if (this.type === "add") { |
| | | this.getCodeRule(); |
| | | return; |
| | | } |
| | |
| | | } |
| | | }) |
| | | if (this.$refs.CodeApply) { // 添加一个判断语句,检查对象是否为undefined |
| | | this.$refs.CodeApply.changeChildItem(this.secVOList, this.TreeValue, this.type); |
| | | this.$refs.CodeApply.changeStatusItem(this.secVOList, this.TreeValue, this.type); |
| | | } |
| | | }, |
| | | //年代号 |
| | |
| | | }); |
| | | |
| | | if (this.$refs.CodeApply) { |
| | | this.$refs.CodeApply.changeChildItem(this.secVOList, this.TreeValue, this.type); |
| | | this.$refs.CodeApply.changeStatusItem(this.secVOList, this.TreeValue, this.type); |
| | | } |
| | | }, |
| | | //属性码段赋值 |