From 155f9009fcecabf3d73e299a99ccee1741c08ac6 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 11 May 2023 00:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/directive/permission/hasPermi.js | 1 - src/utils/ruoyi.js | 14 +- src/views/sch/classType/index.vue | 7 +- src/views/sch/school/index.vue | 1 - src/views/system/dept/index.vue | 47 ++- src/views/system/employee/index.vue | 131 +++--- src/views/system/summary/index.vue | 136 +++--- .../zs/clue/components/BatchUpdateDialog.vue | 9 +- src/views/zs/clue/components/PublicDialog.vue | 12 +- src/views/zs/clue/components/SearchForm.vue | 62 ++- src/views/zs/clue/components/UploadDialog.vue | 21 +- src/views/zs/clue/index-bak.vue | 274 ++++++++++++ src/views/zs/clue/index.vue | 132 ++---- .../zs/sign/components/SignFormDialog.vue | 395 +++++++++--------- vue.config.js | 12 +- 15 files changed, 726 insertions(+), 528 deletions(-) create mode 100644 src/views/zs/clue/index-bak.vue diff --git a/src/directive/permission/hasPermi.js b/src/directive/permission/hasPermi.js index 5599919..83a1a00 100644 --- a/src/directive/permission/hasPermi.js +++ b/src/directive/permission/hasPermi.js @@ -10,7 +10,6 @@ export default { const { value } = binding; const all_permission = '*:*:*'; const permissions = store.getters && store.getters.permissions; - if (value && value instanceof Array && value.length > 0) { const permissionFlag = value; diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index 3362a81..4817b10 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -73,20 +73,10 @@ export function addDateRange(params, dateRange, propName) { // 回显数据字典 export function selectDictLabel(datas, value) { - if (value === undefined) { + if (value == undefined) { return ''; } - var actions = []; - Object.keys(datas).some((key) => { - if (datas[key].value === '' + value) { - actions.push(datas[key].label); - return true; - } - }); - if (actions.length === 0) { - actions.push(value); - } - return actions.join(''); + return datas.find((item) => item.dictValue == value).dictLabel; } // 回显数据字典(字符串数组) diff --git a/src/views/sch/classType/index.vue b/src/views/sch/classType/index.vue index 79f7602..7797547 100644 --- a/src/views/sch/classType/index.vue +++ b/src/views/sch/classType/index.vue @@ -31,7 +31,6 @@ 新增 删除 克隆 - @@ -41,13 +40,13 @@ - + - +