评论调整
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否可评论" style="width: 100%;" prop="isComment" :rules="[{required: true, message: '请选择是否可评论'}]">
|
<el-form-item label="是否可评论" style="width: 100%;" prop="isComment" :rules="[{required: true, message: '请选择是否可评论'}]">
|
||||||
<el-radio-group v-model="form.isComment">
|
<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-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total" :dict="dict"
|
||||||
style="margin-top: 6px;"
|
style="margin-top: 6px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'List',
|
name: 'List',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
@@ -93,12 +93,14 @@
|
|||||||
total: 10,
|
total: 10,
|
||||||
cateList: [],
|
cateList: [],
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{ prop: 'moduleName', label: '模块名称', align: 'left', width: '200px' },
|
{prop: 'moduleName', label: '模块名称', align: 'left', width: '200px'},
|
||||||
{ prop: 'menuName', label: '关联菜单', align: 'center' },
|
{prop: 'menuName', label: '关联菜单', align: 'center'},
|
||||||
{ prop: 'categoryStr', 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: [
|
cateColConfigs: [
|
||||||
|
{prop: 'showIndex', label: '排序', align: 'center', width: 80},
|
||||||
{prop: 'categoryName', label: '分类名称', align: 'center'}
|
{prop: 'categoryName', label: '分类名称', align: 'center'}
|
||||||
],
|
],
|
||||||
form: {
|
form: {
|
||||||
@@ -131,7 +133,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getCateList () {
|
getCateList() {
|
||||||
this.instance.post(`/app/appcontentmodulecategory/list`, null, {
|
this.instance.post(`/app/appcontentmodulecategory/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.cateSearch,
|
...this.cateSearch,
|
||||||
@@ -168,7 +170,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onConfirm (flag) {
|
onConfirm(flag) {
|
||||||
if (!flag && !this.id) {
|
if (!flag && !this.id) {
|
||||||
this.isShowAdd = false
|
this.isShowAdd = false
|
||||||
|
|
||||||
@@ -198,7 +200,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onClose () {
|
onClose() {
|
||||||
this.id = ''
|
this.id = ''
|
||||||
this.moduleId = ''
|
this.moduleId = ''
|
||||||
this.form.categoryName = ''
|
this.form.categoryName = ''
|
||||||
@@ -214,14 +216,14 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.notice {
|
.notice {
|
||||||
.catewrapper {
|
.catewrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user