瀏覽代碼

Merge branch '03/18VipActive' into dev

lex 2 年之前
父節點
當前提交
e513da2e36
共有 1 個文件被更改,包括 13 次插入15 次删除
  1. 13 15
      src/views/service/GoodsSale.vue

+ 13 - 15
src/views/service/GoodsSale.vue

@@ -384,7 +384,7 @@ export default {
       groupPrice: 0,
       obj: null,
       showPicker: false,
-      columns: ["教务代买", "创建订单"],
+      columns: ["老师代买", "创建订单"],
       orderType: null,
       orderText: null,
     };
@@ -560,21 +560,19 @@ export default {
           rows: 9999,
         }).then((res) => {
           let result = res.data;
-          if (result.code == 200) {
-            let tempArray = [
-              {
-                text: "全部",
-                value: "all",
-              },
-            ];
-            result.data.rows.forEach((row) => {
-              tempArray.push({
-                text: row.name,
-                value: row.id,
-              });
+          let tempArray = [
+            {
+              text: "全部",
+              value: "all",
+            },
+          ];
+          result.rows.forEach((row) => {
+            tempArray.push({
+              text: row.name,
+              value: row.id,
             });
-            this.option2 = tempArray;
-          }
+          });
+          this.option2 = tempArray;
         });
       } catch {
         //