src/components/view/self-inspection.vue
@@ -448,8 +448,15 @@ }, //新增 add() { this.dialogVisible = false if (this.form.standard[0] !== "<" && this.form.standard[0] !== "<=" && this.form.standard[0] !== ">"){ this.$message({ message: '输入的第一个字符必须是 '<' 或 '<='!', type: 'warning' }); return; } this.addSelfcheck() this.dialogVisible = false }, addSelfcheck() { this.$axios.post(this.$api.url.addSelfcheck,{ @@ -513,6 +520,7 @@ })[0] console.log(one); let id =one.children[0].id this.checkTreeNode.id = id console.log(id); this.selectAllSelfStart(id) this.selectDataList();