value
2024-06-23 7345595fdb083a70e8c708dce246af34b2d7f69f
src/components/do/b3-personnel-evaluation/evaluation.vue
@@ -1,7 +1,7 @@
<template>
  <div class="table-item">
    <ValueTable  ref="ValueTable"
            :url="$api.deviceScope.selectDeviceParameter" :componentData="componentData" :key="upIndex" />
            :url="$api.evaluate.page" :componentData="componentData" :key="upIndex" />
  </div>
</template>
@@ -12,14 +12,15 @@
    ValueTable
  },
  props:{
    month:String,
    laboratory:Object
    entity:Object,
  },
  data(){
    return{
      componentData: {
        entity: {
          deviceName: null,
          month: this.entity.month,
          name:this.entity.name,
          departLims:this.entity.departLims,
          orderBy: {
            field: 'id',
            order: 'desc'
@@ -36,8 +37,21 @@
        requiredAdd: [],
        requiredUp: [],
      },
      upIndex:0
      upIndex:0,
    }
  },
  methods:{
    refreshTable(){
      this.componentData.entity = {
        ...this.componentData.entity,
        ...this.$parent.entity
      }
      this.$refs['ValueTable'].selectList()
    },
    refresh(){
         this.upIndex++
      this.refreshTable()
    },
  }
}
</script>