Browse Source

改bug

wangqin
hui 1 year ago
parent
commit
ce4a405a4a
  1. BIN
      ruoyi-ui/src/assets/images/login-head.png
  2. 35
      ruoyi-ui/src/common/menuData.js
  3. 44
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue
  4. 2
      ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js
  5. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue
  6. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue
  7. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/auditAnalytics/index.vue
  8. 21
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue
  9. 19
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue
  10. 2
      ruoyi-ui/src/views/JiHeExpressway/utils/index.js
  11. 19
      ruoyi-ui/src/views/login.vue
  12. 4
      ruoyi-ui/vue.config.js

BIN
ruoyi-ui/src/assets/images/login-head.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 187 KiB

35
ruoyi-ui/src/common/menuData.js

@ -50,7 +50,7 @@ export default [
title: "事件管控",
name: "controlEvent",
path: "/control/event",
redirect: "controlEventPerception",
redirect: "controlEventDispatch",
children: [
{
title: "调度记录",
@ -105,17 +105,28 @@ export default [
path: "/maintain",
children: [
{
title: "收费运营",
name: "chargeableOperations",
path: "/maintain/board",
component: "maintenanceOperations/chargeableOperations/index.vue",
},
{
title: "统计分析",
name: "statisticalAnalysis",
path: "/maintain/statisticalAnalysis",
component: "maintenanceOperations/statisticalAnalysis/index.vue",
}
title:"收费运营",
name:"fee",
children:[
{
title: "统计分析",
name: "feeStatistic",
path: "/maintain/fee/statistic",
component: "maintenanceOperations/chargeableOperations/index.vue",
}
]
},{
title:"智能养护",
name:"smart",
children:[
{
title: "统计分析",
name: "smartStatistic",
path: "/maintain/smart/statistic",
component: "maintenanceOperations/statisticalAnalysis/index.vue",
}
]
}
]
},
{

44
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue

@ -15,7 +15,7 @@
<el-form :model="dataForm" :rules="dataRule" label-width="110px" ref="dataForm" size="mini">
<el-row :gutter="24">
<el-col :span="8">
<el-form-item label="所属类别" v-if="type == 'template' && mode!='toDevice'">
<el-form-item label="所属类别" v-if="type == 'template' && mode!='toDevice'" prop="category">
<el-select v-model="dataForm.category" placeholder="请选择所属类别" size="mini">
<el-option v-for="item in templateCategoryList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue">
</el-option>
@ -90,7 +90,7 @@
</el-card>
<div slot="footer" class="dialog-footer">
<el-button @click="onSubmit" v-loading="loading" style="background-color: #10aac2;color:#fff;">确认</el-button>
<el-button @click="onSubmit('dataForm')" v-loading="loading" style="background-color: #10aac2;color:#fff;">确认</el-button>
<el-button style="background-color:#b5b5b6;color:#fff" @click="onClose">取消</el-button>
</div>
</el-dialog>
@ -160,6 +160,13 @@ export default {
message: '请输入详细内容',
trigger: 'blur'
}
],
category: [
{
required: true,
message: '请选择类别',
trigger: 'blur'
}
]
},
screenSizeOptions: [],
@ -271,6 +278,9 @@ export default {
if(this.$refs.dataForm){
this.$refs.dataForm.clearValidate();
}
// if(newV){
// this.initData();
// }
},
immediate:true
},
@ -280,7 +290,8 @@ export default {
tpl:{
handler(newV){
// { "id": 3, "category": "0", "content": "", "screenSize": "768*64", "fontColor": "FFFF00", "fontSize": "64", "fontType": "2", "fontSpacing": "0", "rollingSpeed": null, "stopTime": "50", "inScreenMode": "1", "formatStyle": "2", "remark": null, "createTime": "2024-01-06 10:40:19", "updateTime": "2024-01-06 11:04:53" }
if(newV && Object.keys(newV).length>0){
if(newV && Object.keys(newV).length>0){ //
this.initData();
}
},
@ -290,6 +301,11 @@ export default {
handler(newV) {
this.initData();
}
},
"type": {
handler(newV) {
this.initData();
}
}
},
mounted() {
@ -313,14 +329,17 @@ export default {
},
methods: {
initData() {
console.log("调用initData+++++++");
if(this.isLocked){
return
}
this.isLocked = true;
setTimeout(()=>{this.isLocked = false}, 300);
setTimeout(()=>{this.isLocked = false}, 100);
// getTemplateList({id:this.tpl.id}).then(res=>{
// console.log(res.data , "++++++++===========");
// })
if (this.mode == "add") {
let tempTpl = null;
if (this.type == "template") {
@ -351,7 +370,22 @@ export default {
this.dialogVisible = false;
},
//
async onSubmit() {
async onSubmit(formName) {
// this.$refs[formName].validate((valid) => {
// if (valid) {
// } else {
// console.log('!!');
// return false;
// }
// });
if (this.type=="template" && this.dataForm.category == undefined) {
return this.$modal.msgError('请选择分类!')
}
if (!this.dataForm.content.trim()) {
return this.$modal.msgError('当前输入内容为空')
}

2
ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js

@ -37,7 +37,7 @@ export default{
displayAreaWidth: +arr[0],
displayAreaHeight: +arr[1]
}
this.editDialog = {
visible: showDialog == false ? false : true,
mode: "toDevice",

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue

@ -289,7 +289,7 @@ export default {
____onDeleteBoardItem(index) {
if (index > -1) {
this.selectedBdMsg.splice(index, 1)
this.$message.success('删除成功,发布后才效。')
this.$message.success('删除成功。')
}
},
//

5
ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

@ -462,7 +462,10 @@ export default {
this.editDialog = {
visible: true,
mode: "add",
type: "template"
type: "template",
tpl: {
"content": ""
}
}
},
____onEditTemplate(tpl) {

2
ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/auditAnalytics/index.vue

@ -1,6 +1,6 @@
<template>
<div class='congestion'>
<WgtTitle :title="'今日发布渠道分析'"></WgtTitle>
<WgtTitle :title="'今日发布审核分析'"></WgtTitle>
<div class="board">
<div class="charts keep-ratio" id="auditAnalytics"></div>
</div>

21
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue

@ -70,6 +70,17 @@ export default {
}
}
},
mounted(){
// "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890".split('').forEach(item => {
// request({
// url: `/business/dcInfoBoardVocabulary`,
// method: 'POST',
// data:{
// word:""+item
// }
// })
// });
},
methods: {
checkRepeat(word){
let temp = _.find(this.dataAll, { word: word });
@ -88,9 +99,9 @@ export default {
this.submitting = true;
if (this.data) data.id = this.data.id;
if (!this.checkRepeat(data.word)) {
return;
}
// if (!this.checkRepeat(data.word)) {
// return;
// }
request({
url: `/business/dcInfoBoardVocabulary`,
@ -98,7 +109,7 @@ export default {
data
})
.then(result => {
if (result.code != 200) return Message.error(`提交失败!`);
if (result.code != 200) return;
Message.success(`提交成功!`);
this.$emit("onSuccess");
@ -108,7 +119,7 @@ export default {
})
.catch((err) => {
console.log("%c [ err ]-110-「DeviceControlDialog.vue」", "font-size:15px; background:#547bf2; color:#98bfff;", err);
Message.error(`提交失败!`);
// Message.error(`!`);
})
.finally(() => {
this.submitting = false;

19
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

@ -1,5 +1,5 @@
<template>
<div class='sensitiveWord'>
<div class='sensitiveWord' v-loading="isLoading" element-loading-text="数据加载中" element-loading-background="rgba(0, 0, 0, 0.3)">
<div class="filter">
<div>
@ -27,7 +27,7 @@
</div>
<div class="body" :style="{'overflow-y': (data.length && data.length>42) ? 'scroll':'auto' }">
<div class="body">
<Empty v-if="!data.length && !isFirst" class="no-data" style="position: absolute">暂无数据</Empty>
<template v-else>
<div class="cardBox" v-for="(item, index) in data" :key="index" style="overflow: hidden; height: 145px;">
@ -72,7 +72,7 @@ import Pagination from '@screen/components/Pagination.vue';
import { searchFormList } from "./data";
import request from "@/utils/request";
import { setLoading } from "@screen/utils/index.js"
// import { setLoading } from "@screen/utils/index.js"
import { delay, exportFile, confirm } from "@screen/utils/common";
import { Message } from "element-ui";
@ -89,6 +89,7 @@ export default {
},
data() {
return {
isLoading:false,
searchText:"关键词搜索",
searchFormList,
@ -134,7 +135,7 @@ export default {
return params
},
async handleDelete(data) {
await confirm({ message: "是否要删除该辖段信息?" });
await confirm({ message: "确定删除该关键词?" });
request({
url: `/business/dcInfoBoardVocabulary/${data.id}`,
@ -166,9 +167,10 @@ export default {
this.getData();
},
async getData() {
const closeLoading = setLoading();
// const closeLoading = setLoading();
this.isLoading = true;
await delay(150);
await delay(100);
request({
url: `/business/dcInfoBoardVocabulary/list`,
@ -183,7 +185,8 @@ export default {
// this.pageTotal = Math.ceil(result.total/this.pageSize);
}).finally(() => {
this.isFirst = false;
closeLoading();
// closeLoading();
this.isLoading = false;
})
},
@ -218,7 +221,7 @@ export default {
}
.body {
height: 0; flex: 1;
height: 0; flex: 1; overflow: hidden;
display: flex; flex-wrap: wrap; align-content: flex-start;
.cardBox{
flex-basis: percentage(1/7); width: 0; padding-right: 10px; padding-bottom: 10px;

2
ruoyi-ui/src/views/JiHeExpressway/utils/index.js

@ -9,7 +9,7 @@ export function setLoading(options) {
let loadingInstance = Loading.service({
fullscreen: true,
text: "数据加载中...",
lock: true,
lock: false,
...options,
});

19
ruoyi-ui/src/views/login.vue

@ -256,7 +256,9 @@ export default {
position: relative;
height: 100%;
background-image: url("../assets/images/login-background.png");
background-size: 100% auto;
// background-size: 100% auto;
background-repeat: no-repeat;
background-size: 100% 100%;
}
.login::after {
@ -266,7 +268,7 @@ export default {
height: 120px;
background-image: url('../assets/images/login-head.png');
background-repeat: no-repeat;
background-size: 100% auto;
background-size: auto 100%;
background-position: center center;
}
@ -297,7 +299,6 @@ export default {
width: 4px;
height: 100%;
background: linear-gradient(180deg, #BDFFF600 0%, #BDFFF6 50%, #BDFFF600 100%);
;
}
.login-form {
@ -392,16 +393,20 @@ export default {
/* 重置按钮 */
.el-button--goon {
font-size: 20px;
font-family: Source Han Sans CN, Source Han Sans CN;
font-size: 24px;
font-weight: 400;
color: #FFFFFF;
color: #FFF;
width: 380px;
height: 55px;
background: #07CAF6;
border-radius: 4px 4px 4px 4px;
border-radius: 4px;
opacity: 1;
border: none;
}
.el-button--goon:hover {}
::v-deep .el-form-item__error{
top:62px;
}
</style>

4
ruoyi-ui/vue.config.js

@ -50,8 +50,8 @@ module.exports = {
// target: `http://10.0.81.204:8087`, //现场后台 刘文阁
// target: `http://10.168.69.255:8087`, //正晨后台 连现场物联 刘文阁
// target: `http://10.168.78.135:8087`, //王钦
target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2
// target: `http://10.168.68.42:8087`, //王思祥
// target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2
target: `http://10.168.68.42:8087`, //王思祥
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",

Loading…
Cancel
Save