评论调整

This commit is contained in:
aixianling
2022-06-06 09:16:39 +08:00
parent c353a19fe5
commit eda3252c95
2 changed files with 163 additions and 161 deletions

View File

@@ -27,7 +27,7 @@
</el-form-item>
<el-form-item label="是否可评论" style="width: 100%;" prop="isComment" :rules="[{required: true, message: '请选择是否可评论'}]">
<el-radio-group v-model="form.isComment">
<el-radio v-for="op in dict.getDict('yseOrNo')" :key="op.dictValue" :label="op.dictValue">{{ op.dictName }}</el-radio>
<el-radio v-for="op in dict.getDict('yesOrNo')" :key="op.dictValue" :label="op.dictValue">{{ op.dictName }}</el-radio>
</el-radio-group>
</el-form-item>
</el-form>

View File

@@ -12,7 +12,7 @@
<ai-table
:tableData="tableData"
:col-configs="colConfigs"
:total="total"
:total="total" :dict="dict"
style="margin-top: 6px;"
:current.sync="search.current"
:size.sync="search.size"
@@ -70,7 +70,7 @@
</template>
<script>
export default {
export default {
name: 'List',
props: {
@@ -93,12 +93,14 @@
total: 10,
cateList: [],
colConfigs: [
{ prop: 'moduleName', label: '模块名称', align: 'left', width: '200px' },
{ prop: 'menuName', label: '关联菜单', align: 'center' },
{ prop: 'categoryStr', label: '文章分类', align: 'center' },
{ prop: 'needExamine', label: '是否审核', align: 'center', formart: v => v === '0' ? '否' : '是' }
{prop: 'moduleName', label: '模块名称', align: 'left', width: '200px'},
{prop: 'menuName', label: '关联菜单', align: 'center'},
{prop: 'categoryStr', label: '文章分类', align: 'center'},
{prop: 'needExamine', label: '是否审核', align: 'center', dict: 'yesOrNo'},
{prop: 'isComment', label: '是否可以评论', align: 'center', dict: 'yesOrNo'}
],
cateColConfigs: [
{prop: 'showIndex', label: '排序', align: 'center', width: 80},
{prop: 'categoryName', label: '分类名称', align: 'center'}
],
form: {
@@ -131,7 +133,7 @@
})
},
getCateList () {
getCateList() {
this.instance.post(`/app/appcontentmodulecategory/list`, null, {
params: {
...this.cateSearch,
@@ -168,7 +170,7 @@
})
},
onConfirm (flag) {
onConfirm(flag) {
if (!flag && !this.id) {
this.isShowAdd = false
@@ -198,7 +200,7 @@
})
},
onClose () {
onClose() {
this.id = ''
this.moduleId = ''
this.form.categoryName = ''
@@ -214,14 +216,14 @@
})
}
}
}
}
</script>
<style lang="scss" scoped>
.notice {
.notice {
.catewrapper {
display: flex;
align-items: center;
}
}
}
</style>