Ver Fonte

标准处置流程

citygis-lhh há 1 mês atrás
pai
commit
089238bae0

+ 7 - 3
src/views/right/components/handleProcess/comp/RightLegend.vue

@@ -27,8 +27,8 @@
 
     <div class="line-box"></div>
 
-    <template v-for="(item, index) in institution" :key="index">
-      <div class="legend-item" @click="handleDeviceLevel(item)">
+    <template v-for="(item, index) in institutionList" :key="index">
+      <div class="legend-item" @click="handleInstitutionLevel(item)">
         <div class="icon-box">
           <img :src="item.img" />
         </div>
@@ -128,7 +128,7 @@ const deviceList = ref([
 ]);
 
 //机构
-const institution = ref([
+const institutionList = ref([
   {
     name: "学校",
     img: new URL(
@@ -162,6 +162,10 @@ const handleRiskLevel = (item) => {
 const handleDeviceLevel = (item) => {
   item.value = !item.value;
 };
+
+const handleInstitutionLevel = (item) => {
+  item.value = !item.value;
+};
 </script>
 
 <style lang="scss">