Ver código fonte

弹窗开关调整

hm 3 semanas atrás
pai
commit
3d0986c894

+ 1 - 1
src/views/index.vue

@@ -9,7 +9,7 @@
         </div>
         <div class="home_container_header-left_tab">
           <div class="button-container">
-            <div v-for="(item, index) in buttons" :key="index" class="parallelogram-button" :class="{ highlight: activeIndex === index }" @click="setActive(index, item)">
+            <div v-for="(item, index) in buttons" :key="index" class="parallelogram-button" :class="{ highlight: commonStore.activeIndex === index }" @click="setActive(index, item)">
               <div class="text-container" :class="{ 'text-container-highlight': activeIndex === index }">{{ item.title }}</div>
             </div>
           </div>

+ 3 - 2
src/views/left/comp/dispose/dialog/DetectionResultDialog.vue

@@ -1,5 +1,5 @@
 <template>
-  <RiskDialog :options="dialogOptions" @close="closeClick"></RiskDialog>
+  <RiskDialog :options="dialogOptions" @close="closeClick">  </RiskDialog>
 </template>
 <script setup>
 import RiskDialog from './RiskDialog'
@@ -51,8 +51,9 @@ const tableData = ref([])
 
 // 关闭弹窗
 function closeClick() {
-  dialogStore.setRiskActivityDialogOpen(false)
+  dialogStore.setRiskTestResDialogOpen(false)
 }
+
 </script>
 <style lang="scss" scoped>
 .dialog_container {

+ 1 - 1
src/views/left/comp/dispose/dialog/RiskDialog.vue

@@ -115,7 +115,7 @@ const getImgSrc = picName => {
 
 // 按钮点击处理
 const handleButtonClick = index => {
-  activeIndex.value = index
+  btnActiveIndex.value = index
   emit('button-click', {
     index,
     button: props.options.buttons[index]

+ 1 - 1
src/views/left/comp/dispose/dialog/RiskLocationDialog.vue

@@ -10,7 +10,7 @@ let dialogStore = useDialogStore()
 
 const dialogOptions = {
   imgName: '场所1',
-  title: '风险人员列表',
+  title: '风险场所列表',
   activeIndex: 0,
   buttons: [