Skip to content

Commit 86cf160

Browse files
committed
bug fixed
1 parent 06d9d6c commit 86cf160

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

src/components/headTop.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<el-breadcrumb separator="/">
55
<el-breadcrumb-item :to="{ path: '/manage' }">首页</el-breadcrumb-item>
6-
<el-breadcrumb-item v-for="(item, index) in $route.meta" key="index">{{item}}</el-breadcrumb-item>
6+
<el-breadcrumb-item v-for="(item, index) in $route.meta" :key="index">{{item}}</el-breadcrumb-item>
77
</el-breadcrumb>
88
<el-dropdown @command="handleCommand" menu-align='start'>
99
<img :src="baseImgPath + adminInfo.avatar" class="avator">

src/page/addGoods.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
label="价格">
100100
</el-table-column>
101101
<el-table-column label="操作" >
102-
<template scope="scope">
102+
<template slot-scope="scope">
103103
<el-button
104104
size="small"
105105
type="danger"
@@ -421,7 +421,7 @@
421421
}
422422
span{
423423
.sc(14px, #999);
424-
transition: all 400ms;
424+
transition: all 400ms;
425425
}
426426
.edit_icon{
427427
color: #ccc;

src/page/addShop.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
}">
7777
</el-time-select>
7878
</el-form-item>
79-
79+
8080
<el-form-item label="上传店铺头像">
8181
<el-upload
8282
class="avatar-uploader"
@@ -142,10 +142,10 @@
142142
align="cneter"
143143
label="活动详情">
144144
</el-table-column>
145-
<el-table-column
146-
label="操作"
145+
<el-table-column
146+
label="操作"
147147
width="120">
148-
<template scope="scope">
148+
<template slot-scope="scope">
149149
<el-button
150150
size="small"
151151
type="danger"
@@ -191,7 +191,7 @@
191191
image_path: '',
192192
business_license_image: '',
193193
catering_service_license_image: '',
194-
194+
195195
},
196196
rules: {
197197
name: [
@@ -336,7 +336,7 @@
336336
this.$message({
337337
type: 'info',
338338
message: '请输入活动详情'
339-
});
339+
});
340340
return
341341
}
342342
let newObj = {};
@@ -368,14 +368,14 @@
368368
name: '进店领券',
369369
description: value,
370370
}
371-
break;
371+
break;
372372
}
373373
this.activities.push(newObj);
374374
}).catch(() => {
375375
this.$message({
376376
type: 'info',
377377
message: '取消输入'
378-
});
378+
});
379379
});
380380
},
381381
handleDelete(index){
@@ -414,7 +414,7 @@
414414
endTime: '',
415415
image_path: '',
416416
business_license_image: '',
417-
catering_service_license_image: '',
417+
catering_service_license_image: '',
418418
};
419419
this.selectedCategory = ['快餐便当', '简餐'];
420420
this.activities = [{

src/page/foodList.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:row-key="row => row.index"
1010
style="width: 100%">
1111
<el-table-column type="expand">
12-
<template scope="props">
12+
<template slot-scope="props">
1313
<el-form label-position="left" inline class="demo-table-expand">
1414
<el-form-item label="食品名称">
1515
<span>{{ props.row.name }}</span>
@@ -54,7 +54,7 @@
5454
prop="rating">
5555
</el-table-column>
5656
<el-table-column label="操作" width="160">
57-
<template scope="scope">
57+
<template slot-scope="scope">
5858
<el-button
5959
size="small"
6060
@click="handleEdit(scope.row)">编辑</el-button>
@@ -123,7 +123,7 @@
123123
label="价格">
124124
</el-table-column>
125125
<el-table-column label="操作" >
126-
<template scope="scope">
126+
<template slot-scope="scope">
127127
<el-button
128128
size="small"
129129
type="danger"
@@ -138,8 +138,8 @@
138138
<el-button type="primary" @click="updateFood">确 定</el-button>
139139
</div>
140140
</el-dialog>
141-
142-
141+
142+
143143
<el-dialog title="添加规格" v-model="specsFormVisible">
144144
<el-form :rules="specsFormrules" :model="specsForm">
145145
<el-form-item label="规格" label-width="100px" prop="specs">
@@ -309,10 +309,10 @@
309309
this.selectTable = {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, category_name: category.name}};
310310
311311
this.selectMenu = {label: category.name, value: row.category_id}
312-
this.tableData.splice(row.index, 1, {...this.selectTable});
312+
this.tableData.splice(row.index, 1, {...this.selectTable});
313313
this.$nextTick(() => {
314314
this.expendRow.push(row.index);
315-
})
315+
})
316316
if (type == 'edit' && this.restaurant_id != row.restaurant_id) {
317317
this.getMenu();
318318
}

src/page/orderList.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:row-key="row => row.index"
1010
style="width: 100%">
1111
<el-table-column type="expand">
12-
<template scope="props">
12+
<template slot-scope="props">
1313
<el-form label-position="left" inline class="demo-table-expand">
1414
<el-form-item label="用户名" >
1515
<span>{{ props.row.user_name }}</span>
@@ -80,7 +80,7 @@
8080
this.initData();
8181
},
8282
mounted(){
83-
83+
8484
},
8585
methods: {
8686
async initData(){
@@ -125,10 +125,10 @@
125125
const userInfo = await getUserInfo(row.user_id);
126126
const addressInfo = await getAddressById(row.address_id);
127127
128-
this.tableData.splice(row.index, 1, {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, address: addressInfo.address, user_name: userInfo.username}});
128+
this.tableData.splice(row.index, 1, {...row, ...{restaurant_name: restaurant.name, restaurant_address: restaurant.address, address: addressInfo.address, user_name: userInfo.username}});
129129
this.$nextTick(() => {
130130
this.expendRow.push(row.index);
131-
})
131+
})
132132
}else{
133133
const index = this.expendRow.indexOf(row.index);
134134
this.expendRow.splice(index, 1)

src/page/shopList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:data="tableData"
77
style="width: 100%">
88
<el-table-column type="expand">
9-
<template scope="props">
9+
<template slot-scope="props">
1010
<el-form label-position="left" inline class="demo-table-expand">
1111
<el-form-item label="店铺名称">
1212
<span>{{ props.row.name }}</span>
@@ -48,7 +48,7 @@
4848
prop="description">
4949
</el-table-column>
5050
<el-table-column label="操作" width="200">
51-
<template scope="scope">
51+
<template slot-scope="scope">
5252
<el-button
5353
size="mini"
5454
@click="handleEdit(scope.$index, scope.row)">编辑</el-button>

0 commit comments

Comments
 (0)