|
@@ -420,7 +420,9 @@
|
|
|
if (res.code === 200) {
|
|
|
if(res.data.records.length==0){
|
|
|
this.datlis = false
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ this.datlis = true
|
|
|
+ };
|
|
|
(this.$refs.moduleView as any).setTableValue(res.data.records);
|
|
|
let page = {
|
|
|
pageNo: res.data.current, //当前页
|
|
@@ -439,6 +441,7 @@
|
|
|
onAdd() {
|
|
|
this.popTitle = '新增'
|
|
|
this.radio = 0
|
|
|
+ console.log(this.datlis)
|
|
|
if(!this.datlis){
|
|
|
this.dialogFormVisible2 = true;
|
|
|
}else{
|
|
@@ -446,6 +449,9 @@
|
|
|
setTimeout(() => {
|
|
|
(this as any).$refs.addFormId.setValue();
|
|
|
(this as any).$refs.addFormId.$refs['parentName--comp'][0].request();
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ (this as any).$refs.addFormId.clearValidate();
|
|
|
+ })
|
|
|
}, 0)
|
|
|
}
|
|
|
}
|