YY 2 gadi atpakaļ
vecāks
revīzija
13a51e908e

+ 2 - 0
src/views/platGroup/goods/detail.vue

@@ -83,8 +83,10 @@ export default {
       if (this.id) {
         const res = await this.fetch(this.id);
         if (this.$checkRes(res)) {
+          // 商品
           let arr = await this.goodsFetch(res.data.goods);
           if (this.$checkRes(arr)) this.goodsList.push(arr.data);
+          // 规格
           let aee = await this.specFetch(res.data.spec);
           if (this.$checkRes(aee)) this.specList.push(aee.data);
           this.$set(this, `form`, res.data);

+ 20 - 1
src/views/platGroup/goods/index.vue

@@ -9,6 +9,7 @@
         element-loading-spinner="el-icon-loading"
       >
         <span v-if="view === 'list'">
+          <el-col :span="24" class="one"> <span>团购商品管理</span> </el-col>
           <data-search :fields="searchFields" v-model="searchInfo" @query="search">
             <template #goods>
               <el-select
@@ -165,4 +166,22 @@ export default {
 };
 </script>
 
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+.main {
+  .one {
+    margin: 0 0 10px 0;
+
+    span:nth-child(1) {
+      font-size: 20px;
+      font-weight: 700;
+      margin-right: 10px;
+    }
+  }
+  .two {
+    margin: 0 0 10px 0;
+  }
+  .thr {
+    margin: 0 0 10px 0;
+  }
+}
+</style>

+ 20 - 1
src/views/platGroup/group/index.vue

@@ -9,6 +9,7 @@
         element-loading-spinner="el-icon-loading"
       >
         <span v-if="view === 'list'">
+          <el-col :span="24" class="one"> <span>团购管理</span> </el-col>
           <data-search :fields="searchFields" v-model="searchInfo" @query="search">
             <!-- <template #goods>
               <el-select v-model="searchInfo.goods" filterable clearable remote :remote-method="querySearch" placeholder="请选择商品名称" :loading="loading">
@@ -166,4 +167,22 @@ export default {
 };
 </script>
 
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+.main {
+  .one {
+    margin: 0 0 10px 0;
+
+    span:nth-child(1) {
+      font-size: 20px;
+      font-weight: 700;
+      margin-right: 10px;
+    }
+  }
+  .two {
+    margin: 0 0 10px 0;
+  }
+  .thr {
+    margin: 0 0 10px 0;
+  }
+}
+</style>