refactor(系统配置): 系统配置菜单拆分

This commit is contained in:
wangjiahao 2022-09-23 12:46:39 +08:00
parent 067e1facb2
commit ea17177c08
6 changed files with 22 additions and 55 deletions

View File

@ -15,6 +15,8 @@
\u5220\u9664\u89D2\u8272=Delete Role \u5220\u9664\u89D2\u8272=Delete Role
\u5220\u9664\u8FDE\u63A5=Delete Connection \u5220\u9664\u8FDE\u63A5=Delete Connection
\u663E\u793A\u8BBE\u7F6E=Display \u663E\u793A\u8BBE\u7F6E=Display
\u5E73\u53F0\u5BF9\u63A5=Platform Docking
\u8BA4\u8BC1\u8BBE\u7F6E=Authentication Setting
\u7CFB\u7EDF\u53C2\u6570=System Param \u7CFB\u7EDF\u53C2\u6570=System Param
\u53C2\u6570\u7BA1\u7406=Parameter \u53C2\u6570\u7BA1\u7406=Parameter
\u6570\u636E\u6E90=Data Source \u6570\u636E\u6E90=Data Source

View File

@ -15,6 +15,8 @@
\u5220\u9664\u89D2\u8272=\u5220\u9664\u89D2\u8272 \u5220\u9664\u89D2\u8272=\u5220\u9664\u89D2\u8272
\u5220\u9664\u8FDE\u63A5=\u5220\u9664\u8FDE\u63A5 \u5220\u9664\u8FDE\u63A5=\u5220\u9664\u8FDE\u63A5
\u663E\u793A\u8BBE\u7F6E=\u663E\u793A\u8BBE\u7F6E \u663E\u793A\u8BBE\u7F6E=\u663E\u793A\u8BBE\u7F6E
\u5E73\u53F0\u5BF9\u63A5=\u5E73\u53F0\u5BF9\u63A5
\u8BA4\u8BC1\u8BBE\u7F6E=\u8BA4\u8BC1\u8BBE\u7F6E
\u7CFB\u7EDF\u53C2\u6570=\u7CFB\u7EDF\u53C2\u6570 \u7CFB\u7EDF\u53C2\u6570=\u7CFB\u7EDF\u53C2\u6570
\u53C2\u6570\u7BA1\u7406=\u53C2\u6570\u7BA1\u7406 \u53C2\u6570\u7BA1\u7406=\u53C2\u6570\u7BA1\u7406
\u6570\u636E\u6E90=\u6570\u636E\u6E90 \u6570\u636E\u6E90=\u6570\u636E\u6E90

View File

@ -15,6 +15,8 @@
\u5220\u9664\u89D2\u8272=\u522A\u9664\u89D2\u8272 \u5220\u9664\u89D2\u8272=\u522A\u9664\u89D2\u8272
\u522A\u9664\u8FDE\u63A5=\u522A\u9664\u93C8\u63A5 \u522A\u9664\u8FDE\u63A5=\u522A\u9664\u93C8\u63A5
\u663E\u793A\u8BBE\u7F6E=\u986F\u793A\u8A2D\u7F6E \u663E\u793A\u8BBE\u7F6E=\u986F\u793A\u8A2D\u7F6E
\u5E73\u53F0\u5BF9\u63A5=\u5E73\u81FA\u5C0D\u63A5
\u8BA4\u8BC1\u8BBE\u7F6E=\u8A8D\u8B49\u8A2D\u7F6E
\u7CFB\u7EDF\u53C2\u6570=\u7CFB\u7D71\u53C3\u6578 \u7CFB\u7EDF\u53C2\u6570=\u7CFB\u7D71\u53C3\u6578
\u53C2\u6570\u7BA1\u7406=\u53C3\u6578\u7BA1\u7406 \u53C2\u6570\u7BA1\u7406=\u53C3\u6578\u7BA1\u7406
\u6570\u636E\u6E90=\u6578\u64DA\u6E90 \u6570\u636E\u6E90=\u6578\u64DA\u6E90

View File

@ -34,7 +34,7 @@ export default {
return backPath || backName || backTo return backPath || backName || backTo
}, },
needInnerPadding() { needInnerPadding() {
return ['sys-task-email', 'system-dept', 'system-dept-form', 'system-auth', 'sys-appearance', 'system-param', 'system-template', "sys-task-dataset", "sys-msg-web-all", "system-plugin"].includes(this.$route.name) return ['sys-identification', 'sys-abutment', 'sys-task-email', 'system-dept', 'system-dept-form', 'system-auth', 'sys-appearance', 'system-param', 'system-template', "sys-task-dataset", "sys-msg-web-all", "system-plugin"].includes(this.$route.name)
} }
} }
} }

