拆分图片修改

This commit is contained in:
caoyang
2022-06-08 09:41:39 +08:00
parent f945364047
commit 4a773828c0
2 changed files with 7 additions and 5 deletions
@@ -363,6 +363,7 @@
<script>
import Vue from 'vue'
import {Base64} from 'js-base64'
import uploadFile from '@/components/uploadFile/file'
import Standardselection from '@/components/Standardselection/index'
import PersonnelSelection from '@/components/PersonnelSelection/index'
@@ -665,7 +666,7 @@
},
//编辑按钮
splitEdit(index,item){
console.log('item',item)
// console.log('item',item)
this.addIndex=index
this.tableVisible=true
this.isTableEdit=true
@@ -846,8 +847,9 @@
id:'',
type:'IMG',
itemContent:file.response.result.id,
thumbUrl:file.response.result.url
thumbUrl:window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(file.response.result.url)
}
// console.log('baseDecode',Base64.decode(this.contentList[this.addIndex].thumbUrl))
// let lengthImg=imgs.length
// for(let i = this.contentList.length;i>this.addIndex;i--){
@@ -993,7 +995,7 @@
},
/** 上传文件的回调 */
uploadSuccess(data) {
console.log('dataaaaa',data)
// console.log('dataaaaa',data)
let attIdList = []
if (data && data.length > 0) {
data.map(item => {
@@ -1094,7 +1096,7 @@
if (res.success) {
this.dataList = res.result
this.ruleList = res.result
console.log('res',this.dataList)
// console.log('res',this.dataList)
this.IntegrateData()
callBack && callBack()
}