Prechádzať zdrojové kódy

管理后台-创建门店

panyong 3 rokov pred
rodič
commit
36b9bbd957

+ 3 - 2
htmldev/manage/src/mixin/page.js

@@ -27,8 +27,9 @@ export default {
         ...this.searchForm
       }, 'get')
       this.tableLoading = false
-      if (this.tableData && data.data && code === 200) {
-        this.tableData = data.data
+      if (this.tableData && (data.data || data.list) && code === 200) {
+        // todo 字段调整
+        this.tableData = data.data || data.list
         this.totalCount = Number(data.total)
       }
     },

+ 18 - 13
htmldev/manage/src/views/business/outlet/details.vue

@@ -8,20 +8,24 @@
       <el-form ref="form"
                :model="form"
                :rules="formRules"
-               label-width="140px">
+               label-width="160px">
         <el-form-item prop="bar_name"
                       :rules="formRules.required"
                       label="门店名称:">
-          <el-input v-model="form.bar_name"
-                    placeholder="请输入门店名称"
-                    clearable></el-input>
+          <el-col :span="16">
+            <el-input v-model="form.bar_name"
+                      placeholder="请输入门店名称"
+                      clearable></el-input>
+          </el-col>
         </el-form-item>
         <el-form-item prop="bar_address"
                       :rules="formRules.required"
                       label="门店地址:">
-          <el-input v-model="form.bar_address"
-                    placeholder="请输入门店地址"
-                    clearable></el-input>
+          <el-col :span="16">
+            <el-input v-model="form.bar_address"
+                      placeholder="请输入门店地址"
+                      clearable></el-input>
+          </el-col>
         </el-form-item>
         <el-form-item prop="bar_img_url"
                       :rules="formRules.uploadImgs"
@@ -80,12 +84,13 @@
           </el-time-select>
         </el-form-item>
         <el-form-item label="备注">
-          <el-input
-            type="textarea"
-            :rows="4"
-            placeholder=""
-            v-model="form.note">
-          </el-input>
+          <el-col :span="16">
+            <el-input type="textarea"
+                      :rows="4"
+                      placeholder=""
+                      v-model="form.note">
+            </el-input>
+          </el-col>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer text-center">

+ 12 - 11
htmldev/manage/src/views/business/outlet/index.vue

@@ -24,23 +24,24 @@
         </el-form-item>
       </el-form>
     </div>
-    <el-table :data="tableData"
+    <el-table :data="[...tableData,...tableData,...tableData,...tableData,...tableData]"
               stripe
               v-loading="tableLoading"
               fit
               class="marginT-10 order-table"
               border
               :max-height="vheight">
-      <el-table-column label="编号" prop="id"></el-table-column>
-      <el-table-column label="名称" prop="department_name"></el-table-column>
-      <el-table-column label="数量" prop="department_project_name"></el-table-column>
-      <el-table-column label="人数" prop="department_project_name"></el-table-column>
-      <el-table-column label="单价" prop="department_project_name"></el-table-column>
-      <el-table-column label="最晚保留时间(分钟)" prop="department_project_name"></el-table-column>
-      <el-table-column label="最晚到店时间" prop="department_desc"></el-table-column>
-      <el-table-column label="介绍" prop="department_desc"></el-table-column>
-      <el-table-column label="备注" prop="department_desc"></el-table-column>
-      <el-table-column label="操作">
+      <el-table-column fixed label="编号" prop="id"></el-table-column>
+      <el-table-column label="酒吧名称" prop="bar_name"></el-table-column>
+      <el-table-column label="门店地址" prop="bar_address"></el-table-column>
+      <el-table-column label="门店图片" prop="bar_img_url"></el-table-column>
+      <el-table-column label="酒吧状态" prop="bar_status"></el-table-column>
+      <el-table-column label="点歌开始时间" prop="bar_song_start_time"></el-table-column>
+      <el-table-column label="点歌结束时间" prop="bar_song_end_time"></el-table-column>
+      <el-table-column label="酒吧座位预定开始时间" prop="bar_place_reserve_start_time"></el-table-column>
+      <el-table-column label="酒吧座位预定结束时间" prop="bar_place_reserve_end_time"></el-table-column>
+      <el-table-column label="备注"></el-table-column>
+      <el-table-column fixed="right" label="操作" width="200">
         <template slot-scope="scope">
           <el-button type="text" @click="edit(scope.row)" v-permission="'department_list_edit'">编辑</el-button>
           <el-button type="text" @click="del(scope.row)" v-permission="'department_list_del'">删除</el-button>