src/views/mdc/base/EquipmentOperationParamsAlarm.vue
@@ -34,8 +34,11 @@
          </a-col>
          <a-col :md="6" :sm="6">
            <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
            <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            <a-space>
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>
              <a-button type="primary" icon="printer" v-print="'#paramsAlarm'" v-has="'paramsAlarm:print'">打印</a-button>
            </a-space>
          </a-col>
        </a-row>
      </a-form>
@@ -43,6 +46,7 @@
    <a-table
      ref="table"
      id="paramsAlarm"
      bordered
      size="middle"
      rowKey="equipmentid"
@@ -64,7 +68,7 @@
  export default {
    name: 'EquipmentOperationParamsAlarm',
    mixins: [JeecgListMixin],
    created(){
    created() {
      this.getDriveTypeByApi()
      this.queryGroup()
    },
@@ -73,7 +77,7 @@
        name: 'EquipmentOperationParamsAlarm',
        description: '这是设备运行参数报警页面',
        queryParam: {},
        driveTypeList:[],
        driveTypeList: [],
        selectList: [],
        columns: [
          {
@@ -127,12 +131,12 @@
          list: '/mdc/mdcOverrunAlarm/list',
          queryEquipmentType: '/mdc/mdcEquipmentType/queryEquipmentType'
        },
        ipagination:{
        ipagination: {
          current: 1,
          pageSize: 30,
          pageSizeOptions: ['30', '50', '100'],
          showTotal: (total, range) => {
            return range[0] + "-" + range[1] + " 共" + total + "条"
            return range[0] + '-' + range[1] + ' 共' + total + '条'
          },
          showQuickJumper: true,
          showSizeChanger: true,
@@ -145,13 +149,13 @@
        }
      }
    },
    methods:{
    methods: {
      /**
       * 调用接口获取控制系统类型
       */
      getDriveTypeByApi(){
        api.getDriveTypeApi().then((res)=>{
          this.driveTypeList=res.result.map(item=>item.value)
      getDriveTypeByApi() {
        api.getDriveTypeApi().then((res) => {
          this.driveTypeList = res.result.map(item => item.value)
        })
      },
@@ -164,7 +168,7 @@
      filterOption(input, option) {
        return (
          option.componentOptions.children[0].text.toUpperCase().indexOf(input.toUpperCase()) >= 0
        );
        )
      },
      queryGroup() {
@@ -184,7 +188,7 @@
        }).finally(() => {
          this.loading = false
        })
      },
      }
    }
  }
</script>