loulijun2021
2022-07-15 869f6c069e86c2ff90393c1441854a6f05989481
src/views/sbgl/sbqd.vue
@@ -39,8 +39,8 @@
                filterable
                style="width: 200px"
                placeholder="请选择"
                @focus="getWorkShopSelect"
              >
                <!--                @focus="getWorkShopSelect"-->
                <el-option
                  v-for="item in WorkShopArr"
                  :key="item.code"
@@ -56,9 +56,10 @@
                style="width: 200px"
                filterable
                placeholder="请选择"
                @focus="getDeviceTypeSelect"
                @change="deviceTypeChange"
              >
                <!--                @focus="getDeviceTypeSelect"-->
                <el-option
                  v-for="item in DeviceTypeArr"
                  :key="item.code"
@@ -96,7 +97,7 @@
        <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button>
        <el-button type="primary" icon="el-icon-c-scale-to-original" @click="deviceTypeButton">设备类型</el-button>
        <el-button type="primary" icon="el-icon-document-copy" @click="deviceGroupButton">设备组</el-button>
        <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>
        <!--        <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>-->
      </div>
      <el-divider />
      <div class="elTableDiv">
@@ -286,6 +287,8 @@
            placeholder="请选择"
            @change="workshopcodeChange"
          >
            <!--            @focus="getWorkShopSelect"-->
            <el-option
              v-for="item in WorkShopArr"
              :key="item.code"
@@ -665,9 +668,9 @@
    // 获取设备清单列表
    this.getDeviceMangerSearch()
    // 获取设备类型下拉
    // this.getDeviceTypeSelect()
    this.getDeviceTypeSelect()
    // 获取所属车间下拉
    // this.getWorkShopSelect()
    this.getWorkShopSelect()
  },
  mounted() {
    window.addEventListener('resize', this.getHeight)