| | |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="insertform.path" |
| | | v-model="insertform.dirName" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | > |
| | |
| | | this.insertform.dirid = value; |
| | | }, |
| | | catalogChangeAdd(data, node, nodeData) { |
| | | this.$set(this.insertform, "path", data.id); |
| | | |
| | | this.insertform.path = data.id |
| | | this.insertform.dirid = data.id |
| | | // this.$set(this.insertform, "path", data.id); |
| | | this.$set(this.insertform, "dirName", data.name); |
| | | }, |
| | | upCatalogChange(val) { |
| | |
| | | return; |
| | | } |
| | | this.insertform.name = this.getYMD(); |
| | | this.insertform.path = 1; |
| | | this.insertform.dirid = 1; |
| | | this.upform.dirid == 1; |
| | | // this.insertform.path = 1; |
| | | // this.insertform.dirid = 1; |
| | | // this.upform.dirid == 1; |
| | | this.catalogOption = this.treeData(res.result); |
| | | this.editcatalogOption = this.treeData(res.result); |
| | | }, |
| | |
| | | this.insertform = {}; |
| | | }, |
| | | async insertFromData() { |
| | | |
| | | if (this.insertform.dirid == null) { |
| | | this.$message({ |
| | | message: "请选择角色所属单位", |
| | |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | const data = await insertVersion(this.insertform); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |