Browse Source

优化输入按键

develop
wangsixiang 2 weeks ago
parent
commit
5830bcc920
  1. 18
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/IntegratedCabinet/components/AirConditioning.vue
  2. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDispatchDialog/index.vue

18
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/IntegratedCabinet/components/AirConditioning.vue

@ -25,7 +25,7 @@
<ButtonGradient class="btn" style="margin-left: 5px;" @click.native="isEditor=false">
<i class="el-icon-refresh-left"></i>
</ButtonGradient>
<ButtonGradient class="btn" style="margin-left: 5px;" @click.native="isEditor=false;openingPoint=openingPoint1;">
<ButtonGradient class="btn" style="margin-left: 5px;" @click="validateAndCloseEditor">
<i class="el-icon-check"></i>
</ButtonGradient>
</div>
@ -127,6 +127,22 @@
}
},
methods:{
validateAndCloseEditor(){
// console.log(this.controlObject)
// console.log(this.openingPoint1)
const limits = this.rangeLimits[this.controlObject];
const numberValue = Number(this.openingPoint1);
// console.log(numberValue)
// console.log(limits.min)
// console.log( limits.max)
// console.log(numberValue < limits.min || numberValue > limits.max)
if(numberValue < limits.min || numberValue > limits.max){
alert('输入的值不在合理范围内');
}else{
this.openingPoint=this.openingPoint1;
this.isEditor = false;
}
},
submitForm(){
if((this.controlObject==null||this.controlObject=='')||(this.openingPoint==null||this.openingPoint=='')){
return null;

5
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js

@ -412,11 +412,6 @@ export const tabList = {
key: "facilityName",
gridColumn: "3",
},
{
label: "道路名称",
key: "roadName",
gridColumn: "3",
},
{
label: "位置桩号",
key: "stakeMark",

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

@ -11,7 +11,7 @@
<div class="body" id="printbody">
<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:50px">{{ item.operatorName }}</div>
<div style="width:80px">{{ item.operatorName }}</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="[formatUrl(item.context)]" :src="formatUrl(item.context)" style="width: 200px;height: auto"></el-image>

Loading…
Cancel
Save