Browse Source

更新禅道BUG

develop
王钦 4 months ago
parent
commit
fa31b988a2
  1. 0
      ruoyi-ui/src/views/JiHeExpressway/images/deviceType/180全景摄像机.svg
  2. 0
      ruoyi-ui/src/views/JiHeExpressway/images/deviceType/360全景摄像机.svg
  3. 0
      ruoyi-ui/src/views/JiHeExpressway/images/deviceType/桥下球机.svg
  4. 0
      ruoyi-ui/src/views/JiHeExpressway/images/deviceType/站前悬臂式可变信息标志.svg
  5. 0
      ruoyi-ui/src/views/JiHeExpressway/images/deviceType/雨棚可变信息标志.svg
  6. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue
  7. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/components/AddControlEventInfoDialog/index.vue
  8. 41
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDispatchDialog/index.vue
  9. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/data.js
  10. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/data.js
  11. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/analysis/components/deviceSummary/index.vue
  12. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/data.js
  13. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/safe/files/index.vue
  14. 2
      ruoyi-ui/src/views/event/event/dispatchYuan.vue
  15. 4
      ruoyi-ui/vue.config.js

0
ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/180全景摄像机.svg → ruoyi-ui/src/views/JiHeExpressway/images/deviceType/180全景摄像机.svg

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/360全景摄像机.svg → ruoyi-ui/src/views/JiHeExpressway/images/deviceType/360全景摄像机.svg

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/桥下球机.svg → ruoyi-ui/src/views/JiHeExpressway/images/deviceType/桥下球机.svg

Before

Width:  |  Height:  |  Size: 897 B

After

Width:  |  Height:  |  Size: 897 B

0
ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/站前悬臂式可变信息标志.svg → ruoyi-ui/src/views/JiHeExpressway/images/deviceType/站前悬臂式可变信息标志.svg

Before

Width:  |  Height:  |  Size: 833 B

After

Width:  |  Height:  |  Size: 833 B

0
ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/雨棚可变信息标志.svg → ruoyi-ui/src/views/JiHeExpressway/images/deviceType/雨棚可变信息标志.svg

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

8
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue

