YaolongHan 4 年之前
父节点
当前提交
5eed4446d3
共有 1 个文件被更改,包括 15 次插入3 次删除
  1. 15 3
      src/views/ledger/property/details/index.vue

+ 15 - 3
src/views/ledger/property/details/index.vue

@@ -189,10 +189,11 @@ export default {
       return JSON.parse(JSON.stringify(obj));
     },
     cruxSuccess() {
-      this.getData();
+      const isCrux = 1; //是否为点击详情后获取表头和实例数据
+      this.getData(isCrux);
     },
     // 获取表头和实例数据
-    getData() {
+    getData(isCrux = 0) {
       let params1 = {
           orders: "sort asc",
           pageNumber: 1,
@@ -229,8 +230,19 @@ export default {
           }
         }
         this.instance = obj;
-        this.handleRadios(this.currentRadio);
+        // this.handleRadios(this.currentRadio);
         this.handleEnclosure(); //处理图片视频文件信息
+
+        // 如果是编辑后状态、则需要更新下Tab
+        if (isCrux) {
+          const currentRadio = this.currentRadio
+          this.handleRadios(-1);
+          setTimeout(()=>{
+             this.handleRadios(currentRadio);
+          })
+        }else{
+           this.handleRadios(this.currentRadio);
+        }
       });
     },
     handleEnclosure() {