| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <el-tabs v-model="currentViewId" type="card" @tab-click="tabClick">
- <el-tab-pane v-for="(option, index) in options"
- :label="option.label"
- :name="option.value"
- :key="option.value">
- <keep-alive>
- <report :key="option.value" :name="option.value" :index="index"
- :option="option"/>
- </keep-alive>
- </el-tab-pane>
- </el-tabs>
- </template>
- <script>
- import report_com from "./report_com.vue";
- /**
- * 江西前端:
- * reportIndex_hystjx, reportIndex_rdwpjx, reportIndex_floodjx,
- * reportIndex_jsfl, reportIndex_dikejx, reportIndex_wrjx,
- * reportIndex_keyjx
- * 督查前端:
- *
- * 以上页面使用该组件,若要调整组件(加新功能),请一并调整。
- */
- export default {
- props: ['options'],
- components: {report: report_com},
- data() {
- return {
- currentViewId: '',
- currentNodeType: '',
- };
- },
- created() {
- this.currentViewId = this.options[0].value;
- },
- mounted() {
- },
- methods: {
- tabClick(e) {
- }
- },
- computed: {
- persId() {
- return localStorage.getItem('userid') ? localStorage.getItem('userid') : '1098101939614724096';
- },
- },
- watch: {
- currentViewId() {
- },
- },
- };
- </script>
- <style>
- </style>
|