n20-common-lib 2.22.52 → 2.22.53

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 (97) hide show
  1. package/package.json +1 -1
  2. package/src/components/AIButton/index.vue +6 -5
  3. package/src/components/ApprovalButtons/index.vue +3 -3
  4. package/src/components/ApprovalButtons/indexApp.vue +10 -29
  5. package/src/components/ApprovalButtons/selectSpr.vue +1 -1
  6. package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
  7. package/src/components/ApprovalButtons/showOtherAttr.vue +2 -2
  8. package/src/components/ApprovalButtons/showOtherAttrNew.vue +8 -6
  9. package/src/components/ApprovalCard/index.vue +6 -6
  10. package/src/components/ApprovalCard/indexApp.vue +2 -2
  11. package/src/components/ApprovalRecord/approvalImg.vue +1 -1
  12. package/src/components/ApprovalRecord/approvalImgPro/child.vue +3 -3
  13. package/src/components/ApprovalRecord/approvalImgPro/index.vue +3 -3
  14. package/src/components/AttachmentPass/index.vue +7 -7
  15. package/src/components/DateChoose/index.vue +41 -36
  16. package/src/components/DatePicker/index.vue +2 -2
  17. package/src/components/DateSelect/busiDate.vue +5 -4
  18. package/src/components/DateSelect/index.vue +9 -8
  19. package/src/components/DateSelect/quarterDatePicker.vue +12 -11
  20. package/src/components/Diff/index.vue +2 -1
  21. package/src/components/DynamicField/DynamicField.vue +1 -1
  22. package/src/components/DynamicField/DynamicFieldMixin.js +3 -2
  23. package/src/components/DynamicField/DynamicFieldOptions.vue +80 -58
  24. package/src/components/DynamicField/DynamicTable.vue +4 -4
  25. package/src/components/DynamicField/contentPop.vue +8 -6
  26. package/src/components/DynamicField/tableList.vue +7 -5
  27. package/src/components/DynamicField/tableView.vue +20 -6
  28. package/src/components/ElectronicArchive/index.vue +18 -16
  29. package/src/components/EventBubble/demo/c.vue +2 -1
  30. package/src/components/FileExportAsync/index.vue +11 -10
  31. package/src/components/FileImport/index.vue +2 -1
  32. package/src/components/FileUploadTable/FileUploadTableV3.vue +10 -11
  33. package/src/components/FileUploadTable/aiCheckDialog.vue +13 -11
  34. package/src/components/FileUploadTable/index.vue +15 -14
  35. package/src/components/Filters/indexO.vue +3 -2
  36. package/src/components/HandlingAdvice/index.vue +4 -3
  37. package/src/components/InputNumber/index.vue +2 -1
  38. package/src/components/Layout/HeaderWrap/changePwd.vue +8 -7
  39. package/src/components/Layout/HeaderWrap/index.vue +11 -10
  40. package/src/components/Layout/HeaderWrap/indexN.vue +21 -20
  41. package/src/components/Layout/HeaderWrap/noticePop.vue +8 -7
  42. package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
  43. package/src/components/Layout/index.vue +2 -1
  44. package/src/components/Layout/indexN.vue +2 -1
  45. package/src/components/LoginSetting/index.vue +14 -13
  46. package/src/components/LoginSetting/indexN.vue +11 -10
  47. package/src/components/LoginSetting/setItem.vue +22 -21
  48. package/src/components/LoginTemporary/form.vue +17 -16
  49. package/src/components/LoginTemporary/index.vue +5 -4
  50. package/src/components/LoginTemporary/indexN.vue +20 -19
  51. package/src/components/LoginTemporary/retrievePw.vue +11 -10
  52. package/src/components/PageHeader/index.vue +2 -1
  53. package/src/components/SelectDatePickerPro/busiDate.vue +6 -4
  54. package/src/components/SelectDatePickerPro/halfYearPicker.vue +3 -2
  55. package/src/components/SelectDatePickerPro/index.vue +13 -11
  56. package/src/components/SelectDatePickerPro/quarterDatePicker.vue +6 -4
  57. package/src/components/SelectTree/pro.vue +1 -1
  58. package/src/components/ShowColumn/index.vue +13 -12
  59. package/src/components/Stamp/index.vue +8 -7
  60. package/src/components/Statis/index.vue +9 -8
  61. package/src/components/Statis/statisItem.vue +4 -3
  62. package/src/components/Table/indexO.vue +2 -1
  63. package/src/components/TablePro/filterContent.vue +2 -2
  64. package/src/components/TablePro/filterContent_tree.vue +6 -5
  65. package/src/components/TablePro/index.js +2 -1
  66. package/src/components/TablePro/index.vue +2 -1
  67. package/src/components/TableTransfer/index.vue +2 -1
  68. package/src/components/Upload/index.vue +9 -8
  69. package/src/components/Upload/uploadMsg.vue +2 -1
  70. package/src/components/WornPagination/index.vue +3 -1
  71. package/src/components/operatingStatus/index.vue +9 -7
  72. package/src/i18n.json +5800 -714
  73. package/src/index.js +2 -2
  74. package/src/plugins/SetMenuTree/index.vue +1 -1
  75. package/src/plugins/SetMenuTree/setmenutree.vue +36 -34
  76. package/src/plugins/Sign/CaMap.js +12 -11
  77. package/src/plugins/Sign/Itrus/index.js +58 -56
  78. package/src/plugins/Sign/Itrus/sign_3720.js +53 -51
  79. package/src/plugins/Sign/NetSM3/index.js +12 -10
  80. package/src/plugins/Sign/NetV3/index.js +20 -18
  81. package/src/plugins/Sign/SkfSign/index.js +12 -10
  82. package/src/plugins/Sign/bjca/XTXSAB.js +17 -16
  83. package/src/plugins/Sign/bjca/index.js +19 -17
  84. package/src/plugins/Sign/cfca/index.js +11 -9
  85. package/src/plugins/Sign/codeMap.js +151 -150
  86. package/src/plugins/Sign/hnca/index.js +51 -49
  87. package/src/plugins/Sign/index.js +6 -4
  88. package/src/plugins/Sign/kySign/index.js +11 -9
  89. package/src/plugins/Sign/netca/index.js +9 -7
  90. package/src/plugins/Sign/netca/netca.base.1.1.0.js +29 -28
  91. package/src/plugins/Sign/sdca/index.js +17 -15
  92. package/src/plugins/Sign/sign.js +10 -8
  93. package/src/plugins/Sign/signV3/sign.js +14 -12
  94. package/src/plugins/Sign/sign_back.js +11 -9
  95. package/src/utils/amountInWords.js +8 -6
  96. package/src/utils/axios.js +9 -8
  97. package/src/utils/relaNo.js +3 -1
