内容发布
This commit is contained in:
11
packages/3.0.0/AppContentInfo/AppContentInfo.vue
vendored
11
packages/3.0.0/AppContentInfo/AppContentInfo.vue
vendored
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="doc-circulation ailist-wrapper">
|
<div class="doc-circulation ailist-wrapper">
|
||||||
<keep-alive :include="['List']">
|
<keep-alive :include="['List']">
|
||||||
<component ref="component" :moduleId="moduleId" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component>
|
<component ref="component" :moduleName="moduleName" :moduleId="moduleId" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -25,7 +25,8 @@
|
|||||||
component: 'List',
|
component: 'List',
|
||||||
params: {},
|
params: {},
|
||||||
moduleId: '',
|
moduleId: '',
|
||||||
include: []
|
include: [],
|
||||||
|
moduleName: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -37,6 +38,12 @@
|
|||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.moduleId = this.$route.query.moduleId
|
this.moduleId = this.$route.query.moduleId
|
||||||
|
|
||||||
|
this.instance.post('/app/appcontentmoduleinfo/queryDetailById?id=' + this.$route.query.moduleId).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.moduleName = res.data.moduleName
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-detail class="content-add">
|
<ai-detail class="content-add">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title :title="params.id ? '编辑内容发布' : '添加内容发布'" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
|
<ai-title :title="params.id ? '编辑' + moduleName : '添加' + moduleName" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
|
||||||
</ai-title>
|
</ai-title>
|
||||||
</template>
|
</template>
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
@@ -99,7 +99,8 @@
|
|||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object,
|
dict: Object,
|
||||||
params: Object
|
params: Object,
|
||||||
|
moduleName: String
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-list class="notice">
|
<ai-list class="notice">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title title="内容发布" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" @change="search.current = 1, getList()"></ai-title>
|
<ai-title :title="moduleName" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" @change="search.current = 1, getList()"></ai-title>
|
||||||
</template>
|
</template>
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
<ai-search-bar class="search-bar">
|
<ai-search-bar class="search-bar">
|
||||||
@@ -56,7 +56,8 @@
|
|||||||
|
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object
|
dict: Object,
|
||||||
|
moduleName: String
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Reference in New Issue
Block a user