فهرست منبع

硬件管理界面设备类型过滤禁用数据

车车 1 سال پیش
والد
کامیت
bdf0bc7809
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 2 2
      src/api/mes/hw/hardwareinfo.js
  2. 4 1
      src/views/mes/hw/information/index.vue

+ 2 - 2
src/api/mes/hw/hardwareinfo.js

@@ -10,11 +10,11 @@ export function listHardware(query) {
   })
 }
 // 获取硬件类型-所有
-export function getHardwareTypeListAPI() {
+export function getHardwareTypeListAPI(query) {
   return request({
     url: '/iscs/type/getIsHardwareTypeList',
     method: 'get',
-
+    params: query
   })
 }
 // 获取所有车间

+ 4 - 1
src/views/mes/hw/information/index.vue

@@ -445,6 +445,9 @@ export default {
         workshopCode:'',
         workshopId:'',
       },
+      queryTypeParams: {
+        enableFlag:'y',
+      },
       workshopOption:[
 
       ],
@@ -545,7 +548,7 @@ export default {
     },
     // 获取硬件类型-所有
     getHardwareTypeList() {
-      getHardwareTypeListAPI().then(response => {
+      getHardwareTypeListAPI(this.queryTypeParams).then(response => {
         console.log(response,'Type')
         this.hardwareTypeOption=response.data.map((item) => {
           return{