Przeglądaj źródła

优化代码间隙

yukai 1 rok temu
rodzic
commit
604c057cc5
1 zmienionych plików z 2 dodań i 5 usunięć
  1. 2 5
      src/views/iot/property/dossier/edit.vue

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

@@ -177,7 +177,7 @@ const open = async (row: any, productInfo: any) => {
   showDialog.value = true;
   nextTick(() => {
     system.org.getList({ status: 1 }).then((res: any) => {
-      res.forEach((item) => {
+      res.forEach((item:any) => {
         item.id = item.id.toString();
       });
       orgData.value = res || [];
@@ -200,7 +200,7 @@ const open = async (row: any, productInfo: any) => {
 
     //获取部门
     api.dept.getList({ status: -1 }).then((res: any) => {
-      res.forEach((item) => {
+      res.forEach((item:any) => {
         item.deptId = item.deptId.toString();
       });
       deptData.value = res || [];
@@ -222,10 +222,7 @@ const open = async (row: any, productInfo: any) => {
       //获取档案属性
       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);
-
-				
 				Datalist.value = sortedArray || [];
-        formData.productKey = productInfo.key
       });
     }
   });