n20-common-lib 3.2.39 → 3.2.40

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 (70) hide show
  1. package/package.json +1 -1
  2. package/src/components/AIButton/index.vue +6 -5
  3. package/src/components/AdvancedFilter/index.vue +4 -3
  4. package/src/components/ApprovalButtons/index.vue +26 -22
  5. package/src/components/ApprovalButtons/indexApp.vue +19 -13
  6. package/src/components/ApprovalButtons/selectSpr.vue +1 -1
  7. package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
  8. package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
  9. package/src/components/ApprovalButtons/showOtherAttrNew.vue +4 -4
  10. package/src/components/ApprovalCard/index.vue +7 -7
  11. package/src/components/ApprovalCard/indexApp.vue +2 -2
  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 +33 -33
  16. package/src/components/DatePicker/index.vue +1 -1
  17. package/src/components/DateSelect/busiDate.vue +7 -4
  18. package/src/components/DateSelect/index.vue +8 -8
  19. package/src/components/DateSelect/quarterDatePicker.vue +11 -11
  20. package/src/components/DynamicField/DynamicField.vue +2 -2
  21. package/src/components/DynamicField/DynamicFieldOptions.vue +57 -57
  22. package/src/components/DynamicField/DynamicFormView.vue +13 -13
  23. package/src/components/DynamicField/DynamicTable.vue +4 -4
  24. package/src/components/DynamicField/contentPop.vue +6 -6
  25. package/src/components/DynamicField/tableList.vue +5 -5
  26. package/src/components/DynamicField/tableView.vue +20 -6
  27. package/src/components/ElectronicArchive/index.vue +20 -17
  28. package/src/components/FileExportAsync/index.vue +3 -3
  29. package/src/components/FileUploadTable/aiCheckDialog.vue +11 -11
  30. package/src/components/FileUploadTable/index.vue +3 -3
  31. package/src/components/HandlingAdvice/index.vue +3 -3
  32. package/src/components/Layout/HeaderWrap/changePwd.vue +2 -2
  33. package/src/components/Layout/HeaderWrap/index.vue +2 -2
  34. package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
  35. package/src/components/LoginSetting/setItem.vue +16 -16
  36. package/src/components/LoginTemporary/form.vue +2 -2
  37. package/src/components/LoginTemporary/indexN.vue +15 -15
  38. package/src/components/LoginTemporary/retrievePw.vue +4 -4
  39. package/src/components/MdmSelect/index.vue +3 -3
  40. package/src/components/Pivot/ConfigSidebar.vue +27 -25
  41. package/src/components/Pivot/MainToolbar.vue +9 -9
  42. package/src/components/Pivot/ReportSidebar.vue +4 -4
  43. package/src/components/Pivot/TableView.vue +8 -11
  44. package/src/components/Pivot/index.vue +26 -26
  45. package/src/components/ProFilterView/advancedQuery.vue +57 -63
  46. package/src/components/ProFilterView/index.vue +26 -26
  47. package/src/components/SelectDatePickerPro/busiDate.vue +5 -5
  48. package/src/components/SelectDatePickerPro/halfYearPicker.vue +2 -2
  49. package/src/components/SelectDatePickerPro/index.vue +24 -16
  50. package/src/components/SelectDatePickerPro/quarterDatePicker.vue +4 -4
  51. package/src/components/SelectTree/pro.vue +1 -1
  52. package/src/components/Statis/index.vue +1 -1
  53. package/src/components/Statis/statisItem.vue +1 -1
  54. package/src/components/Table/indexO.vue +1 -1
  55. package/src/components/TablePro/filterContent.vue +2 -2
  56. package/src/components/TablePro/filterContent_tree.vue +5 -5
  57. package/src/components/TablePro/index.js +1 -1
  58. package/src/components/TableTransfer/index.vue +1 -1
  59. package/src/components/Upload/index.vue +2 -2
  60. package/src/components/WornPagination/index.vue +1 -1
  61. package/src/components/operatingStatus/index.vue +7 -7
  62. package/src/components/v3/TablePro/filterContent.vue +2 -2
  63. package/src/components/v3/TablePro/filterContent_tree.vue +5 -5
  64. package/src/components/v3/TablePro/index.js +1 -1
  65. package/src/components/v3/UploadList/components/aiCheckDialog.vue +11 -11
  66. package/src/components/v3/UploadList/index.vue +10 -10
  67. package/src/i18n.json +8951 -715
  68. package/src/plugins/SetMenuTree/index.vue +1 -1
  69. package/src/plugins/SetMenuTree/setmenutree.vue +34 -34
  70. package/src/utils/amountInWords.js +6 -6
