Commit 20db72b9 by liuyong

修改代码

1 parent d2d0c758
......@@ -272,7 +272,6 @@ export default {
}
},
editItem(row) {//编辑
this.add_dialog = true;
this.ruleForm.let1 = row.elementName;
this.ruleForm.let2 = row.archiLevelId;
this.ruleForm.let3 = row.archiBelongId;
......@@ -282,6 +281,10 @@ export default {
this.elementId = row.elementId;
this.state = row.state;
this.version = row.version;
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.clearValidate();
});
},
version_release(){//版本发布
if(this.selectTable.length == 0) {
......@@ -445,13 +448,13 @@ export default {
});
this.$nextTick(() => {
this.$refs.form.resetFields();
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
this.ruleForm.let5 = 'cfx';
this.ruleForm.let6 = '#FF3B30';
});
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
this.ruleForm.let5 = 'cfx';
this.ruleForm.let6 = '#FF3B30';
},
add_select1() {//新增架构层次
const params = {
......
......@@ -159,10 +159,10 @@ export default {
return {
fileList: [],
ruleForm: {
let1: '',
let2: '',
let1: null,
let2: null,
let3: null,
let4: '',
let4: null,
let5: null,
let6: null,
},
......@@ -242,7 +242,6 @@ export default {
url: row.fileUrl
}
]
this.$refs.form.clearValidate('let3');
}else {
this.ruleForm.let3 = null;
this.ruleForm.let5 = null;
......@@ -250,6 +249,9 @@ export default {
this.fileList = [];
}
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.clearValidate();
});
},
handleRemove(file, fileList) {//文件移出
this.ruleForm.let3 = null;
......@@ -367,13 +369,17 @@ export default {
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.resetFields();
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
this.ruleForm.let5 = null;
this.ruleForm.let6 = null;
});
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let4 = null;
this.is_add_edit = 'add';
this.editId = undefined;
this.fileList = [];
},
moreDelete() {//批量删除
if(this.selectTable.length == 0) {
......
......@@ -257,6 +257,9 @@ export default {
this.ruleForm.let3 = row.projectName;
this.ruleForm.let4 = row.krtId;
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.clearValidate();
});
this.is_add_edit = 'edit';
this.tempName_ = row.tempName;
this.krtId_ = row.krtId;
......@@ -385,12 +388,12 @@ export default {
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.resetFields();
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
});
this.is_add_edit = 'add';
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
},
moreDelete() {//批量删除
if(this.selectTable.length == 0) {
......
......@@ -319,6 +319,9 @@ export default {
this.ruleForm.let7 = row.tepContent;
this.ruleForm.let8 = row.tepRemark;
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.clearValidate();
});
this.is_add_edit = 'edit';
this.editId = row.ktepId;
},
......@@ -496,15 +499,15 @@ export default {
this.add_dialog = true;
this.$nextTick(() => {
this.$refs.form.resetFields();
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
this.ruleForm.let5 = null;
this.ruleForm.let6 = null;
this.ruleForm.let7 = null;
this.ruleForm.let8 = null;
});
this.ruleForm.let1 = null;
this.ruleForm.let2 = null;
this.ruleForm.let3 = null;
this.ruleForm.let4 = null;
this.ruleForm.let5 = null;
this.ruleForm.let6 = null;
this.ruleForm.let7 = null;
this.ruleForm.let8 = null;
},
moreDelete() {//批量删除
if(this.selectTable.length == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!