n20-common-lib 1.3.76 → 1.3.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/package.json +1 -1
  2. package/src/components/ApprovalButtons/index.vue +44 -25
  3. package/src/components/ApprovalButtons/setCarboncopyProp.vue +9 -9
  4. package/src/components/ApprovalCard/index.vue +8 -7
  5. package/src/components/ApprovalRecord/approvalImgPro/index.vue +8 -7
  6. package/src/components/ApprovalRecord/flowDialog.vue +2 -2
  7. package/src/components/ApprovalRecord/index.vue +5 -5
  8. package/src/components/Button/button-group.vue +18 -17
  9. package/src/components/ChildRange/index.vue +2 -2
  10. package/src/components/ContentLoading/index.vue +4 -3
  11. package/src/components/ContentNull/index.vue +1 -1
  12. package/src/components/DatePicker/por.vue +12 -11
  13. package/src/components/Diff/index.vue +2 -1
  14. package/src/components/EventBubble/demo/a.vue +1 -1
  15. package/src/components/EventBubble/demo/c.vue +4 -2
  16. package/src/components/Expandable/index.vue +1 -1
  17. package/src/components/FileExportAsync/index.vue +12 -11
  18. package/src/components/FileImport/index.vue +6 -5
  19. package/src/components/FileUploadTable/index.vue +46 -45
  20. package/src/components/Filters/form-item-input.vue +1 -1
  21. package/src/components/Filters/index.vue +7 -5
  22. package/src/components/Filters/indexO.vue +5 -4
  23. package/src/components/InputNumber/index.vue +3 -2
  24. package/src/components/InputSearch/index.vue +1 -0
  25. package/src/components/Layout/HeaderWrap/changePwd.vue +20 -19
  26. package/src/components/Layout/HeaderWrap/index.vue +36 -90
  27. package/src/components/Layout/HeaderWrap/noticePop.vue +16 -15
  28. package/src/components/Layout/HeaderWrap/switchUser.vue +6 -6
  29. package/src/components/Layout/TabsNav/index.vue +6 -21
  30. package/src/components/Layout/index.vue +2 -1
  31. package/src/components/LoginTemporary/form.vue +34 -33
  32. package/src/components/LoginTemporary/index.vue +7 -6
  33. package/src/components/LoginTemporary/qrcode.vue +3 -2
  34. package/src/components/LoginTemporary/retrievePw.vue +32 -31
  35. package/src/components/MicroFrame/index.vue +1 -0
  36. package/src/components/MoreTab/index.vue +9 -4
  37. package/src/components/NavMenu/index.vue +1 -0
  38. package/src/components/PageHeader/index.vue +2 -1
  39. package/src/components/PageLayout/page.vue +1 -0
  40. package/src/components/Pagination/index.vue +5 -4
  41. package/src/components/SecondaryTab/index.vue +1 -0
  42. package/src/components/SelectLazy/index.vue +1 -0
  43. package/src/components/SelectTree/SelectTreeLazy.vue +1 -0
  44. package/src/components/SelectTree/index.vue +1 -0
  45. package/src/components/ShowColumn/index.vue +14 -13
  46. package/src/components/Sifting/index.vue +5 -4
  47. package/src/components/Stamp/index.vue +8 -7
  48. package/src/components/Statis/index.vue +20 -13
  49. package/src/components/Statis/statisItem.vue +3 -2
  50. package/src/components/Statis/statisPopover.vue +1 -0
  51. package/src/components/Step/index.vue +1 -0
  52. package/src/components/Suspend/index.vue +1 -0
  53. package/src/components/Table/index.vue +1 -0
  54. package/src/components/Table/indexO.vue +1 -0
  55. package/src/components/TableOperateColumn/OperateBtns.vue +1 -0
  56. package/src/components/TableOperateColumn/index.vue +1 -0
  57. package/src/components/Task/index.vue +1 -0
  58. package/src/components/TertiaryTab/index.vue +1 -0
  59. package/src/components/TimePicker/index.vue +1 -0
  60. package/src/components/Upload/index.vue +7 -6
  61. package/src/components/Upload/uploadMsg.vue +9 -8
  62. package/src/index.js +2 -1
  63. package/src/utils/axios.js +9 -8
  64. package/src/utils/i18n/index.js +8 -1
