Browse Source

感知事件分析筛选查询

wangqin
lau572 6 months ago
parent
commit
9a8d1409eb
  1. 49
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventAnalysis/data.js
  2. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventAnalysis/index.vue

49
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventAnalysis/data.js

@ -16,6 +16,19 @@ const station = {
}, },
}, },
key: "stakeMark[0]", key: "stakeMark[0]",
rules: [
{
message: "请补全桩号",
callback(value, data) {
if (value || data.stakeMark[1]){
return /^0\d{2}|\d{3}$/.test(value);
} else {
return true
}
},
}
],
}, },
{ {
prefix: { prefix: {
@ -25,6 +38,18 @@ const station = {
}, },
}, },
key: "stakeMark[1]", key: "stakeMark[1]",
rules: [
{
message: "请补全桩号",
callback(value, data) {
if (value || data.stakeMark[0]){
return /^0\d{2}|\d{3}$/.test(value);
} else {
return true
}
},
}
],
}, },
], ],
}, },
@ -214,9 +239,33 @@ export const searchFormList = [
options: [ options: [
{ {
key: "endStakeMark[0]", key: "endStakeMark[0]",
rules: [
{
message: "请补全桩号",
callback(value, data) {
if (value || data.endStakeMark[1]){
return /^0\d{2}|\d{3}$/.test(value);
} else {
return true
}
},
}
],
}, },
{ {
key: "endStakeMark[1]", key: "endStakeMark[1]",
rules: [
{
message: "请补全桩号",
callback(value, data) {
if (value || data.endStakeMark[0]){
return /^0\d{2}|\d{3}$/.test(value);
} else {
return true
}
},
}
],
}, },
], ],
}, },

6
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventAnalysis/index.vue

@ -230,13 +230,13 @@ export default {
warningSource: data?.warningSource || '', warningSource: data?.warningSource || '',
direction: data.direction, direction: data.direction,
startTime: daterange && daterange.length > 0 ? daterange[0] : "", startTime: daterange && daterange.length > 0 ? daterange[0] : "",
endTime: this.activeName != "-1" && daterange && daterange.length > 0 ? daterange[1] : "", // endTime: this.activeName != "-1" && daterange && daterange.length > 0 ? daterange[1] : "",
completeTime: this.activeName == "-1" && daterange && daterange.length > 0 ? daterange[1] : "", completeTime: daterange && daterange.length > 0 ? daterange[1] : "",
startStakeMark: stakeMark, startStakeMark: stakeMark,
endStakeMark: endStakeMark, endStakeMark: endStakeMark,
}; };
console.log(this.searchData) console.log(this.searchData)
// this.getData(); this.getData();
} }
}, },
}; };

Loading…
Cancel
Save