From 49a44d1b83ac907ca86b36222a2e967f79a90ffb Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 02 一月 2025 13:38:05 +0800 Subject: [PATCH] 调度方案运行状态显示 --- src/views/model/mpk/icon/index.vue | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/views/model/mpk/icon/index.vue b/src/views/model/mpk/icon/index.vue index e4b361e..e9c3654 100644 --- a/src/views/model/mpk/icon/index.vue +++ b/src/views/model/mpk/icon/index.vue @@ -7,6 +7,7 @@ ref="queryFormRef" :inline="true" label-width="68px" + @submit.prevent > <el-form-item label="模型名称" prop="iconName"> <el-input @@ -48,6 +49,11 @@ > <el-table-column prop="iconName" label="名称"/> <el-table-column prop="iconDesc" label="描述"/> + <el-table-column align="center" label="图标" prop="icon" width="100"> + <template #default="scope"> + <img :src="staticDir + 'SimtreeUnitImage/' + scope.row.iconName" class="mpk-icon-list" :alt=" scope.row.iconDesc" /> + </template> + </el-table-column> <el-table-column prop="sort" label="排序"/> <el-table-column label="操作" align="center" width="200px"> <template #default="scope"> @@ -70,7 +76,7 @@ <!-- 分页 --> <Pagination v-model:limit="queryParams.pageSize" - v-model:page="queryParams.page" + v-model:page="queryParams.pageNo" :total="total" @pagination="getList" /> @@ -86,6 +92,8 @@ defineOptions({name: 'MpkIcon'}) +const staticDir = ref(import.meta.env.VITE_STATIC_DIR) + const message = useMessage() // 消息弹窗 const {t} = useI18n() // 国际化 @@ -93,7 +101,7 @@ const total = ref(0) // 列表的总页数 const list = ref([]) // 字典表格数据 const queryParams = reactive({ - page: 1, + pageNo: 1, pageSize: 10, iconName: '' }) @@ -117,7 +125,7 @@ /** 重置按钮操作 */ const resetQuery = () => { - queryParams.page = 1 + queryParams.pageNo = 1 queryFormRef.value.resetFields() handleQuery() } @@ -147,3 +155,10 @@ await getList() }) </script> +<style scoped> +.mpk-icon-list { + height: 30px; + margin: 0; +} + +</style> -- Gitblit v1.9.3