970319330@qq.com 2 settimane fa
parent
commit
cfdc5c0dea
1 ha cambiato i file con 1 aggiunte e 20 eliminazioni
  1. 1 20
      src/WebsiteManagement/marketproductMag/modules/add.vue

+ 1 - 20
src/WebsiteManagement/marketproductMag/modules/add.vue

@@ -248,26 +248,7 @@ export default {
         "optiontypeselect",
         "marketproductclass"
       );
-      res.data.push({
-        remarks: "测试",
-        value: "测试",
-        subvalues: [],
-      });
-      this.classData = [];
-      this.classData = res.data.map((item) => {
-        let data = {
-          value: item.value,
-          remarks: item.remarks,
-        };
-        if (item.subvalues.length)
-          data.subvalues = item.subvalues.map((k) => {
-            return {
-              value: k,
-              remarks: k,
-            };
-          });
-        return data;
-      });
+      this.classData = res.data
     },
     onClose() {
       this.dialogFormVisible = false;