内容发布

This commit is contained in:
yanran200730
2022-03-18 13:47:30 +08:00
parent a93b78de4f
commit af65ba44ab
5 changed files with 294 additions and 32 deletions

View File

@@ -1,8 +1,5 @@
<template>
<ai-list class="notice">
<template slot="title">
<ai-title :title="moduleName" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" @change="search.current = 1, getList()"></ai-title>
</template>
<ai-list class="notice" isTabs>
<template slot="content">
<ai-search-bar class="search-bar">
<template #left>
@@ -36,10 +33,11 @@
</div>
</template>
</el-table-column>
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
</div>
</template>
@@ -57,7 +55,8 @@
props: {
instance: Function,
dict: Object,
moduleName: String
moduleName: String,
areaId: String
},
data() {
@@ -65,8 +64,7 @@
search: {
current: 1,
size: 10,
title: '',
areaId: ''
title: ''
},
currIndex: -1,
areaList: [],
@@ -90,7 +88,6 @@
},
created() {
this.search.areaId = this.user.info.areaId
this.getList()
},
@@ -99,7 +96,8 @@
this.instance.post(`/app/appcontentinfo/list`, null, {
params: {
moduleId: this.$route.query.moduleId,
...this.search
...this.search,
areaId: this.areaId
}
}).then(res => {
if (res.code == 0) {
@@ -127,6 +125,15 @@
id: id || ''
}
})
},
toDetail(id) {
this.$emit('change', {
type: 'Detail',
params: {
id: id || ''
}
})
}
}
}