评论调整

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"
@@ -96,9 +96,11 @@
{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: '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: {