From 0796112637e5592020624dbcf5e647fbf0193205 Mon Sep 17 00:00:00 2001 From: caorui <3165079241@qq.com> Date: Fri, 30 May 2025 09:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=86=E7=B1=BB=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=20NIFI=E6=A1=A3=E6=A1=88=20=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B4=A6=E5=8F=B7=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.js | 8 + src/utils/request.js | 7 +- src/utils/util.js | 15 + src/views/NIFIConstant/configData.js | 149 ++++++++ src/views/NIFIConstant/index.vue | 195 ++++++++++ src/views/NIFIConstant/rightDialog.vue | 236 ++++++++++++ .../accountList/accountAdmin.vue | 338 ++++++++++++++++++ .../accountList/addAccount.vue | 286 +++++++++++++++ .../applicationList/accountList/configData.js | 0 .../applicationList/accountList/index.vue | 12 + src/views/applicationList/configData.js | 9 + .../authorizationDialog.vue | 265 ++++++++++++++ src/views/projectClassification/configData.js | 49 +++ src/views/projectClassification/index.vue | 199 +++++++++++ .../projectClassification/rightDialog.vue | 236 ++++++++++++ 15 files changed, 2003 insertions(+), 1 deletion(-) create mode 100644 src/views/NIFIConstant/configData.js create mode 100644 src/views/NIFIConstant/index.vue create mode 100644 src/views/NIFIConstant/rightDialog.vue create mode 100644 src/views/applicationList/accountList/accountAdmin.vue create mode 100644 src/views/applicationList/accountList/addAccount.vue create mode 100644 src/views/applicationList/accountList/configData.js create mode 100644 src/views/applicationList/accountList/index.vue create mode 100644 src/views/projectClassification/authorizationDialog.vue create mode 100644 src/views/projectClassification/configData.js create mode 100644 src/views/projectClassification/index.vue create mode 100644 src/views/projectClassification/rightDialog.vue diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 37bc4a7..9328fad 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -59,6 +59,14 @@ const permission = { hidden: true } }, + { + path: 'accountAdmin', + name: 'accountAdmin', + component: () => import('@/views/applicationList/accountList/accountAdmin'), + meta: { + hidden: true + } + }, { path: 'inserterAdmin', name: 'inserterAdmin', diff --git a/src/utils/request.js b/src/utils/request.js index 8c86324..5ecbbfa 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -8,6 +8,7 @@ import { import store from '@/store' import { getToken, + setMenuNode, setToken, removeCompanyId, removeToken, @@ -147,6 +148,10 @@ service.interceptors.response.use( type: 'error' }) .then(() => { + store.commit("REMOVE_ROUTER"); + store.dispatch("tagsView/delAllViews"); + setMenuNode("/index"); + store.commit("SET_CURRENT_MENU_NODE", "/index"); store.dispatch('LogOut').then(() => { route.replace({ path: '/login' @@ -298,7 +303,7 @@ export function download(url, params, filename, config) { responseType: 'blob', ...config }) - .then(async(data) => { + .then(async (data) => { const isLogin = await blobValidate(data) if (isLogin) { const blob = new Blob([data]) diff --git a/src/utils/util.js b/src/utils/util.js index a439f8b..bda9e02 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -761,3 +761,18 @@ export function delTreeChildren(data){ delChilren(data) return data } + +// 动态宽 boxWidth 最大的div盒子大小,minWidth最小宽度,marginSize间距 +export function dynamicWidth(boxWidth, minWidth, marginSize = 0) { + let num = Math.floor(boxWidth / (minWidth + marginSize)) + return boxWidth / num - marginSize +} + +// 动态高度 +export function dynamicHeight(boxWidth, minWidth, marginSize = 0, boxHeight, listHeight, heightMargin = 0) { + let num = Math.floor(boxWidth / (minWidth + marginSize)) + // console.log(,'几行') + + return Math.ceil(boxHeight / (listHeight + heightMargin)) * num + // return boxWidth / num - marginSize +} \ No newline at end of file diff --git a/src/views/NIFIConstant/configData.js b/src/views/NIFIConstant/configData.js new file mode 100644 index 0000000..e18f328 --- /dev/null +++ b/src/views/NIFIConstant/configData.js @@ -0,0 +1,149 @@ +/** + * @desc NIFI常量 + * @date 2023-07-10 + */ +// 表头 +const tableColumnData = [ + { + label: 'key', + prop: 'nifiKey' + }, + { + label: 'value', + prop: 'nifiValue' + }, + { + label: '显示值', + prop: 'showValue' + }, + { + label: '描述', + prop: 'description' + }, + { + label: '类型', + prop: 'type' + } +] + +// 基本信息内容 +const formRow = [ + { + elCol: [{ + label: 'key', + prop: 'nifiKey', + tag: 'elInput', + span: 24 + }] + }, + { + elCol: [{ + label: 'value', + prop: 'nifiValue', + tag: 'elInput', + span: 24 + }] + }, + { + elCol: [{ + label: '显示值', + prop: 'showValue', + tag: 'elInput', + span: 24 + }] + }, + { + elCol: [{ + label: '描述', + prop: 'description', + tag: 'elInput', + span: 24 + }] + }, + { + elCol: [{ + label: '类型', + prop: 'type', + tag: 'elInput', + span: 24 + }] + }, +] + +const basicsRules = { + nifiKey: [{ + required: true, + message: '请输入key', + trigger: 'blur' + }], + nifiValue: [{ + required: true, + message: '请输入value', + trigger: 'blur' + }], + showValue: [{ + required: true, + message: '请输入显示值', + trigger: 'blur' + }], + description: [{ + required: true, + message: '请输入描述', + trigger: 'blur' + }], + type: [{ + required: true, + message: '请输入类型', + trigger: 'blur' + }], +} + +// 查看 +const formRowShow = [ + { + elCol: [{ + label: 'key', + prop: 'nifiKey', + tag: 'elLook', + span: 24 + }] + }, + { + elCol: [{ + label: 'value', + prop: 'nifiValue', + tag: 'elLook', + span: 24 + }] + }, + { + elCol: [{ + label: '显示值', + prop: 'showValue', + tag: 'elLook', + span: 24 + }] + }, + { + elCol: [{ + label: '描述', + prop: 'description', + tag: 'elLook', + span: 24 + }] + }, + { + elCol: [{ + label: '类型', + prop: 'type', + tag: 'elLook', + span: 24 + }] + }, +] +export default { + tableColumnData, + formRow, + basicsRules, + formRowShow, +} diff --git a/src/views/NIFIConstant/index.vue b/src/views/NIFIConstant/index.vue new file mode 100644 index 0000000..bcb4296 --- /dev/null +++ b/src/views/NIFIConstant/index.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/views/NIFIConstant/rightDialog.vue b/src/views/NIFIConstant/rightDialog.vue new file mode 100644 index 0000000..bc5d2f9 --- /dev/null +++ b/src/views/NIFIConstant/rightDialog.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/src/views/applicationList/accountList/accountAdmin.vue b/src/views/applicationList/accountList/accountAdmin.vue new file mode 100644 index 0000000..54edf68 --- /dev/null +++ b/src/views/applicationList/accountList/accountAdmin.vue @@ -0,0 +1,338 @@ + + + + + + + + diff --git a/src/views/applicationList/accountList/addAccount.vue b/src/views/applicationList/accountList/addAccount.vue new file mode 100644 index 0000000..6a6945b --- /dev/null +++ b/src/views/applicationList/accountList/addAccount.vue @@ -0,0 +1,286 @@ + + + + + \ No newline at end of file diff --git a/src/views/applicationList/accountList/configData.js b/src/views/applicationList/accountList/configData.js new file mode 100644 index 0000000..e69de29 diff --git a/src/views/applicationList/accountList/index.vue b/src/views/applicationList/accountList/index.vue new file mode 100644 index 0000000..234687d --- /dev/null +++ b/src/views/applicationList/accountList/index.vue @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/src/views/applicationList/configData.js b/src/views/applicationList/configData.js index c9dbc5e..b945793 100644 --- a/src/views/applicationList/configData.js +++ b/src/views/applicationList/configData.js @@ -116,6 +116,10 @@ const addForm = [ id: "8", label: "用友NCC", }, + { + id: "9", + label: "数据库", + }, ], fontSize: 16, }, @@ -211,6 +215,11 @@ const settingMenu = [ icon: "appMenu03", path: "appApiAdmin" }, + { + title: "应用账号授权", + icon: "appMenu03", + path: "accountAdmin" + }, { title: "安全与监控", icon: "appMenu04" diff --git a/src/views/projectClassification/authorizationDialog.vue b/src/views/projectClassification/authorizationDialog.vue new file mode 100644 index 0000000..244973f --- /dev/null +++ b/src/views/projectClassification/authorizationDialog.vue @@ -0,0 +1,265 @@ + + + + + diff --git a/src/views/projectClassification/configData.js b/src/views/projectClassification/configData.js new file mode 100644 index 0000000..e5105c3 --- /dev/null +++ b/src/views/projectClassification/configData.js @@ -0,0 +1,49 @@ +/** + * @desc 项目分类 + * @date 2023-07-10 + */ +// 表头 +const tableColumnData = [ + { + label: '项目分类名称', + prop: 'name' + } +] + +// 基本信息内容 +const formRow = [ + { + elCol: [{ + label: '项目分类名称', + prop: 'name', + tag: 'elInput', + span: 24 + }] + }, +] + +const basicsRules = { + name: [{ + required: true, + message: '请输入项目分类名称', + trigger: 'blur' + }], +} + +// 查看 +const formRowShow = [ + { + elCol: [{ + label: '项目分类名称', + prop: 'name', + tag: 'elLook', + span: 24 + }] + }, +] +export default { + tableColumnData, + formRow, + basicsRules, + formRowShow, +} diff --git a/src/views/projectClassification/index.vue b/src/views/projectClassification/index.vue new file mode 100644 index 0000000..945c286 --- /dev/null +++ b/src/views/projectClassification/index.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/src/views/projectClassification/rightDialog.vue b/src/views/projectClassification/rightDialog.vue new file mode 100644 index 0000000..89c728a --- /dev/null +++ b/src/views/projectClassification/rightDialog.vue @@ -0,0 +1,236 @@ + + + + +