Browse Source

更改

wangqin
zhangzhang 12 months ago
parent
commit
7e75a96f4f
  1. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/data.js
  2. 17
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue

7
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/data.js

@ -29,7 +29,10 @@ export const searchFormList = [
key: "time", key: "time",
required: true, required: true,
type: "datePicker", type: "datePicker",
default: "", default: [
moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
options: { options: {
format: "yyyy-MM-dd", format: "yyyy-MM-dd",
type: "daterange", type: "daterange",
@ -40,7 +43,7 @@ export const searchFormList = [
key: "type", key: "type",
required: true, required: true,
type: "select", type: "select",
default: "", default: "1",
options: { options: {
options: [ options: [
{ {

17
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue

@ -200,7 +200,9 @@ export default {
}, },
methods: { methods: {
initData() { initData() {
console.log(8888, this.startTime, this.time, this.typeQuery); this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss");
this.time = moment().format("YYYY-MM-DD HH:mm:ss");
this.typeQuery = this.searchFormList[1].options.options[0].value;
clearInterval(this.interval); clearInterval(this.interval);
if (this.activeName == "first") { if (this.activeName == "first") {
this.initDevice(); this.initDevice();
@ -410,16 +412,9 @@ export default {
}); });
}, },
}, },
mounted() { async mounted() {
this.$nextTick(() => { console.log("__________________", searchFormList[0].default);
this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"); await this.initData();
this.time = moment().format("YYYY-MM-DD HH:mm:ss");
this.typeQuery = searchFormList[1].options.options[0].value;
searchFormList[0].default = [this.startTime, this.time];
searchFormList[1].default = this.typeQuery;
console.log("__________________", searchFormList[0].default);
this.initData();
});
}, },
}; };
</script> </script>

Loading…
Cancel
Save