zhaowei
2 天以前 d78dad29ee493b68dd6ac2e34df08431685c3734
src/views/dashboard/Analysis.vue
@@ -3,10 +3,9 @@
             :userType="userType"
             :productionCode="productionCode"
             :workshopSectionProductionCode="workshopSectionProductionCode"
             v-if="[1,2,3,4].includes(userType)"
             >
             v-if="userType&&userType!==0">
  </Component>
  <div v-else>  <!-- 与组件渲染互斥 -->
  <div v-else-if="userType===0">  <!-- 与组件渲染互斥 -->
    <img src="@/assets/index.png" style="width: 100%;height: 785px">
  </div>
</template>
@@ -15,12 +14,14 @@
  import signageApi from '@/api/signage'
  import MdcManagerSignage from './mdcIndex/MdcManagerSignage.vue'
  import DncManagerSignage from './dncIndex/DncManagerSignage.vue'
  import EamManagerSignage from './eamIndex/EamManagerSignage.vue'
  export default {
    name: "Analysis",
    name: 'Analysis',
    components: {
      MdcManagerSignage,
      DncManagerSignage
      DncManagerSignage,
      EamManagerSignage
    },
    data() {
      return {
@@ -28,7 +29,7 @@
        productionCode: '',
        branchFactoryProductionCode: '',
        workshopSectionProductionCode: '',
        userType: '',
        userType: ''
      }
    },
    created() {
@@ -61,10 +62,10 @@
                //dnc
                this.currentSignage = 'DncManagerSignage'
                break
              // case 4:
              //   //设备管理
              //   this.currentSignage = 'IndexSignage'
              //   break
              case 4:
                //设备管理
                this.currentSignage = 'EamManagerSignage'
                break
              default:
                this.currentSignage = ''
                break
@@ -83,14 +84,14 @@
</script>
<style lang="less" scoped>
/deep/ .back-nav {
  width: 100px;
  height: 30px;
  color: #fff;
  position: absolute;
  top: 15px;
  left: 10px;
  cursor: pointer;
  z-index: 9999
}
  /deep/ .back-nav {
    width: 100px;
    height: 30px;
    color: #fff;
    position: absolute;
    top: 15px;
    left: 10px;
    cursor: pointer;
    z-index: 9999
  }
</style>