diff --git a/psdc-ui/.postcssrc.js b/psdc-ui/.postcssrc.js new file mode 100644 index 0000000..7f29af9 --- /dev/null +++ b/psdc-ui/.postcssrc.js @@ -0,0 +1,9 @@ +module.exports = { + "plugins": { + //添加如下代码 + "postcss-px2rem-exclude": { + remUnit: 192, + exclude: /node_modules/ + } + } +} diff --git a/psdc-ui/babel.config.js b/psdc-ui/babel.config.js new file mode 100644 index 0000000..a97d065 --- /dev/null +++ b/psdc-ui/babel.config.js @@ -0,0 +1,7 @@ +module.exports = { + presets: [ + '@vue/cli-plugin-babel/preset' + + ], + +} diff --git a/psdc-ui/src/api/emonitor/api.js b/psdc-ui/src/api/emonitor/api.js index cd271d1..53ffdd4 100644 --- a/psdc-ui/src/api/emonitor/api.js +++ b/psdc-ui/src/api/emonitor/api.js @@ -89,3 +89,30 @@ export function DevData(data) { return request.post('system/device/index/daoruDevData',data) } + + +//私钥管理 +//分页查询 +export function getKeyList(data) { + return request.post('system/private/key/byPage',data) +} +//生成私钥 +export function addKey(data) { + return request.post('system/private/key/add',data) +} +//删除私钥 +export function deleteKey(data) { + return request.post('system/private/key/del?'+data) +} +//修改私钥 +export function setKey(data) { + return request.post('system/private/key/up',data) +} +//私钥列表 +export function getKey() { + return request.get('system/key/selAll') +} +//修改私钥 +export function resultKey(data) { + return request.post('system/key/getKey',data) +} \ No newline at end of file diff --git a/psdc-ui/src/layout/components/Sidebar/Logo.vue b/psdc-ui/src/layout/components/Sidebar/Logo.vue index 57c8cf8..49a7b47 100644 --- a/psdc-ui/src/layout/components/Sidebar/Logo.vue +++ b/psdc-ui/src/layout/components/Sidebar/Logo.vue @@ -25,7 +25,7 @@ defineProps({ } }) -const title = ref('电能替代分布式控制试验平台'); +const title = ref('密钥管理'); const settingsStore = useSettingsStore(); const sideTheme = computed(() => settingsStore.sideTheme); diff --git a/psdc-ui/src/main.js b/psdc-ui/src/main.js index df05222..0de6b5e 100644 --- a/psdc-ui/src/main.js +++ b/psdc-ui/src/main.js @@ -6,7 +6,7 @@ import ElementPlus from 'element-plus' import locale from 'element-plus/lib/locale/lang/zh-cn' // 中文语言 import '@/assets/styles/index.scss' // global css - +import 'lib-flexible/flexible.js' import App from './App' import store from './store' import router from './router' diff --git a/psdc-ui/src/router/index.js b/psdc-ui/src/router/index.js index 981efb8..4f58bbc 100644 --- a/psdc-ui/src/router/index.js +++ b/psdc-ui/src/router/index.js @@ -57,17 +57,17 @@ export const constantRoutes = [ component: () => import('@/views/error/401'), hidden: true }, - { - path: '', - children: [ - { - path: 'bigview', - component: () => import('@/views/bigview/index'), - name: 'bigview', - meta: { title: '首页', icon: 'dashboard', affix: true } - }, - ] - }, + // { + // path: '', + // children: [ + // { + // path: 'bigview', + // component: () => import('@/views/bigview/index'), + // name: 'bigview', + // meta: { title: '密钥生成', icon: 'dashboard', } + // }, + // ] + // }, { path: '/user', component: Layout, diff --git a/psdc-ui/src/views/bigview/index.vue b/psdc-ui/src/views/bigview/index.vue index c792829..29e42f0 100644 --- a/psdc-ui/src/views/bigview/index.vue +++ b/psdc-ui/src/views/bigview/index.vue @@ -1,1527 +1,182 @@ diff --git a/psdc-ui/src/views/system/cl/index.vue b/psdc-ui/src/views/system/cl/index.vue index 278fdd9..b7ecc03 100644 --- a/psdc-ui/src/views/system/cl/index.vue +++ b/psdc-ui/src/views/system/cl/index.vue @@ -3,11 +3,9 @@ - - - - - + + + @@ -17,20 +15,20 @@ - 新增 + 生成
- - + + - + @@ -56,72 +54,10 @@ - - + + - - - - - - - - - - - 步骤名称: - - 步骤描述: - - 是否有限制条件 - - - - - - - 限制设备: - - - - 限制属性: - - 温度 - 进水温度 - 出水温度 - - 限制值: - - - - - - - - {{it.deviceName}} - - {{control.label}} - - - - - - - 删除 - - - 添加步骤+ - - -