@@ -3,15 +3,17 @@
3
3
  <div slot="header">
4
4
  <div class="flex-box flex-r m-t-s">
5
5
  <el-button v-if="type === 1" icon="n20-icon-shuaxin" plain onlyicon size="mini" @click="getData" />
6
- <el-button v-if="type === 1" size="mini" type="primary" @click="option('新增')">新增</el-button>
7
- <el-button v-if="type === 1" size="mini" type="danger" plain @click="option('删除')">删除</el-button>
8
- <el-button v-if="hasTransform" size="mini" plain onlyicon @click="option('下载Json配置')"
9
- >下载Json配置</el-button
10
- >
6
+ <el-button v-if="type === 1" size="mini" type="primary" @click="option('新增')">{{ $lc('新增') }}</el-button>
7
+ <el-button v-if="type === 1" size="mini" type="danger" plain @click="option('删除')">{{
8
+ $lc('删除')
9
+ }}</el-button>
10
+ <el-button v-if="hasTransform" size="mini" plain onlyicon @click="option('下载Json配置')">{{
11
+ $lc('下载Json配置')
12
+ }}</el-button>
11
13
  <!-- <el-button v-if="type === 1" size="mini" plain @click="option('导出')">导出</el-button> -->
12
14
  <el-button
13
15
  v-if="hasTransform"
14
- v-title="'转换'"
16
+ v-title="$lc('转换')"
15
17
  size="mini"
16
18
  icon="n20-icon-caidan"
17
19
  plain
@@ -20,7 +22,7 @@
20
22
  />
21
23
  <el-button
22
24
  v-if="hasTableOption"
23
- v-title="'生成table配置'"
25
+ v-title="$lc('生成table配置')"
24
26
  size="mini"
25
27
  icon="n20-icon-wenjian"
26
28
  plain
@@ -40,7 +42,7 @@
40
42
  class="m-t-s Tabledrag"
41
43
  @selection-change-method="handleSelectionChange"
42
44
  >
43
- <vxe-column slot="order" title="排序" width="60px" align="center">
45
+ <vxe-column slot="order" :title="$lc('排序')" width="60px" align="center">
44
46
  <i class="n20-icon-tuodong draggable-button"></i>
45
47
  </vxe-column>