@@ -1,69 +1,69 @@
1
1
  <template>
2
2
  <div class="login-form-wrap p-a">
3
- <div>找回密码</div>
3
+ <div>{{ '找回密码' | $lc }}</div>
4
4
  <div v-if="type === 'phone'" key="phone">
5
5
  <el-form ref="update-form" :model="updateForm" :rules="updateRules" :hide-required-asterisk="true">
6
- <el-form-item class="m-b" label="手机号" prop="phone">
7
- <el-input v-model="updateForm.phone" placeholder="请输入手机号" />
6
+ <el-form-item class="m-b" :label="'手机号' | $lc" prop="phone">
7
+ <el-input v-model="updateForm.phone" :placeholder="'请输入手机号' | $lc" />
8
8
  </el-form-item>
9
- <el-form-item class="m-b" label="验证码" prop="code">
9
+ <el-form-item class="m-b" :label="'验证码' | $lc" prop="code">
10
10
  <br />
11
11
  <div class="flex-box">
12
- <el-input v-model="updateForm.code" class="flex-item m-r-s" placeholder="请输入验证码" />
12
+ <el-input v-model="updateForm.code" class="flex-item m-r-s" :placeholder="'请输入验证码' | $lc" />
13
13
  <el-button
14
14
  plain
15
15
  style="4em"
16
- :disabled="!updateForm.phone || codeNum !== '验证码'"
17
- @click="sendMsg('phone', '手机号')"
16
+ :disabled="!updateForm.phone || codeNum !== $lc('验证码')"
17
+ @click="sendMsg('phone', $lc('手机号'))"
18
18
  >{{ codeNum }}</el-button
19
19
  >
20
20
  </div>
21
21
  </el-form-item>
22
- <el-button class="m-t" type="primary" style="width: 100%" @click="getNext">下一步</el-button>
22
+ <el-button class="m-t" type="primary" style="width: 100%" @click="getNext">{{ '下一步' | $lc }}</el-button>
23
23
  </el-form>
24
24
  <div class="flex-box flex-lr m-t-m m-b-s">
25
- <el-link :underline="false" @click="getBanck">返回</el-link>
26
- <el-link :underline="false" @click="changeUk('uk')">其他方式</el-link>
25
+ <el-link :underline="false" @click="getBanck">{{ '返回' | $lc }}</el-link>
26
+ <el-link :underline="false" @click="changeUk('uk')">{{ '其他方式' | $lc }}</el-link>
27
27
  </div>
28
28
  </div>
29
29
  <div v-if="type === 'uk'" key="uk">
30
30
  <el-form>
31
- <el-form-item class="m-b" label="账号">
32
- <el-input v-model="username" placeholder="请输入账号" />
31
+ <el-form-item class="m-b" :label="'账号' | $lc">
32
+ <el-input v-model="username" :placeholder="'请输入账号' | $lc" />
33
33
  </el-form-item>
34
34
  <el-form-item class="m-b" label="uk验证" prop="code">
35
35
  <br />
36
- <div v-if="checkCert" class="filed-tips">该账号未开启UK校验!</div>
36
+ <div v-if="checkCert" class="filed-tips">{{ '该账号未开启UK校验!' | $lc }}</div>
37
37
  <div v-if="ukCode !== 1">
38
38
  <div :class="ukCode ? 'success-tips' : 'filed-tips'">
39
39
  {{ ukCode ? '验证成功!' : '验证失败!' }}
40
40
  </div>
