diff --git a/stdiet-ui/src/components/RecipesPlanDrawer/PlanPauseDrawer/index.vue b/stdiet-ui/src/components/RecipesPlanDrawer/PlanPauseDrawer/index.vue
index bf19309b1..21f35b212 100644
--- a/stdiet-ui/src/components/RecipesPlanDrawer/PlanPauseDrawer/index.vue
+++ b/stdiet-ui/src/components/RecipesPlanDrawer/PlanPauseDrawer/index.vue
@@ -14,7 +14,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
- v-hasPermi="['orderPause:pause:add']"
+ v-hasPermi="['recipes:pause:add']"
>新增
@@ -24,7 +24,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
- v-hasPermi="['orderPause:pause:export']"
+ v-hasPermi="['recipes:pause:export']"
>导出
@@ -96,7 +96,7 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
- v-hasPermi="['orderPause:pause:edit']"
+ v-hasPermi="['recipes:pause:edit']"
>修改
删除
diff --git a/stdiet-ui/src/views/custom/dishes/index.vue b/stdiet-ui/src/views/custom/dishes/index.vue
index 2293142c8..d64acc459 100644
--- a/stdiet-ui/src/views/custom/dishes/index.vue
+++ b/stdiet-ui/src/views/custom/dishes/index.vue
@@ -247,17 +247,10 @@
:summary-method="getSummaries"
style="width: 100%"
>
-
-
+
+
-
-
+
-
-
-
-
-
+
+
+
+
+
+ {{
+ `${(
+ scope.row.proteinRatio * 4 +
+ scope.row.fatRatio * 9 +
+ scope.row.carbonRatio * 4
+ ).toFixed(1)} kcal`
+ }}
+
diff --git a/stdiet-ui/src/views/custom/ingredient/index.vue b/stdiet-ui/src/views/custom/ingredient/index.vue
index b44ef216f..61fbff02c 100644
--- a/stdiet-ui/src/views/custom/ingredient/index.vue
+++ b/stdiet-ui/src/views/custom/ingredient/index.vue
@@ -96,13 +96,11 @@
icon="el-icon-search"
size="mini"
@click="handleQuery"
- >搜索
-
+ >搜索
+
重置
-
+ >重置
+
@@ -114,7 +112,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['custom:ingredient:add']"
- >新增
+ >新增
@@ -124,7 +122,7 @@
size="mini"
@click="handleExport"
v-hasPermi="['custom:ingredient:export']"
- >导出
+ >导出
+
+
+ {{
+ (
+ scope.row.proteinRatio * 4 +
+ scope.row.fatRatio * 9 +
+ scope.row.carbonRatio * 4
+ ).toFixed(1)
+ }}
+
+
-
+
-
+
-
+
修改
+ >修改
删除
+ >删除
@@ -241,7 +250,7 @@
-
+
@@ -376,244 +385,242 @@