46
48
  <!-- 取值规则 -->
@@ -55,7 +57,7 @@
55
57
  <el-input
56
58
  v-if="row.fieldType !== 'select'"
57
59
  v-model="row[column.prop]"
58
- placeholder="请输入"
60
+ :placeholder="$lc('请输入')"
59
61
  size="normal"
60
62
  clearable
61
63
  />
@@ -65,10 +67,22 @@
65
67
  </template>
66
68
  </vxe-column>
67
69
  <vxe-column slot="input" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
68
- <el-input v-model="row[column.prop]" slot-scope="{ row }" placeholder="请输入" size="normal" clearable />
70
+ <el-input
71
+ v-model="row[column.prop]"
72
+ slot-scope="{ row }"
73
+ :placeholder="$lc('请输入')"
74
+ size="normal"
75
+ clearable
76
+ />
69
77
  </vxe-column>
70
78
  <vxe-column slot="select" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
71
- <el-select v-model="row[column.prop]" slot-scope="{ row }" placeholder="请选择" clearable filterable>
79
+ <el-select
80
+ v-model="row[column.prop]"
81
+ slot-scope="{ row }"
82
+ :placeholder="$lc('请选择')"
83
+ clearable
84
+ filterable
85
+ >
72
86
  <el-option v-for="item in options[column.prop]" :key="item.code" :label="item.name" :value="item.code" />
73
87
  </el-select>
74
88
  </vxe-column>
@@ -80,7 +94,13 @@
80
94
  :field="column.prop"
81
95
  :title="column.label"
82
96
  >
83
- <el-select v-model="row[column.prop]" slot-scope="{ row }" placeholder="请选择" clearable filterable>
97
+ <el-select
98
+ v-model="row[column.prop]"
99
+ slot-scope="{ row }"
100
+ :placeholder="$lc('请选择')"
101
+ clearable
102
+ filterable
103
+ >
84
104
  <el-option v-for="item in fieldType" :key="item.code" :label="item.name" :value="item.code" />
85
105
  </el-select>
86
106
  </vxe-column>
@@ -111,18 +131,18 @@
111
131
  @formItemClick="formItemClick"
112
132
  >
113
133
  <el-radio-group slot="input1" v-model="formValue.select" class="m-t-s">
114
- <el-radio :label="3">备选项</el-radio>
115
- <el-radio :label="6">备选项</el-radio>
116
- <el-radio :label="9" disabled>备选项</el-radio>
134
+ <el-radio :label="3">{{ $lc('备选项') }}</el-radio>
135
+ <el-radio :label="6">{{ $lc('备选项') }}</el-radio>
136
+ <el-radio :label="9" disabled>{{ $lc('备选项') }}</el-radio>
117
137
  </el-radio-group>
118
138
  </DynamicField>
119
139
  </div>
120
140
  </transition>
121
141
  <div slot="footer" class="page-button-shadow flex-box flex-c flex-v">
122
- <el-button type="primary" @click="option('保存')">保存</el-button>
123
- <el-button plain @click="option('重置')">重置</el-button>
142
+ <el-button type="primary" @click="option('保存')">{{ $lc('保存') }}</el-button>
143
+ <el-button plain @click="option('重置')">{{ $lc('重置') }}</el-button>
124
144
  </div>
125
- <cl-dialog v-drag :visible.sync="visible" title="数据引用" :destroy-on-open="true">
145
+ <cl-dialog v-drag :visible.sync="visible" :title="$lc('数据引用')" :destroy-on-open="true">
126
146
  <content-pop v-model="selectFieldValue" :visible.sync="visible" @save="dialogSave" />
127
147
  </cl-dialog>
128
148
  <tableView ref="tableView" />
@@ -130,6 +150,7 @@
130
150
  </template>
131
151
 
132
152
  <script>
153
+ import { $lc } from '../../utils/i18n/index.js'
133
154
  import ClPage from '../PageLayout/page.vue'
134
155
  import Sortable from 'sortablejs'
135
156
  import customFormOptionsData from './jsonData/customFormOptionsData.json'
@@ -140,6 +161,7 @@ import contentPop from './contentPop.vue'
140
161
  import tableView from './tableView.vue'
141
162
  import ClDialog from '../Dialog/index.vue'
142
163
  import ClTablePro from '../TablePro/index.vue'
