forked from github/dataease
feat: 插件管理v0.01
This commit is contained in:
parent
2703e881eb
commit
0bda4eb062
@ -46,7 +46,12 @@ public class ShiroServiceImpl implements ShiroService {
|
||||
filterChainDefinitionMap.put("/chart/view/getData/**", ANON);
|
||||
|
||||
|
||||
filterChainDefinitionMap.put("/system/ui/**", ANON);
|
||||
filterChainDefinitionMap.put("/PluginDemo.js", ANON);
|
||||
filterChainDefinitionMap.put("/DeXPack.js", ANON);
|
||||
|
||||
filterChainDefinitionMap.put("/api/auth/test", ANON);
|
||||
filterChainDefinitionMap.put("/api/xpack/test", ANON);
|
||||
|
||||
filterChainDefinitionMap.put("/api/auth/login", ANON);
|
||||
filterChainDefinitionMap.put("/api/auth/validateName", ANON);
|
||||
|
@ -35,6 +35,7 @@
|
||||
"umy-ui": "^1.1.6",
|
||||
"vcolorpicker": "^1.1.0",
|
||||
"vue": "2.6.10",
|
||||
"vue-axios": "3.2.4",
|
||||
"vue-clipboard2": "0.3.1",
|
||||
"vue-codemirror": "^4.0.6",
|
||||
"vue-i18n": "7.3.2",
|
||||
|
@ -4,7 +4,8 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico">-->
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||
<title><%= webpackConfig.name %></title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -3,7 +3,8 @@ import Cookies from 'js-cookie'
|
||||
import '@/styles/index.scss' // global css
|
||||
import ElementUI from 'element-ui'
|
||||
import Fit2CloudUI from 'fit2cloud-ui'
|
||||
|
||||
import axios from 'axios'
|
||||
import VueAxios from 'vue-axios'
|
||||
import i18n from './lang' // internationalization
|
||||
import App from './App'
|
||||
import store from './store'
|
||||
@ -59,6 +60,7 @@ Vue.use(ElementUI, {
|
||||
Vue.use(Fit2CloudUI, {
|
||||
i18n: (key, value) => i18n.t(key, value)
|
||||
})
|
||||
Vue.use(VueAxios, axios)
|
||||
Vue.use(filter)
|
||||
Vue.use(directives)
|
||||
Vue.use(message)
|
||||
|
@ -1,34 +1,41 @@
|
||||
<template>
|
||||
<el-card>
|
||||
<el-tabs v-model="activeName" class="system-setting">
|
||||
<ui-setting v-if="!test" />
|
||||
<!-- <el-tabs v-model="activeName" class="system-setting">
|
||||
<el-tab-pane label="显示设置" name="ui">
|
||||
<ui-setting />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('system_parameter_setting.mailbox_service_settings')" name="email">
|
||||
<email-setting />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-tabs> -->
|
||||
<async-component v-if="test" url="http://localhost:8081/PluginDemo.js" @execute-axios="executeAxios" />
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import EmailSetting from './EmailSetting'
|
||||
import UiSetting from './UiSetting'
|
||||
import AsyncComponent from '@/components/AsyncComponent'
|
||||
export default {
|
||||
name: 'SystemParameterSetting',
|
||||
components: {
|
||||
UiSetting,
|
||||
EmailSetting
|
||||
AsyncComponent
|
||||
|
||||
// 'MsDisplay': display.default,
|
||||
// 'MsAuth': auth.default
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'ui'
|
||||
activeName: 'ui',
|
||||
test: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// hasLicense
|
||||
executeAxios(options) {
|
||||
console.log(options)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user