拆分图片修改
This commit is contained in:
@@ -363,6 +363,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
import {Base64} from 'js-base64'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
import Standardselection from '@/components/Standardselection/index'
|
import Standardselection from '@/components/Standardselection/index'
|
||||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
@@ -665,7 +666,7 @@
|
|||||||
},
|
},
|
||||||
//编辑按钮
|
//编辑按钮
|
||||||
splitEdit(index,item){
|
splitEdit(index,item){
|
||||||
console.log('item',item)
|
// console.log('item',item)
|
||||||
this.addIndex=index
|
this.addIndex=index
|
||||||
this.tableVisible=true
|
this.tableVisible=true
|
||||||
this.isTableEdit=true
|
this.isTableEdit=true
|
||||||
@@ -846,8 +847,9 @@
|
|||||||
id:'',
|
id:'',
|
||||||
type:'IMG',
|
type:'IMG',
|
||||||
itemContent:file.response.result.id,
|
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
|
// let lengthImg=imgs.length
|
||||||
// for(let i = this.contentList.length;i>this.addIndex;i--){
|
// for(let i = this.contentList.length;i>this.addIndex;i--){
|
||||||
@@ -993,7 +995,7 @@
|
|||||||
},
|
},
|
||||||
/** 上传文件的回调 */
|
/** 上传文件的回调 */
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
console.log('dataaaaa',data)
|
// console.log('dataaaaa',data)
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
data.map(item => {
|
data.map(item => {
|
||||||
@@ -1094,7 +1096,7 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataList = res.result
|
this.dataList = res.result
|
||||||
this.ruleList = res.result
|
this.ruleList = res.result
|
||||||
console.log('res',this.dataList)
|
// console.log('res',this.dataList)
|
||||||
this.IntegrateData()
|
this.IntegrateData()
|
||||||
callBack && callBack()
|
callBack && callBack()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,7 +323,7 @@
|
|||||||
|
|
||||||
|
|
||||||
this.infoId=this.$route.query.infoId
|
this.infoId=this.$route.query.infoId
|
||||||
// console.log('info',this.$route.query)
|
console.log('info',this.$route.query)
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
// this.loadData()
|
// this.loadData()
|
||||||
this.generateList(this.gData);
|
this.generateList(this.gData);
|
||||||
|
|||||||
Reference in New Issue
Block a user