164
+
143
165
  export default {
144
166
  name: 'DynamicFieldOptions',
145
167
  components: { DynamicField, contentPop, tableView, ClPage, ClDialog, ClTablePro },
@@ -157,19 +179,19 @@ export default {
157
179
  type: Array,
158
180
  default: () => {
159
181
  return [
160
- '排序',
161
- '序号',
162
- '栏目',
163
- '字段名称',
164
- '是否在列表显示',
165
- '是否启用',
166
- '是否必填',
167
- '是否可编辑',
168
- '是否可变更',
169
- '控件类型',
170
- '取值规则',
171
- '默认值',
172
- '字段说明'
182
+ $lc('排序'),
183
+ $lc('序号'),
184
+ $lc('栏目'),
185
+ $lc('字段名称'),
186
+ $lc('是否在列表显示'),
187
+ $lc('是否启用'),
188
+ $lc('是否必填'),
189
+ $lc('是否可编辑'),
190
+ $lc('是否可变更'),
191
+ $lc('控件类型'),
192
+ $lc('取值规则'),
193
+ $lc('默认值'),
194
+ $lc('字段说明')
173
195
  ]
174
196
  }
175
197
  },
@@ -185,9 +207,9 @@ export default {
185
207
  return {
186
208
  fieldType: [],
187
209
  fieldGroup: [
188
- { code: '基础信息', name: '基础信息' },
189
- { code: '汇款申请书', name: '汇款申请书' },
190
- { code: '收款人', name: '收款人' }
210
+ { code: $lc('基础信息'), name: $lc('基础信息') },
211
+ { code: $lc('汇款申请书'), name: $lc('汇款申请书') },
212
+ { code: $lc('收款人'), name: $lc('收款人') }
191
213
  ]
192
214
  }
193
215
  }
@@ -197,12 +219,12 @@ export default {
197
219
  return {
198
220
  visible: false,
199
221
  fieldType: [
200
- { code: 'input', name: '输入框' },
201
- { code: 'input-number', name: '金额输入框' },
202
- { code: 'select', name: '下拉框' },
203
- { code: 'selectMultiple', name: '多选下拉框' },
204
- { code: 'date-picker', name: '日期选择' },
205
- { code: 'textarea', name: '大文本' }
222
+ { code: 'input', name: $lc('输入框') },
223
+ { code: 'input-number', name: $lc('金额输入框') },
224
+ { code: 'select', name: $lc('下拉框') },
225
+ { code: 'selectMultiple', name: $lc('多选下拉框') },
226
+ { code: 'date-picker', name: $lc('日期选择') },
227
+ { code: 'textarea', name: $lc('大文本') }
206
228
  // 这三种暂时不开放
207
229
  /* { code: 'input-number-range', name: '金额区间' },
208
230
  { code: 'input-rate-range', name: '利率区间' },
@@ -216,16 +238,16 @@ export default {
216
238
  width: '46',
217
239
  fixed: 'left',
218
240
  align: 'center',
219
- prop: '勾选',
241
+ prop: $lc('勾选'),
220
242
  static: 'pre' // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"前面"
221
243
  },
222
244
  {
223
- label: '排序',
245
+ label: $lc('排序'),
224
246
  slotName: 'order'
225
247
  },
226
248
  {
227
249
  slotName: 'select',
228
- label: '栏目',
250
+ label: $lc('栏目'),
229
251
  prop: 'fieldGroup',
230
252
  align: 'center',
231
253
  width: '150',
@@ -233,7 +255,7 @@ export default {
233
255
  },
234
256
  {
235
257
  slotName: 'fieldType',
236
- label: '控件类型',
258
+ label: $lc('控件类型'),
237
259
  prop: 'fieldType',
238
260
  align: 'center',
239
261
  width: '150',
@@ -241,7 +263,7 @@ export default {
241
263
  },
242
264
  {
243
265
  slotName: 'input',
244
- label: '字段code',
266
+ label: $lc('字段code'),
245
267
  prop: 'fieldCode',
246
268
  align: 'center',
247
269
  width: '150',
@@ -249,7 +271,7 @@ export default {
249
271
  },
250
272
  {
251
273
  slotName: 'input',
252
- label: '字段名称',
274
+ label: $lc('字段名称'),
253
275
  prop: 'fieldName',
254
276
  align: 'center',
255
277
  width: '150',
@@ -257,7 +279,7 @@ export default {
257
279
  },
258
280
  {
259
281
  slotName: 'check',
260
- label: '是否在列表显示',
282
+ label: $lc('是否在列表显示'),
261
283
  prop: 'isTableShow',
262
284
  align: 'center',
263
285
  width: '120',
@@ -265,7 +287,7 @@ export default {
265
287
  },
266
288
  {
267
289
  slotName: 'check',
268
- label: '是否启用',
290
+ label: $lc('是否启用'),
269
291
  prop: 'isEnabled',
270
292
  align: 'center',
271
293
  width: '120',
@@ -273,7 +295,7 @@ export default {
273
295
  },
274
296
  {
275
297
  slotName: 'check',
276
- label: '是否必填',
298
+ label: $lc('是否必填'),
277
299
  prop: 'isMust',
278
300
  align: 'center',
279
301
  width: '120',
@@ -281,7 +303,7 @@ export default {
281
303
  },
282
304
  {
283
305
  slotName: 'check',
284
- label: '是否可编辑',
306
+ label: $lc('是否可编辑'),
285
307
  prop: 'isEdite',
286
308
  align: 'center',
287
309
  width: '120',
@@ -289,7 +311,7 @@ export default {
289
311
  },
290
312
  {
291
313
  slotName: 'check',
292
- label: '是否可变更',
314
+ label: $lc('是否可变更'),
293
315
  prop: 'isChange',
294
316
  align: 'center',
295
317
  width: '120',
@@ -298,7 +320,7 @@ export default {
298
320
 
299
321
  {
300
322
  slotName: 'fieldValue',
301
- label: '取值规则',
323
+ label: $lc('取值规则'),
302
324
  prop: 'fieldValue',
303
325
  align: 'center',
304
326
  width: '200',
@@ -306,7 +328,7 @@ export default {
306
328
  },
307
329
  {
308
330
  slotName: 'input',
309
- label: '默认值',
331
+ label: $lc('默认值'),
310
332
  prop: 'defaultValue',
311
333
  align: 'center',
312
334
  width: '160',
@@ -314,7 +336,7 @@ export default {
314
336
  },
315
337
  {
316
338
  slotName: 'input',
317
- label: '字段说明',
339
+ label: $lc('字段说明'),
318
340
  prop: 'remark',
319
341
  align: 'center',
320
342
  width: '200',
@@ -353,7 +375,7 @@ export default {
353
375
  pz(row, index) {
354
376
  this.selectFieldValue = row.fieldValue || []
355
377
  this.selectIndex = index
356
- this.title = '数据来源'
378
+ this.title = $lc('数据来源')
357
379
  this.visible = true
358
380
  },
359
381
  dialogSave(value) {
@@ -414,7 +436,7 @@ export default {
414
436
  switch (key) {
415
437
  case '下载Json配置':
416
438
  a.href = url
417
- a.download = '动态字段配置.json'
439
+ a.download = $lc('动态字段配置.json')
418
440
  document.body.appendChild(a)
419
441
  a.click()
420
442
  // 释放 URL 对象
@@ -437,7 +459,7 @@ export default {
437
459
  break
438
460
  case '删除':
439
461
  if (this.selectData.length === 0) {
440
- this.$message.warning('至少选择一条数据')
462
+ this.$message.warning($lc('至少选择一条数据'))
441
463
  return false
442
464
  }
443
465
  this.tableData = this.tableData.filter((item) => {
@@ -457,7 +479,7 @@ export default {
457
479
  if (valid) {
458
480
  console.log(this.formValue)
459
481
  } else {
460
- this.$message.warning('请填写完整信息')
482
+ this.$message.warning($lc('请填写完整信息'))
461
483
  }
462
484
  })
463
485
  }
@@ -112,7 +112,7 @@
112
112
  >
113
113
  <el-select
114
114
  v-model="row[column.prop]"
115
- :placeholder="column.placeholder || (column.filterable ? '请输入关键词' : column.label)"
115
+ :placeholder="column.placeholder || (column.filterable ? $lc('请输入关键词') : column.label)"
116
116
  :remote-method="(query) => column.remoteMethod && column.remoteMethod(query, { ...$attrs, item, value })"
117
117
  :clearable="column.clearable === false ? false : true"
118
118
  :multiple="false"
@@ -165,7 +165,7 @@
165
165
  >
166
166
  <el-select
167
167
  v-model="row[column.prop]"
168
- :placeholder="column.placeholder || (column.filterable ? '请输入关键词' : column.label)"
168
+ :placeholder="column.placeholder || (column.filterable ? $lc('请输入关键词') : column.label)"
169
169
  :remote-method="(query) => column.remoteMethod && column.remoteMethod(query, { ...$attrs, item, value })"
170
170
  :clearable="column.clearable === false ? false : true"
171
171
  :multiple="true"
@@ -223,7 +223,7 @@
223
223
  :disabled="column.disabled || row[column.prop + '_disabled']"
224
224
  type="date"
225
225
  value-format="yyyy-MM-dd"
226
- placeholder="请选择日期"
226
+ :placeholder="$lc('请选择日期')"
227
227
  :clearable="column.clearable === false ? false : true"
228
228
  @change="(value) => $emit('valueChange', value, column.prop, row, column)"
229
229
  />
@@ -291,7 +291,7 @@
291
291
  v-model="row[column.prop]"
292
292
  type="textarea"
293
293
  :rows="1"
294
- placeholder="请输入内容"
294
+ :placeholder="$lc('请输入内容')"
295
295
  maxlength="150"
296
296
  show-word-limit
297
297
  v-bind="column"
@@ -3,12 +3,12 @@
3
3
  <div class="flex-box flex-lr flex-v m-b-s">
4
4
  <div></div>
5
5
  <div>
6
- <el-button type="primary" size="mini" @click="option('新增')">新增</el-button>
6
+ <el-button type="primary" size="mini" @click="option('新增')">{{ $lc('新增') }}</el-button>
7
7
  </div>
8
8
  </div>
9
9
  <cl-table-pro ref="xTable" :loading="loading" :data="value" :columns="TableHeader" :height="'300px'">
10
10
  <vxe-column slot="input" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
11
- <el-input v-model="row[column.prop]" slot-scope="{ row }" placeholder="请输入" size="normal" clearable />
11
+ <el-input v-model="row[column.prop]" slot-scope="{ row }" :placeholder="$lc('请输入')" size="normal" clearable />
12
12
  </vxe-column>
13
13
  <vxe-column slot="delete" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
14
14
  <el-link
@@ -22,15 +22,17 @@
22
22
  </cl-table-pro>
23
23
 
24
24
  <div slot="footer" class="page-button-shadow flex-box flex-c flex-v">
25
- <el-button type="primary" @click="option('保存')">保存</el-button>
25
+ <el-button type="primary" @click="option('保存')">{{ $lc('保存') }}</el-button>
26
26
  <!-- <el-button plain @click="option('重置')">重置</el-button> -->
27
27
  </div>
28
28
  </cl-page>
29
29
  </template>
30
30
 
31
31
  <script>
32
+ import { $lc } from '../../utils/i18n/index.js'
32
33
  import ClPage from '../PageLayout/page.vue'
33
34
  import ClTablePro from '../TablePro/index.vue'
35
+
34
36
  export default {
35
37
  name: 'ContentPop',
36
38
  components: {
@@ -54,13 +56,13 @@ export default {
54
56
  }, */
55
57
  {
56
58
  type: 'seq',
57
- label: '序号',
59
+ label: $lc("序号"),
58
60
  width: '56',
59
61
  align: 'center'
60
62
  },
61
63
  {
62
64
  slotName: 'input',
63
- label: '枚举名',
65
+ label: $lc("枚举名"),
64
66
  prop: 'label',
65
67
  align: 'left',
66
68
  minWidth: '120',
@@ -68,7 +70,7 @@ export default {
68
70
  },
69
71
  {
70
72
  slotName: 'input',
71
- label: '枚举值',
73
+ label: $lc("枚举值"),
72
74
  prop: 'value',
73
75
  width: '260'
74
76
  },
@@ -3,7 +3,7 @@
3
3
  <div slot="header" class="flex-box flex-v flex-lr m-b-s">
4
4
  <el-form :inline="true" @submit.native.prevent />
5
5
  <div class="flex-box flex-v">
6
- <el-button type="primary" size="mini" @click="handleWork('新增')">新增</el-button>
6
+ <el-button type="primary" size="mini" @click="handleWork('新增')">{{ $lc('新增') }}</el-button>
7
7
  </div>
8
8
  </div>
9
9
  <DynamicTable
@@ -48,7 +48,7 @@
48
48
  slot="name7"
49
49
  v-model="formValue.customList[rowIndex]['name7']"
50
50
  slot-scope="{ column, rowIndex }"
51
- placeholder="请选择"
51
+ :placeholder="$lc('请选择')"
52
52
  clearable
53
53
  filterable
54
54
  @change="
@@ -64,8 +64,8 @@
64
64
  <div class="flex-box flex-v">
65
65
  <cl-statis-item
66
66
  type="全部合计"
67
- :count-label="['笔数']"
68
- :list="[{ label: '笔数', value: formValue.customList.length }]"
67
+ :count-label="[$lc('笔数')]"
68
+ :list="[{ label: $lc('笔数'), value: formValue.customList.length }]"
69
69
  />
70
70
  </div>
71
71
  <div></div>
@@ -74,9 +74,11 @@
74
74
  </template>
75
75
 
76
76
  <script>
77
+ import { $lc } from '../../utils/i18n/index.js'
77
78
  import DynamicTable from './DynamicTable.vue'
78
79
  import clPage from '../PageLayout/page.vue'
79
80
  import clStatisItem from '../Statis/statisItem.vue'
81
+
80
82
  export default {
81
83
  name: 'TableList',
82
84
  components: {
@@ -131,7 +133,7 @@ export default {
131
133
  valueChange(value, key, row) {
132
134
  switch (key) {
133
135
  case 'input':
134
- if (value === '禁用') {
136
+ if (value === $lc('禁用')) {
135
137
  // this.$set(row, 'startDate_disabled', true)
136
138
  // this.list.startDate.disabled = true
137
139
  // this.makeTableHeaders()
@@ -1,15 +1,28 @@
1
1
  <template>
2
- <cl-dialog v-drag width="85%" max-dialog :visible.sync="tableVisible" title="数据展示" :destroy-on-open="true">
2
+ <cl-dialog
3
+ v-drag
4
+ width="85%"
5
+ max-dialog
6
+ :visible.sync="tableVisible"
7
+ :title="$lc('数据展示')"
8
+ :destroy-on-open="true"
9
+ >
3
10
  <cl-page class="contentPop">
4
11
  <div class="flex-box flex-lr flex-v m-b-s">
5
12
  <div></div>
6
13
  <div>
7
- <el-button type="primary" size="mini" @click="option('导出json')">导出json</el-button>
14
+ <el-button type="primary" size="mini" @click="option('导出json')">{{ $lc('导出json') }}</el-button>
8
15
  </div>
9
16
  </div>
10
17
  <cl-table-pro ref="xTable" :loading="loading" :data="value" :columns="TableHeader" :height="'300px'">
11
18
  <vxe-column slot="input" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
12
- <el-input v-model="row[column.prop]" slot-scope="{ row }" placeholder="请输入" size="normal" clearable />
19
+ <el-input
20
+ v-model="row[column.prop]"
21
+ slot-scope="{ row }"
22
+ :placeholder="$lc('请输入')"
23
+ size="normal"
24
+ clearable
25
+ />
13
26
  </vxe-column>
14
27
  <vxe-column slot="delete" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
15
28
  <el-link
@@ -31,6 +44,7 @@
31
44
  </template>
32
45
 
33
46
  <script>
47
+ import { $lc } from '../../utils/i18n/index.js'
34
48
  import clDialog from '../Dialog/index.vue'
35
49
  import ClPage from '../PageLayout/page.vue'
36
50
  import ClTablePro from '../TablePro/index.vue'
@@ -52,7 +66,7 @@ export default {
52
66
  TableHeader: [
53
67
  {
54
68
  slotName: 'input',
55
- label: '枚举名',
69
+ label: $lc('枚举名'),
56
70
  prop: 'label',
57
71
  align: 'left',
58
72
  minWidth: '120',
@@ -60,7 +74,7 @@ export default {
60
74
  },
61
75
  {
62
76
  slotName: 'input',
63
- label: '枚举值',
77
+ label: $lc('枚举值'),
64
78
  prop: 'value',
65
79
  width: '260'
66
80
  },
@@ -86,7 +100,7 @@ export default {
86
100
  },
87
101
  {
88
102
  type: 'seq',
89
- label: '序号',
103
+ label: $lc('序号'),
90
104
  width: '56',
91
105
  align: 'center'
92
106
  }
@@ -222,7 +222,7 @@
222
222
  <template v-slot="{ row }">
223
223
  <slot name="handle" :row="row">
224
224
  <el-button
225
- v-title="!officeStatus ? `缺少插件` : '预览'"
225
+ v-title="!officeStatus ? $lc('缺少插件') : $lc('预览')"
226
226
  type="text"
227
227
  :icon="!officeStatus ? 'n20-icon-yanjing' : 'el-icon-view'"
228
228
  :disabled="!row[keys.url]"
@@ -262,14 +262,16 @@
262
262
  :on-error="(err, file, fileList) => errorFn(err, file, fileList, this.row, $index)"
263
263
  >
264
264
  <template slot="trigger">
265
- <el-button size="small" type="primary">上传附件</el-button>
265
+ <el-button size="small" type="primary">{{ $lc('上传附件') }}</el-button>
266
266
  </template>
267
267
  </Upload>
268
- <el-button size="small" type="primary" class="m-l-s" @click="baseVisible = true">选择基础附件</el-button>
268
+ <el-button size="small" type="primary" class="m-l-s" @click="baseVisible = true">{{
269
+ $lc('选择基础附件')
270
+ }}</el-button>
269
271
  </div>
270
272
  </Dialog>
271
273
 
272
- <Dialog title="基础附件选择" width="85%" max-dialog :visible.sync="baseVisible">
274
+ <Dialog :title="$lc('基础附件选择')" width="85%" max-dialog :visible.sync="baseVisible">
273
275
  <el-table
274
276
  class="base-table_default"
275
277
  :row-style="rowStyle"
@@ -277,24 +279,24 @@
277
279
  :data="baseAttnoData"
278
280
  border
279
281
  >
280
- <el-table-column label="选择" align="center" width="65">
282
+ <el-table-column :label="$lc('选择')" align="center" width="65">
281
283
  <template scope="scope">
282
284
  <el-radio v-model="radio" :label="scope.$index" @change.native="getCurrentRow(scope.row)"
283
285
  >{{ '' }}
284
286
  </el-radio>
285
287
  </template>
286
288
  </el-table-column>
287
- <el-table-column prop="recordname" width="140px" show-overflow-tooltip label="文件名称" />
288
- <el-table-column prop="cltName" width="140px" show-overflow-tooltip label="所属单位" />
289
- <el-table-column prop="fileVersion" align="center" label="版本号" />
290
- <el-table-column prop="startValidTime" width="120px" label="起始有效时间" align="center" />
291
- <el-table-column prop="endValidTime" width="120px" label="截至有效时间" align="center" />
292
- <el-table-column prop="uploadTime" label="更新时间" width="160px" align="center">
289
+ <el-table-column prop="recordname" width="140px" show-overflow-tooltip :label="$lc('文件名称')" />
290
+ <el-table-column prop="cltName" width="140px" show-overflow-tooltip :label="$lc('所属单位')" />
291
+ <el-table-column prop="fileVersion" align="center" :label="$lc('版本号')" />
292
+ <el-table-column prop="startValidTime" width="120px" :label="$lc('起始有效时间')" align="center" />
293
+ <el-table-column prop="endValidTime" width="120px" :label="$lc('截至有效时间')" align="center" />
294
+ <el-table-column prop="uploadTime" :label="$lc('更新时间')" width="160px" align="center">
293
295
  <template v-slot="{ row }">
294
296
  {{ dayjs(row.uploadTime).format('YYYY-MM-DD HH:mm:ss') }}
295
297
  </template>
296
298
  </el-table-column>
297
- <el-table-column prop="isEnable" label="状态" align="center">
299
+ <el-table-column prop="isEnable" :label="$lc('状态')" align="center">
298
300
  <template v-slot="{ row }">
299
301
  <i v-if="row.isEnable === '0'" class="el-input__icon n20-icon-yichu color-danger"></i>
300
302
  <i v-if="row.isEnable === '1'" class="el-input__icon n20-icon-chenggong color-success"></i>
@@ -743,7 +745,7 @@ export default {
743
745
  // 自行下载
744
746
  let filesId = this.selectionList.map((item) => item.beid)
745
747
  if (filesId.length === 0) {
746
- return this.$message.warning('请勾选附件')
748
+ return this.$message.warning($lc('请勾选附件'))
747
749
  }
748
750
  let data = filesId.map((item) => {
749
751
  return {
@@ -762,7 +764,7 @@ export default {
762
764
  )
763
765
  .then((res) => {
764
766
  if (res) {
765
- downloadBlob(res, '附件压缩包.zip')
767
+ downloadBlob(res, $lc('附件压缩包.zip'))
766
768
  }
767
769
  })
768
770
  },
@@ -775,7 +777,7 @@ export default {
775
777
  async deleteRowsFn(rows, update) {
776
778
  if (rows.length === 0) {
777
779
  this.$message({
778
- message: '请勾选所需要删除的附件',
780
+ message: $lc('请勾选所需要删除的附件'),
779
781
  type: 'warning'
780
782
  })
781
783
  return
@@ -795,7 +797,7 @@ export default {
795
797
  if (res.code === 200) {
796
798
  if (!update) {
797
799
  this.tableData = this.tableData.filter((item) => filesId.indexOf(item.beid) === -1)
798
- this.$message.success('删除成功')
800
+ this.$message.success($lc('删除成功'))
799
801
  this.callBackFileData(this.tableData)
800
802
  }
801
803
  }