Commit 8f09696d by 前端

修复bug

1 parent fbc5a1b3
...@@ -14466,9 +14466,9 @@ ...@@ -14466,9 +14466,9 @@
} }
}, },
"word-edit": { "word-edit": {
"version": "1.2.0", "version": "1.2.2",
"resolved": "https://registry.npmmirror.com/word-edit/-/word-edit-1.2.0.tgz", "resolved": "https://registry.npmmirror.com/word-edit/-/word-edit-1.2.2.tgz",
"integrity": "sha512-w4/vSz07prgtP/EP+NBy7qiXrCc17h5rAay48uyIGkiVxbOG6z2I12KKfVBnEwwL9xt+S4jx5W/MptzPrihv7A==", "integrity": "sha512-/go0xmQfhRDWFjYHg5Y3ylSI+Dl+exSC2tUJFSdEKfQrZOAKAnxtHMWq9u/pCSNJkmXahpPUTVq3eTmCVG5xLw==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"vuex": "^3.1.2", "vuex": "^3.1.2",
"wangeditor": "^4.7.12", "wangeditor": "^4.7.12",
"word-edit": "^1.2.0" "word-edit": "^1.2.2"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -132,7 +132,7 @@ const SEX = { ...@@ -132,7 +132,7 @@ const SEX = {
} }
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import Preview from '../components/preview.vue' import Preview from '../../sop/editSop/components/FriendGroupPreview/index.vue'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
export default { export default {
name: 'BasicInof', name: 'BasicInof',
......
...@@ -491,7 +491,9 @@ export default { ...@@ -491,7 +491,9 @@ export default {
staffName: item.staffName staffName: item.staffName
} }
}) })
let attachmentList = this.$refs.welcome.previewList // let attachmentList = this.$refs.welcome.previewList
let attachmentList = JSON.parse(JSON.stringify(this.$refs.welcome.previewList))
const material = previewList.filter(item => item.attType != ATT_TYPE.TEXT) const material = previewList.filter(item => item.attType != ATT_TYPE.TEXT)
let materialType = 0 let materialType = 0
if (material && material.length > 0) { if (material && material.length > 0) {
...@@ -536,6 +538,7 @@ export default { ...@@ -536,6 +538,7 @@ export default {
if (params.sendType == 2) { if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
} }
this.addLoading = true this.addLoading = true
this.$apis.friendGroup.momentInsert(params).then(res => { this.$apis.friendGroup.momentInsert(params).then(res => {
this.addLoading = false this.addLoading = false
......
...@@ -55,15 +55,17 @@ ...@@ -55,15 +55,17 @@
</div> </div>
</template> </template>
<template v-else-if="item.attType == 4"> <template v-else-if="item.attType == 4">
<div class="welcome-activity-panel" >
<div class="welcome-activity-panel">
<div class="welcome-activity-box"> <div class="welcome-activity-box">
<div class="welcome-activity-icon"> <div class="welcome-activity-icon">
<img :src="item.attContent.picurl" v-if="item.attContent.picurl" alt=""/> <img :src="handleContentJson(item.attContent).picurl"
v-if="handleContentJson(item.attContent).picurl" alt=""/>
<img src="@/assets/welcomeWord/coupon.png" v-else/> <img src="@/assets/welcomeWord/coupon.png" v-else/>
</div> </div>
<div class="welcome-activity-desc"> <div class="welcome-activity-desc">
<div class="model-item-title">{{ item.attContent.title }}</div> <div class="model-item-title">{{ handleContentJson(item.attContent).title }}</div>
<div class="model-item-content">{{ item.attContent.desc }}</div> <div class="model-item-content">{{ handleContentJson(item.attContent).desc }}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -156,6 +158,15 @@ export default { ...@@ -156,6 +158,15 @@ export default {
}, },
deep: true deep: true
} }
},
methods: {
handleContentJson(val) {
if (typeof (val) == 'string') {
return JSON.parse(val)
} else {
return val
}
},
} }
} }
</script> </script>
...@@ -267,6 +278,7 @@ export default { ...@@ -267,6 +278,7 @@ export default {
} }
} }
} }
.img-list { .img-list {
margin-right: 3px; margin-right: 3px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!