licp
2024-07-26 b5196ecfbda5236f3fd3f0213a5e6911d291bda4
src/components/view/b3-classes.vue
@@ -44,7 +44,7 @@
      <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button>
    </div>
    <div class="search_thing btns" style="padding-left: 30px;">
      <el-button size="small" type="primary" v-if="downPower" @click="configTime" :loading="downLoading">时间配置</el-button>
      <el-button size="small" type="primary" v-if="listPower" @click="configTime" :loading="downLoading">时间配置</el-button>
      <el-button size="small" type="primary" v-if="downPower" @click="handleDown" :loading="downLoading">导 出</el-button>
      <el-button size="small" type="primary" @click="schedulingVisible = true" v-if="addPower">排 班</el-button>
    </div>
@@ -148,8 +148,7 @@
    <span style="color:#909399;font-size:14px;position: absolute;left:50%;top: 50%;transform: translate(-59%,-50%);" v-if="(query.month&&list.length==0)||(!query.month&&yearList.length==0)">暂无数据</span>
  </div>
  <el-dialog title="时间配置" :visible.sync="configTimeVisible" width="620px">
    <div v-loading="configTimeVisibleLoading" ></div>
    <div v-if="!configTimeVisibleLoading">
    <div v-loading="configTimeVisibleLoading" style="min-height: 200px;">
      <div v-for="(item, index) in timeQuery">
        <div class="form" style="display: flex;justify-content: space-between">
          <div style="margin-bottom: 12px;width: 200px;">
@@ -338,6 +337,7 @@
      configTimeVisibleLoading: false, // 时间配置弹框loading
      timeTypeList: [],
      timeQuery: [],
      listPower:false
    }
  },
  watch: {
@@ -376,7 +376,7 @@
      this.monthList.push(i)
    }
    this.monthList.reverse()
    // this.getPower()
    this.getPower()
  },
  methods: {
    refresh(){
@@ -548,20 +548,25 @@
      let add = false
      let up = false
      let down = false
      let listPower = false
      for (var i = 0; i < power.length; i++) {
        if (power[i].menuMethod == 'update') {
        if (power[i].menuMethod == 'performanceShiftUpdate') {
          up = true
        }
        if (power[i].menuMethod == 'delDeviceParameter') {
          down = true
        }
        if (power[i].menuMethod == 'add') {
        if (power[i].menuMethod == 'performanceShiftAdd') {
          add = true
        }
        if (power[i].menuMethod == 'shiftTimeList') {
          listPower = true
        }
      }
      this.addPower = add
      this.upPower = up
      this.downPower = down
      this.listPower = listPower
    },
    onMouseEnter(index){
      this.currentUserIndex = index