提交 86cf1605 编写于 作者: M maguohua1

bug fixed

上级 06d9d6c7
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/manage' }">首页</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/manage' }">首页</el-breadcrumb-item>
<el-breadcrumb-item v-for="(item, index) in $route.meta" key="index">{{item}}</el-breadcrumb-item> <el-breadcrumb-item v-for="(item, index) in $route.meta" :key="index">{{item}}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<el-dropdown @command="handleCommand" menu-align='start'> <el-dropdown @command="handleCommand" menu-align='start'>
<img :src="baseImgPath + adminInfo.avatar" class="avator"> <img :src="baseImgPath + adminInfo.avatar" class="avator">
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
label="价格"> label="价格">
</el-table-column> </el-table-column>
<el-table-column label="操作" > <el-table-column label="操作" >
<template scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="small" size="small"
type="danger" type="danger"
...@@ -421,7 +421,7 @@ ...@@ -421,7 +421,7 @@
} }
span{ span{
.sc(14px, #999); .sc(14px, #999);
transition: all 400ms; transition: all 400ms;
} }
.edit_icon{ .edit_icon{
color: #ccc; color: #ccc;
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
}"> }">
</el-time-select> </el-time-select>
</el-form-item> </el-form-item>
<el-form-item label="上传店铺头像"> <el-form-item label="上传店铺头像">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
...@@ -142,10 +142,10 @@ ...@@ -142,10 +142,10 @@
align="cneter" align="cneter"
label="活动详情"> label="活动详情">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
width="120"> width="120">
<template scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="small" size="small"
type="danger" type="danger"
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
image_path: '', image_path: '',
business_license_image: '', business_license_image: '',
catering_service_license_image: '', catering_service_license_image: '',
}, },
rules: { rules: {
name: [ name: [
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
this.$message({ this.$message({
type: 'info', type: 'info',
message: '请输入活动详情' message: '请输入活动详情'
}); });
return return
} }
let newObj = {}; let newObj = {};
...@@ -368,14 +368,14 @@ ...@@ -368,14 +368,14 @@
name: '进店领券', name: '进店领券',
description: value, description: value,
} }
break; break;
} }
this.activities.push(newObj); this.activities.push(newObj);
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
handleDelete(index){ handleDelete(index){
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
endTime: '', endTime: '',
image_path: '', image_path: '',
business_license_image: '', business_license_image: '',
catering_service_license_image: '', catering_service_license_image: '',
}; };
this.selectedCategory = ['快餐便当', '简餐']; this.selectedCategory = ['快餐便当', '简餐'];
this.activities = [{ this.activities = [{
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:row-key="row => row.index" :row-key="row => row.index"
style="width: 100%"> style="width: 100%">
<el-table-column type="expand"> <el-table-column type="expand">
<template scope="props"> <template slot-scope="props">
<el-form label-position="left" inline class="demo-table-expand"> <el-form label-position="left" inline class="demo-table-expand">
<el-form-item label="食品名称"> <el-form-item label="食品名称">
<span>{{ props.row.name }}</span> <span>{{ props.row.name }}</span>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
prop="rating"> prop="rating">
</el-table-column> </el-table-column>
<el-table-column label="操作" width="160"> <el-table-column label="操作" width="160">
<template scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="small" size="small"
@click="handleEdit(scope.row)">编辑</el-button> @click="handleEdit(scope.row)">编辑</el-button>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
label="价格"> label="价格">
</el-table-column> </el-table-column>
<el-table-column label="操作" > <el-table-column label="操作" >
<template scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="small" size="small"
type="danger" type="danger"
...@@ -138,8 +138,8 @@ ...@@ -138,8 +138,8 @@
<el-button type="primary" @click="updateFood">确 定</el-button> <el-button type="primary" @click="updateFood">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="添加规格" v-model="specsFormVisible"> <el-dialog title="添加规格" v-model="specsFormVisible">
<el-form :rules="specsFormrules" :model="specsForm"> <el-form :rules="specsFormrules" :model="specsForm">
<el-form-item label="规格" label-width="100px" prop="specs"> <el-form-item label="规格" label-width="100px" prop="specs">
...@@ -309,10 +309,10 @@ ...@@ -309,10 +309,10 @@
this.selectTable = {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, category_name: category.name}}; this.selectTable = {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, category_name: category.name}};
this.selectMenu = {label: category.name, value: row.category_id} this.selectMenu = {label: category.name, value: row.category_id}
this.tableData.splice(row.index, 1, {...this.selectTable}); this.tableData.splice(row.index, 1, {...this.selectTable});
this.$nextTick(() => { this.$nextTick(() => {
this.expendRow.push(row.index); this.expendRow.push(row.index);
}) })
if (type == 'edit' && this.restaurant_id != row.restaurant_id) { if (type == 'edit' && this.restaurant_id != row.restaurant_id) {
this.getMenu(); this.getMenu();
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:row-key="row => row.index" :row-key="row => row.index"
style="width: 100%"> style="width: 100%">
<el-table-column type="expand"> <el-table-column type="expand">
<template scope="props"> <template slot-scope="props">
<el-form label-position="left" inline class="demo-table-expand"> <el-form label-position="left" inline class="demo-table-expand">
<el-form-item label="用户名" > <el-form-item label="用户名" >
<span>{{ props.row.user_name }}</span> <span>{{ props.row.user_name }}</span>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
this.initData(); this.initData();
}, },
mounted(){ mounted(){
}, },
methods: { methods: {
async initData(){ async initData(){
...@@ -125,10 +125,10 @@ ...@@ -125,10 +125,10 @@
const userInfo = await getUserInfo(row.user_id); const userInfo = await getUserInfo(row.user_id);
const addressInfo = await getAddressById(row.address_id); const addressInfo = await getAddressById(row.address_id);
this.tableData.splice(row.index, 1, {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, address: addressInfo.address, user_name: userInfo.username}}); this.tableData.splice(row.index, 1, {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, address: addressInfo.address, user_name: userInfo.username}});
this.$nextTick(() => { this.$nextTick(() => {
this.expendRow.push(row.index); this.expendRow.push(row.index);
}) })
}else{ }else{
const index = this.expendRow.indexOf(row.index); const index = this.expendRow.indexOf(row.index);
this.expendRow.splice(index, 1) this.expendRow.splice(index, 1)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:data="tableData" :data="tableData"
style="width: 100%"> style="width: 100%">
<el-table-column type="expand"> <el-table-column type="expand">
<template scope="props"> <template slot-scope="props">
<el-form label-position="left" inline class="demo-table-expand"> <el-form label-position="left" inline class="demo-table-expand">
<el-form-item label="店铺名称"> <el-form-item label="店铺名称">
<span>{{ props.row.name }}</span> <span>{{ props.row.name }}</span>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
prop="description"> prop="description">
</el-table-column> </el-table-column>
<el-table-column label="操作" width="200"> <el-table-column label="操作" width="200">
<template scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@click="handleEdit(scope.$index, scope.row)">编辑</el-button> @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册