diff --git a/src/views/modules/news/modulecategory-add-or-update.vue b/src/views/modules/news/modulecategory-add-or-update.vue index e7a8f13..01ca163 100644 --- a/src/views/modules/news/modulecategory-add-or-update.vue +++ b/src/views/modules/news/modulecategory-add-or-update.vue @@ -7,6 +7,17 @@ + + + + + + 点击选择模块样式 @@ -118,7 +129,8 @@ export default { }], moduleStyleName: '', moduleStyleListVisible: false, - moduleStyleList: [] + moduleStyleList: [], + categoryTypeList: [] } }, components: { @@ -128,6 +140,7 @@ export default { this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}` this.dataForm.imgUrl = '' this.getModuleStyleList() + this.getCategoryTypeList() }, computed: { dataRule () { @@ -182,6 +195,14 @@ export default { this.moduleStyleList = res.data }).catch(() => {}) }, + getCategoryTypeList () { + this.$http.get(`/sys/dict/listSimple/module_category_type`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.categoryTypeList = res.data + }).catch(() => {}) + }, setModuleStyle (data) { this.dataForm.moduleStyle = data.moduleStyle this.moduleStyleName = data.moduleStyleName