@@ -3,15 +3,15 @@
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
6
+ <el-button v-if="type === 1" size="mini" type="primary" @click="option($lc('新增'))">{{ $lc('新增') }}</el-button>
7
+ <el-button v-if="type === 1" size="mini" type="danger" plain @click="option($lc('删除'))">{{ $lc('删除') }}</el-button>
8
+ <el-button v-if="hasTransform" size="mini" plain onlyicon @click="option($lc('下载Json配置'))"
9
+ >{{ $lc('下载Json配置') }}</el-button
10
10
  >
11
11
  <!-- <el-button v-if="type === 1" size="mini" plain @click="option('导出')">导出</el-button> -->
12
12
  <el-button
13
13
  v-if="hasTransform"
14
- v-title="'转换'"
14
+ v-title="$lc('转换')"
15
15
  size="mini"
16
16
  icon="n20-icon-caidan"
17
17
  plain
@@ -20,7 +20,7 @@
20
20
  />
21
21
  <el-button
22
22
  v-if="hasTableOption"
23
- v-title="'生成table配置'"
23
+ v-title="$lc('生成table配置')"
24
24
  size="mini"
25
25
  icon="n20-icon-wenjian"
26
26
  plain
@@ -40,7 +40,7 @@
40
40
  class="m-t-s Tabledrag"
41
41
  @selection-change-method="handleSelectionChange"
42
42
  >
43
- <vxe-column slot="order" title="排序" width="60px" align="center">
43
+ <vxe-column slot="order" :title="$lc('排序')" width="60px" align="center">
44
44
  <i class="n20-icon-tuodong draggable-button"></i>
45
45
  </vxe-column>
46
46
  <!-- 取值规则 -->
@@ -55,7 +55,7 @@
55
55
  <el-input
56
56
  v-if="row.fieldType !== 'select'"
57
57
  v-model="row[column.prop]"
58
- placeholder="请输入"
58
+ :placeholder="$lc('请输入')"
59
59
  size="normal"
60
60
  clearable
61
61
  />
@@ -65,10 +65,10 @@
65
65
  </template>
66
66
  </vxe-column>
67
67
  <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 />
68
+ <el-input v-model="row[column.prop]" slot-scope="{ row }" :placeholder="$lc('请输入')" size="normal" clearable />
69
69
  </vxe-column>
70
70
  <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>
71
+ <el-select v-model="row[column.prop]" slot-scope="{ row }" :placeholder="$lc('请选择')" clearable filterable>
72
72
  <el-option v-for="item in options[column.prop]" :key="item.code" :label="item.name" :value="item.code" />
73
73
  </el-select>
74
74
  </vxe-column>
@@ -80,7 +80,7 @@
80
80
  :field="column.prop"
81
81
  :title="column.label"
82
82
  >
83
- <el-select v-model="row[column.prop]" slot-scope="{ row }" placeholder="请选择" clearable filterable>
83
+ <el-select v-model="row[column.prop]" slot-scope="{ row }" :placeholder="$lc('请选择')" clearable filterable>
84
84
  <el-option v-for="item in fieldType" :key="item.code" :label="item.name" :value="item.code" />
85
85
  </el-select>
