Compare commits

...

3 Commits

Author SHA1 Message Date
Orange
607eec6c44 perf: 允许用户修改Source 2021-02-02 04:41:54 -06:00
fit2bot
28daf41fb5 fix: 临时调整因为Chrome的兼容性问题导致的日期计算错误 (#607)
* fix: 临时调整因为Chrome的兼容性问题导致的日期计算错误

* fix: 修复工单字段展示问题

Co-authored-by: Orange <orangemtony@gmail.com>
2021-01-28 19:28:55 +08:00
fit2bot
e45720af1b fix: 修复工单列表字段展示错误 (#604)
Co-authored-by: Orange <orangemtony@gmail.com>
2021-01-26 18:08:31 +08:00
5 changed files with 11 additions and 11 deletions

View File

@@ -77,8 +77,11 @@ export function toSafeLocalDateStr(d) {
return ''
}
const date = safeDate(d)
// let date_s = date.toLocaleString(getUserLang(), {hour12: false});
const date_s = date.toLocaleString(getUserLang(), { hourCycle: 'h23' })
// const date_s = date.toLocaleString(getUserLang(), { hourCycle: 'h23' })
const date_s =
date.toLocaleDateString(getUserLang(), { hourCycle: 'h23' }) +
' ' +
date.toLocaleTimeString(getUserLang(), { hourCycle: 'h23' })
return date_s
}

View File

@@ -151,11 +151,11 @@ export default {
},
{
key: this.$t('applications.appName'),
value: this.object.meta.apply_application_group
value: this.object.meta.apply_application_group.toString()
},
{
key: this.$t('tickets.SystemUser'),
value: this.object.meta.apply_system_user_group
value: this.object.meta.apply_system_user_group.toString()
},
{
key: this.$t('common.dateStart'),

View File

@@ -144,15 +144,15 @@ export default {
// },
{
key: this.$t('tickets.IP'),
value: this.object.meta.apply_ip_group
value: this.object.meta.apply_ip_group.toString()
},
{
key: this.$t('tickets.Hostname'),
value: this.object.meta.apply_hostname_group
value: this.object.meta.apply_hostname_group.toString()
},
{
key: this.$t('tickets.SystemUser'),
value: this.object.meta.apply_system_user_group
value: this.object.meta.apply_system_user_group.toString()
},
{
key: this.$t('common.dateStart'),

View File

@@ -43,7 +43,7 @@ export default {
}
},
{
prop: 'user_display',
prop: 'applicant_display',
label: this.$t('tickets.user'),
sortable: 'custom'
},

View File

@@ -50,9 +50,6 @@ export default {
return this.$route.meta.action !== 'update' || formValue.source !== 'local'
}
},
source: {
hidden: () => { return true }
},
password: {
component: UserPassword,
hidden: (formValue) => {