Selaa lähdekoodia

打开查看图纸入口

yunxing 4 vuotta sitten
vanhempi
commit
8232e1356a
2 muutettua tiedostoa jossa 31 lisäystä ja 28 poistoa
  1. 6 3
      src/views/equipment/eqDialog.vue
  2. 25 25
      src/views/equipment/index.vue

+ 6 - 3
src/views/equipment/eqDialog.vue

@@ -5,9 +5,12 @@
             <!-- 除了清单和原理页面,别的都有记录事项detailDialog页面 -->
             <div slot='title' class='header-title' v-if='Object.keys(dialogInfo).length>0'>
                 <span class='title-name'>{{systemName}}-{{dialogInfo.label}}</span>
-                <!-- 2020-7-12 查看图纸时 隐藏图标(查看入口) -->
-                <!-- v-if='dialogInfo.id.slice(2,4)!="QD" && dialogInfo.id.slice(2,4)!="YL" && dialogInfo.id.slice(0,4)!="GJSP"' -->
-                <!-- v-if='dialogInfo.id.slice(2,4)!="QD" && dialogInfo.id.slice(2,4)!="YL" && dialogInfo.id.slice(0,4)!="GJSP" && dialogInfo.label !== "查看图纸"' -->
+                <!-- icon图标,显示规则 -->
+                <!-- // title右侧 icon入口
+                // 1. 主要设备清单, 系统原理图 不显示 icon
+                // 2. 供电系统 楼层电井(间)控制商铺范围清单(GJSP)不显示icon
+                // 3. 查看图纸 不显示icon
+                // 4. 点开 主要设备维保事项/维修事项, 专维及其他事项 中的日常维保事项,日常维修事项 不显示 icon-->
                 <img v-if='showImg' src='../../assets/imgs/zy2.png' @click='visibalBox' class='title-img' alt />
             </div>
             <!-- 没有tab的页面 -->

+ 25 - 25
src/views/equipment/index.vue

@@ -14,15 +14,15 @@
                 <ul v-for='(eve,index) in everySystem' :key='"o"+index'>
                     <li class='li-style' :class='{"is-active": eve.id}' @click='dialogVisible(eve)'>
                         <span class='circle'></span>
-                        <el-button
+                        <!-- <el-button
                             type='text'
                             disabled
                             class='hanzi2'
                             title='数字化移交系统上线后可用'
                             v-if='eve.label=="查看图纸"'
                             style='text-align:left'
-                        >{{eve.label}}</el-button>
-                        <span class='hanzi' v-else>{{eve.label}}</span>
+                        >{{eve.label}}</el-button>-->
+                        <span class='hanzi'>{{eve.label}}</span>
                     </li>
                 </ul>
             </div>
@@ -164,30 +164,30 @@ export default {
             // console.log('dialogVisible')
             console.log(eve)
             // 点击后显示弹窗组件
-            if (eve.label != '查看图纸') {
-                this.ShowDialog = true
-                this.$nextTick(() => {
-                    this.$refs.dialog.showModal(eve)
-                })
-                // pvuv接口记录
-                // 发送pvUv
-                const data = {
-                    plazaId: this.plazaId,
-                }
+            // if (eve.label != '查看图纸') {
+            this.ShowDialog = true
+            this.$nextTick(() => {
+                this.$refs.dialog.showModal(eve)
+            })
+            // pvuv接口记录
+            // 发送pvUv
+            const data = {
+                plazaId: this.plazaId,
+            }
 
-                let postParams = {
-                    type: 'modal',
-                    target: eve.id,
-                    parameter: eve.label,
-                }
-                getPvUv(data, postParams)
-                    .then((res) => {
-                        console.log('pvuv', res)
-                    })
-                    .catch((res) => {
-                        console.log('error', res)
-                    })
+            let postParams = {
+                type: 'modal',
+                target: eve.id,
+                parameter: eve.label,
             }
+            getPvUv(data, postParams)
+                .then((res) => {
+                    console.log('pvuv', res)
+                })
+                .catch((res) => {
+                    console.log('error', res)
+                })
+            // }
         },
         /**
          * 关闭弹窗后,重新渲染 楼层组件