diff --git a/src/api/system/subject/index.ts b/src/api/system/subject/index.ts new file mode 100644 index 00000000..45bb8151 --- /dev/null +++ b/src/api/system/subject/index.ts @@ -0,0 +1,34 @@ +import createAxios from '@/utils/request' + +//激活主题 +export function activateTheme(params: String) { + return createAxios({ + url: '/system-boot/theme/activateTheme', + method: 'PUT', + params: params + }) +} +//删除主题 +export function deleteTheme(params: String) { + return createAxios({ + url: '/system-boot/theme/deleteTheme', + method: 'DELETE', + params: params + }) +} +//新增主题 +export function addTheme(data: anyObj) { + return createAxios({ + url: '/system-boot/theme/addTheme', + method: 'POST', + data + }) +} +//修改主题 +export function updateTheme(data: anyObj) { + return createAxios({ + url: '/system-boot/theme/updateTheme', + method: 'PUT', + data + }) +} diff --git a/src/components/icon/src/data.ts b/src/components/icon/src/data.ts index 58d28869..82cdc7b6 100644 --- a/src/components/icon/src/data.ts +++ b/src/components/icon/src/data.ts @@ -603,6 +603,7 @@ export const IconJson = { 'id-badge', 'ils', 'image', + 'imagebes64', 'imdb', 'inbox', 'indent', diff --git a/src/components/table/fieldRender/index.vue b/src/components/table/fieldRender/index.vue index cf59b514..70e3561e 100644 --- a/src/components/table/fieldRender/index.vue +++ b/src/components/table/fieldRender/index.vue @@ -22,7 +22,7 @@ :hide-on-click-modal="true" :preview-teleported="true" :preview-src-list="[fullUrl(fieldValue)]" - :src="fullUrl(fieldValue)" + :src="fieldValue.length > 100 ? fieldValue : fullUrl(fieldValue)" > @@ -240,7 +240,7 @@ const handlerCommand = (item: OptButton) => { } .el-image { height: 36px; - width: 36px; + // width: 36px; } .table-operate-text { padding-left: 5px; diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index ee673a34..52a90000 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -17,7 +17,7 @@ - diff --git a/src/stores/config.ts b/src/stores/config.ts index 65ad8014..54ff545a 100644 --- a/src/stores/config.ts +++ b/src/stores/config.ts @@ -120,6 +120,124 @@ export const useConfig = defineStore( return { layout, lang, menuWidth, setLang, setLayoutMode, setLayout, getColorVal, onSetLayoutColor } }, + // () => { + // + // console.log('🚀 ~ subject:', subject) + // const layout: Layout = reactive({ + // /* 全局 */ + // showDrawer: false, + // // 是否收缩布局(小屏设备) + // shrink: false, + // // 后台布局方式,可选值 + // layoutMode: 'Classic', + // // 后台主页面切换动画,可选值 + // mainAnimation: subject.mainAnimation, + // // 是否暗黑模式 + // isDark: false, + // elementUiPrimary: JSON.parse(subject.elementUiPrimary), + // tableHeaderBackground: JSON.parse(subject.tableHeaderBackground), + // tableHeaderColor:JSON.parse(subject.tableHeaderColor), + // tableCurrent: JSON.parse(subject.tableCurrent), + // /* 侧边菜单 */ + // // 侧边菜单背景色 + // menuBackground: JSON.parse(subject.menuBackground), + // // 侧边菜单文字颜色 + // menuColor:JSON.parse(subject.menuColor), + // // 侧边菜单激活项背景色 + // menuActiveBackground:JSON.parse(subject.menuActiveBackground), + // // 侧边菜单激活项文字色 + // menuActiveColor:JSON.parse(subject.menuActiveColor), + // // 侧边菜单顶栏背景色 + // menuTopBarBackground: JSON.parse(subject.menuTopBarBackground), + // // 侧边菜单宽度(展开时),单位px + // menuWidth: 260, + // // 侧边菜单项默认图标 + // menuDefaultIcon: 'fa fa-circle-o', + // // 是否水平折叠收起菜单 + // menuCollapse: false, + // // 是否只保持一个子菜单的展开(手风琴) + // menuUniqueOpened: false, + // // 显示菜单栏顶栏(LOGO) + // menuShowTopBar: true, + + // /* 顶栏 */ + // // 顶栏文字色 + // headerBarTabColor:JSON.parse(subject.headerBarTabColor), + // // // 顶栏激活项背景色 + // headerBarTabActiveBackground: ['#ffffff', '#1d1e1f'], + // // 顶栏激活项文字色 + // headerBarTabActiveColor: ['#000000', '#409EFF'], + // // 顶栏背景色 + // headerBarBackground: JSON.parse(subject.headerBarBackground), + // // 顶栏悬停时背景色 + // headerBarHoverBackground: ['#f5f5f5', '#18222c'] + // }) + // // console.log(123, window.localStorage.getItem('getTheme')) + + // const lang = reactive({ + // // 默认语言,可选值 + // defaultLang: 'zh-cn', + // // 当在默认语言包找不到翻译时,继续在 fallbackLang 语言包内查找翻译 + // fallbackLang: 'zh-cn', + // // 支持的语言列表 + // langArray: [ + // { name: 'zh-cn', value: '中文简体' }, + // { name: 'en', value: 'English' } + // ] + // }) + + // function menuWidth() { + // if (layout.shrink) { + // return layout.menuCollapse ? '0px' : layout.menuWidth + 'px' + // } + // // 菜单是否折叠 + // return layout.menuCollapse ? '64px' : layout.menuWidth + 'px' + // } + + // function setLang(val: string) { + // lang.defaultLang = val + // } + + // function onSetLayoutColor(data = layout.layoutMode) { + // // 切换布局时,如果是为默认配色方案,对菜单激活背景色重新赋值 + // const tempValue = layout.isDark + // ? { idx: 1, color: '#1d1e1f', newColor: '#141414' } + // : { idx: 0, color: '#ffffff', newColor: '#f5f5f5' } + // if ( + // data == 'Classic' && + // layout.headerBarBackground[tempValue.idx] == tempValue.color && + // layout.headerBarTabActiveBackground[tempValue.idx] == tempValue.color + // ) { + // layout.headerBarTabActiveBackground[tempValue.idx] = tempValue.newColor + // } else if ( + // data == 'Default' && + // layout.headerBarBackground[tempValue.idx] == tempValue.color && + // layout.headerBarTabActiveBackground[tempValue.idx] == tempValue.newColor + // ) { + // layout.headerBarTabActiveBackground[tempValue.idx] = tempValue.color + // } + // } + + // function setLayoutMode(data: string) { + // layout.layoutMode = data + // onSetLayoutColor(data) + // } + + // const setLayout = (name: keyof Layout, value: any) => { + // layout[name] = value as never + // } + + // const getColorVal = function (name: keyof Layout): string { + // const colors = layout[name] as string[] + // if (layout.isDark) { + // return colors[1] + // } else { + // return colors[0] + // } + // } + + // return { layout, lang, menuWidth, setLang, setLayoutMode, setLayout, getColorVal, onSetLayoutColor } + // }, { persist: { key: STORE_CONFIG diff --git a/src/views/pqs/harmonicMonitoring/embed/liabiiyty/inex.vue b/src/views/pqs/harmonicMonitoring/embed/liabiiyty/inex.vue new file mode 100644 index 00000000..f27d7fb6 --- /dev/null +++ b/src/views/pqs/harmonicMonitoring/embed/liabiiyty/inex.vue @@ -0,0 +1,37 @@ +