拆分复制接口更改

This commit is contained in:
caoyang
2022-04-02 10:01:36 +08:00
parent 55e441f56c
commit 65b7487eb6
2 changed files with 8 additions and 8 deletions
@@ -252,7 +252,7 @@
<div class="split-row">
<div class="row-left">
<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>
<div class="row-right">
@@ -747,23 +747,23 @@
for(let i = this.contentList.length;i>this.addIndex;i--){
this.contentList[i+lengthImg-1]=this.contentList[i-1]
}
if(data && data.length > 0){
data.forEach(item => {
if(imgs && imgs.length > 0){
imgs.forEach(item => {
this.contentList[++this.addIndex]={
id:'',
type:'IMG',
itemContent:item.id,
itemContent:item.response.result.id,
thumbUrl:item.thumbUrl
}
})
}
// this.$refs.uploadFile2.visible=false
this.splitVisible=false
// console.log('conteend',this.contentList)
console.log('conteend',data,this.contentList)
},
//点击图片预览
preImg(item){
this.itemSrc=item.itemContent
this.itemSrc=item.thumbUrl?item.thumbUrl:item.itemContent
this.preImgVisible=true
},
//关闭预览图片
@@ -806,7 +806,7 @@
if(this.rowCount>0&&this.colCount>0){
let tableList=[]
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++){
let rowTableList=[]
tableStr+='<tr>'
@@ -559,7 +559,7 @@
onOk:
async () => {
axios({
url: '/jero-boot/split/sarFileSplitMenu/copyMenuNotChildrenall',
url: '/jero-boot/split/sarFileSplitItems/batchCopyItems',
method: 'get',
params: params,
// transformRequest: [function (data) {