@ -224,7 +224,8 @@ export default {
'重要事件已报送' '重要事件已报送'
], ],
linkEvent:[], linkEvent:[],
linkEventIndex:0 linkEventIndex:0,
remark: ''
}; };
}, },
@ -380,6 +381,8 @@ export default {
if (!isLt2M) { if (!isLt2M) {
this.$message.error('上传图片或视频大小不能超过 20MB'); this.$message.error('上传图片或视频大小不能超过 20MB');
} }
this.remark = `${file.name} ${(file.size/1024/1024).toFixed(1)}MB`
console.log(this.remark,file,3334)
return isLt2M; return isLt2M;
}, },
// //
@ -402,10 +405,12 @@ export default {
if (this.context || this.imageUrl) { if (this.context || this.imageUrl) {
let content = ""; let content = "";
let remark = "";
if (this.testRadio == "input") { if (this.testRadio == "input") {
content = this.context; content = this.context;
} else { } else {
content = this.imageUrl; content = this.imageUrl;
remark = this.remark;
} }
let type = this.containsArrayElement(this.imageUrl, this.fileType); let type = this.containsArrayElement(this.imageUrl, this.fileType);
let data = { let data = {
@ -413,6 +418,7 @@ export default {
processId: this.processId, processId: this.processId,
processName: this.processName, processName: this.processName,
context: content, context: content,
remark,
// file: this.imageUrl, // file: this.imageUrl,
type: type && type.length > 0 ? type.join(",") : "text", type: type && type.length > 0 ? type.join(",") : "text",
source: 1, source: 1,

13
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/components/AddControlEventInfoDialog/index.vue

@ -50,7 +50,10 @@ export default {
modelVisible: { modelVisible: {
get() { get() {
if (this.visible) { if (this.visible) {
this.initData() if(!this.fData.eventSubclass){
this.initData()
}
} }
return this.visible; return this.visible;
}, },
@ -65,11 +68,11 @@ export default {
methods: { methods: {
async initData() { async initData() {
let config = _.cloneDeep(configList['交通管制']); let config = _.cloneDeep(configList['交通管制']);
config[config.length-1].options.options = config[config.length-1].options.options.slice(0,7) config[config.length-1].options.options = config[config.length-1].options.options.slice(0,7)
const value = this.eventSubclass; const value = this.eventSubclass;
config[0].default = value;
let facilityType = 1; let facilityType = 1;
if (value == "3-2") { if (value == "3-2") {
facilityType = 1; facilityType = 1;
@ -80,7 +83,7 @@ export default {
} }
// 1 2 3 4 5 6 // 1 2 3 4 5 6
if (value && value != "3-1") { if (value && value != "3-1") {
getFacilities(facilityType, config) await getFacilities(facilityType, config)
} }
config[1].default = this.controlType; config[1].default = this.controlType;
if(value === '3-4'){ if(value === '3-4'){
@ -156,6 +159,8 @@ export default {
], ],
}; };
config[13].options.options = cs[this.controlType] config[13].options.options = cs[this.controlType]
config[0].default = value;
this.formConfigList = config; this.formConfigList = config;
}, },
onSubmit() { onSubmit() {

41
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDispatchDialog/index.vue

@ -3,18 +3,23 @@
<div class="EventDetail"> <div class="EventDetail">
<BlackBar class="left"> <BlackBar class="left">
<!-- <img src="./images/test.png" style="width: 100%;" /> --> <!-- <img src="./images/test.png" style="width: 100%;" /> -->
<div class="example"> <div class="example" >
<div class="title"> <div class="title">
<h3>调度记录</h3> <h3>调度记录</h3>
<span> {{ startTime }} {{ endTime }} </span> <span> {{ startTime }} {{ endTime }} </span>
</div> </div>
<div class="body"> <div class="body" id="printbody">
<div v-for="(item, index) in data" :key="index" style="display: flex;gap:10px"> <div v-for="(item, index) in data" :key="index" style="display: flex;gap:10px">
<div style="width:130px">{{ beautifyOperationTime(item.operationTime) }}</div> <div style="width:130px">{{ beautifyOperationTime(item.operationTime) }}</div>
<div style="width:50px">{{ item.operatorName }}</div> <div style="width:50px">{{ item.operatorName }}</div>
<div style="width: 80px" v-if="item.processName && item.type !== 'text'">{{ item.processName }}</div> <div style="width: 80px" v-if="item.processName && item.type !== 'text'">{{ item.processName }}</div>
<el-image v-if="['bmp','jpg','jpeg','png'].indexOf(item.type)!==-1" :preview-src-list="[uploadUrl +item.context]" :src="uploadUrl +item.context" style="width: 200px;height: auto"></el-image> <el-image v-if="['bmp','jpg','jpeg','png'].indexOf(item.type)!==-1" :preview-src-list="[uploadUrl +item.context]" :src="uploadUrl +item.context" style="width: 200px;height: auto"></el-image>
<video v-else-if="['mp4','avi','xmvb'].indexOf(item.type)!==-1" :src="uploadUrl +item.context" style="width: 200px;height: 160px" muted controls ></video> <div v-else-if="['mp4','avi','xmvb'].indexOf(item.type)!==-1" style="flex:1;display: flex;flex-direction: column;" >
<div >{{ item.remark }}</div>
<video :src="uploadUrl +item.context" style="width: 200px;height: 160px" muted controls ></video>
</div>
<div style="flex:1" v-else> <div style="flex:1" v-else>
<span style="width: 80px" v-if="item.processName">{{ item.processName }}</span> <span style="width: 80px" v-if="item.processName">{{ item.processName }}</span>
{{ item.context }}</div> {{ item.context }}</div>
@ -73,7 +78,35 @@ export default {
}, },
methods: { methods: {
print(){ print(){
window.print(); var printContent = document.getElementById('printbody').innerHTML;
var l=(screen.availWidth-1080)/2;
var t=(screen.availHeight-400)/2;
var printWindow = window.open('', '_blank', 'height=400,width=1080,top='+t+',left='+l+',toolbar=no,menubar=no,location=no,status=yes');
printWindow.document.write('<html><head><title>打印区域</title>');
printWindow.document.write('</head><body onBlur="window.focus();">');
printWindow.document.write(`<div style="width:800px;text-align:center"><h3>调度记录</h3><h4> ${ this.startTime }${ this.endTime } </h4></div>`);
printWindow.document.write(``);
printContent = printContent.replace(/width: 130px;/g,'width: 170px;')
printContent = printContent.replace(/class="el-image__inner el-image__preview"/g,'style="width:400px;height:auto"')
printContent = printContent.replace(/display: flex; gap: 10px;/g,'display: flex; gap: 10px;margin-bottom:10px')
printContent = printContent.replace(/width: 200px; height: 160px;/g,'display: none; width: 200px; height: 160px;')
console.log(printContent)
printWindow.document.write(printContent);
printWindow.document.write('</body></html>');
printWindow.print();
}, },
initData() { initData() {
request({ request({

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/data.js

@ -41,7 +41,7 @@ export const searchFormList = [
label: "济南方向", label: "济南方向",
}, },
{ {
key: "2", key: "",
label: "双向", label: "双向",
}, },
], ],

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/data.js

@ -77,7 +77,7 @@ export const searchFormList = [
label: "济南方向", label: "济南方向",
}, },
{ {
key: "2", key: "",
label: "双向", label: "双向",
}, },
], ],

10
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/analysis/components/deviceSummary/index.vue

@ -24,11 +24,11 @@
v-if="item.title.includes('雷达')" v-if="item.title.includes('雷达')"
/> />
<img <img
src="@screen/images/layer/路测设备/雨棚可变信息标志.svg" src="@screen/images/deviceType/雨棚可变信息标志.svg"
v-if="item.title.includes('雨棚可变信息标志')" v-if="item.title.includes('雨棚可变信息标志')"
/> />
<img <img
src="@screen/images/layer/路测设备/站前悬臂式可变信息标志.svg" src="@screen/images/deviceType/站前悬臂式可变信息标志.svg"
v-if="item.title.includes('站前可变信息标志')" v-if="item.title.includes('站前可变信息标志')"
/> />
<img <img
@ -44,7 +44,7 @@
v-if="item.title.includes('设备箱')" v-if="item.title.includes('设备箱')"
/> />
<img <img
src="@screen/images/layer/路测设备/桥下球机.svg" src="@screen/images/deviceType/桥下球机.svg"
v-if="item.title.includes('桥下高清')" v-if="item.title.includes('桥下高清')"
/><img /><img
src="@screen/images/deviceType/ball.svg" src="@screen/images/deviceType/ball.svg"
@ -63,11 +63,11 @@
v-if="item.title.includes('碰撞')" v-if="item.title.includes('碰撞')"
/> />
<img <img
src="@screen/images/layer/路测设备/360全景摄像机.svg" src="@screen/images/deviceType/360全景摄像机.svg"
v-if="item.title.includes('360°全景摄像机')" v-if="item.title.includes('360°全景摄像机')"
/> />
<img <img
src="@screen/images/layer/路测设备/180全景摄像机.svg" src="@screen/images/deviceType/180全景摄像机.svg"
v-if="item.title.includes('180°全景摄像机')" v-if="item.title.includes('180°全景摄像机')"
/> />
<img <img

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/data.js

@ -158,7 +158,7 @@ export const searchFormList = [
label: "济南方向", label: "济南方向",
}, },
{ {
key: "2", key: "",
label: "双向", label: "双向",
}, },
], ],

1
ruoyi-ui/src/views/JiHeExpressway/pages/safe/files/index.vue

@ -188,6 +188,7 @@ export default {
onRefreshForm(){ onRefreshForm(){
this.searchData.pageNum = 1; this.searchData.pageNum = 1;
this.$refs.searchComp.handleResetForm(); this.$refs.searchComp.handleResetForm();
this.handleSearch({fileName:''})
}, },
handleSearch(data) { handleSearch(data) {
this.searchData = { this.searchData = {

2
ruoyi-ui/src/views/event/event/dispatchYuan.vue

@ -460,7 +460,7 @@
<div v-else>是否确认执行?</div> <div v-else>是否确认执行?</div>
<el-input v-model="IssuedItemContent" v-show="this.IssuedItem.flowPid != 7 && this.IssuedItem.flowId !=17 && this.IssuedItem.flowId !=18"/> <el-input v-model="IssuedItemContent" v-show="this.IssuedItem.flowPid != 7 && this.IssuedItem.flowId !=17 && this.IssuedItem.flowId !=18"/>
<div style="display:flex;justify-content:right"> <div style="display:flex;justify-content:right;">
<div class="IssuedButton1" @click="cancelIssuedDialog"> </div> <div class="IssuedButton1" @click="cancelIssuedDialog"> </div>
<div class="IssuedButton2" @click="changeIncHand"> </div> <div class="IssuedButton2" @click="changeIncHand"> </div>
</div> </div>

4
ruoyi-ui/vue.config.js

@ -37,13 +37,13 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://127.0.0.1:8087`, // target: `http://127.0.0.1:8087`,
target:`http://10.0.111.11:8097`, // target:`http://10.0.111.11:8097`,
// target: `http://10.168.66.196:8087`, //刘文阁 // target: `http://10.168.66.196:8087`, //刘文阁
// target: `http://10.168.68.42:8087`, //王思祥 // target: `http://10.168.68.42:8087`, //王思祥
// target: `http://10.168.72.174:8087`, //赵祥龙 // target: `http://10.168.72.174:8087`, //赵祥龙
// target: `http://10.168.65.156:8097`, //孟凡峰 // target: `http://10.168.65.156:8097`, //孟凡峰
// target: `http://10.168.79.46:8089`, //王家宝 // target: `http://10.168.79.46:8089`, //王家宝
// target: `http://10.168.77.128:8087`, //王兴琳 target: `http://10.168.77.128:8087`, //王兴琳
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "", ["^" + process.env.VUE_APP_BASE_API]: "",

Loading…
Cancel
Save