[fix bug] 一些数据字典回显的处理

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