billisme 4 år sedan
förälder
incheckning
f512e4626c
1 ändrade filer med 2 tillägg och 5 borttagningar
  1. 2 5
      src/views/estate/noticepushrecord.vue

+ 2 - 5
src/views/estate/noticepushrecord.vue

@@ -164,8 +164,6 @@
     methods: {
       rowSave(row, done, loading) {
         row.noticeId = this.noticeId;
-        row.agencyName = row.$agencyId;
-        row.residentialName = row.$residentialId;
         add(row).then(() => {
           this.onLoad(this.page);
           this.$message({
@@ -180,8 +178,6 @@
       },
       rowUpdate(row, index, done, loading) {
         row.noticeId = this.noticeId;
-        row.agencyName = row.$agencyId;
-        row.residentialName = row.$residentialId;
         update(row).then(() => {
           this.onLoad(this.page);
           this.$message({
@@ -267,7 +263,8 @@
       refreshChange() {
         this.onLoad(this.page, this.query);
       },
-      onLoad(page, params = {"noticeId": this.noticeId}) {
+      onLoad(page, params = {}) {
+        params["noticeId"] = this.noticeId
         this.loading = true;
         getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
           const data = res.data.data;