From c5d36e58ea840237e5e10d2a10c90f958a79eb09 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 22 Feb 2024 11:13:58 +0800
Subject: [PATCH] 公司管理页面和tab切换调整
---
src/views/property/companyManage.vue | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/src/views/property/companyManage.vue b/src/views/property/companyManage.vue
index a5f339b..60e3017 100644
--- a/src/views/property/companyManage.vue
+++ b/src/views/property/companyManage.vue
@@ -1,11 +1,9 @@
<!-- 物业公司管理 -->
<template>
<basic-container>
- <div class="basic-info">
- <avue-form :option="wyOption" v-model="wyForm"></avue-form>
- </div>
<div class="detail-container">
<el-tabs v-model="activeName" @tab-click="handleClick">
+ <el-tab-pane label="公司管理" name="info0"></el-tab-pane>
<el-tab-pane label="基础信息" name="info1"></el-tab-pane>
<el-tab-pane label="经营信息" name="info2"></el-tab-pane>
<el-tab-pane label="纳税信息" name="info3"></el-tab-pane>
@@ -14,7 +12,10 @@
<el-tab-pane label="项目良好行为" name="info6"></el-tab-pane>
<el-tab-pane label="违法违规行为惩戒" name="info7"></el-tab-pane>
</el-tabs>
- <div class="answer">
+ <div class="basic-info" v-show="activeName == 'info0'">
+ <avue-form :option="wyOption" v-model="wyForm"></avue-form>
+ </div>
+ <div class="answer" v-show="activeName != 'info0'">
<div class="topic-item" v-for="(item, index) in questionBankData" :key="index">
<div class="topic-title">
{{ index + 1 }} .{{ item.subjectName }}
@@ -129,7 +130,7 @@
}]
},
wyForm: {},
- activeName: 'info1',
+ activeName: 'info0',
questionBankData: [],
page: {
pageSize: 20,
@@ -188,18 +189,18 @@
})
},
- // 保持题目
+ // 保存题目
saveQuestionBank () {
+ let isChoose = false
+ this.questionBankData.forEach(item => {
+ if (item.chooseId) {
+ isChoose = true
+ }
+ })
+ if (isChoose == false) return
save(this.questionBankData).then(
() => {
- // this.$message({
- // type: "success",
- // message: "操作成功!",
- // })
- // this.questionBankOnLoad(this.page, param = {
- // subclassName: this.activeName,
- // propertyId: this.wyForm.id
- // })
+ // 取消提示避免重复
},
(error) => {
window.console.log(error)
@@ -209,6 +210,7 @@
// 点击tab切换
handleClick (tab) {
+ if (tab.label == '公司管理') return
let param = {
subclassName: tab.label,
propertyId: this.wyForm.id
@@ -224,7 +226,7 @@
this.saveBasicInfo()
// 保持考试信息
this.saveQuestionBank()
- },
+ }
}
}
</script>
--
Gitblit v1.9.3