update 基本完成国际化
This commit is contained in:
@@ -179,7 +179,7 @@ const addOrUpdateConfigs = {
|
||||
},
|
||||
{
|
||||
name: 'files',
|
||||
label: i18n.t('upload'),
|
||||
label: i18n.t('upload.title'),
|
||||
fieldType: 'array',
|
||||
component: () => import('@/components/base-upload'),
|
||||
props: {
|
||||
|
||||
@@ -62,7 +62,7 @@ const addOrUpdateConfigs = {
|
||||
{
|
||||
name: 'files',
|
||||
fieldType: 'array',
|
||||
label: i18n.t('upload'),
|
||||
label: i18n.t('upload.title'),
|
||||
component: () => import('@/components/base-upload'),
|
||||
props: {
|
||||
// 上传组件需要的 props
|
||||
|
||||
@@ -38,14 +38,14 @@ import { calcMaxHeight } from '@/utils'
|
||||
import { timeFilter } from '@/utils/filters'
|
||||
const tableConfigs = [
|
||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
||||
{ prop: 'name', name: i18n.t('categoryName.type') },
|
||||
{ prop: 'name', name: i18n.t('categoryName') },
|
||||
{ prop: 'operations', name: i18n.t('handle'), width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||
]
|
||||
|
||||
const addOrUpdateConfigs = {
|
||||
type: 'dialog',
|
||||
infoUrl: '/monitoring/reportSheetCategory',
|
||||
fields: [{ name: 'name', label: i18n.t('categoryName.type'), required: true, span: 24 }],
|
||||
fields: [{ name: 'name', label: i18n.t('categoryName'), required: true, span: 24 }],
|
||||
operations: [
|
||||
{ name: 'cancel', url: true, showAlways: true },
|
||||
{ name: 'save', url: '/monitoring/reportSheetCategory', permission: 'monitoring:reportsheetcategory:save', showOnEdit: false },
|
||||
|
||||
@@ -65,7 +65,7 @@ import SmallTitle from '@/components/small-title'
|
||||
import { pick } from 'lodash/object'
|
||||
import TableOperateComponent from '@/components/base-table/components/operationComponent'
|
||||
import AttrForm from './workshopSectionDialogAttrForm.vue'
|
||||
|
||||
import { calcMaxHeight } from '@/utils'
|
||||
const tableProps = [
|
||||
{ name: i18n.t('eq.name'), prop: 'equipmentName' },
|
||||
{ name: i18n.t('dept.sort'), prop: 'sort' },
|
||||
@@ -84,6 +84,7 @@ export default {
|
||||
components: { BaseTable, SmallTitle, AttrForm },
|
||||
data() {
|
||||
return {
|
||||
calcMaxHeight,
|
||||
visible: false,
|
||||
isDetail: false,
|
||||
tableProps,
|
||||
|
||||
Reference in New Issue
Block a user