峰峰执法平台简易案件程序板块 pad端
yang
2022-10-28 105e36dfd740d96c916d0065c37217aa69e2184c
src/views/padSunmaryProcedure/padWord.vue
@@ -3,19 +3,22 @@
    <div id="navs">
      <el-button icon="el-icon-arrow-left" @click="goHome">返回</el-button>
      <div>{{ name1 }}</div>
      <p>{{id}}</p>
      <el-button icon="el-icon-upload el-icon--right" @click="submit">提交</el-button>
      <div>
        <el-button v-if="btn ==1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button>
        <el-button v-if="btn ==0" icon="el-icon-caret-bottom" @click="ShowHide(1)"></el-button>
        <el-button icon="el-icon-upload el-icon--right" @click="submit">提交</el-button>
      </div>
    </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 v-if="activeName == 'first'" :id="id"></BiLu>
        <BiLu v-if="activeName == 'first'"></BiLu>
      </el-tab-pane>
      <el-tab-pane label="责令限期改正通知书" name="second">
        <GaiZheng v-if="activeName == 'second'" :id="id"></GaiZheng>
        <GaiZheng v-if="activeName == 'second'"></GaiZheng>
      </el-tab-pane>
      <el-tab-pane label="处罚决定书" name="third">
        <JueDingShu v-if="activeName == 'third'" :id="id"></JueDingShu>
        <JueDingShu v-if="activeName == 'third'"></JueDingShu>
      </el-tab-pane>
    </el-tabs>
  </div>
@@ -36,33 +39,38 @@
  },
  data() {
    return {
      btn: 1,
      id: '',
      form:{
        id:''
      form: {
        id: ''
      },
      name1: "",
      activeName: 'second'
      activeName: 'first'
    }
  },
  created() {
    this.id = this.$store.state.user.id
    if (this.$route.query) {
      this.$nextTick(() => {
        this.id = this.$route.query.id
          console.log(this.id,'id==========')
        this.name1 = this.$route.query.name
      })
    }
  },
  methods: {
    goHome() {
      this.$router.push({
        path: '/pad',
      })
    },
    ShowHide(type) {
      this.btn = type;
      window.android.toShowHide()
    },
    submit() {
      /*submitcase(this.id).then(res => {
      submitcase({id: this.id}).then(res => {
        this.goHome()
      })*/
      })
    },
    /*goToBL() {
      this.$router.push({
@@ -74,6 +82,7 @@
    },*/
    handleClick(tab, event) {
      console.log(tab, event);
      this.activeName = tab.name
    }
  }
}