From 45cdf666979e1248a4c2f4d8c915b747ba11d479 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期二, 08 八月 2023 19:45:46 +0800 Subject: [PATCH] 新增家庭设备备忘本 --- ruoyi-ui/src/views/secret/memo.vue | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/secret/memo.vue b/ruoyi-ui/src/views/secret/memo.vue index 9f68237..8382a80 100644 --- a/ruoyi-ui/src/views/secret/memo.vue +++ b/ruoyi-ui/src/views/secret/memo.vue @@ -219,8 +219,9 @@ listNote(cid, 2031).then(response => { this.memoList = response.data; - console.log(this.memoList) + // alert(response.data.total) this.total = response.data.total; + // alert(this.total) this.loading = false; } ); @@ -339,12 +340,16 @@ addNote(this.formDat).then(response => { this.$modal.msgSuccess("鏂板鎴愬姛"); this.open = false; - // this.queryParams.cid = cid - // this.queryParams.fid = fid - this.getList(fid,cid); + + this.getList(this.formDat.fid,this.formDat.cid); resetQuery(); + }); } + }); + //娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; }); }, requestUpload(params) @@ -380,7 +385,7 @@ }).then(() => { // this.getList(fid,cid); this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - getList(fid,cid); + this.getList(fid,cid); }).catch(() => {}); }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ -- Gitblit v1.9.1