前端问题修改
This commit is contained in:
parent
f70091be0f
commit
e868769d65
|
|
@ -108,7 +108,7 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%;height: 80px;padding: 10px;background: #FFF;border-radius: 10px;display: flex;align-items: center;justify-content: center;">
|
<div style="width: 100%;height: 80px;padding: 10px;background: #FFF;border-radius: 10px;display: flex;align-items: center;justify-content: center;">
|
||||||
<el-button type="primary" @click="confirmSubmit">提 交</el-button>
|
<el-button type="primary" @click="confirmSubmit" :loading="loading">提 交</el-button>
|
||||||
<el-button @click="jumpList">返 回</el-button>
|
<el-button @click="jumpList">返 回</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -352,6 +352,7 @@ export default {
|
||||||
dicts: [],
|
dicts: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading:false,
|
||||||
baseInfo: {
|
baseInfo: {
|
||||||
recipeName:undefined,
|
recipeName:undefined,
|
||||||
recipeType:undefined,
|
recipeType:undefined,
|
||||||
|
|
@ -982,8 +983,8 @@ export default {
|
||||||
if(subItem.dishesList.length>0){
|
if(subItem.dishesList.length>0){
|
||||||
this.noDishes=false
|
this.noDishes=false
|
||||||
subItem.dishesList.forEach(dishItem=>{
|
subItem.dishesList.forEach(dishItem=>{
|
||||||
dishItem.price = Number(dishItem.price*100)
|
dishItem.price = Number(dishItem.price)
|
||||||
dishItem.salePrice = Number(dishItem.salePrice*100)
|
dishItem.salePrice = Number(dishItem.salePrice)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -991,9 +992,13 @@ export default {
|
||||||
if(this.noDishes){
|
if(this.noDishes){
|
||||||
this.$modal.msgError("请选中菜品!");
|
this.$modal.msgError("请选中菜品!");
|
||||||
}else{
|
}else{
|
||||||
addMenuRecipeApi(param).then((response) => {
|
this.loading=true
|
||||||
|
addMenuRecipeApi(param).then((response) => {
|
||||||
|
this.loading=false
|
||||||
this.jumpList()
|
this.jumpList()
|
||||||
});
|
}).catch(() => {
|
||||||
|
this.loading=false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%;height: 80px;padding: 10px;background: #FFF;border-radius: 10px;display: flex;align-items: center;justify-content: center;">
|
<div style="width: 100%;height: 80px;padding: 10px;background: #FFF;border-radius: 10px;display: flex;align-items: center;justify-content: center;">
|
||||||
<el-button type="primary" @click="confirmSubmit">提 交</el-button>
|
<el-button type="primary" @click="confirmSubmit" :loading="loading">提 交</el-button>
|
||||||
<el-button @click="jumpList">返 回</el-button>
|
<el-button @click="jumpList">返 回</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -352,6 +352,7 @@ export default {
|
||||||
dicts: [],
|
dicts: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading:false,
|
||||||
baseInfo: {
|
baseInfo: {
|
||||||
recipeName:undefined,
|
recipeName:undefined,
|
||||||
recipeType:undefined,
|
recipeType:undefined,
|
||||||
|
|
@ -1196,8 +1197,8 @@ export default {
|
||||||
if(subItem.dishesList.length>0){
|
if(subItem.dishesList.length>0){
|
||||||
this.noDishes=false
|
this.noDishes=false
|
||||||
subItem.dishesList.forEach(dishItem=>{
|
subItem.dishesList.forEach(dishItem=>{
|
||||||
dishItem.price = Number(dishItem.price*100)
|
dishItem.price = Number(dishItem.price)
|
||||||
dishItem.salePrice = Number(dishItem.salePrice*100)
|
dishItem.salePrice = Number(dishItem.salePrice)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -1206,9 +1207,14 @@ export default {
|
||||||
if(this.noDishes){
|
if(this.noDishes){
|
||||||
this.$modal.msgError("请选中菜品!");
|
this.$modal.msgError("请选中菜品!");
|
||||||
}else{
|
}else{
|
||||||
|
this.loading=true
|
||||||
editMenuRecipeApi(param).then((response) => {
|
editMenuRecipeApi(param).then((response) => {
|
||||||
|
this.loading=false
|
||||||
this.jumpList()
|
this.jumpList()
|
||||||
});
|
}).catch(() => {
|
||||||
|
this.loading=false;
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@
|
||||||
<!-- 添加或修改参数配置对话框 -->
|
<!-- 添加或修改参数配置对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
||||||
<div style="width: 100%;height: 600px;overflow-y: auto;">
|
<div style="width: 100%;height: 600px;overflow-y: auto;">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div style="font-size: 18px;font-weight: bold;border-left: 4px solid #1890FF;padding-left: 4px;margin-bottom: 20px;">
|
<div style="font-size: 18px;font-weight: bold;border-left: 4px solid #1890FF;padding-left: 4px;margin-bottom: 20px;">
|
||||||
|
|
@ -175,7 +175,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="岗位名称:" prop="postName">
|
<el-form-item label="岗位名称:" prop="postName">
|
||||||
<el-input v-model="form.postName" placeholder="请输入岗位名称" maxlength="20" />
|
<el-input v-model="form.postName" placeholder="请输入岗位名称" maxlength="30" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue