弹窗添加deptname值传入

main
jn517618 2 years ago
parent acc5ed372d
commit bb6e607a91
  1. 14
      src/views/energySources/component/dmodal.vue
  2. 2
      src/views/energySources/component/dosage.vue
  3. 13
      src/views/energySources/component/emodal.vue
  4. 2
      src/views/energySources/component/equipmentLoad.vue
  5. 2
      src/views/energySources/component/header.vue
  6. 10
      src/views/energySources/index.vue

@ -43,12 +43,6 @@ import tit from "./tit.vue";
import { mapGetters } from "vuex";
import { getPeriodElectricity, getInstrumentRunDetail } from "@/api/energySources/energySources"
export default {
props: {
deptName: {
type: String,
default: "",
},
},
data() {
return {
tableData: [],
@ -69,7 +63,11 @@ export default {
},
selectDay: {
type: String
}
},
deptName: {
type: String,
default: "",
},
},
watch: {
visible(v) {
@ -83,7 +81,7 @@ export default {
...mapGetters(["userInfo", "permission"]),
},
created() {
if(this.deptName){
if (this.deptName) {
this.getTableData()
}
// this.getData()

@ -82,7 +82,7 @@
<!-- <div id="mainDosage"></div> -->
</div>
<dmodal :visible.sync="visible" @onvisible="v => visible = v" :selectDay="selectDay" />
<dmodal :visible.sync="visible" @onvisible="v => visible = v" :selectDay="selectDay" :deptName="deptName" />
</div>
</template>

@ -43,12 +43,6 @@ import tit from "./tit.vue";
import { mapGetters } from "vuex";
import { getInstrumentActLoad, getInstrumentRunDetail } from "@/api/energySources/energySources"
export default {
props: {
deptName: {
type: String,
default: "",
},
},
data() {
return {
tableData: [],
@ -66,7 +60,12 @@ export default {
visible: {
type: Boolean,
default: false
}
},
deptName: {
type: String,
default: "",
},
},
watch: {
visible(v) {

@ -21,7 +21,7 @@
</template>
</el-table-column>
</el-table>
<emodal :visible.sync="visible" @onvisible="v => visible = v" />
<emodal :visible.sync="visible" @onvisible="v => visible = v" :deptName="deptName" />
</div>
</template>

@ -65,7 +65,7 @@ export default {
},
methods: {
},
beforeDestroy() {
beforeDestroyed() {
clearInterval(this.timeFun)
},
};

@ -19,15 +19,6 @@
</template>
<script>
// import MonitorTitle from "./components/MonitorTitle.vue";
import {
defaultLocation11,
defaultLocation1,
floorList11,
floorList12,
floorList1,
} from "@/const/monitoring/monitoring.js";
import { detail } from "@/api/system/param.js";
import Header from "./component/header.vue";
import all from "./component/all.vue";
import load from "./component/load.vue";
@ -35,7 +26,6 @@ import dosage from "./component/dosage.vue";
import equipmentLoad from "./component/equipmentLoad.vue";
import equipmentStatus from "./component/equipmentStatus.vue";
import equipmentAnalyze from "./component/equipmentAnalyze.vue";
import { getEntrustDay, getDataAcquisition } from "@/api/monitoring/monitoring";
import {getDeptTree} from "@/api/system/dept"
import { mapGetters } from "vuex";

Loading…
Cancel
Save