86
86
  </vxe-column>
@@ -111,18 +111,18 @@
111
111
  @formItemClick="formItemClick"
112
112
  >
113
113
  <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>
114
+ <el-radio :label="3">{{ $lc('备选项') }}</el-radio>
115
+ <el-radio :label="6">{{ $lc('备选项') }}</el-radio>
116
+ <el-radio :label="9" disabled>{{ $lc('备选项') }}</el-radio>
117
117
  </el-radio-group>
118
118
  </DynamicField>
119
119
  </div>
120
120
  </transition>
121
121
  <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>
122
+ <el-button type="primary" @click="option('保存')">{{ $lc('保存') }}</el-button>
123
+ <el-button plain @click="option('重置')">{{ $lc('重置') }}</el-button>
124
124
  </div>
125
- <cl-dialog v-drag :visible.sync="visible" title="数据引用" :destroy-on-open="true">
125
+ <cl-dialog v-drag :visible.sync="visible" :title="$lc('数据引用')" :destroy-on-open="true">
126
126
  <content-pop v-model="selectFieldValue" :visible.sync="visible" @save="dialogSave" />
127
127
  </cl-dialog>
128
128
  <tableView ref="tableView" />
@@ -157,19 +157,19 @@ export default {
157
157
  type: Array,
158
158
  default: () => {
159
159
  return [
160
- '排序',
161
- '序号',
162
- '栏目',
163
- '字段名称',
164
- '是否在列表显示',
165
- '是否启用',
166
- '是否必填',
167
- '是否可编辑',
168
- '是否可变更',
169
- '控件类型',
170
- '取值规则',
171
- '默认值',
172
- '字段说明'
160
+ $lc("排序"),
161
+ $lc("序号"),
162
+ $lc("栏目"),
163
+ $lc("字段名称"),
164
+ $lc("是否在列表显示"),
165
+ $lc("是否启用"),
166
+ $lc("是否必填"),
167
+ $lc("是否可编辑"),
168
+ $lc("是否可变更"),
169
+ $lc("控件类型"),
170
+ $lc("取值规则"),
171
+ $lc("默认值"),
172
+ $lc("字段说明")
173
173
  ]
174
174
  }
175
175
  },
@@ -185,9 +185,9 @@ export default {
185
185
  return {
186
186
  fieldType: [],
187
187
  fieldGroup: [
188
- { code: '基础信息', name: '基础信息' },
189
- { code: '汇款申请书', name: '汇款申请书' },
190
- { code: '收款人', name: '收款人' }
188
+ { code: $lc("基础信息"), name: $lc("基础信息") },
189
+ { code: $lc("汇款申请书"), name: $lc("汇款申请书") },
190
+ { code: $lc("收款人"), name: $lc("收款人") }
191
191
  ]
192
192
  }
193
193
  }
