峰峰执法平台简易案件程序板块 pad端
yang
2022-11-02 1f6ae254a4e41a70290f842ab0d5d3bc792c7af8
src/views/padSunmaryProcedure/word_mange/mangeBL.vue
@@ -128,15 +128,16 @@
      </el-form-item>
    </el-form>
    <div style="text-align: center">
      <el-button v-if="form.registerState=='0'||form.registerState==null" @click="dataFormSubmit('0')">保存</el-button>
      <el-button v-if="form.approvalState==null||form.approvalState=='2'" @click="dataFormSubmit('0')">保存</el-button>
      <el-button type="primary" @click="viewVord(form.id)">预览</el-button>
      <el-button v-if="form.registerState=='1'" type="success" @click="downloadWord(form.id)">下载</el-button>
      <el-button v-if="form.approvalState=='1'" type="success" @click="downloadWord(form.id)">下载</el-button>
    </div>
  </el-main>
</template>
<script>
import {createword, inquiry, inquiryquestion} from '../../../api/News/pad'
import { inquiry, inquiryquestion} from '../../../api/News/pad'
import {blwo} from "../../../api/News/word";
export default {
  name: "mangeBL",
@@ -227,7 +228,7 @@
    },
    //点击预览
    viewVord(data) {
      createword(data).then(res => {
      blwo(data).then(res => {
        console.log(res.data.data, 'res.data.data')
        // this.form.questionsAnswers[0].wen =res.data.data
        this.arrays = res.data.data.split(',')[1]
@@ -236,7 +237,7 @@
    },
    //点击下载
    downloadWord(data) {
      createword(data).then(res => {
      blwo(data).then(res => {
        // console.log(this.form.id)
        this.arrays = res.data.data.split(',')[0]
        window.android.toDownLoadWord(this.arrays)