|
|
|
@ -116,7 +116,7 @@ SOFTWARE.
|
|
|
|
<div class="select-item" v-if="tempObj && tempObj.content && tempObj.content.articles">
|
|
|
|
<div class="select-item" v-if="tempObj && tempObj.content && tempObj.content.articles">
|
|
|
|
<WxNews :objData="tempObj.content.articles"></WxNews>
|
|
|
|
<WxNews :objData="tempObj.content.articles"></WxNews>
|
|
|
|
<el-row class="ope-row">
|
|
|
|
<el-row class="ope-row">
|
|
|
|
<el-button type="danger" icon="el-icon-delete" circle @click="deleteTempObj"></el-button>
|
|
|
|
<el-button type="danger" icon="el-icon-delete" circle @click="deleteTempObj" />
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="!tempObj.content || !tempObj.content.articles">
|
|
|
|
<div v-if="!tempObj.content || !tempObj.content.articles">
|
|
|
|
@ -183,12 +183,10 @@ export default {
|
|
|
|
nameMaxLength: 0, // 菜单名称最大长度;1 级是 4 字符;2 级是 7 字符;
|
|
|
|
nameMaxLength: 0, // 菜单名称最大长度;1 级是 4 字符;2 级是 7 字符;
|
|
|
|
showConfigureContent: true, // 是否展示配置内容;如果有子菜单,就不显示配置内容
|
|
|
|
showConfigureContent: true, // 是否展示配置内容;如果有子菜单,就不显示配置内容
|
|
|
|
hackResetWxReplySelect: false, // 重置 WxReplySelect 组件
|
|
|
|
hackResetWxReplySelect: false, // 重置 WxReplySelect 组件
|
|
|
|
|
|
|
|
|
|
|
|
tempObj: {}, // 右边临时变量,作为中间值牵引关系
|
|
|
|
tempObj: {}, // 右边临时变量,作为中间值牵引关系
|
|
|
|
tempSelfObj: { // 一些临时值放在这里进行判断,如果放在 tempObj,由于引用关系,menu 也会多了多余的参数
|
|
|
|
tempSelfObj: { // 一些临时值放在这里进行判断,如果放在 tempObj,由于引用关系,menu 也会多了多余的参数
|
|
|
|
},
|
|
|
|
},
|
|
|
|
visible2: false, //素材内容 "选择素材"按钮弹框显示隐藏
|
|
|
|
dialogNewsVisible: false, // 跳转图文时的素材选择弹窗
|
|
|
|
tableData:[], //素材内容弹框数据,
|
|
|
|
|
|
|
|
menuOptions: [{
|
|
|
|
menuOptions: [{
|
|
|
|
value: 'view',
|
|
|
|
value: 'view',
|
|
|
|
label: '跳转网页'
|
|
|
|
label: '跳转网页'
|
|
|
|
@ -220,7 +218,6 @@ export default {
|
|
|
|
value: 'location_select',
|
|
|
|
value: 'location_select',
|
|
|
|
label: '选择地理位置'
|
|
|
|
label: '选择地理位置'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
dialogNewsVisible: false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 公众号账号列表
|
|
|
|
// 公众号账号列表
|
|
|
|
accounts: [],
|
|
|
|
accounts: [],
|
|
|
|
@ -357,13 +354,13 @@ export default {
|
|
|
|
if (!item.children || item.children.length <= 0) {
|
|
|
|
if (!item.children || item.children.length <= 0) {
|
|
|
|
this.$set( item, 'children',[])
|
|
|
|
this.$set( item, 'children',[])
|
|
|
|
this.$delete( item, 'type')
|
|
|
|
this.$delete( item, 'type')
|
|
|
|
|
|
|
|
this.$delete( item, 'menuKey')
|
|
|
|
this.$delete( item, 'miniProgramAppId')
|
|
|
|
this.$delete( item, 'miniProgramAppId')
|
|
|
|
this.$delete( item, 'miniProgramPagePath')
|
|
|
|
this.$delete( item, 'miniProgramPagePath')
|
|
|
|
this.$delete( item, 'url')
|
|
|
|
this.$delete( item, 'url')
|
|
|
|
this.$delete( item, 'reply')
|
|
|
|
this.$delete( item, 'reply')
|
|
|
|
// TODO 芋艿:需要搞的属性弄下
|
|
|
|
// TODO 芋艿:需要搞的属性弄下
|
|
|
|
|
|
|
|
|
|
|
|
this.$delete( item, 'key')
|
|
|
|
|
|
|
|
this.$delete( item, 'article_id')
|
|
|
|
this.$delete( item, 'article_id')
|
|
|
|
this.$delete( item, 'textContent')
|
|
|
|
this.$delete( item, 'textContent')
|
|
|
|
this.showConfigureContent = false
|
|
|
|
this.showConfigureContent = false
|
|
|
|
@ -470,14 +467,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// ======================== 菜单编辑(素材选择) ========================
|
|
|
|
// TODO 芋艿:未归类
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteTempObj(){
|
|
|
|
|
|
|
|
this.$delete(this.tempObj,'repName')
|
|
|
|
|
|
|
|
this.$delete(this.tempObj,'repUrl')
|
|
|
|
|
|
|
|
this.$delete(this.tempObj,'content')
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
openMaterial() {
|
|
|
|
openMaterial() {
|
|
|
|
this.dialogNewsVisible = true
|
|
|
|
this.dialogNewsVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -495,6 +485,11 @@ export default {
|
|
|
|
item.content.articles = item.content.articles.slice(0,1)
|
|
|
|
item.content.articles = item.content.articles.slice(0,1)
|
|
|
|
this.tempObj.content = item.content
|
|
|
|
this.tempObj.content = item.content
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
deleteTempObj() {
|
|
|
|
|
|
|
|
this.$delete(this.tempObj,'repName')
|
|
|
|
|
|
|
|
this.$delete(this.tempObj,'repUrl')
|
|
|
|
|
|
|
|
this.$delete(this.tempObj,'content')
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|