diff --git a/.env.development b/.env.development index c92ea84..9b3c2c7 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ ENV = development # 本地环境接口地址 -# VITE_API_URL = https://4155gf93ll13.vicp.fun/admin +# VITE_API_URL = http://4155gf93ll13.vicp.fun/admin # VITE_API_URL = http://localhost:13579/admin # VITE_API_URL = https://cankao.cs.com.cn/admin VITE_API_URL = http://123.60.153.169:8040/admin diff --git a/src/api/api.ts b/src/api/api.ts index cfa1f7e..465ed55 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -214,7 +214,6 @@ export const getNewsInfo = (params: any, headers?: any) => { method: 'get', params, headers, - }); }; @@ -283,7 +282,6 @@ export const getIndustryHierarchy = (params?: any) => { }); }; - export const getTagConcept = (params?: any) => { return request({ url: '/tag/concept', @@ -312,7 +310,8 @@ export const doRecover = (data?: any) => { export const doNewSubmit = (data?: any) => { return request({ url: '/news/submit', - method: 'post', data + method: 'post', + data, }); }; @@ -329,7 +328,7 @@ export const doNewLog = (params?: any) => { return request({ url: '/news/log', method: 'get', - params + params, }); }; @@ -338,7 +337,7 @@ export const doNewCheck = (params?: any) => { return request({ url: '/news/check', method: 'post', - params + params, }); }; @@ -347,6 +346,23 @@ export const doNewReturn = (params?: any) => { return request({ url: '/news/return', method: 'post', - params + params, + }); +}; + +// 筛选项-获取信号规则级联列表 +export const getSignalRules = (params?: any) => { + return request({ + url: '/news/getSignalRulesList', + method: 'get', + params, + }); +}; + +export const searchCompany = (params?: any) => { + return request({ + url: '/news/getCompanyNames', + method: 'get', + params, }); }; diff --git a/src/stores/themeConfig.ts b/src/stores/themeConfig.ts index 17c0e25..7384746 100644 --- a/src/stores/themeConfig.ts +++ b/src/stores/themeConfig.ts @@ -60,7 +60,7 @@ export const useThemeConfig = defineStore('themeConfig', { * 界面设置 */ // 是否开启菜单水平折叠效果 - isCollapse: false, + isCollapse: true, // 是否开启菜单手风琴效果 isUniqueOpened: true, // 是否开启固定 Header diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 59c84df..3fb7768 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -1,8 +1,18 @@ // 工具函数:判断是否为移动设备(基于屏幕宽度) export const isMobileByWidth = (): boolean => { - if (typeof window === 'undefined') { - return false; // 非浏览器环境 - } - // 通常以 768px 作为移动设备的宽度阈值 - return window.innerWidth < 768; -}; \ No newline at end of file + if (typeof window === 'undefined') { + return false; // 非浏览器环境 + } + // 通常以 768px 作为移动设备的宽度阈值 + return window.innerWidth < 768; +}; +/* 防抖 */ +export function debounce(fn, delay) { + let timer = null; + return function () { + clearTimeout(timer); + timer = setTimeout(() => { + fn.apply(this, arguments); + }, delay); + }; +} diff --git a/src/views/pages/richedit/DetailDrawer/index.vue b/src/views/pages/richedit/DetailDrawer/index.vue index 905a9f5..998f753 100644 --- a/src/views/pages/richedit/DetailDrawer/index.vue +++ b/src/views/pages/richedit/DetailDrawer/index.vue @@ -21,10 +21,10 @@ v-if="!form.deleted && (data.status == 0 || data.status == 1 || data.status == -1)" @click="doDeleteNewsFn(data)">删除 -->
- {{ readOnly ? - '编辑' : '浏览' }} + @click="handleEditStatus(!readOnly)">{{ + readOnly ? '编辑' : '浏览' + }} {{ readOnly ? - '编辑' : '浏览' }} + @click="handleEditStatus(!readOnly)">{{ readOnly ? '编辑' : '浏览' }}
- {{ readOnly ? - '编辑' : '浏览' }} - + {{ + readOnly ? '编辑' : '浏览' + }}
+
@@ -80,11 +80,16 @@ }}
+
+ +
@@ -116,6 +121,14 @@ + + + + + + +
@@ -128,11 +141,10 @@ -
+ style="margin-top: 10px; padding: 0 30px; border-top: 0">