峰峰执法平台简易案件程序板块 pad端
yang
2022-10-26 1b3f4dd63fe08c6e8a48a635746aec1ea49c9c43
src/views/padSunmaryProcedure/padWord.vue
@@ -2,19 +2,19 @@
  <div style="width: 100%;height: 100%;overflow: auto;">
    <div id="navs">
      <el-button icon="el-icon-arrow-left" @click="goHome">返回</el-button>
      <div>{{ name1 }}</div>
<!--      <div>{{ name1 }}</div>-->
      <el-button icon="el-icon-upload el-icon--right" @click="submit">提交</el-button>
    </div>
    <el-tabs type="border-card" style="margin-top: 10px!important;" v-model="activeName" @tab-click="handleClick"
             :stretch="true">
      <el-tab-pane label="调查询问笔录" name="first">
        <BiLu :id="id"></BiLu>
        <BiLu v-if="activeName == 'first'"></BiLu>
      </el-tab-pane>
      <el-tab-pane label="责令限期改正通知书" name="second">
        <GaiZheng :id="id"></GaiZheng>
        <GaiZheng v-if="activeName == 'second'"></GaiZheng>
      </el-tab-pane>
      <el-tab-pane label="处罚决定书" name="third">
        <JueDingShu :id="id"></JueDingShu>
        <JueDingShu v-if="activeName == 'third'"></JueDingShu>
      </el-tab-pane>
    </el-tabs>
  </div>
@@ -35,17 +35,18 @@
  },
  data() {
    return {
      id: '',
      form:{
        id:this.id,
      },
      name1: "",
      activeName: 'second'
      activeName: 'first'
    }
  },
  created() {
    if (this.$route.query) {
      // this.$nextTick(() => {
        this.id = this.$route.query.id
      this.$nextTick(() => {
        this.name1 = this.$route.query.name
      // })
      })
    }
  },
  methods: {
@@ -55,7 +56,7 @@
      })
    },
    submit() {
      submitcase(this.id).then(res => {
      submitcase(this.form).then(res => {
        this.goHome()
      })
    },
@@ -69,6 +70,7 @@
    },*/
    handleClick(tab, event) {
      console.log(tab, event);
      this.activeName = tab.name
    }
  }
}