From 6399450e518c616a2296ca1561e090855e04757a Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 13 Oct 2021 17:18:33 +0800
Subject: [PATCH] 刷新 同步显示营业执照/ 许可证
---
src/views/securityUnitChild/index.vue | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/src/views/securityUnitChild/index.vue b/src/views/securityUnitChild/index.vue
index 313e434..160c21d 100644
--- a/src/views/securityUnitChild/index.vue
+++ b/src/views/securityUnitChild/index.vue
@@ -246,13 +246,13 @@
<!-- <span v-else-if="typeTABS.prop === 'tab7'" class="tab"> -->
<el-tab-pane label="营业执照" name="tab7">
<!-- 营业执照 -->
- <businessLicense :row="obj0"></businessLicense>
+ <businessLicense :row="obj0" v-if="overHtp"></businessLicense>
<!-- </span> -->
</el-tab-pane>
<!-- <span v-else-if="typeTABS.prop === 'tab8'" class="tab"> -->
<el-tab-pane label="许可证" name="tab8">
<!-- 许可证 -->
- <licence :row="obj0"></licence>
+ <licence :row="obj0" v-if="overHtp"></licence>
<!-- </span> -->
</el-tab-pane>
</el-tabs>
@@ -357,6 +357,8 @@
],
};
return {
+ overHtp: false,
+
activeName: "tab1",
departmentid: "",
@@ -624,8 +626,8 @@
},
handleChangeTABS(column) {
- this.typeTABS = column;
- console.log(column.prop);
+ // this.typeTABS = column;
+ // console.log(column.prop);
// this.$message.success(JSON.stringify(column));
if (column.prop == "tab1") {
this.loading1 = false;
@@ -641,7 +643,22 @@
this.onLoad2(this.page2); //第二个表格不会自动执行
}
},
-
+ handleClick(tab, event) {
+ // console.log(tab.name, event);
+ if (tab.name == "tab1") {
+ this.loading1 = false;
+ this.loading2 = false;
+ // this.onLoad(this.page);
+ } else if (tab.name == "tab2") {
+ // this.loading1 = false;
+ this.loading2 = false;
+ this.onLoad1(this.page1); //第二个表格不会自动执行
+ } else if (tab.name == "tab3") {
+ this.loading1 = false;
+ // this.loading2 = false;
+ this.onLoad2(this.page2); //第二个表格不会自动执行
+ }
+ },
//派遣记录
sizeChange1(val) {
this.page1.currentPage = 1;
@@ -945,6 +962,7 @@
} else {
that.creditcode = row.creditcode;
}
+ that.overHtp = true;
if (that.readLock("danweidataS") != null && a == 1) {
var b = JSON.parse(that.readLock("danweidataS"));
var i = 0;
--
Gitblit v1.9.3