From 71594bd2dc9201834aa533099e9e49a9b84506cd Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期四, 12 六月 2025 15:32:25 +0800 Subject: [PATCH] 新增韩语 --- UI-Project/src/views/User/permissions.vue | 71 +++++++++++++++++++++++++++++------ 1 files changed, 59 insertions(+), 12 deletions(-) diff --git a/UI-Project/src/views/User/permissions.vue b/UI-Project/src/views/User/permissions.vue index 61e837d..e3445ad 100644 --- a/UI-Project/src/views/User/permissions.vue +++ b/UI-Project/src/views/User/permissions.vue @@ -22,7 +22,6 @@ const slot = ref('') request.get("/loadGlass/sys/menu/nav").then((res) => { if (res.code == 200) { - console.log(res.data); tableData.value = res.data.tree } else { ElMessage.warning(res.msg) @@ -80,6 +79,18 @@ } // 娣诲姞涓�绾ц彍鍗� const getTableRow = async () => { + if (!menuName.value) { + ElMessage.error(t('customer.inmenu')) + return + } + if (!url.value) { + ElMessage.error(t('customer.inlink')) + return + } + if (!listSort.value) { + ElMessage.error(t('customer.insort')) + return + } try { const response = await request.post('/loadGlass/sys/menu/save', { menuName: menuName.value, @@ -103,6 +114,18 @@ }; // 娣诲姞浜岀骇鑿滃崟 const getTableRowb = async () => { + if (!menuName.value) { + ElMessage.error(t('customer.inmenu')) + return + } + if (!url.value) { + ElMessage.error(t('customer.inlink')) + return + } + if (!listSort.value) { + ElMessage.error(t('customer.insort')) + return + } try { const dataToSend = { parentId: currentRow.id, @@ -141,6 +164,18 @@ } // 缂栬緫 const getTableRowa = async () => { + if (!menuName.value) { + ElMessage.error(t('customer.inmenu')) + return + } + if (!url.value) { + ElMessage.error(t('customer.inlink')) + return + } + if (!listSort.value) { + ElMessage.error(t('customer.insort')) + return + } try { const response = await request.post('/loadGlass/sys/menu/updateMenu', { parentId: currentRow.id, @@ -164,6 +199,18 @@ }; // 缂栬緫浜岀骇鑿滃崟 const getTableRowac = async () => { + if (!menuName.value) { + ElMessage.error(t('customer.inmenu')) + return + } + if (!url.value) { + ElMessage.error(t('customer.inlink')) + return + } + if (!listSort.value) { + ElMessage.error(t('customer.insort')) + return + } try { const response = await request.post('/loadGlass/sys/menu/updateMenu', { menuName: menuName.value, @@ -213,8 +260,8 @@ </script> <template> <div style="height: 600px;"> - <el-button type="primary" style="margin-top: 10px;margin-left: 10px;" size="mini" id="searchButton" @click="add = true">{{ $t('customer.addmenu') }}</el-button> - <el-card style="flex: 1;margin-left: 10px;margin-top: 20px;" v-loading="loading"> + <el-button type="primary" style="margin-top: 10px;margin-left: 10px;" id="searchButton" @click="add = true">{{ $t('customer.addmenu') }}</el-button> + <el-card style="flex: 1;margin-left: 10px;margin-top: 20px;"> <div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;max-height: 750px;"> <el-table :data="tableData" @@ -238,8 +285,8 @@ <el-table-column prop="listSort" align="center" :label="$t('customer.sort')" min-width="140"/> <el-table-column fixed="right" :label="$t('customer.operate')" align="center"> <template #default="scope"> - <el-button size="mini" type="text" plain @click="handleEditc(scope.row)">{{ $t('customer.exit') }}</el-button> - <el-button size="mini" type="text" plain @click="opena(scope.row)">{{ $t('customer.delete') }}</el-button> + <el-button type="text" plain @click="handleEditc(scope.row)">{{ $t('customer.exit') }}</el-button> + <el-button type="text" plain @click="opena(scope.row)">{{ $t('customer.delete') }}</el-button> </template> </el-table-column> </el-table> @@ -251,9 +298,9 @@ <el-table-column prop="listSort" align="center" :label="$t('customer.sort')" min-width="180" /> <el-table-column fixed="right" :label="$t('customer.operate')" align="center" width="200"> <template #default="scope"> - <el-button size="mini" type="text" plain @click="handleBindRack(scope.row)">{{ $t('customer.addmenua') }}</el-button> - <el-button size="mini" type="text" plain @click="handleEdit(scope.row)">{{ $t('customer.exit') }}</el-button> - <el-button size="mini" type="text" plain @click="opena(scope.row)">{{ $t('customer.delete') }}</el-button> + <el-button type="text" plain @click="handleBindRack(scope.row)">{{ $t('customer.addmenua') }}</el-button> + <el-button type="text" plain @click="handleEdit(scope.row)">{{ $t('customer.exit') }}</el-button> + <el-button type="text" plain @click="opena(scope.row)">{{ $t('customer.delete') }}</el-button> </template> </el-table-column> </el-table> @@ -262,7 +309,7 @@ </div> <el-dialog v-model="add" top="23vh" width="37%" :title="$t('customer.addmenu')"> <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> - <el-form size="mini" label-width="150px"> + <el-form label-width="150px"> <el-form label-width="150px" label-position="right"> <el-row style="margin-top: -15px;margin-bottom: -2px;"> <el-col :span="6"> @@ -318,7 +365,7 @@ </el-form> </div> <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> - <el-form size="mini" label-width="150px"> + <el-form label-width="150px"> <el-form label-width="150px" label-position="right"> <el-row style="margin-top: -15px;margin-bottom: -2px;"> <el-col :span="6"> @@ -361,7 +408,7 @@ </el-dialog> <el-dialog v-model="adda" top="23vh" width="37%" :title="$t('customer.exmene')"> <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> - <el-form ref="formRef" size="mini" label-width="150px"> + <el-form ref="formRef" label-width="150px"> <el-form label-width="100px" label-position="right"> <el-row style="margin-top: -15px;margin-bottom: -2px;"> <el-col :span="6"> @@ -404,7 +451,7 @@ </el-dialog> <el-dialog v-model="addc" top="23vh" width="37%" :title="$t('customer.exmenea')"> <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> - <el-form ref="formRef" size="mini" label-width="150px"> + <el-form ref="formRef" label-width="150px"> <el-form label-width="100px" label-position="right"> <el-row style="margin-top: -15px;margin-bottom: -2px;"> <el-col :span="6"> -- Gitblit v1.8.0