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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "1.3.76",
3
+ "version": "1.3.78",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@
4
4
  <el-form label-position="right" label-width="5em">
5
5
  <div v-if="taskId && showBtn" class="flex-box">
6
6
  <div v-if="authList.includes('isCarboncopy')" class="flex-1">
7
- <el-form-item label="抄送" class="m-b">
7
+ <el-form-item :label="'抄送' | $lc" class="m-b">
8
8
  <el-input
9
9
  :value="carbonCopyList.map((c) => c.uname).join(', ')"
10
10
  type="textarea"
@@ -14,22 +14,22 @@
14
14
  </el-form-item>
15
15
  </div>
16
16
  <div v-if="authList.includes('isAddtask')" class="flex-1">
17
- <el-form-item label="加签" class="m-b">
17
+ <el-form-item :label="'加签' | $lc" class="m-b">
18
18
  <label slot="label">
19
- <span>加签</span>
19
+ <span>{{ '加签' | $lc }}</span>
20
20
  <el-tooltip placement="top">
21
21
  <span class="n20-icon-xinxitishi m-l-ss" style="position: static"></span>
22
22
  <div slot="content" style="width: 16em; line-height: 1.6">
23
- 会签并行:增加一个会签节点,全部审批人同意才可通过审批<br />
24
- 普通串行:按照加签人数增加节点,每个节点审批通过才可完成当前加签流程
23
+ {{ '会签并行:增加一个会签节点,全部审批人同意才可通过审批' | $lc }}<br />
24
+ {{ '普通串行:按照加签人数增加节点,每个节点审批通过才可完成当前加签流程' | $lc }}
25
25
  </div>
26
26
  </el-tooltip>
27
27
  </label>
28
28
  <div class="flex-box">
29
- <el-select v-model="addTaskType" placeholder="请选择审批方式" style="width: 10em">
30
- <!-- <el-option label="普通节点" value="1" /> -->
31
- <el-option label="会签并行" value="2" />
32
- <el-option label="会签串行" value="3" />
29
+ <el-select v-model="addTaskType" :placeholder="'请选择审批方式' | $lc" style="width: 10em">
30
+ <!-- <el-option :label="'普通节点' | $lc" value="1" /> -->
31
+ <el-option :label="'会签并行' | $lc" value="2" />
32
+ <el-option :label="'会签串行' | $lc" value="3" />
33
33
  </el-select>
34
34
  <el-input
35
35
  class="flex-item"
@@ -42,12 +42,12 @@
42
42
  </el-form-item>
43
43
  </div>
44
44
  </div>
45
- <el-form-item label="审批意见" :error="errMsg">
45
+ <el-form-item :label="'审批意见' | $lc" :error="errMsg">
46
46
  <el-input
47
47
  ref="msg-input"
48
48
  v-model="messageC"
49
49
  type="textarea"
50
- placeholder="请输入操作意见(50字以内),批准该意见为非必填,驳回/作废该意见为必填!"
50
+ :placeholder="'请输入操作意见(50字以内),批准该意见为非必填,驳回/作废该意见为必填!' | $lc"
51
51
  :maxlength="50"
52
52
  :autosize="{ minRows: 1 }"
53
53
  />
@@ -55,23 +55,42 @@
55
55
  </el-form>
56
56
 
57
57
  <div class="text-c">
58
- <el-button v-if="authList.includes('approval')" type="primary" @click="approvalFn">批 准</el-button>
59
- <el-button v-if="authList.includes('reject')" plain @click="rejectFn">驳回至发起人</el-button>
60
- <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">驳回至上一节点</el-button>
58
+ <el-button v-if="authList.includes('approval')" type="primary" @click="approvalFn">{{ '批 准' | $lc }}</el-button>
59
+ <el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{ '驳回至发起人' | $lc }}</el-button>
60
+ <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{
61
+ '驳回至上一节点' | $lc
62
+ }}</el-button>
61
63
 
62
- <el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">作 废</el-button>
63
- <el-button plain @click="goFrom">返 回</el-button>
64
+ <el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">{{
65
+ '作 废' | $lc
66
+ }}</el-button>
67
+ <el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button>
64
68
  </div>
