浏览代码

优化接口

yanglzh 11 月之前
父节点
当前提交
cdec9552e5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/iot/property/dossier/edit.vue

+ 2 - 2
src/views/iot/property/dossier/edit.vue

@@ -220,8 +220,8 @@ const open = async (row: any, productInfo: any) => {
       });
     } else {
       //获取档案属性
-      api.dev_asset_metadata.getList({ productKey: productInfo.key, pageSize: 50, pageNum: 1, status: -1, total: 0 }).then((res: any) => {
-        const sortedArray = res.Data.sort((a, b) => a.id - b.id);
+      api.dev_asset_metadata.detail({ productKey: productInfo.key}).then((res: any) => {
+        const sortedArray = res.sort((a, b) => a.id - b.id);
         Datalist.value = sortedArray || [];
       });
       formData.productKey = productInfo.key