41
- <div v-show="!ukCode" class="filed-tips">自助找回密码失败,请联系管理员</div>
41
+ <div v-show="!ukCode" class="filed-tips">{{ '自助找回密码失败,请联系管理员' | $lc }}</div>
42
42
  </div>
43
43
  </el-form-item>
44
- <el-button class="m-t" type="primary" :disabled="ukCode !== true" style="width: 100%" @click="getUkNext"
45
- >下一步</el-button
46
- >
44
+ <el-button class="m-t" type="primary" :disabled="ukCode !== true" style="width: 100%" @click="getUkNext">{{
45
+ '下一步' | $lc
46
+ }}</el-button>
47
47
  </el-form>
48
48
  <div class="flex-box flex-lr m-t-m m-b-s">
49
- <el-link :underline="false" @click="getBanck">返回</el-link>
50
- <el-link :underline="false" @click="changeUk('phone')">其他方式</el-link>
49
+ <el-link :underline="false" @click="getBanck">{{ '返回' | $lc }}</el-link>
50
+ <el-link :underline="false" @click="changeUk('phone')">{{ '其他方式' | $lc }}</el-link>
51
51
  </div>
52
52
  </div>
53
53
  <div v-if="type === 'newPwd'" key="newPwd">
54
54
  <el-form ref="newPwdRef" :model="newPwdForm" :rules="newPwdRules" :hide-required-asterisk="true">
55
- <el-form-item class="m-b" :label="confirmPwdData.resetType == 'mobile' ? '手机号' : '账号'">
55
+ <el-form-item class="m-b" :label="confirmPwdData.resetType == 'mobile' ? $lc('手机号') : $lc('账号')">
56
56
  <el-input v-model="isPhone" disabled />
57
57
  </el-form-item>
58
- <el-form-item class="m-b" label="新密码" prop="newPassword">
59
- <el-input v-model="newPwdForm.newPassword" placeholder="请输入新密码" show-password />
58
+ <el-form-item class="m-b" :label="'新密码' | $lc" prop="newPassword">
59
+ <el-input v-model="newPwdForm.newPassword" :placeholder="'请输入新密码' | $lc" show-password />
60
60
  </el-form-item>
61
- <el-form-item class="m-b" label="确认密码" prop="respwd">
62
- <el-input v-model="newPwdForm.respwd" show-password placeholder="请输入确认密码" />
61
+ <el-form-item class="m-b" :label="'确认密码' | $lc" prop="respwd">
62
+ <el-input v-model="newPwdForm.respwd" show-password :placeholder="'请输入确认密码' | $lc" />
63
63
  </el-form-item>
64
- <el-button class="m-t" type="primary" style="width: 100%" @click="confirm">确认</el-button>
64
+ <el-button class="m-t" type="primary" style="width: 100%" @click="confirm">{{ '确认' | $lc }}</el-button>
65
65
  <div class="m-t-s">
66
- <el-link :underline="false" @click="getBanck">返回</el-link>
66
+ <el-link :underline="false" @click="getBanck">{{ '返回' | $lc }}</el-link>
67
67
  </div>
68
68
  </el-form>
69
69
  </div>
@@ -71,6 +71,7 @@
71
71
  </template>
72
72
 
73
73
  <script>
74
+ import { $lc } from '../../utils/i18n/index'
74
75
  import axios from '../../utils/axios'
75
76
  import { getSign } from '../../plugins/Sign/sign'
76
77
  export default {
@@ -132,7 +133,7 @@ export default {
132
133
  ],
133
134
  code: [{ required: true, message: '请输入验证码!', trigger: 'blur' }]
134
135
  },
135
- codeNum: '验证码',
136
+ codeNum: $lc('验证码'),
136
137
  isPhone: '',
137
138
  dataForm: {},
138
139
  sign: '',
