Commit 2eb8b9cd by 刘泽奇

Merge branch 'channel-access' of gitlab.gongsibao.com:jiangyong/zhichan into channel-access

parents 0026f45b 3752fa43
...@@ -279,6 +279,7 @@ export default { ...@@ -279,6 +279,7 @@ export default {
}, },
data() { data() {
return { return {
haveChoosedTab: 1, // 选中的Tab标签的名字,来判定详情是显示 公司详情 或 云公司详情
companyAddDialog: false, // 公司注册对话框 companyAddDialog: false, // 公司注册对话框
cloudCompanyAddDialog: false, // 云公司注册对话框 cloudCompanyAddDialog: false, // 云公司注册对话框
companyDetailDialog: false, // 公司详情对话框 companyDetailDialog: false, // 公司详情对话框
...@@ -373,7 +374,6 @@ export default { ...@@ -373,7 +374,6 @@ export default {
addCompany() { addCompany() {
console.log("公司注册--添加--详情--test"); console.log("公司注册--添加--详情--test");
this.companyAddDialog = true; this.companyAddDialog = true;
// this.companyDetailDialog = true;
}, // 公司注册添加 }, // 公司注册添加
addCloudCompany() { addCloudCompany() {
console.log("云上公司注册--添加--详情--test"); console.log("云上公司注册--添加--详情--test");
...@@ -383,9 +383,11 @@ export default { ...@@ -383,9 +383,11 @@ export default {
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab, event); console.log(tab, event);
if (tab.name == "1") { if (tab.name == "1") {
this.haveChoosedTab = 1;
console.log("公司注册"); console.log("公司注册");
} }
if (tab.name == "2") { if (tab.name == "2") {
this.haveChoosedTab = 2;
console.log("云上公司注册"); console.log("云上公司注册");
} }
}, },
...@@ -394,6 +396,12 @@ export default { ...@@ -394,6 +396,12 @@ export default {
}, },
toDetails(idx, row) { toDetails(idx, row) {
console.log(row); console.log(row);
if (this.haveChoosedTab == 1) {
this.companyDetailDialog = true;
}
if (this.haveChoosedTab == 2) {
this.cloudDetailDialog = true;
}
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment