From eef1ef0be935d4a3d8fc691b2666f41796b2d4a5 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期一, 04 十一月 2024 19:57:08 +0800 Subject: [PATCH] 增加列表显示 --- src/views/mdc/configComp/Efficiency.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/configComp/Efficiency.vue b/src/views/mdc/configComp/Efficiency.vue index 01cfeed..5037c07 100644 --- a/src/views/mdc/configComp/Efficiency.vue +++ b/src/views/mdc/configComp/Efficiency.vue @@ -1,14 +1,14 @@ <!-- * @Date: 2024-04-17 22:17:37 - * @LastEditors: Sneed - * @LastEditTime: 2024-04-22 19:07:49 + * @LastEditors: lzhe lzhe@example.com + * @LastEditTime: 2024-11-04 11:56:34 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Efficiency.vue --> <template> <el-main> <el-row> <el-col> - <el-card style="max-width: 480px"> + <el-card style="max-width: 480px" v-show="showModalList.includes(1)"> <template #header> <div class="card-header"> 鐢ㄦ椂鍒嗘瀽锛堢敤鏃跺垎甯冿級 @@ -33,7 +33,7 @@ </el-col> </el-row> </el-card> - <el-card style="max-width: 480px"> + <el-card style="max-width: 480px" v-show="showModalList.includes(2)"> <template #header> <div class="card-header"> 鏁堢巼鍒嗘瀽 @@ -97,7 +97,7 @@ </el-col> </el-row> </el-card> - <el-card style="max-width: 480px"> + <el-card style="max-width: 480px" v-show="showModalList.includes(3)"> <template #header> <div class="card-header"> 浜ч噺缁熻 @@ -122,7 +122,7 @@ </el-col> </el-row> </el-card> - <el-card style="max-width: 480px"> + <el-card style="max-width: 480px" v-show="showModalList.includes(4)"> <template #header> <div class="card-header"> 鎶ヨ缁熻 @@ -154,6 +154,13 @@ <script> export default { + props: { + showModalList: { + type: Array, + required: false, + defalut: [1,2,3,4] //1鐢ㄦ椂鍒嗘瀽锛�2鏁堢巼鍒嗘瀽锛�3浜ч噺缁熻锛�4鎶ヨ缁熻 + } + }, data() { return { mdc_open_typeId: '', -- Gitblit v1.9.3