View File

@ -18,20 +18,6 @@
<el-tab-pane :lazy="true" :label="$t('sysParams.map')" name="ten" /> <el-tab-pane :lazy="true" :label="$t('sysParams.map')" name="ten" />
<el-tab-pane
v-if="isPluginLoaded"
:lazy="true"
:label="$t('sysParams.ldap')"
name="fourth"
/>
<el-tab-pane
v-if="isPluginLoaded"
:lazy="true"
:label="$t('sysParams.oidc')"
name="five"
/>
<el-tab-pane <el-tab-pane
v-if="engineMode === 'simple'" v-if="engineMode === 'simple'"
:lazy="true" :lazy="true"
@ -52,31 +38,6 @@
:label="$t('system_parameter_setting.kettle_setting')" :label="$t('system_parameter_setting.kettle_setting')"
name="eight" name="eight"
/> />
<el-tab-pane
v-if="isPluginLoaded"
:lazy="true"
:label="$t('sysParams.cas')"
name="nine"
/>
<el-tab-pane
v-if="isPluginLoaded"
:lazy="true"
:label="$t('wecom.title')"
name="eleven"
/>
<el-tab-pane
v-if="isPluginLoaded"
:lazy="true"
:label="$t('dingtalk.title')"
name="twelve"
/>
<el-tab-pane
v-if="isPluginLoaded"
:lazy="true"
:label="$t('lark.title')"
name="thirteen"
/>
</el-tabs> </el-tabs>
<div <div
class="tabs-container" class="tabs-container"
@ -86,15 +47,9 @@
<basic-setting v-if="activeName === 'zero'" :is-plugin-loaded="isPluginLoaded" /> <basic-setting v-if="activeName === 'zero'" :is-plugin-loaded="isPluginLoaded" />
<email-setting v-if="activeName === 'first'" /> <email-setting v-if="activeName === 'first'" />
<map-setting v-if="activeName === 'ten'" ref="mapSetting" /> <map-setting v-if="activeName === 'ten'" ref="mapSetting" />
<plugin-com v-if="activeName === 'fourth'" ref="DisplaySetting" component-name="LdapSetting" />
<plugin-com v-if="activeName === 'five'" ref="DisplaySetting" component-name="SsoSetting" />
<simple-mode v-if="activeName === 'six'" /> <simple-mode v-if="activeName === 'six'" />
<cluster-mode v-if="activeName === 'seven'" /> <cluster-mode v-if="activeName === 'seven'" />
<kettle-setting v-if="activeName === 'eight'" /> <kettle-setting v-if="activeName === 'eight'" />
<plugin-com v-if="activeName === 'nine'" ref="CasSetting" component-name="CasSetting" />
<plugin-com v-if="activeName === 'eleven'" ref="WecomSetting" component-name="WecomSetting" />
<plugin-com v-if="activeName === 'twelve'" ref="DingtalkSetting" component-name="DingtalkSetting" />
<plugin-com v-if="activeName === 'thirteen'" ref="LarkSetting" component-name="LarkSetting" />
</div> </div>
</div> </div>
</div> </div>

View File

@ -25,7 +25,7 @@ import DeLayoutContent from '@/components/business/DeLayoutContent'
import AsyncComponent from '@/components/AsyncComponent' import AsyncComponent from '@/components/AsyncComponent'
import i18n from '@/lang' import i18n from '@/lang'
import bus from '@/utils/bus' import bus from '@/utils/bus'
import { execute } from '@/api/system/dynamic' import { execute, get } from '@/api/system/dynamic'
export default { export default {
name: 'Dynamic', name: 'Dynamic',
components: { components: {
@ -56,18 +56,24 @@ export default {
innerLoadingNames: ['SystemDept', 'SystemRole', 'SystemAuth'] innerLoadingNames: ['SystemDept', 'SystemRole', 'SystemAuth']
} }
}, },
watch: {
'menuid' : function() {
this.init()
}
},
created() { created() {
this.init()
},
methods: {
init() {
if (this.jsname && this.menuid) { if (this.jsname && this.menuid) {
this.showAsync = true this.showAsync = true
this.url = this.baseUrl + this.menuid this.url = this.baseUrl + this.menuid
// this.url = 'http://localhost:8081/PluginDemo.js'
// this.url = 'http://localhost:8081/SystemParam.js'
} else { } else {
this.showAsync = false this.showAsync = false
} }
}, },
methods: {
// hasLicense // hasLicense
executeAxios(options) { executeAxios(options) {
execute(options).then(res => { execute(options).then(res => {