前端问题修改

This commit is contained in:
zzyuan 2025-06-25 13:39:55 +08:00
parent f70091be0f
commit e868769d65
3 changed files with 22 additions and 11 deletions

View File

@ -108,7 +108,7 @@
</el-card>
</div>
<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>
</div>
@ -352,6 +352,7 @@ export default {
dicts: [],
data() {
return {
loading:false,
baseInfo: {
recipeName:undefined,
recipeType:undefined,
@ -982,8 +983,8 @@ export default {
if(subItem.dishesList.length>0){
this.noDishes=false
subItem.dishesList.forEach(dishItem=>{
dishItem.price = Number(dishItem.price*100)
dishItem.salePrice = Number(dishItem.salePrice*100)
dishItem.price = Number(dishItem.price)
dishItem.salePrice = Number(dishItem.salePrice)
})
}
})
@ -991,8 +992,12 @@ export default {
if(this.noDishes){
this.$modal.msgError("请选中菜品!");
}else{
this.loading=true
addMenuRecipeApi(param).then((response) => {
this.loading=false
this.jumpList()
}).catch(() => {
this.loading=false
});
}
}

View File

@ -108,7 +108,7 @@
</el-card>
</div>
<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>
</div>
@ -352,6 +352,7 @@ export default {
dicts: [],
data() {
return {
loading:false,
baseInfo: {
recipeName:undefined,
recipeType:undefined,
@ -1196,8 +1197,8 @@ export default {
if(subItem.dishesList.length>0){
this.noDishes=false
subItem.dishesList.forEach(dishItem=>{
dishItem.price = Number(dishItem.price*100)
dishItem.salePrice = Number(dishItem.salePrice*100)
dishItem.price = Number(dishItem.price)
dishItem.salePrice = Number(dishItem.salePrice)
})
}
})
@ -1206,8 +1207,13 @@ export default {
if(this.noDishes){
this.$modal.msgError("请选中菜品!");
}else{
this.loading=true
editMenuRecipeApi(param).then((response) => {
this.loading=false
this.jumpList()
}).catch(() => {
this.loading=false;
});
}

View File

@ -125,7 +125,7 @@
<!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
<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-col :span="24">
<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 :span="12">
<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-col>
<el-col :span="24">