소스 검색

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

wyn 2 달 전
부모
커밋
337324005e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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
   }))
 }