licp
2024-07-26 41accbc320b74163a4d9450882677ff3ff0318d6
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>
@@ -337,6 +337,7 @@
      configTimeVisibleLoading: false, // 时间配置弹框loading
      timeTypeList: [],
      timeQuery: [],
      listPower:false
    }
  },
  watch: {
@@ -375,7 +376,7 @@
      this.monthList.push(i)
    }
    this.monthList.reverse()
    // this.getPower()
    this.getPower()
  },
  methods: {
    refresh(){
@@ -547,6 +548,7 @@
      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') {
          up = true
@@ -557,10 +559,17 @@
        if (power[i].menuMethod == 'add') {
          add = true
        }
        if (power[i].menuMethod == 'add') {
          add = true
        }
        if (power[i].menuMethod == 'list') {
          listPower = true
        }
      }
      this.addPower = add
      this.upPower = up
      this.downPower = down
      this.listPower = listPower
    },
    onMouseEnter(index){
      this.currentUserIndex = index