Browse Source

更改

wangqin
zhangzhang 9 months ago
parent
commit
929839e8fb
  1. 10
      ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue
  2. 22
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue
  3. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js
  4. 11
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/assets/charts.js
  5. 17
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue
  6. 9
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/assets/charts.js
  7. 25
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue

10
ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue

@ -138,7 +138,11 @@ export default {
this.$refs.FormConfigRef.$refs.ElFormRef.resetFields(); this.$refs.FormConfigRef.$refs.ElFormRef.resetFields();
// this.$refs.PopoverRef.doClose(); // this.$refs.PopoverRef.doClose();
this.$emit("handleSearch", cloneDeep(this.$refs.FormConfigRef?.formData)); this.$emit(
"handleSearch",
cloneDeep(this.$refs.FormConfigRef?.formData),
"reset"
);
}, },
async handleSearch() { async handleSearch() {
if (this.types === "input") { if (this.types === "input") {
@ -157,12 +161,12 @@ export default {
} }
let resultParams = { ...result, ...params }; let resultParams = { ...result, ...params };
this.$emit("handleSearch", resultParams); this.$emit("handleSearch", resultParams, "search");
} else { } else {
this.$refs.FormConfigRef.validate() this.$refs.FormConfigRef.validate()
.then((result) => { .then((result) => {
this.$refs.PopoverRef.doClose(); this.$refs.PopoverRef.doClose();
this.$emit("handleSearch", result); this.$emit("handleSearch", result, "search");
}) })
.catch((err) => { .catch((err) => {
console.log("catch"); console.log("catch");

22
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue

@ -314,6 +314,7 @@ export default {
multiple: true, multiple: true,
options: [], options: [],
}, },
default: [],
visible: (data) => { visible: (data) => {
if (data.searchType == 1) { if (data.searchType == 1) {
return true; return true;
@ -325,6 +326,7 @@ export default {
key: "date", key: "date",
required: true, required: true,
type: "datePicker", type: "datePicker",
default: "",
options: { options: {
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
@ -336,6 +338,7 @@ export default {
}, },
}, },
], ],
queryParams: {},
}; };
}, },
computed: { computed: {
@ -376,19 +379,30 @@ export default {
}); });
this.searchFormList[2].options.options = dataList; this.searchFormList[2].options.options = dataList;
this.facilityIds = res[0].value.data.map((item) => item.id); this.facilityIds = res[0].value.data.map((item) => item.id);
// this.searchFormList[2].default = res[0].value.data.map(item => item.id) this.searchFormList[2].default = res[0].value.data.map(
(item) => item.id
);
console.log(56, this.searchFormList[2].default);
let currentMonth = moment().format("YYYY-MM"); let currentMonth = moment().format("YYYY-MM");
let currentDate = moment().format("YYYY-MM-DD"); let currentDate = moment().format("YYYY-MM-DD");
let data = { this.queryParams = {
searchType: 1, searchType: 1,
facilityId: this.facilityIds, facilityId: this.facilityIds,
date: [currentMonth + "-01", currentDate], date: [currentMonth + "-01", currentDate],
}; };
this.getSelectTollStation(data); this.searchFormList[3].default = [currentMonth + "-01", currentDate];
this.getSelectTollStation(this.queryParams);
} }
}); });
}, },
handleSearch(data) { // handleResetForm(data) {
// this.getSelectTollStation(data);
// },
handleSearch(data, value) {
console.log(888, data, value);
if (value == "reset") {
data = this.queryParams;
}
this.getSelectTollStation(data); this.getSelectTollStation(data);
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js

@ -31,16 +31,17 @@ var options = {
width: 50, width: 50,
}, },
bst: { bst: {
width: 35,
align: "left", align: "left",
fontSize: 12, fontSize: 12,
marginLeft: 10,
color: "#37E7FF", color: "#37E7FF",
marginLeft: 10,
}, },
cst: { cst: {
align: "left", align: "left",
fontSize: 12, fontSize: 12,
marginLeft: 10,
color: "#37E7FF", color: "#37E7FF",
marginLeft: 10,
}, },
}, },
}, },

11
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/assets/charts.js

