diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index d359e330..68da7ed2 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -48,7 +48,6 @@ "cronstrue": "^1.100.0", "crypto-js": "4.0.0", "dayjs": "^1.11.7", - "debounce": "^1.2.0", "deepmerge": "^4.3.1", "dplayer": "^1.26.0", "echarts": "^5.2.2", diff --git a/ruoyi-ui/src/api/board/board.js b/ruoyi-ui/src/api/board/board.js index 1de3a6d6..3f893fd9 100644 --- a/ruoyi-ui/src/api/board/board.js +++ b/ruoyi-ui/src/api/board/board.js @@ -20,7 +20,27 @@ export function getBoardDeviceInfo(deviceId) { }) } -// +// 敏感字段检测 +export function checkBoardContent(content) { + return request({ + url: `/business/dcInfoBoardVocabulary/checkBoardContent`, + method: 'get', + params:{ + content + } + }) +} + +// 保存情报板发布日志 +export function saveBoardReleaseLog(data) { + return request({ + url: `/business/boardReleaseLog`, + method: 'post', + data + }) +} + + export function publishToBoard(data) { return request({ url: '/business/board/publish', diff --git a/ruoyi-ui/src/components/easy-cron/index.vue b/ruoyi-ui/src/components/easy-cron/index.vue index a22aa8f7..a8eef618 100644 --- a/ruoyi-ui/src/components/easy-cron/index.vue +++ b/ruoyi-ui/src/components/easy-cron/index.vue @@ -45,7 +45,7 @@ import MonthUi from './tabs/month' import YearUi from './tabs/year' import CronParser from 'cron-parser' import dateFormat from './format-date' -import { debounce } from 'debounce' +import { debounce } from 'lodash' export default { name: 'easy-cron', diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index e373b439..d709779b 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -88,6 +88,7 @@ const user = { return new Promise((resolve, reject) => { getInfo().then(res => { const user = res.user + console.log(user , "usssssserrrrrrrrrrr") const avatar = user.avatar == "" ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar; if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组 commit('SET_ROLES', res.roles) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Decorations/bg-1.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Decorations/bg-1.vue index d480c139..3983ae47 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Decorations/bg-1.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Decorations/bg-1.vue @@ -1,7 +1,7 @@