Commit 20db72b9 by liuyong

修改代码

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