65
- <cl-dialog v-drag :visible.sync="setCarboncopyV" title="设置抄送用户" width="900px" append-to-body top="7.5vh">
69
+ <cl-dialog
70
+ v-drag
71
+ :visible.sync="setCarboncopyV"
72
+ :title="'设置抄送用户' | $lc"
73
+ width="900px"
74
+ append-to-body
75
+ top="7.5vh"
76
+ >
66
77
  <carboncopy-prop :carbon-copy-list="carbonCopyList" @close="setCarboncopyV = false" @confirm="setCarboncopyOk" />
67
78
  </cl-dialog>
68
- <cl-dialog v-drag :visible.sync="setAddtaskV" title="设置抄送用户" width="900px" append-to-body top="7.5vh">
79
+ <cl-dialog
80
+ v-drag
81
+ :visible.sync="setAddtaskV"
82
+ :title="'设置抄送用户' | $lc"
83
+ width="900px"
84
+ append-to-body
85
+ top="7.5vh"
86
+ >
69
87
  <carboncopy-prop :carbon-copy-list="addTaskList" @close="setAddtaskV = false" @confirm="setAddtaskOk" />
70
88
  </cl-dialog>
71
89
  </div>
72
90
  </template>
73
91
 
74
92
  <script>
93
+ import { $lc } from '../../utils/i18n/index'
75
94
  import axios from '../../utils/axios'
76
95
  import { linkGo } from '../../utils/urlToGo'
77
96
  import { closeTagsForBackPage } from '../../plugins/CompatibleOld'
@@ -192,7 +211,7 @@ export default {
192
211
  ]
193
212
  },
194
213
  // 提交后的提示
195
- thenMsg(data = {}, str = '操作') {
214
+ thenMsg(data = {}, str = $lc('操作')) {
196
215
  let { failCount, failList = {} } = data
197
216
  if (failCount > 0) {
198
217
  if (Array.isArray(failList)) {
@@ -206,10 +225,10 @@ export default {
206
225
  if (errArr.length > 0) {
207
226
  this.$message.error(errArr.join('、'))
208
227
  } else {
209
- this.$message.error(str + '失败')
228
+ this.$message.error(str + $lc('失败'))
210
229
  }
211
230
  } else {
212
- this.$message.success(str + '成功')
231
+ this.$message.success(str + $lc('成功'))
213
232
  this.goFrom()
214
233
  }
215
234
  },
@@ -236,7 +255,7 @@ export default {
236
255
  }
237
256
  this.beforeFn(this.$attrs.beforeReject, () => {
238
257
  axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
239
- this.thenMsg(data, '驳回至发起人')
258
+ this.thenMsg(data, $lc('驳回至发起人'))
240
259
  })
241
260
  })
242
261
  },
@@ -247,7 +266,7 @@ export default {
247
266
  }
248
267
  this.beforeFn(this.$attrs.beforeRejectPre, () => {
249
268
  axios.post('/bems/activiti/admin/todo/rejectpre', this.getParam()).then(({ data }) => {
250
- this.thenMsg(data, '驳回至上一节')
269
+ this.thenMsg(data, $lc('驳回至上一节'))
251
270
  })
252
271
  })
253
272
  },
@@ -255,7 +274,7 @@ export default {
255
274
  approvalFn() {
256
275
  this.beforeFn(this.$attrs.beforeRatify, () => {
257
276
  axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
258
- this.thenMsg(data, '批准')
277
+ this.thenMsg(data, $lc('批准'))
259
278
  })
260
279
  })
261
280
  },
@@ -266,7 +285,7 @@ export default {
266
285
  }
267
286
  this.beforeFn(this.$attrs.beforeDiscard, () => {
268
287
  axios.post('/bems/activiti/admin/todo/cancle', this.getParam()).then(({ data }) => {
269
- this.thenMsg(data, '作废')
288
+ this.thenMsg(data, $lc('作废'))
270
289
  })
271
290
  })
272
291
  },
@@ -1,19 +1,19 @@
1
1
  <template>
2
2
  <cl-page style="height: 75vh">
