diff --git a/ebts-ui/package.json b/ebts-ui/package.json index 209a3b3..32c0861 100644 --- a/ebts-ui/package.json +++ b/ebts-ui/package.json @@ -1,5 +1,5 @@ { - "name": "HCY", + "name": "EBTS", "version": "3.2.0", "description": "EBTS", "author": "Clay", diff --git a/ebts-ui/src/api/system/dict/data.js b/ebts-ui/src/api/system/dict/data.js index d7aca89..f2dfbf7 100644 --- a/ebts-ui/src/api/system/dict/data.js +++ b/ebts-ui/src/api/system/dict/data.js @@ -25,6 +25,16 @@ export function getDicts(dictType) { }) } +// 根据加密字典类型查询字典数据信息 +export function getEncodeDicts(dictType) { + return request({ + url: '/system/dict/data/encode/' + dictType, + method: 'get' + }) +} + + + // 新增字典数据 export function addData(data) { return request({ @@ -58,4 +68,4 @@ export function exportData(query) { method: 'get', params: query }) -} \ No newline at end of file +} diff --git a/ebts-ui/src/main.js b/ebts-ui/src/main.js index b2774cd..220df5a 100644 --- a/ebts-ui/src/main.js +++ b/ebts-ui/src/main.js @@ -16,7 +16,7 @@ import permission from './directive/permission' import './assets/icons' // icon import './permission' // permission control -import { getDicts } from "@/api/system/dict/data"; +import { getDicts,getEncodeDicts } from "@/api/system/dict/data"; import { getConfigKey } from "@/api/system/config"; import { parseTime, resetForm, addDateRange, addCreateDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/hcy"; import Pagination from "@/components/Pagination"; @@ -25,6 +25,7 @@ import RightToolbar from "@/components/RightToolbar" // 全局方法挂载 Vue.prototype.getDicts = getDicts +Vue.prototype.getEncodeDicts = getEncodeDicts Vue.prototype.getConfigKey = getConfigKey Vue.prototype.parseTime = parseTime Vue.prototype.resetForm = resetForm diff --git a/ebts-ui/src/views/sist/article/components/article.vue b/ebts-ui/src/views/sist/article/components/article.vue index 137b685..7b7d399 100644 --- a/ebts-ui/src/views/sist/article/components/article.vue +++ b/ebts-ui/src/views/sist/article/components/article.vue @@ -75,9 +75,9 @@ @@ -102,9 +102,9 @@ @@ -231,7 +231,7 @@ export default { this.getDicts("article_site_type").then(response => { this.sitetypeOptions = response.data; }); - this.getDicts("article_type").then(response => { + this.getEncodeDicts("article_type").then(response => { this.articleTypeOptions = response.data; }); this.getDicts("is_top").then(response => {