[fix bug] 一些数据字典回显的处理
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports = {
|
||||
poster: 'Poster',
|
||||
answerNum: 'replies',
|
||||
top: '【top】',
|
||||
cancelTop: 'untop',
|
||||
cancelTop: 'Cancel Top up',
|
||||
setTop: 'Set To Top',
|
||||
answerQuestion: 'reply to a question',
|
||||
word: 'word',
|
||||
|
||||
@@ -621,7 +621,7 @@ module.exports = {
|
||||
// OCR文本识别
|
||||
ocrTextRecognition: {
|
||||
upload: 'Upload',
|
||||
getFile: 'Get files',
|
||||
getFile: 'Get Files',
|
||||
standardCategory: 'Regulation Category',
|
||||
standardNumber: 'Regulation No.',
|
||||
standardName: 'Regulation Name',
|
||||
@@ -646,9 +646,9 @@ module.exports = {
|
||||
// 我的消息
|
||||
my: {
|
||||
myMessage: 'My Message',
|
||||
title: 'title',
|
||||
title: 'Title',
|
||||
publisher: 'publisher',
|
||||
readingStatus: 'readingStatus',
|
||||
readingStatus: 'Reading Status',
|
||||
messageContent: 'Message Content',
|
||||
messageType: 'Message Type',
|
||||
allLabelsRead: 'All Mark as Read',
|
||||
|
||||
@@ -144,9 +144,9 @@ const user = {
|
||||
GetPermissionList ({ commit }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
queryPermissionsByUser().then(response => {
|
||||
const menuData = response.result.menu
|
||||
const authData = response.result.auth
|
||||
const allAuthData = response.result.allAuth
|
||||
const menuData = (response.result || {}).menu || []
|
||||
const authData = (response.result || {}).auth || []
|
||||
const allAuthData = (response.result || {}).allAuth
|
||||
// Vue.ls.set(USER_AUTH,authData);
|
||||
sessionStorage.setItem(USER_AUTH, JSON.stringify(authData))
|
||||
sessionStorage.setItem(SYS_BUTTON_AUTH, JSON.stringify(allAuthData))
|
||||
|
||||
@@ -247,7 +247,8 @@ export default {
|
||||
title: this.$t('status'),
|
||||
align: 'center',
|
||||
width: 80,
|
||||
dataIndex: 'status_dictText'
|
||||
dataIndex: 'status_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@@ -142,7 +142,7 @@ export default {
|
||||
align: 'center',
|
||||
dataIndex: 'msgCategory_dictText',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('message.my.publisher'),
|
||||
|
||||
@@ -239,7 +239,8 @@ export default {
|
||||
align: 'center',
|
||||
width: 90,
|
||||
dataIndex: 'sex_dictText',
|
||||
sorter: true
|
||||
sorter: true,
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('phoneNumber'),
|
||||
@@ -275,7 +276,8 @@ export default {
|
||||
title: this.$t('status'),
|
||||
align: 'center',
|
||||
width: 80,
|
||||
dataIndex: 'status_dictText'
|
||||
dataIndex: 'status_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('operation'),
|
||||
|
||||
@@ -100,7 +100,8 @@ export default {
|
||||
title: this.$t('user.gender'),
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'sex_dictText'
|
||||
dataIndex: 'sex_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('phoneNumber'),
|
||||
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'fieldShowType_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('system.tag.fieldLength'),
|
||||
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
title: this.$t('system.tag.attributeType'),
|
||||
width: 100,
|
||||
dataIndex: 'fieldShowType_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('system.tag.fieldLength'),
|
||||
|
||||
@@ -96,7 +96,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 100,
|
||||
dataIndex: 'attributeType_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{
|
||||
title: this.$t('system.tag.describe'),
|
||||
|
||||
Reference in New Issue
Block a user