+
+
+
+
![]()
+
+
+
+
{{$t('Add')}}
+
{{$t('delete')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('contentValidity')}}
-
-
-
-
-
-
-
![]()
-
-
-
{{$t('Add')}}
-
{{$t('delete')}}
-
-
-
-
-
-
+
+
+
+
+
{
+ if(res.success){
+ this.contentList=[...res.result]
+
+ console.log('res',res.result)
+ }
+ }).finally(()=>{
+ this.loading=false
+ })
+ },
afterVisibleChange(){
},
@@ -616,10 +642,70 @@
},
//保存
splitSave(){
- console.log('formInline',this.formInline)
+ // console.log('formInline',this.formInline)
this.$refs.splitEditForm.validate(valid=>{
if(valid){
+ this.submitFlag=true
+ this.confirmLoading = true
+ if(this.submitFlag){
+ let url = ''
+ if (this.formInline.id) {
+ url = this.url.updateInfo
+ } else {
+ url = this.url.addInfo
+ }
+ let params = JSON.parse(JSON.stringify(this.formInline))
+ // console.log('item',this.item,JSON.stringify(this.item)=="{}")
+ if(JSON.stringify(this.item)=="{}"){
+ params.info_id=this.infoId
+ params.menu_id=this.menuId
+ }
+ // params.menuId=this.menuId
+ params.itemValEOList=this.contentList
+ // console.log('paramsformInline',params)
+ axios({
+ url: url,
+ method: 'post',
+ data: params,
+ headers: {
+ 'X-Access-Token':this.token
+ }
+ })
+ .then( (res) =>{
+ if (res.data.success) {
+ this.confirmLoading = false
+ this.$message.success(this.$t('OperationSuccessful'))
+ this.visible=false
+ // this.$emit('closeVisible',false)
+ eventBUs.$emit('searchReset')
+ }else{
+ this.$message.warning(this.$t('operationFailed'))
+ }
+ })
+ .catch( (error) =>{
+ console.log(error);
+ }).finally(()=>{
+ this.confirmLoading=false
+ this.submitFlag=false
+ })
+ }
+
+ // postAction(url, params).then((res) => {
+ // if (res.success) {
+ // this.confirmLoading = false
+ // this.$message.success(this.$t('OperationSuccessful'))
+ // eventBUs.$emit('searchReset')
+ // this.$emit('addFormClick')
+ // } else {
+ // this.confirmLoading = false
+ // if (res.message.indexOf('发布日期不能大于') >= 0) {
+ // this.$message.warning(res.message)
+ // } else {
+ // this.$message.warning(this.$t('operationFailed'))
+ // }
+ // }
+ // })
}
})
},
@@ -638,9 +724,9 @@
}
for(let j=0;j 0){
imgs.forEach(item => {
this.contentList[++this.addIndex]={
+ id:'',
type:'IMG',
- src:item.thumbUrl
+ itemContent:item.thumbUrl
}
})
}
@@ -679,7 +766,7 @@
},
//点击图片预览
preImg(item){
- this.itemSrc=item.src
+ this.itemSrc=item.itemContent
this.preImgVisible=true
},
//关闭预览图片
@@ -845,7 +932,7 @@
}
})
this.$set(this, 'rules', rules)
- console.log(this.rules)
+ // console.log('rules',this.rules)
this.isFormInline = true
this.confirmLoading = false
},
diff --git a/jero-web/src/views/documentManage/splitting/modules/SplitDetail.vue b/jero-web/src/views/documentManage/splitting/modules/SplitDetail.vue
index d60f92808..4d57a57c2 100644
--- a/jero-web/src/views/documentManage/splitting/modules/SplitDetail.vue
+++ b/jero-web/src/views/documentManage/splitting/modules/SplitDetail.vue
@@ -105,10 +105,13 @@
:url="url"
:flag="'4'"
:OperationList="OperationList"
+ :infoId="infoId"
+ :menuId="menuId"
showAction
@onSelectChange="onSelectChange"
@deleteClick="deleteClick"
@editClick="editClick"
+ @showContent="showContent"
>
@@ -174,7 +177,7 @@
-
+
@@ -184,9 +187,10 @@