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

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

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

Loading…
Cancel
Save