Parcourir la source

comment submit out

huaisianhuang il y a 3 ans
Parent
commit
e6244fc7e4
1 fichiers modifiés avec 26 ajouts et 4 suppressions
  1. 26 4
      src/views/Home.vue

+ 26 - 4
src/views/Home.vue

@@ -50,7 +50,28 @@
                 <div class="highTrend dark-1 p-2 mt-2" v-if="check(t.popularity, item.groups)">Popular</div>
               </td>
             </tr>
-            <tr v-for="(item ,it) in json" :key="it">
+           <!--  <tr v-for="(item ,it) in json" :key="it">
+              <th>{{ item.group }}</th>
+              <td v-for="(t, idx) in item.orgData[i]" :key="idx">
+                <div class="p-2 mt-2">{{ t.data }}</div>
+              </td>
+            </tr> -->
+          </tbody>
+      </table>
+    </div>
+    <div class="table-responsive mb-3" v-for="(month, i) in month" :key="i" v-if='selected == i'> <!-- eslint-disable-line-->
+      <h3 class="">2019-20行銷事項參考</h3>
+      <table class="table">
+        <thead>
+          <tr>
+            <td>客群</td>
+            <th scope="col" width='320'>{{ month[0] }}</th>
+            <th scope="col" width='320'>{{ month[1] }}</th>
+            <th scope="col" width='320'>{{ month[2] }}</th>
+          </tr>
+        </thead>
+          <tbody>
+            <tr v-for="(item ,it) in json" :key="`cal-${it}`">
               <th>{{ item.group }}</th>
               <td v-for="(t, idx) in item.orgData[i]" :key="idx">
                 <div class="p-2 mt-2">{{ t.data }}</div>
@@ -248,11 +269,12 @@ export default {
         submit_type() {
           // console.log(this.serviceSelected);
           const vm = this;
-          this.$http.post('http://www.googo.org:8050/api/users_groups/1',
+          vm.table_show = true;
+          /* this.$http.post('http://www.googo.org:8050/api/users_groups/1',
            { service_type: this.serviceSelected }).then(res => {
             console.log(res.data);
             vm.table_show = true;
-          })
+          }) */
         }
   },
   created() {
@@ -267,7 +289,7 @@ export default {
     } else {
       this.selected = 3;
     };
-   // this.getcalData();
+    this.getcalData();
    // $('#enterModalCenter').modal('show');
     this.getServTypeLi();
     this.getCustomData();