@@ -197,12 +197,12 @@ export default {
197
197
  return {
198
198
  visible: false,
199
199
  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: '大文本' }
200
+ { code: 'input', name: $lc("输入框") },
201
+ { code: 'input-number', name: $lc("金额输入框") },
202
+ { code: 'select', name: $lc("下拉框") },
203
+ { code: 'selectMultiple', name: $lc("多选下拉框") },
204
+ { code: 'date-picker', name: $lc("日期选择") },
205
+ { code: 'textarea', name: $lc("大文本") }
206
206
  // 这三种暂时不开放
207
207
  /* { code: 'input-number-range', name: '金额区间' },
208
208
  { code: 'input-rate-range', name: '利率区间' },
@@ -216,16 +216,16 @@ export default {
216
216
  width: '46',
217
217
  fixed: 'left',
218
218
  align: 'center',
219
- prop: '勾选',
219
+ prop: $lc("勾选"),
220
220
  static: 'pre' // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"前面"
221
221
  },
222
222
  {
223
- label: '排序',
223
+ label: $lc("排序"),
224
224
  slotName: 'order'
225
225
  },
226
226
  {
227
227
  slotName: 'select',
228
- label: '栏目',
228
+ label: $lc("栏目"),
229
229
  prop: 'fieldGroup',
230
230
  align: 'center',
231
231
  width: '150',
@@ -233,7 +233,7 @@ export default {
233
233
  },
234
234
  {
235
235
  slotName: 'fieldType',
236
- label: '控件类型',
236
+ label: $lc("控件类型"),
237
237
  prop: 'fieldType',
238
238
  align: 'center',
239
239
  width: '150',
@@ -241,7 +241,7 @@ export default {
241
241
  },
242
242
  {
243
243
  slotName: 'input',
244
- label: '字段code',
244
+ label: $lc("字段code"),
245
245
  prop: 'fieldCode',
246
246
  align: 'center',
247
247
  width: '150',
@@ -249,7 +249,7 @@ export default {
249
249
  },
250
250
  {
251
251
  slotName: 'input',
252
- label: '字段名称',
252
+ label: $lc("字段名称"),
253
253
  prop: 'fieldName',
254
254
  align: 'center',
255
255
  width: '150',
@@ -257,7 +257,7 @@ export default {
257
257
  },
258
258
  {
259
259
  slotName: 'check',
260
- label: '是否在列表显示',
260
+ label: $lc("是否在列表显示"),
261
261
  prop: 'isTableShow',
262
262
  align: 'center',
263
263
  width: '120',
@@ -265,7 +265,7 @@ export default {
265
265
  },
266
266
  {
267
267
  slotName: 'check',
268
- label: '是否启用',
268
+ label: $lc("是否启用"),
269
269
  prop: 'isEnabled',
270
270
  align: 'center',
271
271
  width: '120',
@@ -273,7 +273,7 @@ export default {
273
273
  },
274
274
  {
275
275
  slotName: 'check',
276
- label: '是否必填',
276
+ label: $lc("是否必填"),
277
277
  prop: 'isMust',
278
278
  align: 'center',
279
279
  width: '120',
@@ -281,7 +281,7 @@ export default {
281
281
  },
282
282
  {
283
283
  slotName: 'check',
284
- label: '是否可编辑',
284
+ label: $lc("是否可编辑"),
285
285
  prop: 'isEdite',
286
286
  align: 'center',
287
287
  width: '120',
@@ -289,7 +289,7 @@ export default {
289
289
  },
290
290
  {
291
291
  slotName: 'check',
292
- label: '是否可变更',
292
+ label: $lc("是否可变更"),
293
293
  prop: 'isChange',
294
294
  align: 'center',
295
295
  width: '120',
@@ -298,7 +298,7 @@ export default {
298
298
 
299
299
  {
300
300
  slotName: 'fieldValue',
301
- label: '取值规则',
301
+ label: $lc("取值规则"),
302
302
  prop: 'fieldValue',
303
303
  align: 'center',
304
304
  width: '200',
@@ -306,7 +306,7 @@ export default {
306
306
  },
307
307
  {
308
308
  slotName: 'input',
309
- label: '默认值',
309
+ label: $lc("默认值"),
310
310
  prop: 'defaultValue',
311
311
  align: 'center',
312
312
  width: '160',
@@ -314,7 +314,7 @@ export default {
314
314
  },
315
315
  {
316
316
  slotName: 'input',
317
- label: '字段说明',
317
+ label: $lc("字段说明"),
318
318
  prop: 'remark',
319
319
  align: 'center',
320
320
  width: '200',
@@ -353,7 +353,7 @@ export default {
353
353
  pz(row, index) {
354
354
  this.selectFieldValue = row.fieldValue || []
355
355
  this.selectIndex = index
356
- this.title = '数据来源'
356
+ this.title = $lc("数据来源")
357
357
  this.visible = true
358
358
  },
359
359
  dialogSave(value) {
@@ -414,7 +414,7 @@ export default {
414
414
  switch (key) {
415
415
  case '下载Json配置':
416
416
  a.href = url
417
- a.download = '动态字段配置.json'
417
+ a.download = $lc("动态字段配置.json")
418
418
  document.body.appendChild(a)
419
419
  a.click()
420
420
  // 释放 URL 对象
@@ -437,7 +437,7 @@ export default {
437
437
  break
438
438
  case '删除':
439
439
  if (this.selectData.length === 0) {
440
- this.$message.warning('至少选择一条数据')
440
+ this.$message.warning($lc("至少选择一条数据"))
441
441
  return false
442
442
  }
443
443
  this.tableData = this.tableData.filter((item) => {
@@ -457,7 +457,7 @@ export default {
457
457
  if (valid) {
458
458
  console.log(this.formValue)
459
459
  } else {
460
- this.$message.warning('请填写完整信息')
460
+ this.$message.warning($lc("请填写完整信息"))
461
461
  }
462
462
  })
463
463
  }
@@ -24,20 +24,20 @@
24
24
  v-if="diff"
25
25
  :value="`${formValue['contractDTO_loanTerm']} ${
26
26
  formValue['contractDTO_termUnit'] === 'DAY'
27
- ? $l('天')
27
+ ? $lc('天')
28
28
  : formValue['contractDTO_termUnit'] === 'MONTH'
29
- ? $l('月')
29
+ ? $lc('月')
30
30
  : formValue['contractDTO_termUnit'] === 'YEAR'
31
- ? $l('年')
31
+ ? $lc('年')
32
32
  : ''
33
33
  }`"
34
34
  :old-value="`${oldFormValue['contractDTO_loanTerm']} ${
35
35
  oldFormValue['contractDTO_termUnit'] === 'DAY'
36
- ? $l('天')
36
+ ? $lc('天')
37
37
  : oldFormValue['contractDTO_termUnit'] === 'MONTH'
38
- ? $l('月')
38
+ ? $lc('月')
39
39
  : oldFormValue['contractDTO_termUnit'] === 'YEAR'
40
- ? $l('年')
40
+ ? $lc('年')
41
41
  : ''
42
42
  }`"
43
43
  :tooltip="true"
@@ -46,11 +46,11 @@
46
46
  {{ formValue['contractDTO_loanTerm'] }}
47
47
  {{
48
48
  formValue['contractDTO_termUnit'] === 'DAY'
49
- ? $l('天')
49
+ ? $lc('天')
50
50
  : formValue['contractDTO_termUnit'] === 'MONTH'
51
- ? $l('月')
51
+ ? $lc('月')
52
52
  : formValue['contractDTO_termUnit'] === 'YEAR'
53
- ? $l('年')
53
+ ? $lc('年')
54
54
  : ''
55
55
  }}
56
56
  </div>
@@ -58,7 +58,7 @@
58
58
  <!-- 结构化/费用编号 -->
59
59
  <template
60
60
  v-else-if="
61
- $l(formItem.label) === $l('是否结构化') ||
61
+ $lc(formItem.label) === $lc('是否结构化') ||
62
62
  ((formItem.key || key) === 'exInfoDTO_feeNo' && (formItem.key || key) !== 'mainFeeCurrencyCode')
63
63
  "
64
64
  >
@@ -99,7 +99,7 @@
99
99
  <template v-else-if="formItem.type === 'input-number'">
100
100
  <div
101
101
  v-if="
102
- [$l('利率'), $l('合同利率'), $l('利率(%)'), $l('合同利率(%)'), $l('中间价')].includes(
102
+ [$lc('利率'), $lc('合同利率'), $lc('利率(%)'), $lc('合同利率(%)'), $lc('中间价')].includes(
103
103
  $l(formItem.label)
104
104
  )
105
105
  "
@@ -136,7 +136,7 @@
136
136
  </div>
137
137
  </template>
138
138
  <!-- 来款国家(地区) -->
139
- <template v-else-if="$l(formItem.label) === $l('来款国家(地区)')">
139
+ <template v-else-if="$lc(formItem.label) === $lc('来款国家(地区)')">
140
140
  <cl-diff
141
141
  v-if="diff"
142
142
  :value="formValue['applyInfoDTO_areaInfoName'] || '--'"
@@ -159,7 +159,7 @@
159
159
  (formValue[formItem.key || key] && formValue[formItem.key || key].name) || '--'
160
160
  }}</span>
161
161
  </div>
162
- <div v-else-if="formItem.label === '结售汇性质'">
162
+ <div v-else-if="formItem.label === $lc('结售汇性质')">
163
163
  <cl-diff
164
164
  v-if="diff"
165
165
  :value="formValue[formItem.key || key] || '--'"
@@ -107,7 +107,7 @@
107
107
  >
108
108
  <el-select
109
109
  v-model="row[column.prop]"
110
- :placeholder="column.placeholder || (column.filterable ? '请输入关键词' : column.label)"
110
+ :placeholder="column.placeholder || (column.filterable ? $lc('请输入关键词') : column.label)"
111
111
  :remote-method="(query) => column.remoteMethod && column.remoteMethod(query, { ...$attrs, item, value })"
112
112
  :clearable="column.clearable === false ? false : true"
113
113
  :multiple="false"
@@ -159,7 +159,7 @@
159
159
  >
160
160
  <el-select
161
161
  v-model="row[column.prop]"
162
- :placeholder="column.placeholder || (column.filterable ? '请输入关键词' : column.label)"
162
+ :placeholder="column.placeholder || (column.filterable ? $lc('请输入关键词') : column.label)"
163
163
  :remote-method="(query) => column.remoteMethod && column.remoteMethod(query, { ...$attrs, item, value })"
164
164
  :clearable="column.clearable === false ? false : true"
165
165
  :multiple="true"
@@ -216,7 +216,7 @@
216
216
  :disabled="column.disabled || row[column.prop + '_disabled']"
217
217
  type="date"
218
218
  value-format="yyyy-MM-dd"
219
- placeholder="请选择日期"
219
+ :placeholder="$lc('请选择日期')"
220
220
  :clearable="column.clearable === false ? false : true"
221
221
  @change="(value) => $emit('valueChange', value, column.prop, row, column)"
222
222
  />
@@ -282,7 +282,7 @@
282
282
  v-model="row[column.prop]"
283
283
  type="textarea"
284
284
  :rows="1"
285
- placeholder="请输入内容"
285
+ :placeholder="$lc('请输入内容')"
286
286
  maxlength="150"
287
287
  show-word-limit
288
288
  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,7 +22,7 @@
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>
@@ -54,13 +54,13 @@ export default {
54
54
  }, */
55
55
  {
56
56
  type: 'seq',
57
- label: '序号',
57
+ label: $lc("序号"),
58
58
  width: '56',
59
59
  align: 'center'
60
60
  },
61
61
  {
62
62
  slotName: 'input',
63
- label: '枚举名',
63
+ label: $lc("枚举名"),
64
64
  prop: 'label',
65
65
  align: 'left',
66
66
  minWidth: '120',
@@ -68,7 +68,7 @@ export default {
68
68
  },
69
69
  {
70
70
  slotName: 'input',
71
- label: '枚举值',
71
+ label: $lc("枚举值"),
72
72
  prop: 'value',
73
73
  width: '260'
74
74
  },
@@ -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>
@@ -131,7 +131,7 @@ export default {
131
131
  valueChange(value, key, row) {
132
132
  switch (key) {
133
133
  case 'input':
134
- if (value === '禁用') {
134
+ if (value === $lc("禁用")) {
135
135
  // this.$set(row, 'startDate_disabled', true)
136
136
  // this.list.startDate.disabled = true
137
137
  // 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
  }