@ -90,13 +90,13 @@ var options = {
}, },
color: ["#5973FF", "#14d8b4", "#FFC30D", "#61D8FF", "#1DA7FF", "#2967EA"], color: ["#5973FF", "#14d8b4", "#FFC30D", "#61D8FF", "#1DA7FF", "#2967EA"],
legend: { legend: {
top: "8%", top: "5%",
right: 0, right: 0,
orient: "vertical", //改变排列方式 orient: "vertical", //改变排列方式
icon: "circle", //改变legend小图标形状 icon: "circle", //改变legend小图标形状
itemGap: 10, // 设置legend的间距 itemGap: 12, // 设置legend的间距
itemWidth: 8, // 设置宽度 itemWidth: 8, // 设置宽度
// itemHeight: 15, // 设置高度 itemHeight: 9, // 设置高度
itemStyle: { itemStyle: {
borderColor: "transparent", borderColor: "transparent",
@ -130,15 +130,16 @@ var options = {
width: 65, width: 65,
}, },
bst: { bst: {
width: 35,
align: "left", align: "left",
fontSize: 12, fontSize: 12,
marginLeft: 20, marginLeft: 10,
color: "#37E7FF", color: "#37E7FF",
}, },
cst: { cst: {
align: "left", align: "left",
fontSize: 12, fontSize: 12,
marginLeft: 30, marginLeft: 10,
width: 60, width: 60,
color: "#37E7FF", color: "#37E7FF",
}, },

17
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

@ -215,16 +215,15 @@ export default {
// //
let gr = context.createLinearGradient(230, 0, 360, 0); let gr = context.createLinearGradient(230, 0, 360, 0);
gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.3)"); gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 202, 16, 134, 18, 10, gr);
drawRoundRect(context, 202, 39, 134, 18, 10, gr);
drawRoundRect(context, 202, 61, 134, 18, 10, gr);
drawRoundRect(context, 202, 83, 134, 18, 10, gr);
drawRoundRect(context, 202, 105, 134, 18, 10, gr);
drawRoundRect(context, 202, 127, 134, 18, 10, gr);
drawRoundRect(context, 202, 149, 134, 18, 10, gr);
context.lineWidth = 1; // 线 context.lineWidth = 1; // 线
drawRoundRect(context, 202, 8, 280, 20, 12, gr);
drawRoundRect(context, 202, 32, 280, 20, 10, gr);
drawRoundRect(context, 202, 56, 280, 20, 10, gr);
drawRoundRect(context, 202, 80, 280, 20, 10, gr);
drawRoundRect(context, 202, 104, 280, 20, 10, gr);
drawRoundRect(context, 202, 128, 280, 20, 10, gr);
drawRoundRect(context, 202, 152, 280, 20, 10, gr);
this.myChart = myChart; this.myChart = myChart;
}); });

9
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/assets/charts.js

@ -37,19 +37,20 @@ var options = {
ast: { ast: {
marginLeft: 0, marginLeft: 0,
fontSize: 12, fontSize: 12,
width: 40, width: 60,
}, },
bst: { bst: {
align: "left", align: "left",
fontSize: 12, fontSize: 12,
color: "#37E7FF", color: "#37E7FF",
width: 30, width: 35,
marginLeft: 10,
}, },
cst: { cst: {
align: "right", align: "right",
fontSize: 12, fontSize: 12,
width: 40, width: 45,
// marginLeft: 20, marginLeft: 10,
color: "#37E7FF", color: "#37E7FF",
}, },
}, },

25
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue

@ -49,7 +49,7 @@ export default {
data() { data() {
return {}; return {};
}, },
created() { }, created() {},
methods: {}, methods: {},
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
@ -176,11 +176,11 @@ export default {
context.lineWidth = 1; // 线 context.lineWidth = 1; // 线
// //
drawRoundRect(context, 258, 8, 120, 24, 12, gr); drawRoundRect(context, 228, 8, 280, 24, 12, gr);
drawRoundRect(context, 258, 36, 120, 24, 12, gr); drawRoundRect(context, 228, 36, 280, 24, 12, gr);
drawRoundRect(context, 258, 64, 120, 24, 12, gr); drawRoundRect(context, 228, 64, 280, 24, 12, gr);
drawRoundRect(context, 258, 92, 120, 24, 12, gr); drawRoundRect(context, 228, 92, 280, 24, 12, gr);
drawRoundRect(context, 258, 120, 120, 24, 12, gr); drawRoundRect(context, 228, 120, 280, 24, 12, gr);
}); });
}); });
}, },
@ -195,15 +195,20 @@ export default {
height: 200px; height: 200px;
width: 100%; width: 100%;
padding: 0px 20px; padding: 0px 20px;
background: linear-gradient(180deg, background: linear-gradient(
180deg,
rgba(6, 66, 88, 0.2) 0%, rgba(6, 66, 88, 0.2) 0%,
#06425888 100%); #06425888 100%
);
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient(360deg, border-image: linear-gradient(
360deg,
rgba(55, 231, 255, 0.1), rgba(55, 231, 255, 0.1),
rgba(55, 231, 255, 0)) 1 1; rgba(55, 231, 255, 0)
)
1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;

Loading…
Cancel
Save