diff --git a/src/store/system.ts b/src/store/system.ts index e4d37681..4f3e63f7 100644 --- a/src/store/system.ts +++ b/src/store/system.ts @@ -1,14 +1,17 @@ import { defineStore } from 'pinia'; import { systemVersion } from '@/api/comm' import { useMenuStore } from './menu' +import { getDetails_api } from '@/api/system/basis'; export const useSystem = defineStore('system', { state: () => ({ - isCommunity: false + isCommunity: false, + configInfo: [] as any[] }), actions: { getSystemVersion(): Promise { - return new Promise(async(res, rej) => { + this.getSystemConfig(); + return new Promise(async (res, rej) => { const resp = await systemVersion() if (resp.success && resp.result) { const isCommunity = resp.result.edition === 'community' @@ -19,6 +22,12 @@ export const useSystem = defineStore('system', { res(menuData) } }) + }, + getSystemConfig() { + const params = ['front', 'amap', 'paths']; + getDetails_api(params).then(({ status, result }: any) => { + this.configInfo = status === 200 ? [...result] : []; + }) } } }) \ No newline at end of file diff --git a/src/views/DataCollect/Channel/data.ts b/src/views/DataCollect/Channel/data.ts index 158b211e..630e903e 100644 --- a/src/views/DataCollect/Channel/data.ts +++ b/src/views/DataCollect/Channel/data.ts @@ -37,19 +37,6 @@ export const updateStatus = { }, }; -export const TiTlePermissionButtonStyle = { - padding: 0, - 'max-width': 'calc(100% - 90px)', - color: ' #1890ff !important', - 'font-weight': 700, - 'font-size': '16px', - overflow: 'hidden', - 'text-overflow': 'ellipsis', - 'white-space': 'nowrap', - width: 'calc(100%-150px)', - // width: '60%', -}; - export const regOnlyNumber = new RegExp(/^\d+$/); export const regIP = new RegExp( diff --git a/src/views/DataCollect/Channel/index.vue b/src/views/DataCollect/Channel/index.vue index 41d4ab31..e0dce96c 100644 --- a/src/views/DataCollect/Channel/index.vue +++ b/src/views/DataCollect/Channel/index.vue @@ -45,15 +45,16 @@