拆分复制接口更改
This commit is contained in:
@@ -252,7 +252,7 @@
|
|||||||
<div class="split-row">
|
<div class="split-row">
|
||||||
<div class="row-left">
|
<div class="row-left">
|
||||||
<a-textarea v-if="item.type==='TEXT'" v-model="item.itemContent" :placeholder="$t('pleaseEnter')+$t('content')" auto-size />
|
<a-textarea v-if="item.type==='TEXT'" v-model="item.itemContent" :placeholder="$t('pleaseEnter')+$t('content')" auto-size />
|
||||||
<img v-if="item.type==='IMG'" :src="item.itemContent" alt="" @click="preImg(item)">
|
<img v-if="item.type==='IMG'" :src="item.thumbUrl?item.thumbUrl:item.itemContent" alt="" @click="preImg(item)">
|
||||||
<div v-if="item.type==='TABLE'" v-html="item.itemContent" class="item-table"></div>
|
<div v-if="item.type==='TABLE'" v-html="item.itemContent" class="item-table"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row-right">
|
<div class="row-right">
|
||||||
@@ -747,23 +747,23 @@
|
|||||||
for(let i = this.contentList.length;i>this.addIndex;i--){
|
for(let i = this.contentList.length;i>this.addIndex;i--){
|
||||||
this.contentList[i+lengthImg-1]=this.contentList[i-1]
|
this.contentList[i+lengthImg-1]=this.contentList[i-1]
|
||||||
}
|
}
|
||||||
if(data && data.length > 0){
|
if(imgs && imgs.length > 0){
|
||||||
data.forEach(item => {
|
imgs.forEach(item => {
|
||||||
this.contentList[++this.addIndex]={
|
this.contentList[++this.addIndex]={
|
||||||
id:'',
|
id:'',
|
||||||
type:'IMG',
|
type:'IMG',
|
||||||
itemContent:item.id,
|
itemContent:item.response.result.id,
|
||||||
thumbUrl:item.thumbUrl
|
thumbUrl:item.thumbUrl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// this.$refs.uploadFile2.visible=false
|
// this.$refs.uploadFile2.visible=false
|
||||||
this.splitVisible=false
|
this.splitVisible=false
|
||||||
// console.log('conteend',this.contentList)
|
console.log('conteend',data,this.contentList)
|
||||||
},
|
},
|
||||||
//点击图片预览
|
//点击图片预览
|
||||||
preImg(item){
|
preImg(item){
|
||||||
this.itemSrc=item.itemContent
|
this.itemSrc=item.thumbUrl?item.thumbUrl:item.itemContent
|
||||||
this.preImgVisible=true
|
this.preImgVisible=true
|
||||||
},
|
},
|
||||||
//关闭预览图片
|
//关闭预览图片
|
||||||
@@ -806,7 +806,7 @@
|
|||||||
if(this.rowCount>0&&this.colCount>0){
|
if(this.rowCount>0&&this.colCount>0){
|
||||||
let tableList=[]
|
let tableList=[]
|
||||||
let tableStr=''
|
let tableStr=''
|
||||||
tableStr='<table class=\'word-table\' border="1" cellpadding="0" cellspacing="0">'
|
tableStr='<table class=\"word-table\" border="1" cellpadding="0" cellspacing="0">'
|
||||||
for(let r=0;r<this.rowCount;r++){
|
for(let r=0;r<this.rowCount;r++){
|
||||||
let rowTableList=[]
|
let rowTableList=[]
|
||||||
tableStr+='<tr>'
|
tableStr+='<tr>'
|
||||||
|
|||||||
@@ -559,7 +559,7 @@
|
|||||||
onOk:
|
onOk:
|
||||||
async () => {
|
async () => {
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/split/sarFileSplitMenu/copyMenuNotChildrenall',
|
url: '/jero-boot/split/sarFileSplitItems/batchCopyItems',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params,
|
params: params,
|
||||||
// transformRequest: [function (data) {
|
// transformRequest: [function (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user