diff --git a/ruoyi-ui/src/assets/images/no_img.png b/ruoyi-ui/src/assets/images/no_img.png new file mode 100644 index 00000000..34ab887d Binary files /dev/null and b/ruoyi-ui/src/assets/images/no_img.png differ diff --git a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss index 7db6541e..f68d1c59 100644 --- a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss +++ b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss @@ -286,5 +286,10 @@ // background-color: #000 !important; } } + .el-image__placeholder{ + background-color: #133242; + background-image: url("~@/assets/images/no_img.png"); + background-size: contain; + } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue index 10c4a6f9..267fb5f4 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue @@ -290,8 +290,7 @@ export default { initDevice() { //设备在线离线率接口 - getSystemStatusType().then((res) => { - if (IS_TESTING && (!res.data || res.msg == "暂无数据")) { + if (process.env.NODE_ENV == "development") { this.equipments = []; this.equipSeries.forEach((item) => { this.equipments.push({ @@ -305,6 +304,8 @@ export default { }); return; } + + getSystemStatusType().then((res) => { let allList = []; let sort = res.data["排序规则"].rule.split(","); sort.forEach((i) => { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/data.js index b28328d2..10913a15 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/data.js @@ -14,11 +14,11 @@ export const searchFormList = [ valueFormat: "yyyy-MM-dd HH:mm:ss", }, }, - PresetFormItems.directionCreater("CheckboxGroup"), + PresetFormItems.directionCreater("RadioGroup"), { label: "发布状态:", key: "releaseStatus", - type: "checkboxGroup", + type: "RadioGroup", default: [], options: { options: [ diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/index.vue index 5817c53e..d9f8f51e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/boardRecord/index.vue @@ -17,14 +17,13 @@ -
@@ -139,6 +138,7 @@ export default { ...this.searchData, // releaseContent: data.releaseContent || "", direction: data.direction || "", + releaseStatus: data.releaseStatus, startTime, endTime, // stakeMark: stakeMark, @@ -153,7 +153,7 @@ export default { return DirectionTypes[row.direction]; }, formatterStatus(row, column) { - return ["","成功"][row.releaseStatus]; + return ["失败", "成功"][row.releaseStatus]; }, initData() { request({