Mr.Shi
2023-08-22 a30af31a33908dac49a42849cacf36e9903a37e5
大屏
已修改2个文件
32 ■■■■ 文件已修改
screen_standard/src/components/AppLayout.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/views/index.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/components/AppLayout.vue
@@ -46,7 +46,9 @@
        </div>
      </div>
    </div>
    <KeepAlive>
    <RouterView />
    </KeepAlive>
  </div>
</template>
screen_standard/src/views/index.vue
@@ -75,12 +75,13 @@
                                    <el-tooltip
                                        v-for="(child, i) in item.procedureList" :key="i"
                                        effect="dark"
                                        content="已报工良品数1000;工序计划数500"
                                        :content="'已报工良品数' + child.doneNum + ';工序计划数' + child.planNum"
                                        placement="top">
                                        <div class="scroll_item_row_item" @click="jump(child.procedureId)">
                                            <div class="scroll_item_row_item_x"></div>
                                            <img v-if="i == 0 || i == 1" src="@/assets/img/ic_complete@2x.png" alt="" />
                                            <span v-else>{{ child.rate }}%</span>
                                            <!-- <img v-if="i == 0 || i == 1" src="@/assets/img/ic_complete@2x.png" alt="" /> -->
                                            <span v-if="child.rate < 100">{{ child.rate }}%</span>
                                            <img v-else src="@/assets/img/ic_complete@2x.png" alt="" />
                                        </div>
                                    </el-tooltip>
                                </div>
@@ -189,7 +190,7 @@
</template>
<script setup>
    import { reactive, ref, onBeforeUnmount, onUnmounted, nextTick, computed, watch } from 'vue'
    import { reactive, ref, onBeforeUnmount, onUnmounted, nextTick, computed, watch, onActivated } from 'vue'
    import { getTop, getStockList, getWorkPlansList, getProcedureProcessList, getRecordLogPage, getDeviceCheckPage, getUnqualified7DayData, getUnqualifiedCateData } from '@/utils/api.js'
    import { useCounterStore } from '@/stores/counter.js'
    import * as echarts from 'echarts'
@@ -251,6 +252,20 @@
    watch(() => departId.value, (val) => {
        if (val) {
            init()
        }
    })
    onActivated(() => {
        console.log('departId', departId.value)
        if (!departId.value) return
        init()
        console.log('onActivated')
    })
    start1()
    const init = () => {
            // 当日员工产量TOP10
            getTop(companyId.value, departId.value)
                .then(res => {
@@ -330,9 +345,6 @@
                    }
                })
        }
    })
    start1()
    /**
     * 七日折线图
@@ -1248,8 +1260,8 @@
                    position: relative;
                    .content_right_top_nr_bottom_yuan {
                        position: absolute;
                        top: 299px;
                        left: 168px;
                        top: 63%;
                        left: 37%;
                        z-index: 999;
                        width: 114px;
                        height: 114px;