电子签名
Showing
3 changed files
with
154 additions
and
0 deletions
src/api/dzqm.js
0 → 100644
| 1 | /* | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-16 13:36:44 | ||
| 5 | */ | ||
| 6 | |||
| 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
| 8 | export function uploadUrl () { | ||
| 9 | return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload' | ||
| 10 | } | ||
| 11 | |||
| 12 | |||
| 13 | /** | ||
| 14 | * @description: 上传电子签名 | ||
| 15 | * @param {*} data | ||
| 16 | * @author: renchao | ||
| 17 | */ | ||
| 18 | export function uploaddzqm (data) { | ||
| 19 | return request({ | ||
| 20 | url: SERVER.SERVERAPI + '/rest/system/dzqm', | ||
| 21 | method: 'post', | ||
| 22 | data | ||
| 23 | }) | ||
| 24 | } | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @description: 电子签名信息 | ||
| 28 | * @param {*} data | ||
| 29 | * @author: renchao | ||
| 30 | */ | ||
| 31 | |||
| 32 | /** | ||
| 33 | * @description: 删除电子签名 | ||
| 34 | * @param {*} data | ||
| 35 | * @author: renchao | ||
| 36 | */ | ||
| 37 | |||
| 38 |
| ... | @@ -21,3 +21,17 @@ export function upload (data) { | ... | @@ -21,3 +21,17 @@ export function upload (data) { |
| 21 | data | 21 | data |
| 22 | }) | 22 | }) |
| 23 | } | 23 | } |
| 24 | |||
| 25 | /** | ||
| 26 | * @description: 上传电子签名 | ||
| 27 | * @param {*} data | ||
| 28 | * @author: renchao | ||
| 29 | */ | ||
| 30 | export function uploaddzqm (data) { | ||
| 31 | return request({ | ||
| 32 | url: SERVER.SERVERAPI + '/rest/system/dzqm', | ||
| 33 | method: 'post', | ||
| 34 | data | ||
| 35 | }) | ||
| 36 | } | ||
| 37 | ... | ... |
src/views/system/dzqm/dzqm.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="from-clues"> | ||
| 3 | <!-- 表单部分 --> | ||
| 4 | <div class="from-clues-header"> | ||
| 5 | <el-form :model="ruleForm" label-width="80px"> | ||
| 6 | <el-row> | ||
| 7 | <el-col :span="5"> | ||
| 8 | <el-form-item label="电子签名"> | ||
| 9 | <el-input></el-input> | ||
| 10 | </el-form-item> | ||
| 11 | </el-col> | ||
| 12 | <el-col :span="19" class="btnColRight"> | ||
| 13 | <el-form-item> | ||
| 14 | <el-button type="primary" native-type="submit">查询</el-button> | ||
| 15 | </el-form-item> | ||
| 16 | </el-col> | ||
| 17 | </el-row> | ||
| 18 | </el-form> | ||
| 19 | </div> | ||
| 20 | |||
| 21 | <di> | ||
| 22 | <el-upload | ||
| 23 | action="#" | ||
| 24 | list-type="picture-card" | ||
| 25 | |||
| 26 | :auto-upload="false"> | ||
| 27 | <i slot="default" class="el-icon-plus"></i> | ||
| 28 | <div slot="file" slot-scope="{file}"> | ||
| 29 | <img | ||
| 30 | class="el-upload-list__item-thumbnail" | ||
| 31 | :src="file.url" alt="" | ||
| 32 | > | ||
| 33 | <span class="el-upload-list__item-actions"> | ||
| 34 | <span | ||
| 35 | class="el-upload-list__item-preview" | ||
| 36 | @click="handlePictureCardPreview(file)" | ||
| 37 | > | ||
| 38 | <i class="el-icon-zoom-in"></i> | ||
| 39 | </span> | ||
| 40 | <span | ||
| 41 | v-if="!disabled" | ||
| 42 | class="el-upload-list__item-delete" | ||
| 43 | @click="handleDownload(file)" | ||
| 44 | > | ||
| 45 | <i class="el-icon-download"></i> | ||
| 46 | </span> | ||
| 47 | <span | ||
| 48 | v-if="!disabled" | ||
| 49 | class="el-upload-list__item-delete" | ||
| 50 | @click="handleRemove(file)" | ||
| 51 | > | ||
| 52 | <i class="el-icon-delete"></i> | ||
| 53 | </span> | ||
| 54 | </span> | ||
| 55 | </div> | ||
| 56 | </el-upload> | ||
| 57 | <el-dialog :visible.sync="dialogVisible"> | ||
| 58 | <img width="100%" :src="dialogImageUrl" alt=""> | ||
| 59 | </el-dialog> | ||
| 60 | |||
| 61 | </di> | ||
| 62 | <!-- 表格 --> | ||
| 63 | </div> | ||
| 64 | </template> | ||
| 65 | <script> | ||
| 66 | import table from "@/utils/mixin/table"; | ||
| 67 | import { upload } from "@/api/file.js"; | ||
| 68 | |||
| 69 | export default { | ||
| 70 | name: "dzqm", | ||
| 71 | components: {}, | ||
| 72 | mixins: [table], | ||
| 73 | mounted () { | ||
| 74 | }, | ||
| 75 | data () { | ||
| 76 | return { | ||
| 77 | dialogImageUrl: '', | ||
| 78 | dialogVisible: false, | ||
| 79 | disabled: false | ||
| 80 | |||
| 81 | } | ||
| 82 | }, | ||
| 83 | methods: { | ||
| 84 | |||
| 85 | handleRemove(file) { | ||
| 86 | console.log(file); | ||
| 87 | }, | ||
| 88 | handlePictureCardPreview(file) { | ||
| 89 | this.dialogImageUrl = file.url; | ||
| 90 | this.dialogVisible = true; | ||
| 91 | }, | ||
| 92 | handleDownload(file) { | ||
| 93 | console.log(file); | ||
| 94 | } | ||
| 95 | |||
| 96 | }, | ||
| 97 | }; | ||
| 98 | </script> | ||
| 99 | <style scoped lang="scss"> | ||
| 100 | @import "~@/styles/public.scss"; | ||
| 101 | </style> | ||
| 102 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment