Explorar el Código

挂锁信息新增时状态设置为正常

wyn hace 2 meses
padre
commit
337324005e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/hw/hardware/lockset/LocksetForm.vue

+ 2 - 1
src/views/hw/hardware/lockset/LocksetForm.vue

@@ -213,8 +213,9 @@ const getLockTypeList = async () => {
 const getMaterialList = async () => {
   const data = { pageNo: 1, pageSize: -1 }
   const response = await MaterialApi.listMaterials(data)
+  console.log(response,'数据是什么')
   materialsOptions.value = response.list.map(item => ({
-    value: item.materialsCabinetId,
+    value: item.id,
     label: item.materialsName
   }))
 }