3
3
  <div slot="header" class="flex-box flex-v m-b">
4
- <span class="m-r-ss">单位名称</span>
4
+ <span class="m-r-ss">{{ '单位名称' | $lc }}</span>
5
5
  <span>
6
6
  <el-input v-model="searchObj.cltName" size="mini" />
7
7
  </span>
8
- <span class="m-l m-r-ss">姓名</span>
8
+ <span class="m-l m-r-ss">{{ '姓名' | $lc }}</span>
9
9
  <span>
10
10
  <el-input v-model="searchObj.uname" size="mini" />
11
11
  </span>
12
- <span class="m-l m-r-ss">用户编号</span>
12
+ <span class="m-l m-r-ss">{{ '用户编号' | $lc }}</span>
13
13
  <span>
14
14
  <el-input v-model="searchObj.uno" size="mini" />
15
15
  </span>
16
- <el-button class="m-l-auto" plain size="mini" @click="searchFn">查询</el-button>
16
+ <el-button class="m-l-auto" plain size="mini" @click="searchFn">{{ '查询' | $lc }}</el-button>
17
17
  </div>
18
18
 
19
19
  <el-table
@@ -27,9 +27,9 @@
27
27
  @select-all="sltChange"
28
28
  >
29
29
  <el-table-column :reserve-selection="true" type="selection" width="46" header-align="center" align="center" />
30
- <el-table-column prop="uno" label="编号" header-align="center" align="center" />
31
- <el-table-column prop="uname" label="姓名" header-align="center" align="center" />
32
- <el-table-column prop="cltName" label="单位" header-align="center" align="center" />
30
+ <el-table-column prop="uno" :label="'编号' | $lc" header-align="center" align="center" />
31
+ <el-table-column prop="uname" :label="'姓名' | $lc" header-align="center" align="center" />
32
+ <el-table-column prop="cltName" :label="'单位' | $lc" header-align="center" align="center" />
33
33
  </el-table>
34
34
  <template slot="footer">
35
35
  <div class="flex-box flex-r m-t m-b">
@@ -40,8 +40,8 @@
40
40
  />
41
41
  </div>
42
42
  <div class="text-c">
43
- <el-button type="primary" @click="confirmFn">确 定</el-button>
44
- <el-button @click="$emit('close')">取 消</el-button>
43
+ <el-button type="primary" @click="confirmFn">{{ '确 定' | $lc }}</el-button>
44
+ <el-button @click="$emit('close')">{{ '取 消' | $lc }}</el-button>
45
45
  </div>
46
46
  </template>
47
47
  </cl-page>
@@ -14,16 +14,16 @@
14
14
  <span>{{ item.assignee }}</span>
15
15
  </div>
16
16
  <div class="n20-approval m-r-s">
17
- <template v-if="item.result == status.submit">提交</template>
18
- <template v-else-if="item.result == status.end">结束</template>
17
+ <template v-if="item.result == status.submit">{{ '提交' | $lc }}</template>
18
+ <template v-else-if="item.result == status.end">{{ '结束' | $lc }}</template>
19
19
  <template v-else-if="item.result == status.approval">
20
- 审批意见:<span class="color-primary">批准</span>
20
+ {{ '审批意见:' | $lc }}<span class="color-primary">{{ '批准' | $lc }}</span>
21
21
  </template>
22
22
  <template v-else-if="item.result == status.reject">
23
- 审批意见:<span class="n20-approval-reject">驳回</span></template
23
+ {{ '审批意见:' | $lc }}<span class="n20-approval-reject">{{ '驳回' | $lc }}</span></template
24
24
  >
25
25
  <template v-else-if="item.result == status.invalid">
26
- 审批意见:<span class="n20-approval-reject">作废</span></template
26
+ {{ '审批意见:' | $lc }}<span class="n20-approval-reject">{{ '作废' | $lc }}</span></template
27
27
  >
28
28
  </div>
29
29
  </div>
@@ -38,6 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <script>
41
+ import { $lc } from '../../utils/i18n/index'
41
42
  import axios from '../../utils/axios'
