style:高拍仪
Showing
5 changed files
with
27 additions
and
18 deletions
| ... | @@ -134,7 +134,25 @@ export function getUrlParam (paraName) { | ... | @@ -134,7 +134,25 @@ export function getUrlParam (paraName) { |
| 134 | return ''; | 134 | return ''; |
| 135 | } | 135 | } |
| 136 | } | 136 | } |
| 137 | 137 | /** | |
| 138 | * @description: 身份证读卡器组件 | ||
| 139 | * @author: renchao | ||
| 140 | */ | ||
| 138 | export function getIdCardInfo () { | 141 | export function getIdCardInfo () { |
| 139 | return axios.post(Vue.prototype.BASE_API.IDCARDURL) | 142 | return axios.post(Vue.prototype.BASE_API.IDCARDURL) |
| 143 | } | ||
| 144 | /** | ||
| 145 | * @description: 高拍仪组件 | ||
| 146 | * @author: renchao | ||
| 147 | */ | ||
| 148 | export function getAltimeterInfo () { | ||
| 149 | let data = { | ||
| 150 | "filepath": "base64", | ||
| 151 | "rotate": "0", | ||
| 152 | "cutpage": "0", | ||
| 153 | "camidx": "0", | ||
| 154 | "ColorMode": "0", | ||
| 155 | "quality": "3" | ||
| 156 | } | ||
| 157 | return axios.post("http://127.0.0.1:38088/video=grabimage", JSON.stringify(data)) | ||
| 140 | } | 158 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-06-14 11:10:26 | 4 | * @LastEditTime: 2023-06-16 11:12:13 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="rlPopup"> | 7 | <div class="rlPopup"> |
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | </div> | 46 | </div> |
| 47 | </template> | 47 | </template> |
| 48 | <script> | 48 | <script> |
| 49 | import axios from 'axios' | 49 | import { getAltimeterInfo } from '@/utils/operation.js' |
| 50 | import PhotoZoom from '@/components/PhotoZoom' | 50 | import PhotoZoom from '@/components/PhotoZoom' |
| 51 | import { uploadSjClmx, deleteClmx } from "@/api/clxx.js"; | 51 | import { uploadSjClmx, deleteClmx } from "@/api/clxx.js"; |
| 52 | import publicPicture from '@/components/publicPicture/index.vue' | 52 | import publicPicture from '@/components/publicPicture/index.vue' |
| ... | @@ -149,20 +149,11 @@ | ... | @@ -149,20 +149,11 @@ |
| 149 | const file = new File([blob], options); | 149 | const file = new File([blob], options); |
| 150 | return file; | 150 | return file; |
| 151 | } | 151 | } |
| 152 | 152 | getAltimeterInfo().then(res => { | |
| 153 | let data = { | ||
| 154 | "filepath": "base64", | ||
| 155 | "rotate": "0", | ||
| 156 | "cutpage": "0", | ||
| 157 | "camidx": "0", | ||
| 158 | "ColorMode": "0", | ||
| 159 | "quality": "3" | ||
| 160 | } | ||
| 161 | axios.post("http://127.0.0.1:38088/video=grabimage", JSON.stringify(data)).then((res) => { | ||
| 162 | let blob = dataURLtoBlob('data:image/png;base64,' + res.data.photoBase64); | 153 | let blob = dataURLtoBlob('data:image/png;base64,' + res.data.photoBase64); |
| 163 | let file = blobToFile(blob); | 154 | let file = blobToFile(blob); |
| 164 | var formData = new FormData(); | 155 | var formData = new FormData(); |
| 165 | formData.append('file', file.raw) | 156 | formData.append('file', file) |
| 166 | formData.append("bsmSj", this.previewImg.bsmSj); | 157 | formData.append("bsmSj", this.previewImg.bsmSj); |
| 167 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | 158 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); |
| 168 | uploadSjClmx(formData).then((res) => { | 159 | uploadSjClmx(formData).then((res) => { | ... | ... |
| ... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
| 24 | </div> | 24 | </div> |
| 25 | <el-button type="primary" native-type="submit" style="width:100%" @click="handleAdd()" v-if="!this.$route.query.viewtype">新增</el-button> | 25 | <el-button type="primary" native-type="submit" style="width:100%" @click="handleAdd()" v-if="!this.$route.query.viewtype">新增</el-button> |
| 26 | </div> | 26 | </div> |
| 27 | <image-preview ref='imageRef' :previewImg="previewImg" @updateList="updateList" @nextPriview="nextPriview" | 27 | <image-preview ref='imageRef' v-if="tableData.length>0" :previewImg="previewImg" @updateList="updateList" @nextPriview="nextPriview" |
| 28 | @prevPriview="prevPriview" /> | 28 | @prevPriview="prevPriview" /> |
| 29 | </div> | 29 | </div> |
| 30 | </div> | 30 | </div> |
| ... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
| 39 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; | 39 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; |
| 40 | import { popupDialog } from "@/utils/popup.js"; | 40 | import { popupDialog } from "@/utils/popup.js"; |
| 41 | export default { | 41 | export default { |
| 42 | components: { clxxAddDialog, imagePreview}, | 42 | components: { clxxAddDialog, imagePreview }, |
| 43 | data () { | 43 | data () { |
| 44 | return { | 44 | return { |
| 45 | isDialog: false, | 45 | isDialog: false, | ... | ... |
This diff is collapsed.
Click to expand it.
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-17 10:40:46 | 4 | * @LastEditTime: 2023-06-16 11:12:40 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clxx"> | 7 | <div class="clxx"> |
| ... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
| 33 | </div> | 33 | </div> |
| 34 | </div> | 34 | </div> |
| 35 | </div> | 35 | </div> |
| 36 | <image-preview ref='imageRef' :previewImg="previewImg" @updateList="updateList" @nextPriview="nextPriview" | 36 | <image-preview ref='imageRef' v-if="tableData.length>0" :previewImg="previewImg" @updateList="updateList" @nextPriview="nextPriview" |
| 37 | @prevPriview="prevPriview" /> | 37 | @prevPriview="prevPriview" /> |
| 38 | </div> | 38 | </div> |
| 39 | </div> | 39 | </div> | ... | ... |
-
Please register or sign in to post a comment