From 01d2fb7c721a97a67680771963acfb2890729c2e Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Wed, 31 Jan 2024 09:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/package.json | 1 - ruoyi-ui/src/api/board/board.js | 22 +- ruoyi-ui/src/components/easy-cron/index.vue | 2 +- ruoyi-ui/src/store/modules/user.js | 1 + .../components/Decorations/bg-1.vue | 37 +++- .../components/Decorations/bg-2.vue | 54 ++++- .../JiHeExpressway/components/Video/index.vue | 4 +- .../components/infoBoard/BoardInfoEditor.vue | 206 +++++++----------- .../components/infoBoard/BoardPreview.vue | 2 +- .../views/JiHeExpressway/mixins/InfoBoard.js | 138 ++++++++++++ .../pages/Home/components/InfoBoard/index.vue | 105 +-------- .../Home/components/RoadAndEvents/index.vue | 3 +- .../pages/service/board/index.vue | 137 +----------- ruoyi-ui/src/views/login.vue | 7 +- ruoyi-ui/vue.config.js | 1 + 15 files changed, 345 insertions(+), 375 deletions(-) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js 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 @@