Browse Source

更改bug

wangqin
zhangzhang 1 year ago
parent
commit
b56d466796
  1. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue
  2. 11
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue
  3. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue
  4. 20
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue

13
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue

@ -56,7 +56,7 @@ export default {
return { return {
formData: { formData: {
type: "day", type: "day",
warningTime: "", warningTime: moment().format("YYYY-MM-DD") + " 00:00:01",
}, },
trafficIncidents: null, trafficIncidents: null,
trafficIncidentsPie: null, trafficIncidentsPie: null,
@ -89,6 +89,7 @@ export default {
key: "warningTime", key: "warningTime",
required: true, required: true,
type: "datePicker", type: "datePicker",
default: moment().format("YYYY-MM-DD") + " 00:00:01",
options: { options: {
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
@ -107,6 +108,7 @@ export default {
type: "month", type: "month",
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "month") { if (data.type == "month") {
return true; return true;
@ -122,6 +124,7 @@ export default {
type: "year", type: "year",
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "year") { if (data.type == "year") {
return true; return true;
@ -134,9 +137,9 @@ export default {
async mounted() { async mounted() {
setTimeout(() => { setTimeout(() => {
this.$nextTick(async () => { this.$nextTick(async () => {
(this.formData.warningTime = // (this.formData.warningTime =
moment(new Date()).format("YYYY-MM-DD") + " 00:00:01"), // moment().format("YYYY-MM-DD") + " 00:00:01"),
(this.trafficIncidents = echarts.init(this.$refs.trafficIncidents)); this.trafficIncidents = echarts.init(this.$refs.trafficIncidents);
this.trafficIncidents.setOption(trafficIncidentsCharts); this.trafficIncidents.setOption(trafficIncidentsCharts);
this.trafficIncidentsPie = echarts.init(this.$refs.trafficIncidentsPie); this.trafficIncidentsPie = echarts.init(this.$refs.trafficIncidentsPie);
this.trafficIncidentsPie.setOption(trafficIncidentsChartsPie); this.trafficIncidentsPie.setOption(trafficIncidentsChartsPie);
@ -166,6 +169,7 @@ export default {
drawRoundRect(context, 410, 406, 320, 24, 10, gr); drawRoundRect(context, 410, 406, 320, 24, 10, gr);
drawRoundRect(context, 410, 440, 320, 24, 10, gr); drawRoundRect(context, 410, 440, 320, 24, 10, gr);
drawRoundRect(context, 410, 474, 320, 24, 10, gr); drawRoundRect(context, 410, 474, 320, 24, 10, gr);
console.log("this.formData", this.formData);
await this.getNonAutomaticWarningType(this.formData); await this.getNonAutomaticWarningType(this.formData);
// drawRoundRect(context, 410, 508, 320, 24, 10, gr); // drawRoundRect(context, 410, 508, 320, 24, 10, gr);
}); });
@ -174,6 +178,7 @@ export default {
methods: { methods: {
getNonAutomaticWarningType(data) { getNonAutomaticWarningType(data) {
let that = this; let that = this;
console.log("data", data);
return nonAutomaticWarningType(data).then((res) => { return nonAutomaticWarningType(data).then((res) => {
let newData = res.data; let newData = res.data;
let seriesData = []; let seriesData = [];

11
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue

@ -64,7 +64,7 @@ export default {
trafficIncidentsPie: null, trafficIncidentsPie: null,
formData: { formData: {
type: "day", type: "day",
warningTime: "", warningTime: moment().format("YYYY-MM-DD") + " 00:00:01",
}, },
searchFormList: [ searchFormList: [
{ {
@ -98,6 +98,7 @@ export default {
options: { options: {
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "day") { if (data.type == "day") {
return true; return true;
@ -113,6 +114,7 @@ export default {
type: "month", type: "month",
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "month") { if (data.type == "month") {
return true; return true;
@ -128,6 +130,7 @@ export default {
type: "year", type: "year",
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "year") { if (data.type == "year") {
return true; return true;
@ -155,9 +158,9 @@ export default {
getWarningCharts() { getWarningCharts() {
setTimeout(() => { setTimeout(() => {
this.$nextTick(async () => { this.$nextTick(async () => {
(this.formData.warningTime = // (this.formData.warningTime =
moment(new Date()).format("YYYY-MM-DD") + " 00:00:01"), // moment(new Date()).format("YYYY-MM-DD") + " 00:00:01"),
(this.trafficIncidents = echarts.init(this.$refs.trafficIncidents)); this.trafficIncidents = echarts.init(this.$refs.trafficIncidents);
this.trafficIncidents.setOption(trafficIncidentsCharts1); this.trafficIncidents.setOption(trafficIncidentsCharts1);
this.trafficIncidentsPie = echarts.init( this.trafficIncidentsPie = echarts.init(
this.$refs.trafficIncidentsPie this.$refs.trafficIncidentsPie

5
ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue

@ -33,7 +33,7 @@ export default {
trafficIncidents: null, trafficIncidents: null,
formData: { formData: {
type: "day", type: "day",
warningTime: "", warningTime: moment().format("YYYY-MM-DD") + " 00:00:01",
}, },
searchFormList: [ searchFormList: [
{ {
@ -67,6 +67,7 @@ export default {
options: { options: {
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "day") { if (data.type == "day") {
return true; return true;
@ -82,6 +83,7 @@ export default {
type: "month", type: "month",
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "month") { if (data.type == "month") {
return true; return true;
@ -97,6 +99,7 @@ export default {
type: "year", type: "year",
valueFormat: "yyyy-MM-dd", valueFormat: "yyyy-MM-dd",
}, },
default: moment().format("YYYY-MM-DD") + " 00:00:01",
visible: (data) => { visible: (data) => {
if (data.type == "year") { if (data.type == "year") {
return true; return true;

20
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue

@ -128,7 +128,25 @@ export default {
watch: {}, watch: {},
created() {}, created() {},
methods: { methods: {
____onDragend() {}, ____onDragend(event) {
console.log("____onDragend", event);
let oldIndex = event.oldIndex; //
let newIndex = event.newIndex; //
let diff = Math.abs(newIndex - oldIndex); //
let index = this.dataList[oldIndex];
if (eval(oldIndex) > eval(newIndex)) {
for (let i = 0; i < diff; i++) {
this.dataList[oldIndex - i] = this.dataList[oldIndex - i - 1];
}
this.dataList[newIndex] = index;
} else {
for (let i = 0; i < diff; i++) {
this.dataList[oldIndex + i] = this.dataList[oldIndex + i + 1];
}
this.dataList[newIndex] = index;
}
console.log(789, this.dataList);
},
}, },
mounted() {}, mounted() {},
}; };

Loading…
Cancel
Save