| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <template>
- <div>
- <el-container>
- <el-container>
- <el-main id="dxdcListMain" style="padding:5px 20px;">
- <el-tabs v-model="currentViewId" type="card">
- <el-col :span="4" ref="elw">
- <el-card :body-style="{'padding':'0'}">
- <export-tree-list-with-check-box-skfh
- :pid="pid"
- :type="type"
- :pidNodes="pidNodes"
- :height="dxdcAsideHeight"
- :width="treeWidth"
- @treeCheckedDataChange="treeCheckedDataChange"
- @changeYear="changeYear"
- ></export-tree-list-with-check-box-skfh>
- </el-card>
- </el-col>
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in options"
- :key="option.value"
- >
- <!-- <component v-if="currentViewId == option.label" :is="option.value"></component> -->
- <el-col :span="20">
- <component v-if="showTable" :is="option.value" :ids="ids" type="001"
- :newYear="newYear"></component>
- </el-col>
- </el-tab-pane>
- </el-tabs>
- </el-main>
- </el-container>
- </el-container>
- <!-- 添加/编辑人员弹窗 -->
- </div>
- </template>
- <script>
- import report_skfh1 from "./report_skfh1.vue";
- import report_skfh2 from "./report_skfh2.vue";
- import report_skfh3 from "./report_skfh3.vue";
- import report_skfh4 from "./report_skfh4.vue";
- import report_skfh5 from "./report_skfh5.vue";
- // 新版
- import report_01 from "./skfh/report_01.vue";
- import report_02 from "./skfh/report_02.vue";
- import report_03 from "./skfh/report_03.vue";
- import report_04 from "./skfh/report_04.vue";
- import report_05 from "./skfh/report_05.vue";
- import report_06 from "./skfh/report_06.vue";
- import exportTreeListWithCheckBoxSkfh from "./exportTreeListWithCheckBox_xry";
- export default {
- components: {
- report_skfh1: report_skfh1,
- report_skfh2: report_skfh2,
- report_skfh3: report_skfh3,
- report_skfh4: report_skfh4,
- report_skfh5: report_skfh5,
- report_01,
- report_02,
- report_03,
- report_04,
- report_05,
- report_06,
- exportTreeListWithCheckBoxSkfh: exportTreeListWithCheckBoxSkfh,
- },
- props: [],
- data() {
- return {
- options1: [
- {
- value: "report_skfh1",
- label: "附件1 督查人员情况表"
- },
- {
- value: "report_skfh2",
- label: "附件2 大型和重点中型水库(水电站)基本情况表"
- },
- {
- value: "report_skfh3",
- label: "附件3 水库防洪调度和汛限水位执行督查工作统计表"
- },
- {
- value: "report_skfh4",
- label: "附件4 流域水库防洪调度和汛限水位执行督查发现问题汇总表"
- },
- {
- value: "report_skfh5",
- label: "附件5 水库防洪登记表"
- }
- ],
- options: [
- {
- value: "report_01",
- label: "附表1-监督检查人员情况表"
- },
- {
- value: "report_02",
- label: "附表2-大型和重点中型水库(水电站)基本情况表"
- },
- {
- value: "report_03",
- label: "附表3-防洪调度违规问题统计表"
- },
- {
- value: "report_04",
- label: "附表4-汛限水位执行违规问题统计表"
- },
- {
- value: "report_05",
- label: "附表5-防洪调度监督检查发现问题汇总表"
- },
- {
- value: "report_06",
- label: "附表6-汛限水位执行监督检查发现问题汇总表"
- }
- ],
- value: "",
- currentViewId: "附表1-监督检查人员情况表",
- showTable: true,
- currentNodeType: "",
- ids: [],
- pid: "000",
- pidNodes: [],
- type: "026",
- dxdcMainHeight: window.innerHeight - 180,
- dxdcAsideHeight: window.innerHeight - 180,
- windowHeight: window.innerHeight - 200,
- windowWidth: window.innerWidth - 350,
- treeWidth: 250,
- newYear: ""
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- }
- },
- mounted() {
- this.treeWidth = this.$refs.elw.$el.clientWidth;
- },
- watch: {},
- methods: {
- //树节点选中或取消事件
- treeCheckedDataChange(params) {
- // 如果是选中状态,把元素id加入到ids里
- if (params.newStatus) {
- params.newCheckedArray.forEach((element, index) => {
- let id = element.id;
- if (id != null && id !== undefined && id !== "") {
- this.ids.push(id);
- }
- });
- } else {
- // 删除取消的元素id
- params.changedItem.forEach((element, index) => {
- let id = element.id;
- let inx = this.ids.indexOf(id);
- if (inx > -1) {
- delete this.ids[inx];
- }
- });
- }
- // 去重
- this.ids = Array.from(new Set(this.ids));
- console.log("ids:" + this.ids);
- },
- changeYear(val) {
- this.newYear = val;
- this.ids = [];
- },
- }
- };
- </script>
- <style>
- </style>
|