42
43
  export default {
43
44
  name: 'ApprovalCard',
@@ -107,9 +108,9 @@ export default {
107
108
  ccUserName: item.ccUserName // 抄送人
108
109
  }
109
110
 
110
- if (item.taskName === '开始') {
111
+ if (item.taskName === $lc('开始')) {
111
112
  _item.result = 1
112
- } else if (item.taskName === '结束') {
113
+ } else if (item.taskName === $lc('结束')) {
113
114
  _item.result = 5
114
115
  } else if ('approvalState' in item) {
115
116
  _item.result = item.approvalState
@@ -39,10 +39,10 @@
39
39
  <div v-if="assigneeEnd" class="m-t-ss m-b-ss">
40
40
  <table cellspacing="0" style="border-collapse: collapse; min-width: 460px">
41
41
  <tr>
42
- <td class="text-c">已审批人</td>
43
- <td class="text-c">审批类型</td>
44
- <td class="text-c">审批意见</td>
45
- <td class="text-c">审批时间</td>
42
+ <td class="text-c">{{ '已审批人' | $lc }}</td>
43
+ <td class="text-c">{{ '审批类型' | $lc }}</td>
44
+ <td class="text-c">{{ '审批意见' | $lc }}</td>
45
+ <td class="text-c">{{ '审批时间' | $lc }}</td>
46
46
  </tr>
47
47
  <tr v-for="(item, i) in assigneeEnd" :key="i">
48
48
  <td>{{ item.assignee }}</td>
@@ -57,7 +57,7 @@
57
57
  </el-popover>
58
58
  <el-popover ref="addTask-pop" v-model="addTaskV" trigger="manual" placement="bottom">
59
59
  <div @click.stop>
60
- <div class="m-b el-dialog__title">加签流程</div>
60
+ <div class="m-b el-dialog__title">{{ '加签流程' | $lc }}</div>
61
61
  <div class="p-a" style="text-align: center">
62
62
  <svg v-if="addTaskList.length" :width="addTaskList.length * 160 - 50" height="82">
63
63
  <template v-for="(item, i) in addTaskList">
@@ -121,6 +121,7 @@
121
121
  </template>
122
122
 
123
123
  <script>
124
+ import { $lc } from '../../../utils/i18n/index'
124
125
  import importG from '../../../utils/importGlobal.js'
125
126
  export default {
126
127
  filters: {
@@ -269,9 +270,9 @@ export default {
269
270
  this.svgW.querySelector(`[data-element-id="${from}"]`).classList.add('activiti-node-reject')
270
271
  if (type === '1') {
271
272
  this.svgW.querySelector(`[data-element-id="${to}"]`).classList.add('activiti-node-reject')
272
- this.setRejectLink(from, to, '驳回至发起人')
273
+ this.setRejectLink(from, to, $lc('驳回至发起人'))
273
274
  } else if (type === '2') {
274
- this.setRejectLink(from, to, '驳回至上一步')
275
+ this.setRejectLink(from, to, $lc('驳回至上一步'))
275
276
  }
276
277
  }
277
278
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
- <el-button plain size="mini" :disabled="false" @click="imgV = true">流程图查看</el-button>
4
- <el-dialog title="查看流程" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
3
+ <el-button plain size="mini" :disabled="false" @click="imgV = true">{{ '流程图查看' | $lc }}</el-button>
4
+ <el-dialog :title="'查看流程' | $lc" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
5
5
  <approvalImg :proc-inst-id="procInstId" class="text-c p-a" style="height: 70vh; overflow: auto" />
6
6
  </el-dialog>
7
7
  </div>
@@ -1,16 +1,16 @@
1
1
  /* 审批记录 */
2
2
  <template>
3
3
  <div>
4
- <expandableWrap title="审批记录" :show-expand="false">
4
+ <expandableWrap :title="'审批记录' | $lc" :show-expand="false">
5
5
  <template slot="tips">
6
- <el-button plain size="mini" :disabled="false" @click="cardV = true">审批进度查看</el-button>
7
- <el-button plain size="mini" :disabled="false" @click="imgV = true">流程图查看</el-button>
6
+ <el-button plain size="mini" :disabled="false" @click="cardV = true">{{ '审批进度查看' | $lc }}</el-button>
7
+ <el-button plain size="mini" :disabled="false" @click="imgV = true">{{ '流程图查看' | $lc }}</el-button>
8
8
  </template>
9
9
  </expandableWrap>
10
- <el-dialog title="审批记录" :visible.sync="cardV" width="700" class="p-a-0" append-to-body top="10vh">
10
+ <el-dialog :title="'审批记录' | $lc" :visible.sync="cardV" width="700" class="p-a-0" append-to-body top="10vh">
11
11
  <approvalCard class="p-a" :proc-inst-id="$route.query.processInstanceId" style="height: 70vh; overflow: auto" />
12
12
  </el-dialog>
13
- <el-dialog title="查看流程" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
13
+ <el-dialog :title="'查看流程' | $lc" :visible.sync="imgV" width="65%" class="p-a-0" append-to-body top="10vh">
14
14
  <approvalImg
15
15
  class="text-c p-a"
16
16
  :proc-inst-id="$route.query.processInstanceId"
@@ -13,6 +13,7 @@
13
13
  </template>
14
14
 
15
15
  <script>
16
+ import {$lc} from '../../utils/i18n/index'
16
17
  export default {
17
18
  name: 'ButtonGroup',
18
19
  props: {
@@ -29,7 +30,7 @@ export default {
29
30
  if (btnt.includes('save')) {
30
31
  btns.push({
31
32
  emit: 'save',
32
- label: '保存',
33
+ label: $lc('保存'),
33
34
  type: 'primary',
34
35
  plain: false
35
36
  })
@@ -38,7 +39,7 @@ export default {
38
39
  if (btnt.includes('submit')) {
39
40
  btns.push({
40
41
  emit: 'submit',
41
- label: '提交',
42
+ label: $lc('提交'),
42
43
  type: 'primary',
43
44
  plain: false
44
45
  })
@@ -47,7 +48,7 @@ export default {
47
48
  if (btnt.includes('pass')) {
48
49
  btns.push({
49
50
  emit: 'pass',
50
- label: '通过',
51
+ label: $lc('通过'),
51
52
  type: 'primary',
52
53
  plain: false
53
54
  })
@@ -56,7 +57,7 @@ export default {
56
57
  if (btnt.includes('agree')) {
57
58
  btns.push({
58
59
  emit: 'agree',
59
- label: '同意',
60
+ label: $lc('同意'),
60
61
  type: 'primary',
61
62
  plain: false
62
63
  })
@@ -65,7 +66,7 @@ export default {
65
66
  if (btnt.includes('print')) {
66
67
  btns.push({
67
68
  emit: 'print',
68
- label: '打印',
69
+ label: $lc('打印'),
69
70
  type: 'primary',
70
71
  plain: false
71
72
  })
@@ -73,7 +74,7 @@ export default {
73
74
  if (btnt.includes('preStep')) {
74
75
  btns.push({
75
76
  emit: 'preStep',
76
- label: '上一步',
77
+ label: $lc('上一步'),
77
78
  type: 'primary',
78
79
  plain: false
79
80
  })
@@ -81,28 +82,28 @@ export default {
81
82
  if (btnt.includes('nextStep')) {
82
83
  btns.push({
83
84
  emit: 'nextStep',
84
- label: '下一步',
85
+ label: $lc('下一步'),
85
86
  type: 'primary',
86
87
  plain: false
87
88
  })
88
89
  }
89
90
 
90
91
  if (btnt.includes('refuse')) {
91
- btns.push({ emit: 'refuse', label: '驳回', plain: true })
92
+ btns.push({ emit: 'refuse', label: $lc('驳回'), plain: true })
92
93
  }
93
94
 
94
95
  if (btnt.includes('copy')) {
95
- btns.push({ emit: 'copy', label: '复制', plain: true })
96
+ btns.push({ emit: 'copy', label: $lc('复制'), plain: true })
96
97
  }
97
98
 
98
99
  if (btnt.includes('rejected')) {
99
- btns.push({ emit: 'rejected', label: '拒绝', plain: true })
100
+ btns.push({ emit: 'rejected', label: $lc('拒绝'), plain: true })
100
101
  }
101
102
 
102
103
  if (btnt.includes('reset')) {
103
104
  btns.push({
104
105
  emit: 'reset',
105
- label: '重置',
106
+ label: $lc('重置'),
106
107
  type: 'primary',
107
108
  plain: true
108
109
  })
@@ -111,34 +112,34 @@ export default {
111
112
  if (btnt.includes('stash')) {
112
113
  btns.push({
113
114
  emit: 'stash',
114
- label: '暂存',
115
+ label: $lc('暂存'),
115
116
  type: 'primary',
116
117
  plain: true
117
118
  })
118
119
  }
119
120
 
120
121
  if (btnt.includes('fileInfo')) {
121
- btns.push({ emit: 'fileInfo', label: '附件信息', plain: true })
122
+ btns.push({ emit: 'fileInfo', label: $lc('附件信息'), plain: true })
122
123
  }
123
124
 
124
125
  if (btnt.includes('information')) {
125
- btns.push({ emit: 'information', label: '附件信息', plain: true })
126
+ btns.push({ emit: 'information', label: $lc('附件信息'), plain: true })
126
127
  }
127
128
 
128
129
  if (btnt.includes('orderCancel')) {
129
130
  btns.push({
130
131
  emit: 'orderCancel',
131
- label: '预约取消',
132
+ label: $lc('预约取消'),
132
133
  type: 'primary',
133
134
  plain: true
134
135
  })
135
136
  }
136
137
 
137
138
  if (btnt.includes('cancle')) {
138
- btns.push({ emit: 'cancle', label: '取消', plain: true })
139
+ btns.push({ emit: 'cancle', label: $lc('取消'), plain: true })
139
140
  }
140
141
  if (btnt.includes('back')) {
141
- btns.push({ emit: 'back', label: '返回', plain: true })
142
+ btns.push({ emit: 'back', label: $lc('返回'), plain: true })
142
143
  }
143
144
 
144
145
  return btns
@@ -9,7 +9,7 @@
9
9
  v-model="value1"
10
10
  class="from flex-item"
11
11
  :disabled="disabled"
12
- placeholder="子票区间起"
12
+ :placeholder="'子票区间起' | $lc"
13
13
  @blur="handleBlurleft"
14
14
  @focus="handleFocusLeft"
15
15
  @input="handleInputleft"
@@ -21,7 +21,7 @@
21
21
  v-model="value2"
22
22
  class="to flex-item"
23
23
  :disabled="disabled"
24
- placeholder="子票区间止"
24
+ :placeholder="'子票区间止' | $lc"
25
25
  @blur="handleBlurRight"
26
26
  @focus="handleFocusRight"
27
27
  @input="handleInputRight"
@@ -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: 'ContentLoading',
8
9
  data() {
9
10
  return {
10
11
  loading: true,
11
- loadingText: '加载中',
12
+ loadingText: $lc('加载中'),
12
13
  timeout: 12000
13
14
  }
14
15
  },
@@ -29,11 +30,11 @@ export default {
29
30
  clearTimeout(this.sT)
30
31
 
31
32
  this.sT = setTimeout(() => {
32
- this.loadingText = '请求超时,请刷新尝试'
33
+ this.loadingText = $lc('请求超时,请刷新尝试')
33
34
  }, this.timeout)
34
35
  },
35
36
  clearTimeOut() {
36
- this.loadingText = '加载中'
37
+ this.loadingText = $lc('加载中')
37
38
  clearTimeout(this.sT)
38
39
  }
39
40
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <empty-box type="404">
3
- <div slot="content">暂无访问权限</div>
3
+ <div slot="content">{{ '暂无访问权限' | $lc }}</div>
4
4
  </empty-box>
5
5
  </template>
6
6
 
@@ -6,9 +6,9 @@
6
6
  :class="{ 'has-value': clearable && valueC }"
7
7
  :type="type"
8
8
  :value-format="valueFormat"
9
- placeholder="选择日期"
10
- start-placeholder="开始日期"
11
- end-placeholder="结束日期"
9
+ :placeholder="'选择日期' | $lc"
10
+ :start-placeholder="'开始日期' | $lc"
11
+ :end-placeholder="'结束日期' | $lc"
12
12
  :picker-options="pickerOptions"
13
13
  :clearable="clearable"
14
14
  v-bind="$attrs"
@@ -17,12 +17,13 @@
17
17
  </template>
18
18
 
19
19
  <script>
20
+ import { $lc } from '../../utils/i18n/index'
20
21
  let disabledDate_1 = (t) => {
21
22
  return t < Date.now() - 86400000
22
23
  }
23
24
  let shortcuts_1 = [
24
25
  {
25
- text: '最近一月',
26
+ text: $lc('最近一月'),
26
27
  onClick(picker) {
27
28
  const start = new Date()
28
29
  start.setMonth(start.getMonth() - 1)
@@ -30,7 +31,7 @@ let shortcuts_1 = [
30
31
  }
31
32
  },
32
33
  {
33
- text: '最近三月',
34
+ text: $lc('最近三月'),
34
35
  onClick(picker) {
35
36
  const start = new Date()
36
37
  start.setMonth(start.getMonth() - 3)
@@ -38,7 +39,7 @@ let shortcuts_1 = [
38
39
  }
39
40
  },
40
41
  {
41
- text: '最近六月',
42
+ text: $lc('最近六月'),
42
43
  onClick(picker) {
43
44
  const start = new Date()
44
45
  start.setMonth(start.getMonth() - 6)
@@ -46,7 +47,7 @@ let shortcuts_1 = [
46
47
  }
47
48
  },
48
49
  {
49
- text: '最近一年',
50
+ text: $lc('最近一年'),
50
51
  onClick(picker) {
51
52
  const start = new Date()
52
53
  start.setFullYear(start.getFullYear() - 1)
@@ -56,7 +57,7 @@ let shortcuts_1 = [
56
57
  ]
57
58
  let shortcuts_2 = [
58
59
  {
59
- text: '最近一月',
60
+ text: $lc('最近一月'),
60
61
  onClick(picker) {
61
62
  const end = new Date()
62
63
  const start = new Date()
@@ -65,7 +66,7 @@ let shortcuts_2 = [
65
66
  }
66
67
  },
67
68
  {
68
- text: '最近三月',
69
+ text: $lc('最近三月'),
69
70
  onClick(picker) {
70
71
  const end = new Date()
71
72
  const start = new Date()
@@ -74,7 +75,7 @@ let shortcuts_2 = [
74
75
  }
75
76
  },
76
77
  {
77
- text: '最近六月',
78
+ text: $lc('最近六月'),
78
79
  onClick(picker) {
79
80
  const end = new Date()
80
81
  const start = new Date()
@@ -83,7 +84,7 @@ let shortcuts_2 = [
83
84
  }
84
85
  },
85
86
  {
86
- text: '最近一年',
87
+ text: $lc('最近一年'),
87
88
  onClick(picker) {
88
89
  const end = new Date()
89
90
  const start = new Date()
@@ -16,6 +16,7 @@
16
16
  </template>
17
17
 
18
18
  <script>
19
+ import { $lc } from '../../utils/i18n/index'
19
20
  export default {
20
21
  name: 'Diff',
21
22
  props: {
@@ -57,7 +58,7 @@ export default {
57
58
  return undefined
58
59
  } else {
59
60
  if (this.tooltip === true) {
60
- return '修改前数据内容'
61
+ return $lc('修改前数据内容')
61
62
  } else {
62
63
  return this.tooltip
63
64
  }
@@ -3,7 +3,7 @@
3
3
  <div ref="ad">
4
4
  <el-card class="box-card" :header="header">
5
5
  <cB />
6
- <p>这里的传值,是只依赖DOM结构,利用自定义事件/事件冒泡实现值得传递</p>
6
+ <p>{{ '这里的传值,是只依赖DOM结构,利用自定义事件/事件冒泡实现值得传递' | $lc }}</p>
7
7
  </el-card>
8
8
  </div>
9
9
  </div>