double.huang %!s(int64=5) %!d(string=hai) anos
pai
achega
aa07c00934

+ 8 - 7
src/views/org/index.vue

@@ -69,6 +69,7 @@ import Sheet from '@/components/Sheet'
 import Cascader from '@/components/Cascader'
 import Query from '@/components/Query'
 import { org } from './query'
+import i18n from '@/i18n'
 
 export default {
   name: 'Org',
@@ -84,35 +85,35 @@ export default {
       tableColumns: [
         {
           prop: 'name',
-          label: 'Name',
+          label: i18n.t('Name'),
           align: 'center',
           minWidth: 150,
           maxWidth: 220
         },
         {
           prop: 'url',
-          label: 'Url',
+          label: i18n.t('Url'),
           align: 'center',
           minWidth: 150,
           maxWidth: 220
         },
         {
           prop: 'component',
-          label: 'Component',
+          label: i18n.t('Component'),
           align: 'center',
           minWidth: 180,
           maxWidth: 220
         },
         {
           prop: 'code',
-          label: 'Code',
+          label: i18n.t('Code'),
           align: 'center',
           minWidth: 150,
           maxWidth: 180
         },
         {
           prop: 'order',
-          label: 'Order',
+          label: i18n.t('Order'),
           align: 'center',
           minWidth: 150,
           maxWidth: 180
@@ -121,7 +122,7 @@ export default {
       operates: {
         list: [
           {
-            label: 'Edit',
+            label: i18n.t('Edit'),
             show: true,
             type: 'primary',
             method: row => {
@@ -129,7 +130,7 @@ export default {
             }
           },
           {
-            label: 'Delete',
+            label: i18n.t('Delete'),
             show: true,
             type: 'danger',
             method: row => {

+ 4 - 2
src/views/org/query.js

@@ -1,3 +1,5 @@
+import i18n from '@/i18n'
+
 export const org = {
   data() {
     return {
@@ -9,7 +11,7 @@ export const org = {
         items: [
           {
             name: 'name',
-            placeholder: 'Name',
+            placeholder: i18n.t('Name'),
             span: 4,
             style: '',
             type: '',
@@ -17,7 +19,7 @@ export const org = {
           },
           {
             name: 'code',
-            placeholder: 'Code',
+            placeholder: i18n.t('Code'),
             span: 4,
             style: '',
             type: '',

+ 5 - 4
src/views/role/index.vue

@@ -79,6 +79,7 @@ import Sheet from '@/components/Sheet'
 import treeTransfer from 'el-tree-transfer'
 import Query from '@/components/Query'
 import { role } from './query'
+import i18n from '@/i18n'
 
 export default {
   name: 'Role',
@@ -103,14 +104,14 @@ export default {
       tableColumns: [
         {
           prop: 'name',
-          label: '名称',
+          label: i18n.t('Name'),
           align: 'center',
           minWidth: 180,
           maxWidth: 220
         },
         {
           prop: 'code',
-          label: '编码',
+          label: i18n.t('Code'),
           align: 'center',
           minWidth: 150,
           maxWidth: 180
@@ -119,7 +120,7 @@ export default {
       operates: {
         list: [
           {
-            label: '编辑',
+            label: i18n.t('Edit'),
             show: true,
             type: 'primary',
             method: row => {
@@ -127,7 +128,7 @@ export default {
             }
           },
           {
-            label: '删除',
+            label: i18n.t('Delete'),
             show: true,
             type: 'danger',
             method: row => {

+ 4 - 2
src/views/role/query.js

@@ -1,3 +1,5 @@
+import i18n from '@/i18n'
+
 export const role = {
   data() {
     return {
@@ -9,7 +11,7 @@ export const role = {
         items: [
           {
             name: 'name',
-            placeholder: 'Name',
+            placeholder: i18n.t('Name'),
             span: 4,
             style: '',
             type: '',
@@ -17,7 +19,7 @@ export const role = {
           },
           {
             name: 'code',
-            placeholder: 'Code',
+            placeholder: i18n.t('Code'),
             span: 4,
             style: '',
             type: '',

+ 4 - 2
src/views/tracker/query.js

@@ -1,3 +1,5 @@
+import i18n from '@/i18n'
+
 export const tracker = {
   data() {
     return {
@@ -9,7 +11,7 @@ export const tracker = {
         items: [
           {
             name: 'name',
-            placeholder: 'Name',
+            placeholder: i18n.t('Name'),
             span: 4,
             style: '',
             type: '',
@@ -17,7 +19,7 @@ export const tracker = {
           },
           {
             name: 'code',
-            placeholder: 'Code',
+            placeholder: i18n.t('Code'),
             span: 4,
             style: '',
             type: '',

+ 7 - 6
src/views/user/index.vue

@@ -89,6 +89,7 @@ import Tree from '@/components/Tree'
 import Sheet from '@/components/Sheet'
 import Query from '@/components/Query'
 import { user } from './query'
+import i18n from '@/i18n'
 
 export default {
   name: 'User',
@@ -101,12 +102,12 @@ export default {
   data() {
     return {
       tableColumns: [
-        { prop: 'name', label: 'Name', align: 'center', minWidth: 150, maxWidth: 180 },
-        { prop: 'email', label: 'Email', align: 'center', minWidth: 150, maxWidth: 180 },
-        { prop: 'mobile', label: 'Mobile', align: 'center', minWidth: 150, maxWidth: 180 },
-        { prop: 'org_name', label: 'Org', align: 'center', minWidth: 150, maxWidth: 180 },
-        { prop: 'role_name', label: 'Role', align: 'center', minWidth: 150, maxWidth: 180 },
-        { prop: 'status', formatter: 'sys_user_status', label: 'Status', align: 'center', minWidth: 150, maxWidth: 180 }
+        { prop: 'name', label: i18n.t('Name'), align: 'center', minWidth: 150, maxWidth: 180 },
+        { prop: 'email', label: i18n.t('Email'), align: 'center', minWidth: 150, maxWidth: 180 },
+        { prop: 'mobile', label: i18n.t('Mobile'), align: 'center', minWidth: 150, maxWidth: 180 },
+        { prop: 'org_name', label: i18n.t('Org'), align: 'center', minWidth: 150, maxWidth: 180 },
+        { prop: 'role_name', label: i18n.t('Role'), align: 'center', minWidth: 150, maxWidth: 180 },
+        { prop: 'status', formatter: 'sys_user_status', label: i18n.t('Status'), align: 'center', minWidth: 150, maxWidth: 180 }
       ],
       operates: {
         list: [

+ 4 - 2
src/views/user/query.js

@@ -1,3 +1,5 @@
+import i18n from '@/i18n'
+
 export const user = {
   data() {
     return {
@@ -9,7 +11,7 @@ export const user = {
         items: [
           {
             name: 'mobile',
-            placeholder: 'Mobile',
+            placeholder: i18n.t('Mobile'),
             span: 4,
             style: '',
             type: '',
@@ -17,7 +19,7 @@ export const user = {
           },
           {
             name: 'name',
-            placeholder: 'Name',
+            placeholder: i18n.t('Name'),
             span: 4,
             style: '',
             type: '',