a3e80054 by renchao@pashanhoo.com

style:移动

1 parent eb062363
1 /* 1 /*
2 * @Description: 企业银行接口 2 * @Description: 企业银行接口
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-11 10:19:36 4 * @LastEditTime: 2023-09-12 08:35:25
5 */ 5 */
6 import request from '@/utils/request' 6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) 7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
...@@ -80,4 +80,21 @@ export function deleteFile (bsmFile) { ...@@ -80,4 +80,21 @@ export function deleteFile (bsmFile) {
80 bsmFile: bsmFile 80 bsmFile: bsmFile
81 } 81 }
82 }) 82 })
83 }
84
85 /**
86 * @description: 移动
87 * @param {*} bsmFile
88 * @param {*} direction
89 * @author: renchao
90 */
91 export function move (bsmFile, direction) {
92 return request({
93 url: SERVER.SERVERAPI + '/rest/sys/company/move',
94 method: 'get',
95 params: {
96 bsmFile: bsmFile,
97 direction: direction
98 }
99 })
83 } 100 }
...\ 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-09-11 14:01:06 4 * @LastEditTime: 2023-09-12 08:45:25
5 --> 5 -->
6 <template> 6 <template>
7 <div class="rlPopup"> 7 <div class="rlPopup">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
53 <script> 53 <script>
54 import PhotoZoom from '@/components/PhotoZoom' 54 import PhotoZoom from '@/components/PhotoZoom'
55 import { getAltimeterInfo, getUuid } from '@/utils/operation.js' 55 import { getAltimeterInfo, getUuid } from '@/utils/operation.js'
56 import { uploadBatch, deleteFile } from "@/api/company.js" 56 import { uploadBatch, deleteFile, move } from "@/api/company.js"
57 import publicPicture from '@/components/publicPicture/index.vue' 57 import publicPicture from '@/components/publicPicture/index.vue'
58 export default { 58 export default {
59 name: 'PreviewImage', 59 name: 'PreviewImage',
...@@ -138,7 +138,14 @@ ...@@ -138,7 +138,14 @@
138 }, 138 },
139 // 左右移动 139 // 左右移动
140 handleMove (direction) { 140 handleMove (direction) {
141 141 // this.previewImg.imgList[this.previewImg.index].sxh
142 move(this.previewImg.imgList[this.previewImg.index].bsmFile, direction).then(res => {
143 this.$emit('updateList', { children: res.result, bsmMaterial: this.previewImg.bsmMaterial })
144 this.$message({
145 message: '移动成功!',
146 type: 'success'
147 })
148 })
142 }, 149 },
143 /** 150 /**
144 * @description: 拍照 151 * @description: 拍照
...@@ -270,7 +277,7 @@ ...@@ -270,7 +277,7 @@
270 } 277 }
271 formData.append("bsmMaterial", this.previewImg.bsmMaterial); 278 formData.append("bsmMaterial", this.previewImg.bsmMaterial);
272 if (this.previewImg.imgList.length > 0) { 279 if (this.previewImg.imgList.length > 0) {
273 formData.append("index", this.previewImg.index + 1); 280 formData.append("index", this.previewImg.imgList[this.previewImg.index].sxh);
274 } 281 }
275 uploadBatch(formData).then((res) => { 282 uploadBatch(formData).then((res) => {
276 if (res.code == 200) { 283 if (res.code == 200) {
......