拆分图片上传问题

This commit is contained in:
caoyang
2022-04-01 18:19:53 +08:00
parent 9fafb83c43
commit c146d817b1
5 changed files with 110 additions and 62 deletions
@@ -16,10 +16,10 @@
@select="onSelect"
>
<template slot="title" slot-scope="{ title }">
<span v-if="title.indexOf(searchValue) > -1">
<span v-if="title.indexOf(searchValue) > -1" :title="title">
{{ title.substr(0, title.indexOf(searchValue)) }}<span style="color: #f50">{{ searchValue }}</span>{{ title.substr(title.indexOf(searchValue) + searchValue.length) }}
</span>
<span v-else>{{ title }}</span>
<span v-else :title="title">{{ title }}</span>
</template>
</a-tree>
<div v-if="NodeTreeItem" :style="tmpStyle" >
@@ -251,7 +251,7 @@
getAddForm: 'language/switch/getForm', // 表单的字段
addInfo: '/jero-boot/split/sarFileSplitItems/addSplitItems', //新增
updateInfo:'/jero-boot/split/sarFileSplitItems/updateSplitItems', //编辑
getDocumentInfo:'split/sarFileSplitInfo/queryById',
getDocumentInfo:'split/sarFileSplitItems/getSplitItemsById',
importZipUrl: '/split/sarFileSplitItems/importSplitItems',//导入
},
urlBatSet:{
@@ -483,6 +483,7 @@
}
}).finally(()=>{
this.flag=false
this.menuRightVisible=false
})
}
}
@@ -505,6 +506,7 @@
}
}).finally(()=>{
this.flag=false
this.menuRightVisible=false
})
}
},
@@ -550,41 +552,46 @@
infoIds:infoIds.join(','),
menuids:menuIds.join(',')
}
this.$confirm({
title: this.$t('ConfirmReplication'),
content: '',
onOk:
async () => {
axios({
url: '/jero-boot/split/sarFileSplitMenu/copyMenuNotChildrenall',
method: 'get',
params: params,
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// let ret = ''
// for (let it in data) {
// ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
// }
// return ret
// }],
headers: {
// 'Content-Type': 'application/x-www-form-urlencoded',
'X-Access-Token':this.token
}
})
.then( (res) => {
if(res.data.success){
this.$message.success(this.$t('OperationSuccessful'))
// this.loadData()
this.loadMenuData()
eventBUs.$emit('searchReset')
}else{
this.$message.warning(this.$t('operationFailed'))
if(menuIds&&menuIds.length>0) {
this.$confirm({
title: this.$t('ConfirmReplication'),
content: '',
onOk:
async () => {
axios({
url: '/jero-boot/split/sarFileSplitMenu/copyMenuNotChildrenall',
method: 'get',
params: params,
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// let ret = ''
// for (let it in data) {
// ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
// }
// return ret
// }],
headers: {
// 'Content-Type': 'application/x-www-form-urlencoded',
'X-Access-Token': this.token
}
})
.then((res) => {
if (res.data.success) {
this.$message.success(this.$t('OperationSuccessful'))
// this.loadData()
this.loadMenuData()
eventBUs.$emit('searchReset')
} else {
this.$message.warning(this.$t('operationFailed'))
}
})
},
onCancel() {
},
onCancel() {},
});
})
}else if(menuIds.length==0){
this.$message.warning(this.$t('PleaseSelectData'))
}
},
//新增
handleAddManage(){
@@ -768,7 +775,7 @@
ids:val.id
}
this.$confirm({
title: this.$t('ConfirmBatchDeletion'),
title: this.$t('areYouSure'),
content: '',
onOk:
async () => {
@@ -958,7 +965,7 @@
display: flex;
justify-content: space-between;
.split-detail-left{
min-width: 260px;
width: 260px;
padding-right: 20px;
border-right: 1px solid #666666;
.menu-item{
@@ -1054,4 +1061,17 @@
text-align: center;
}
}
.split-detail-left{
.ant-tree-treenode-switcher-open{
.ant-tree-node-content-wrapper-normal{
width:200px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.ant-tree-title{
}
}
}
</style>