@@ -141,14 +142,14 @@ export default {
141
142
  ukCode: 1,
142
143
  newPwdRules: {
143
144
  newPassword: [
144
- { required: true, message: '请输入新密码', trigger: 'blur' },
145
+ { required: true, message: $lc('请输入新密码'), trigger: 'blur' },
145
146
  {
146
147
  validator: lengthToFirstPassword,
147
148
  trigger: 'blur'
148
149
  }
149
150
  ],
150
151
  respwd: [
151
- { required: true, message: '请输入确认密码', trigger: 'blur' },
152
+ { required: true, message: $lc('请输入确认密码'), trigger: 'blur' },
152
153
  {
153
154
  validator: compareToFirstPassword,
154
155
  trigger: 'blur'
@@ -201,7 +202,7 @@ export default {
201
202
  num--
202
203
  } else {
203
204
  clearTimeout(this.setTimeNum)
204
- this.codeNum = '验证码'
205
+ this.codeNum = $lc('验证码')
205
206
  }
206
207
  },
207
208
  sendMsg(type, typeName) {
@@ -218,7 +219,7 @@ export default {
218
219
  })
219
220
  .catch(() => {
220
221
  clearTimeout(this.setTimeNum)
221
- this.codeNum = '验证码'
222
+ this.codeNum = $lc('验证码')
222
223
  this.$message.warning(`${typeName}: ${this.updateForm[type]} 验证码发送失败`)
223
224
  })
224
225
  }
@@ -3,6 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script>
6
+ import { $lc } from '../../utils/i18n/index'
6
7
  import contentLoading from '../ContentLoading'
7
8
  export default {
8
9
  components: {
@@ -26,22 +26,27 @@
26
26
  <div v-show="contextMenuVisible">
27
27
  <ul :style="{ left: contextMenuLeft + 'px', top: contextMenuTop + 'px' }" class="__contextmenu">
28
28
  <li>
29
- <el-button type="text" size="mini" @click="reload()">重新加载</el-button>
29
+ <el-button type="text" size="mini" @click="reload()">{{ '重新加载' | $lc }}</el-button>
30
30
  </li>
31
31
  <li>
32
- <el-button type="text" :disabled="false" size="mini" @click="closeOtherLeft">关闭左边</el-button>
32
+ <el-button type="text" :disabled="false" size="mini" @click="closeOtherLeft">{{
33
+ '关闭左边' | $lc
34
+ }}</el-button>
33
35
  </li>
34
36
  <li>
35
- <el-button type="text" :disabled="false" size="mini" @click="closeOtherRight">关闭右边</el-button>
37
+ <el-button type="text" :disabled="false" size="mini" @click="closeOtherRight">{{
38
+ '关闭右边' | $lc
39
+ }}</el-button>
36
40
  </li>
37
41
  <li>
38
- <el-button type="text" size="mini" @click="closeOther">关闭其他</el-button>
42
+ <el-button type="text" size="mini" @click="closeOther">{{ '关闭其他' | $lc }}</el-button>
39
43
  </li>
40
44
  </ul>
41
45
  </div>
42
46
  </div>
43
47
  </template>
44
48
  <script>
49
+ import { $lc } from '../../utils/i18n/index'
45
50
  export default {
46
51
  name: 'MoreTab',
47
52
  props: {
@@ -31,6 +31,7 @@
31
31
  </template>
32
32
 
33
33
  <script>
34
+ import { $lc } from '../../utils/i18n/index'
34
35
  export default {
35
36
  name: 'NavMenu',
36
37
  props: {
@@ -13,13 +13,14 @@
13
13
  </template>
14
14
 
15
15
  <script>
16
+ import { $lc } from '../../utils/i18n/index'
16
17
  export default {
17
18
  name: 'PageHeader',
18
19
  props: {
19
20
  title: {
20
21
  type: String,
21
22
  default() {
22
- return '返回'
23
+ return $lc('返回')
23
24
  }
24
25
  },
25
26
  content: {
@@ -9,6 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script>
12
+ import { $lc } from '../../utils/i18n/index'
12
13
  export default {
13
14
  name: 'Page'
14
15
  }
@@ -12,7 +12,7 @@
12
12
  ><span class="color-primary">{{ pageObj[pageKey.no] }}</span
13
13
  >/{{ max }}</span
14
14
  >
15
- <span>到第</span>
15
+ <span>{{ '到第' | $lc }}</span>
16
16
  <el-input-number
17
17
  v-model="toNo"
18
18
  class="n20-pagination-jumper-1 m-r-ss"
@@ -24,11 +24,11 @@
24
24
  :size="size"
25
25
  @change="setnoOrsize"
26
26
  />
27
- <span class="m-r-s">页</span>
27
+ <span class="m-r-s">{{ '页' | $lc }}</span>
28
28
  <el-popover v-model="settingV" placement="top" trigger="click">
29
29
  <el-link slot="reference" icon="n20-icon-shezhi" :underline="false" style="font-size: 16px" />
30
30
  <div>
31
- <span>每页显示</span>
31
+ <span>{{ '每页显示' | $lc }}</span>
32
32
  <el-radio-group
33
33
  v-model="pageObj[pageKey.size]"
34
34
  class="n20-pagination-sizes-1 m-l-s"
@@ -54,7 +54,7 @@
54
54
  :step-strictly="true"
55
55
  :controls="false"
56
56
  size="mini"
57
- placeholder="自定义"
57
+ :placeholder="'自定义' | $lc"
58
58
  @change="
59
59
  () => {
60
60
  setnoOrsize()
@@ -68,6 +68,7 @@
68
68
  </template>
69
69
 
70
70
  <script>
71
+ import { $lc } from '../../utils/i18n/index'
71
72
  export default {
72
73
  name: 'Pagination',
73
74
  props: {
@@ -18,6 +18,7 @@
18
18
  </template>
19
19
 
20
20
  <script>
21
+ import { $lc } from '../../utils/i18n/index'
21
22
  export default {
22
23
  name: 'SecondaryTab',
23
24
  props: {
@@ -5,6 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
+ import { $lc } from '../../utils/i18n/index'
8
9
  export default {
9
10
  name: 'SelectLazy',
10
11
  directives: {
@@ -43,6 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script>
46
+ import { $lc } from '../../utils/i18n/index'
46
47
  import forEachs from '../../utils/forEachs'
47
48
 
48
49
  export default {
@@ -44,6 +44,7 @@
44
44
  </template>
45
45
 
46
46
  <script>
47
+ import { $lc } from '../../utils/i18n/index'
47
48
  import forEachs from '../../utils/forEachs'
48
49
 
49
50
  export default {
@@ -16,11 +16,11 @@
16
16
  <div class="flex-box flex-v p-r m-b">
17
17
  <span>{{ header }}</span>
18
18
  <span class="m-l-m color-999">
19
- 已选
19
+ {{ '已选' | $lc }}
20
20
  <span class="color-main">{{ dragList.length }}</span>
21
21
  </span>
22
22
  <el-link :underline="false" type="primary" class="m-l-auto" @click="setAll">{{
23
- setState ? '全部清空' : '全部选中'
23
+ setState ? $lc('全部清空') : $lc('全部选中')
24
24
  }}</el-link>
25
25
  </div>
26
26
  <div class="flex-item p-r" style="height: 50%; overflow: auto">
@@ -39,8 +39,8 @@
39
39
  </div>
40
40
  <div class="right-c flex-column p-t-m">
41
41
  <div class="m-b">
42
- 当前选定项
43
- <el-link type="primary" style="visibility: hidden">当前选定项</el-link>
42
+ {{ '当前选定项' | $lc }}
43
+ <el-link type="primary" style="visibility: hidden">{{ '当前选定项' | $lc }}</el-link>
44
44
  </div>
45
45
  <div class="flex-1 overflow-y">
46
46
  <drag-list :list="dragList" :label-key="labelKey" :in-show-column="true" />
@@ -49,12 +49,13 @@
49
49
  </div>
50
50
  </div>
51
51
  <div slot="footer" class="text-c">
52
- <el-button type="primary" @click="setChange">确定</el-button>
53
- <el-button plain @click="reset">恢复默认</el-button>
52
+ <el-button type="primary" @click="setChange">{{ '确定' | $lc }}</el-button>
53
+ <el-button plain @click="reset">{{ '恢复默认' | $lc }}</el-button>
54
54
  </div>
55
55
  </dialog-wrap>
56
56
  </template>
57
57
  <script>
58
+ import { $lc } from '../../utils/i18n/index'
58
59
  import axios from '../../utils/axios'
59
60
  import dialogWrap from '../Dialog/index.vue'
60
61
  import dragList from '../DragList/index.vue'
@@ -109,20 +110,20 @@ export default {
109
110
  computed: {
110
111
  title() {
111
112
  if (this.isExport) {
112
- return '导出'
113
+ return $lc('导出')
113
114
  } else if (this.isFilter) {
114
- return '筛选'
115
+ return $lc('筛选')
115
116
  } else {
116
- return '设置显示列'
117
+ return $lc('设置显示列')
117
118
  }
118
119
  },
119
120
  header() {
120
121
  if (this.isExport) {
121
- return '导出'
122
+ return $lc('导出')
122
123
  } else if (this.isFilter) {
123
- return '筛选'
124
+ return $lc('筛选')
124
125
  } else {
125
- return '显示列'
126
+ return $lc('显示列')
126
127
  }
127
128
  },
128
129
  visible: {
@@ -166,7 +167,7 @@ export default {
166
167
  setChange() {
167
168
  if (this.dragList.length < 1) {
168
169
  this.$message.error(
169
- `至少设置${this.isExport ? '一列导出数据' : this.isFilter ? '一个筛选条件' : '一列显示列'}!`
170
+ `至少设置${this.isExport ? $lc('一列导出数据') : this.isFilter ? $lc('一个筛选条件') : $lc('一列显示列')}!`
170
171
  )
171
172
  return
172
173
  }
@@ -6,10 +6,10 @@
6
6
  <div class="n20-sifting-left-top">
7
7
  <div class="n20-sifting-left-top-left">
8
8
  <span class="n20-sifting-left-top-title">{{ title }}</span>
9
- <span class="n20-sifting-opt-text">已选 </span>
9
+ <span class="n20-sifting-opt-text">{{ '已选' | $lc }} </span>
10
10
  <span class="n20-sifting-opt">4</span>
11
11
  </div>
12
- <span class="n20-sifting-opt n20-sifting-cursor" @click="handleCheckAll">全部选中</span>
12
+ <span class="n20-sifting-opt n20-sifting-cursor" @click="handleCheckAll">{{ '全部选中' | $lc }}</span>
13
13
  </div>
14
14
  <!--end-->
15
15
  <!--content-->
@@ -32,13 +32,14 @@
32
32
  </div>
33
33
  </div>
34
34
  <div slot="footerBtn" class="n20-sifting-footer">
35
- <el-button @click="beforeClose">取消</el-button>
36
- <el-button type="primary" @click="handlAffirm">确认</el-button>
35
+ <el-button @click="beforeClose">{{ '取消' | $lc }}</el-button>
36
+ <el-button type="primary" @click="handlAffirm">{{ '确认' | $lc }}</el-button>
37
37
  </div>
38
38
  </cl-dialog>
39
39
  </template>
40
40
 
41
41
  <script>
42
+ import { $lc } from '../../utils/i18n/index'
42
43
  export default {
43
44
  name: 'Sifting',
44
45
  props: {
@@ -3,12 +3,13 @@
3
3
  </template>
4
4
 
5
5
  <script>
6
+ import { $lc } from '../../utils/i18n/index'
6
7
  export default {
7
8
  name: 'Stamp',
8
9
  props: {
9
10
  name: {
10
11
  type: String,
11
- default: '已成交'
12
+ default: $lc('已成交')
12
13
  },
13
14
  src: {
14
15
  type: String,
@@ -32,33 +33,33 @@ export default {
32
33
  name: {
33
34
  handler(val) {
34
35
  switch (val) {
35
- case '已终止':
36
+ case $lc('已终止'):
36
37
  import('./images/termination.png').then((res) => {
37
38
  this.imgSrc = res.default
38
39
  })
39
40
  break
40
- case '已失效':
41
+ case $lc('已失效'):
41
42
  import('./images/efficacy.png').then((res) => {
42
43
  this.imgSrc = res.default
43
44
  })
44
45
  break
45
- case '已签订':
46
+ case $lc('已签订'):
46
47
  import('./images/conclude.png').then((res) => {
47
48
  this.imgSrc = res.default
48
49
  })
49
50
  break
50
- case '已成交':
51
+ case $lc('已成交'):
51
52
  import('./images/clinch.png').then((res) => {
52
53
  this.imgSrc = res.default
53
54
  })
54
55
  break
55
56
 
56
- case '已作废':
57
+ case $lc('已作废'):
57
58
  import('./images/cancellation.png').then((res) => {
58
59
  this.imgSrc = res.default
59
60
  })
60
61
  break
61
- case '已结清':
62
+ case $lc('已结清'):
62
63
  import('./images/accounts.png').then((res) => {
63
64
  this.imgSrc = res.default
64
65
  })
@@ -1,23 +1,30 @@
1
1
  <template>
2
2
  <div>
3
3
  <div v-if="size !== 'mini'" class="flex-box p-t-s p-b-s">
4
- <statisItem type="当页合计" :list="pageList" :show-w="showW" :show-u="showU" :count-label="countLabel" />
5
- <statisItem type="全部合计" :list="totalList" :show-w="showW" :show-u="showU" :count-label="countLabel" />
4
+ <statisItem :type="'当页合计' | $lc" :list="pageList" :show-w="showW" :show-u="showU" :count-label="countLabel" />
5
+ <statisItem
6
+ :type="'全部合计' | $lc"
7
+ :list="totalList"
8
+ :show-w="showW"
9
+ :show-u="showU"
10
+ :count-label="countLabel"
11
+ />
6
12
  </div>
7
13
  <div v-else class="n20-statis p-t-s p-b-s">
8
14
  <span class="m-r">
9
- 当页:<span class="n20-primary">{{ pageSum }}</span
10
- >条
15
+ {{ '当页:' | $lc }}<span class="n20-primary">{{ pageSum }}</span
16
+ >{{ '条' | $lc }}
11
17
  </span>
12
18
  <span class="m-r">
13
- 全部:<span class="n20-primary">{{ totalSun }}</span
14
- >条
19
+ {{ '全部:' | $lc }}<span class="n20-primary">{{ totalSun }}</span
20
+ >{{ '条' | $lc }}
15
21
  </span>
16
22
  </div>
17
23
  </div>
18
24
  </template>
19
25
 
20
26
  <script>
27
+ import { $lc } from '../../utils/i18n/index'
21
28
  import statisItem from './statisItem.vue'
22
29
  export default {
23
30
  name: 'Statis',
@@ -63,7 +70,7 @@ export default {
63
70
  if (!this.showU) {
64
71
  return undefined
65
72
  } else if (this.showU === true) {
66
- return '元'
73
+ return $lc('元')
67
74
  } else {
68
75
  return this.showU
69
76
  }
@@ -71,29 +78,29 @@ export default {
71
78
  pageList() {
72
79
  if (this.pageAmount !== undefined) {
73
80
  return [
74
- { label: '笔数', value: this.pageSum },
81
+ { label: $lc('笔数'), value: this.pageSum },
75
82
  {
76
- label: '金额',
83
+ label: $lc('金额'),
77
84
  value: this.pageAmount,
78
85
  unit: this.unitAs
79
86
  }
80
87
  ]
81
88
  } else {
82
- return [{ label: '笔数', value: this.pageSum }]
89
+ return [{ label: $lc('笔数'), value: this.pageSum }]
83
90
  }
84
91
  },
85
92
  totalList() {
86
93
  if (this.totalAmount !== undefined) {
87
94
  return [
88
- { label: '笔数', value: this.totalSun },
95
+ { label: $lc('笔数'), value: this.totalSun },
89
96
  {
90
- label: '金额',
97
+ label: $lc('金额'),
91
98
  value: this.totalAmount,
92
99
  unit: this.unitAs
93
100
  }
94
101
  ]
95
102
  } else {
96
- return [{ label: '笔数', value: this.totalSun }]
103
+ return [{ label: $lc('笔数'), value: this.totalSun }]
97
104
  }
98
105
  }
99
106
  }
@@ -11,6 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script>
14
+ import { $lc } from '../../utils/i18n/index'
14
15
  import numerify from 'numerify'
15
16
  const n = 10000
16
17
 
@@ -18,12 +19,12 @@ export default {
18
19
  name: 'StatisItem',
19
20
  filters: {
20
21
  numerify({ label, value }, f, w, unit = '') {
21
- unit = unit ? (unit === true ? '元' : unit) : ''
22
+ unit = unit ? (unit === true ? $lc('元') : unit) : ''
22
23
  if (!w) {
23
24
  return numerify(value, f) + unit
24
25
  } else {
25
26
  if (value > n) {
26
- return numerify(value / n, f) + '万' + unit
27
+ return numerify(value / n, f) + $lc('万') + unit
27
28
  } else {
28
29
  return numerify(value, f) + unit
29
30
  }
@@ -45,6 +45,7 @@
45
45
  </template>
46
46
 
47
47
  <script>
48
+ import { $lc } from '../../utils/i18n/index'
48
49
  import statisItem from './statisItem.vue'
49
50
  export default {
50
51
  name: 'StatisPopover',
@@ -17,6 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script>
20
+ import { $lc } from '../../utils/i18n/index'
20
21
  export default {
21
22
  name: 'Step',
22
23
  props: {
@@ -11,6 +11,7 @@
11
11
  </div>
12
12
  </template>
13
13
  <script>
14
+ import { $lc } from '../../utils/i18n/index'
14
15
  export default {
15
16
  name: 'Suspend',
16
17
  props: {
@@ -25,6 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script>
28
+ import { $lc } from '../../utils/i18n/index'
28
29
  import { colfF, colftF } from './filters'
29
30
 
30
31
  const columnRender = {
@@ -42,6 +42,7 @@
42
42
  </template>
43
43
 
44
44
  <script>
45
+ import { $lc } from '../../utils/i18n/index'
45
46
  import Pagination from '../Pagination/index.vue'
46
47
  const columnRender = {
47
48
  props: {
@@ -25,6 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script>
28
+ import { $lc } from '../../utils/i18n/index'
28
29
  export default {
29
30
  filters: {
30
31
  dbdBtn(dbd, row) {
@@ -5,6 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
+ import { $lc } from '../../utils/i18n/index'
8
9
  import OperateBtns from './OperateBtns.vue'
9
10
  export default {
10
11
  name: 'TableOperateColumn',
@@ -9,6 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script>
12
+ import { $lc } from '../../utils/i18n/index'
12
13
  export default {
13
14
  name: 'Task',
14
15
  props: {
@@ -17,6 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script>
20
+ import { $lc } from '../../utils/i18n/index'
20
21
  export default {
21
22
  name: 'TertiaryTab',
22
23
  props: {