Commit e9a83b4e by zhangzhen

细节优化

parent 28ef46a5
...@@ -89,6 +89,11 @@ ...@@ -89,6 +89,11 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="门店ID" align="center" prop="id" /> <el-table-column label="门店ID" align="center" prop="id" />
<el-table-column label="门店名称" align="center" prop="name" /> <el-table-column label="门店名称" align="center" prop="name" />
<el-table-column label="门店类型" align="center" prop="storeType">
<template slot-scope="scope">
<dict-tag :options="dict.type.store_type" :value="scope.row.storeType"/>
</template>
</el-table-column>
<el-table-column label="门店主图" align="center" prop="images" width="100"> <el-table-column label="门店主图" align="center" prop="images" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.images" :width="50" :height="50"/> <image-preview :src="scope.row.images" :width="50" :height="50"/>
...@@ -135,11 +140,21 @@ ...@@ -135,11 +140,21 @@
/> />
<!-- 添加或修改门店对话框 --> <!-- 添加或修改门店对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="55%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="门店名称" prop="name"> <el-form-item label="门店名称" prop="name">
<el-input v-model="form.name" placeholder="请输入门店名称" /> <el-input v-model="form.name" placeholder="请输入门店名称" />
</el-form-item> </el-form-item>
<el-form-item label="房间类型" prop="storeType">
<el-select v-model="form.storeType" placeholder="请选择门店类型">
<el-option
v-for="dict in dict.type.store_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="门店主图" prop="images"> <el-form-item label="门店主图" prop="images">
<image-upload v-model="form.images"/> <image-upload v-model="form.images"/>
</el-form-item> </el-form-item>
...@@ -178,6 +193,7 @@ import { listStore, getStore, delStore, addStore, updateStore } from "@/api/syst ...@@ -178,6 +193,7 @@ import { listStore, getStore, delStore, addStore, updateStore } from "@/api/syst
export default { export default {
name: "Store", name: "Store",
dicts: ['store_type'],
data() { data() {
return { return {
// 遮罩层 // 遮罩层
...@@ -243,6 +259,7 @@ export default { ...@@ -243,6 +259,7 @@ export default {
longitude: null, longitude: null,
latitude: null, latitude: null,
manager: null, manager: null,
storeType:'1',
phone: null, phone: null,
info: null, info: null,
createBy: null, createBy: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment