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 @@ + + + + + + + {{ row.state == 0 ? '启用' : '停用'}} + + + + + + + + + + + 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 @@ + + + + + + + 已分配权限用户 {{ authorizedMembers.length }} + + + + + + 未分配权限用户 + 已选择 {{ SelectionData.length }} 人 + + + + + + + + + + + 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 @@ + + + + + + + + + + + + +