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.
- package/package.json +1 -1
- package/src/components/AIButton/index.vue +6 -5
- package/src/components/ApprovalButtons/index.vue +3 -3
- package/src/components/ApprovalButtons/indexApp.vue +10 -29
- package/src/components/ApprovalButtons/selectSpr.vue +1 -1
- package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
- package/src/components/ApprovalButtons/showOtherAttr.vue +2 -2
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +8 -6
- package/src/components/ApprovalCard/index.vue +6 -6
- package/src/components/ApprovalCard/indexApp.vue +2 -2
- package/src/components/ApprovalRecord/approvalImg.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +3 -3
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +3 -3
- package/src/components/AttachmentPass/index.vue +7 -7
- package/src/components/DateChoose/index.vue +41 -36
- package/src/components/DatePicker/index.vue +2 -2
- package/src/components/DateSelect/busiDate.vue +5 -4
- package/src/components/DateSelect/index.vue +9 -8
- package/src/components/DateSelect/quarterDatePicker.vue +12 -11
- package/src/components/Diff/index.vue +2 -1
- package/src/components/DynamicField/DynamicField.vue +1 -1
- package/src/components/DynamicField/DynamicFieldMixin.js +3 -2
- package/src/components/DynamicField/DynamicFieldOptions.vue +80 -58
- package/src/components/DynamicField/DynamicTable.vue +4 -4
- package/src/components/DynamicField/contentPop.vue +8 -6
- package/src/components/DynamicField/tableList.vue +7 -5
- package/src/components/DynamicField/tableView.vue +20 -6
- package/src/components/ElectronicArchive/index.vue +18 -16
- package/src/components/EventBubble/demo/c.vue +2 -1
- package/src/components/FileExportAsync/index.vue +11 -10
- package/src/components/FileImport/index.vue +2 -1
- package/src/components/FileUploadTable/FileUploadTableV3.vue +10 -11
- package/src/components/FileUploadTable/aiCheckDialog.vue +13 -11
- package/src/components/FileUploadTable/index.vue +15 -14
- package/src/components/Filters/indexO.vue +3 -2
- package/src/components/HandlingAdvice/index.vue +4 -3
- package/src/components/InputNumber/index.vue +2 -1
- package/src/components/Layout/HeaderWrap/changePwd.vue +8 -7
- package/src/components/Layout/HeaderWrap/index.vue +11 -10
- package/src/components/Layout/HeaderWrap/indexN.vue +21 -20
- package/src/components/Layout/HeaderWrap/noticePop.vue +8 -7
- package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
- package/src/components/Layout/index.vue +2 -1
- package/src/components/Layout/indexN.vue +2 -1
- package/src/components/LoginSetting/index.vue +14 -13
- package/src/components/LoginSetting/indexN.vue +11 -10
- package/src/components/LoginSetting/setItem.vue +22 -21
- package/src/components/LoginTemporary/form.vue +17 -16
- package/src/components/LoginTemporary/index.vue +5 -4
- package/src/components/LoginTemporary/indexN.vue +20 -19
- package/src/components/LoginTemporary/retrievePw.vue +11 -10
- package/src/components/PageHeader/index.vue +2 -1
- package/src/components/SelectDatePickerPro/busiDate.vue +6 -4
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +3 -2
- package/src/components/SelectDatePickerPro/index.vue +13 -11
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +6 -4
- package/src/components/SelectTree/pro.vue +1 -1
- package/src/components/ShowColumn/index.vue +13 -12
- package/src/components/Stamp/index.vue +8 -7
- package/src/components/Statis/index.vue +9 -8
- package/src/components/Statis/statisItem.vue +4 -3
- package/src/components/Table/indexO.vue +2 -1
- package/src/components/TablePro/filterContent.vue +2 -2
- package/src/components/TablePro/filterContent_tree.vue +6 -5
- package/src/components/TablePro/index.js +2 -1
- package/src/components/TablePro/index.vue +2 -1
- package/src/components/TableTransfer/index.vue +2 -1
- package/src/components/Upload/index.vue +9 -8
- package/src/components/Upload/uploadMsg.vue +2 -1
- package/src/components/WornPagination/index.vue +3 -1
- package/src/components/operatingStatus/index.vue +9 -7
- package/src/i18n.json +5800 -714
- package/src/index.js +2 -2
- package/src/plugins/SetMenuTree/index.vue +1 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +36 -34
- package/src/plugins/Sign/CaMap.js +12 -11
- package/src/plugins/Sign/Itrus/index.js +58 -56
- package/src/plugins/Sign/Itrus/sign_3720.js +53 -51
- package/src/plugins/Sign/NetSM3/index.js +12 -10
- package/src/plugins/Sign/NetV3/index.js +20 -18
- package/src/plugins/Sign/SkfSign/index.js +12 -10
- package/src/plugins/Sign/bjca/XTXSAB.js +17 -16
- package/src/plugins/Sign/bjca/index.js +19 -17
- package/src/plugins/Sign/cfca/index.js +11 -9
- package/src/plugins/Sign/codeMap.js +151 -150
- package/src/plugins/Sign/hnca/index.js +51 -49
- package/src/plugins/Sign/index.js +6 -4
- package/src/plugins/Sign/kySign/index.js +11 -9
- package/src/plugins/Sign/netca/index.js +9 -7
- package/src/plugins/Sign/netca/netca.base.1.1.0.js +29 -28
- package/src/plugins/Sign/sdca/index.js +17 -15
- package/src/plugins/Sign/sign.js +10 -8
- package/src/plugins/Sign/signV3/sign.js +14 -12
- package/src/plugins/Sign/sign_back.js +11 -9
- package/src/utils/amountInWords.js +8 -6
- package/src/utils/axios.js +9 -8
- package/src/utils/relaNo.js +3 -1
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
<script>
|
|
30
30
|
import { $lc } from '../../utils/i18n/index'
|
|
31
31
|
import downloadBlob from '../../utils/downloadBlob'
|
|
32
|
+
|
|
32
33
|
export default {
|
|
33
34
|
name: 'FileExportAsync',
|
|
34
35
|
props: {
|
|
@@ -95,7 +96,7 @@ export default {
|
|
|
95
96
|
if (error) {
|
|
96
97
|
this.status = 'error'
|
|
97
98
|
this.closeWaitPop()
|
|
98
|
-
console.error(
|
|
99
|
+
console.error($lc("导出失败"))
|
|
99
100
|
return
|
|
100
101
|
}
|
|
101
102
|
|
|
@@ -120,7 +121,7 @@ export default {
|
|
|
120
121
|
if (error) {
|
|
121
122
|
this.status = 'error'
|
|
122
123
|
this.closeWaitPop()
|
|
123
|
-
console.error(
|
|
124
|
+
console.error($lc("导出失败"))
|
|
124
125
|
return
|
|
125
126
|
}
|
|
126
127
|
|
|
@@ -142,12 +143,12 @@ export default {
|
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
this.$msgboxPor({
|
|
145
|
-
title: $lc(
|
|
146
|
-
message: $lc(
|
|
146
|
+
title: $lc("确定取消"),
|
|
147
|
+
message: $lc("取消后,数据导出将中断,是否确定取消导出?"),
|
|
147
148
|
type: 'warning',
|
|
148
149
|
customClass: 'question',
|
|
149
|
-
confirmButtonText: $lc(
|
|
150
|
-
cancelButtonText: $lc(
|
|
150
|
+
confirmButtonText: $lc("确定"),
|
|
151
|
+
cancelButtonText: $lc("取消")
|
|
151
152
|
}).then(() => {
|
|
152
153
|
clearTimeout(this.timer)
|
|
153
154
|
this.pgsV = false
|
|
@@ -161,12 +162,12 @@ export default {
|
|
|
161
162
|
if (!this.waitPopV) {
|
|
162
163
|
this.waitPopV = true
|
|
163
164
|
this.$msgboxPor({
|
|
164
|
-
title: $lc(
|
|
165
|
-
message:
|
|
165
|
+
title: $lc("提示"),
|
|
166
|
+
message: $lc("您的数据导出时间可能会比较长,是否继续导出?"),
|
|
166
167
|
type: 'warning',
|
|
167
168
|
customClass: `question ${this.waitClass}`,
|
|
168
|
-
confirmButtonText: $lc(
|
|
169
|
-
cancelButtonText: $lc(
|
|
169
|
+
confirmButtonText: $lc("继续导出"),
|
|
170
|
+
cancelButtonText: $lc("取消")
|
|
170
171
|
}).catch(() => {
|
|
171
172
|
clearTimeout(this.timer)
|
|
172
173
|
this.pgsV = false
|
|
@@ -43,6 +43,7 @@ import downloadBlob from '../../utils/downloadBlob'
|
|
|
43
43
|
import { $lc } from '../../utils/i18n/index'
|
|
44
44
|
import Upload from '../Upload/index.vue'
|
|
45
45
|
import uploadMsg from '../Upload/uploadMsg.vue'
|
|
46
|
+
|
|
46
47
|
export default {
|
|
47
48
|
name: 'FileImport',
|
|
48
49
|
components: { Upload, uploadMsg },
|
|
@@ -65,7 +66,7 @@ export default {
|
|
|
65
66
|
},
|
|
66
67
|
fileName: {
|
|
67
68
|
type: String,
|
|
68
|
-
default: $lc(
|
|
69
|
+
default: $lc("下载.xlsx")
|
|
69
70
|
},
|
|
70
71
|
uploadHttpRequest: {
|
|
71
72
|
type: Function,
|
|
@@ -188,9 +188,7 @@
|
|
|
188
188
|
</el-table-column>
|
|
189
189
|
</el-table> -->
|
|
190
190
|
<div class="flex-box flex-v flex-lr">
|
|
191
|
-
<div class="title">
|
|
192
|
-
附件上传
|
|
193
|
-
<span>(带 * 为必要上传的附件)</span>
|
|
191
|
+
<div class="title">{{ $lc('附件上传') }}<span>{{ $lc('(带 * 为必要上传的附件)') }}</span>
|
|
194
192
|
</div>
|
|
195
193
|
</div>
|
|
196
194
|
<div class="file-list">
|
|
@@ -218,7 +216,7 @@
|
|
|
218
216
|
"
|
|
219
217
|
:on-error="(err, file, fileList) => errorFn(err, file, fileList, row, $index)"
|
|
220
218
|
>
|
|
221
|
-
<el-button slot="trigger" type="text" size="small"
|
|
219
|
+
<el-button slot="trigger" type="text" size="small">{{ $lc('去上传') }}</el-button>
|
|
222
220
|
</Upload>
|
|
223
221
|
</div>
|
|
224
222
|
</div>
|
|
@@ -328,6 +326,7 @@ import importG from '../../utils/importGlobal.js'
|
|
|
328
326
|
import Dialog from '../Dialog/index.vue'
|
|
329
327
|
import Upload from '../Upload/index.vue'
|
|
330
328
|
|
|
329
|
+
|
|
331
330
|
const ViewerImg = async function () {
|
|
332
331
|
let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
|
|
333
332
|
return component
|
|
@@ -341,9 +340,9 @@ const keysDefault = {
|
|
|
341
340
|
user: 'user'
|
|
342
341
|
}
|
|
343
342
|
const typeOptionsDefault = [
|
|
344
|
-
{ type: '001', label: $lc(
|
|
345
|
-
{ type: '002', label: $lc(
|
|
346
|
-
{ type: '003', label: $lc(
|
|
343
|
+
{ type: '001', label: $lc("信贷合同") },
|
|
344
|
+
{ type: '002', label: $lc("贴现合同") },
|
|
345
|
+
{ type: '003', label: $lc("其他合同") }
|
|
347
346
|
]
|
|
348
347
|
|
|
349
348
|
export default {
|
|
@@ -500,7 +499,7 @@ export default {
|
|
|
500
499
|
return this.dataPorp.fileSize || undefined
|
|
501
500
|
},
|
|
502
501
|
fileAcceptTip() {
|
|
503
|
-
return this.dataPorp.fileAcceptTip || $lc(
|
|
502
|
+
return this.dataPorp.fileAcceptTip || $lc("支持扩展名:.rar .zip .doc .docx .pdf .jpg...")
|
|
504
503
|
},
|
|
505
504
|
fileData() {
|
|
506
505
|
return this.dataPorp.fileData || undefined
|
|
@@ -541,7 +540,7 @@ export default {
|
|
|
541
540
|
// ai识别
|
|
542
541
|
async AiFn(row) {
|
|
543
542
|
if (!this.AIOptions.bussType) {
|
|
544
|
-
this.$message.error(
|
|
543
|
+
this.$message.error($lc("请先配置bussType"))
|
|
545
544
|
return false
|
|
546
545
|
}
|
|
547
546
|
const { data, code } = await axios.post(
|
|
@@ -627,7 +626,7 @@ export default {
|
|
|
627
626
|
if (code === 200) {
|
|
628
627
|
let aDom = document.createElement('a')
|
|
629
628
|
aDom.href = data
|
|
630
|
-
aDom.download =
|
|
629
|
+
aDom.download = $lc("批量附件.pdf")
|
|
631
630
|
aDom.click()
|
|
632
631
|
|
|
633
632
|
this.$nextTick(() => {
|
|
@@ -705,7 +704,7 @@ export default {
|
|
|
705
704
|
deleteRows() {
|
|
706
705
|
if (!this.selectionList.length) {
|
|
707
706
|
return this.$message({
|
|
708
|
-
message: $lc(
|
|
707
|
+
message: $lc("请先勾选要删除的数据!"),
|
|
709
708
|
type: 'warning',
|
|
710
709
|
showClose: true
|
|
711
710
|
})
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
<Table :data="tableData" :columns="checkColumns" height="400px" :show-setsize="true" :cell-default="true">
|
|
12
12
|
<el-table-column slot="checkStatus" slot-scope="{ column }" v-bind="column">
|
|
13
13
|
<template slot-scope="{ row }">
|
|
14
|
-
<el-tag v-if="row.checkStatus === '0'" effect="dark" type="warning" size="mini"
|
|
15
|
-
<el-tag v-if="row.checkStatus === '1'" effect="dark" type="success" size="mini"
|
|
14
|
+
<el-tag v-if="row.checkStatus === '0'" effect="dark" type="warning" size="mini">{{ $lc('不通过') }}</el-tag>
|
|
15
|
+
<el-tag v-if="row.checkStatus === '1'" effect="dark" type="success" size="mini">{{ $lc('通过') }}</el-tag>
|
|
16
16
|
</template>
|
|
17
17
|
</el-table-column>
|
|
18
18
|
<el-table-column slot="remark" slot-scope="{ column }" v-bind="column">
|
|
19
19
|
<template slot-scope="{ row }">
|
|
20
20
|
<el-input
|
|
21
21
|
v-model="row.remark"
|
|
22
|
-
placeholder="请输入"
|
|
22
|
+
:placeholder="$lc('请输入')"
|
|
23
23
|
size="normal"
|
|
24
24
|
clearable
|
|
25
25
|
:disabled="readonly || row.status === '1'"
|
|
@@ -28,17 +28,19 @@
|
|
|
28
28
|
</el-table-column>
|
|
29
29
|
</Table>
|
|
30
30
|
<div slot="footer" class="page-button-shadow flex-box flex-c flex-v">
|
|
31
|
-
<el-button v-if="!readonly" type="primary" @click="save"
|
|
32
|
-
<el-button plain @click="cancel"
|
|
31
|
+
<el-button v-if="!readonly" type="primary" @click="save">{{ $lc('确定') }}</el-button>
|
|
32
|
+
<el-button plain @click="cancel">{{ $lc('取消') }}</el-button>
|
|
33
33
|
</div>
|
|
34
34
|
</Dialog>
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script>
|
|
38
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
38
39
|
import Dialog from '../Dialog/index.vue'
|
|
39
40
|
import Table from '../Table/index.vue'
|
|
40
41
|
import axios from '../../utils/axios.js'
|
|
41
42
|
|
|
43
|
+
|
|
42
44
|
export default {
|
|
43
45
|
name: 'AiCheckDialog',
|
|
44
46
|
components: { Dialog, Table },
|
|
@@ -58,13 +60,13 @@ export default {
|
|
|
58
60
|
checkColumns: [
|
|
59
61
|
{
|
|
60
62
|
type: 'index',
|
|
61
|
-
label:
|
|
63
|
+
label: $lc("序号"),
|
|
62
64
|
width: '56',
|
|
63
65
|
align: 'center',
|
|
64
66
|
static: 'pre'
|
|
65
67
|
},
|
|
66
68
|
{
|
|
67
|
-
label:
|
|
69
|
+
label: $lc("提示词"),
|
|
68
70
|
prop: 'prompt',
|
|
69
71
|
align: 'center',
|
|
70
72
|
minWidth: '120',
|
|
@@ -72,7 +74,7 @@ export default {
|
|
|
72
74
|
'show-overflow-tooltip': true
|
|
73
75
|
},
|
|
74
76
|
{
|
|
75
|
-
label:
|
|
77
|
+
label: $lc("AI识别结果"),
|
|
76
78
|
prop: 'aiResult',
|
|
77
79
|
align: 'center',
|
|
78
80
|
minWidth: '120',
|
|
@@ -80,7 +82,7 @@ export default {
|
|
|
80
82
|
'show-overflow-tooltip': true
|
|
81
83
|
},
|
|
82
84
|
{
|
|
83
|
-
label:
|
|
85
|
+
label: $lc("校验结果"),
|
|
84
86
|
prop: 'checkStatus',
|
|
85
87
|
slotName: 'checkStatus',
|
|
86
88
|
align: 'center',
|
|
@@ -89,7 +91,7 @@ export default {
|
|
|
89
91
|
'show-overflow-tooltip': true
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
|
-
label:
|
|
94
|
+
label: $lc("说明"),
|
|
93
95
|
prop: 'remark',
|
|
94
96
|
slotName: 'remark',
|
|
95
97
|
align: 'center',
|
|
@@ -128,7 +130,7 @@ export default {
|
|
|
128
130
|
list
|
|
129
131
|
)
|
|
130
132
|
if (code === 200) {
|
|
131
|
-
this.$message.success(
|
|
133
|
+
this.$message.success($lc("保存成功"))
|
|
132
134
|
this.visibleP = false
|
|
133
135
|
}
|
|
134
136
|
},
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
<el-button type="text" icon="el-icon-view" :disabled="!row[keys.url]" @click="seeFile(row)" />
|
|
206
206
|
<el-button
|
|
207
207
|
v-if="getOfficeStatus && openAI"
|
|
208
|
-
v-title="'ai识别'"
|
|
208
|
+
v-title="$lc('ai识别')"
|
|
209
209
|
type="text"
|
|
210
210
|
icon="n20-icon-query"
|
|
211
211
|
:disabled="!row[keys.url]"
|
|
@@ -328,6 +328,7 @@ import importG from '../../utils/importGlobal.js'
|
|
|
328
328
|
import Dialog from '../Dialog/index.vue'
|
|
329
329
|
import Upload from '../Upload/index.vue'
|
|
330
330
|
|
|
331
|
+
|
|
331
332
|
const ViewerImg = async function () {
|
|
332
333
|
let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
|
|
333
334
|
return component
|
|
@@ -341,9 +342,9 @@ const keysDefault = {
|
|
|
341
342
|
user: 'user'
|
|
342
343
|
}
|
|
343
344
|
const typeOptionsDefault = [
|
|
344
|
-
{ type: '001', label: $lc(
|
|
345
|
-
{ type: '002', label: $lc(
|
|
346
|
-
{ type: '003', label: $lc(
|
|
345
|
+
{ type: '001', label: $lc("信贷合同") },
|
|
346
|
+
{ type: '002', label: $lc("贴现合同") },
|
|
347
|
+
{ type: '003', label: $lc("其他合同") }
|
|
347
348
|
]
|
|
348
349
|
|
|
349
350
|
export default {
|
|
@@ -514,7 +515,7 @@ export default {
|
|
|
514
515
|
return this.dataPorp.fileSize || undefined
|
|
515
516
|
},
|
|
516
517
|
fileAcceptTip() {
|
|
517
|
-
return this.dataPorp.fileAcceptTip || $lc(
|
|
518
|
+
return this.dataPorp.fileAcceptTip || $lc("支持扩展名:.rar .zip .doc .docx .pdf .jpg...")
|
|
518
519
|
},
|
|
519
520
|
fileData() {
|
|
520
521
|
return this.dataPorp.fileData || undefined
|
|
@@ -569,7 +570,7 @@ export default {
|
|
|
569
570
|
this.tableData.splice(0, this.tableData.length, ...sorted)
|
|
570
571
|
this.$emit('sort', this.tableData.slice())
|
|
571
572
|
this.saveFileSort().catch(() => {
|
|
572
|
-
this.$message.error($lc(
|
|
573
|
+
this.$message.error($lc("附件排序保存失败"))
|
|
573
574
|
})
|
|
574
575
|
},
|
|
575
576
|
async saveFileSort() {
|
|
@@ -622,7 +623,7 @@ export default {
|
|
|
622
623
|
})
|
|
623
624
|
} else {
|
|
624
625
|
if (!this.AIOptions.bussType) {
|
|
625
|
-
this.$message.error(
|
|
626
|
+
this.$message.error($lc("请先配置bussType"))
|
|
626
627
|
return false
|
|
627
628
|
}
|
|
628
629
|
let { data, code } = await axios.post(
|
|
@@ -646,7 +647,7 @@ export default {
|
|
|
646
647
|
// ai识别
|
|
647
648
|
async AiFn(row) {
|
|
648
649
|
if (!this.AIOptions.bussType) {
|
|
649
|
-
this.$message.error(
|
|
650
|
+
this.$message.error($lc("请先配置bussType"))
|
|
650
651
|
return false
|
|
651
652
|
}
|
|
652
653
|
const { data, code } = await axios.post(
|
|
@@ -733,7 +734,7 @@ export default {
|
|
|
733
734
|
if (code === 200) {
|
|
734
735
|
let aDom = document.createElement('a')
|
|
735
736
|
aDom.href = data
|
|
736
|
-
aDom.download =
|
|
737
|
+
aDom.download = $lc("批量附件.pdf")
|
|
737
738
|
aDom.click()
|
|
738
739
|
|
|
739
740
|
this.$nextTick(() => {
|
|
@@ -823,17 +824,17 @@ export default {
|
|
|
823
824
|
deleteRows() {
|
|
824
825
|
if (!this.selectionList.length) {
|
|
825
826
|
return this.$message({
|
|
826
|
-
message: $lc(
|
|
827
|
+
message: $lc("请先勾选要删除的数据!"),
|
|
827
828
|
type: 'warning',
|
|
828
829
|
showClose: true
|
|
829
830
|
})
|
|
830
831
|
}
|
|
831
832
|
this.$msgboxPor({
|
|
832
|
-
title: $lc(
|
|
833
|
-
message: $lc(
|
|
833
|
+
title: $lc("确认删除所选附件吗?"),
|
|
834
|
+
message: $lc("删除后数据不可恢复"),
|
|
834
835
|
type: 'error',
|
|
835
|
-
confirmButtonText: $lc(
|
|
836
|
-
cancelButtonText: $lc(
|
|
836
|
+
confirmButtonText: $lc("确认"),
|
|
837
|
+
cancelButtonText: $lc("取消")
|
|
837
838
|
}).then(() => {
|
|
838
839
|
this.$emit('delete-rows', this.selectionList)
|
|
839
840
|
}).catch(() => undefined)
|
|
@@ -40,16 +40,17 @@
|
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
42
|
import { $lc } from '../../utils/i18n/index'
|
|
43
|
+
|
|
43
44
|
export default {
|
|
44
45
|
name: 'FiltersO',
|
|
45
46
|
props: {
|
|
46
47
|
clearText: {
|
|
47
48
|
type: String,
|
|
48
|
-
default: $lc(
|
|
49
|
+
default: $lc("清空")
|
|
49
50
|
},
|
|
50
51
|
filterText: {
|
|
51
52
|
type: String,
|
|
52
|
-
default: $lc(
|
|
53
|
+
default: $lc("筛选")
|
|
53
54
|
},
|
|
54
55
|
width: {
|
|
55
56
|
type: Number,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
/>
|
|
33
33
|
</el-form-item>
|
|
34
34
|
</el-form>
|
|
35
|
-
<ExpandablePane v-if="otherAttDataA.length > 0" title="自定义项" :default-expand="true">
|
|
35
|
+
<ExpandablePane v-if="otherAttDataA.length > 0" :title="$lc('自定义项')" :default-expand="true">
|
|
36
36
|
<el-form ref="approveBtnGroup" label-position="top">
|
|
37
37
|
<div
|
|
38
38
|
class="p-b-s p-t-s"
|
|
@@ -61,6 +61,7 @@ import { $lc } from '../../utils/i18n/index'
|
|
|
61
61
|
import ShowOtherAttNew from '../ApprovalButtons/showOtherAttrNew.vue'
|
|
62
62
|
import ExpandablePane from '../Expandable/main.vue'
|
|
63
63
|
import axios from '../../utils/axios.js'
|
|
64
|
+
|
|
64
65
|
export default {
|
|
65
66
|
name: 'HandlingAdvice',
|
|
66
67
|
components: { ShowOtherAttNew, ExpandablePane },
|
|
@@ -148,7 +149,7 @@ export default {
|
|
|
148
149
|
this.optionsRequired = data.optionsRequired
|
|
149
150
|
|
|
150
151
|
// 设置占位提示
|
|
151
|
-
this.placeholder = data.optionsRequired ?
|
|
152
|
+
this.placeholder = data.optionsRequired ? $lc("请选择或输入意见(必填)") : $lc("请选择或输入意见(选填)")
|
|
152
153
|
// 显示弹窗条件:需要输入意见 或 存在自定义项
|
|
153
154
|
this.visible = data.whether === true || this.otherAttDataA.length > 0
|
|
154
155
|
// 转换意见选项为下拉格式
|
|
@@ -215,7 +216,7 @@ export default {
|
|
|
215
216
|
},
|
|
216
217
|
submit() {
|
|
217
218
|
if (this.whether && this.optionsRequired && !this.reason) {
|
|
218
|
-
this.$message.warning(
|
|
219
|
+
this.$message.warning($lc("请选择或输入意见"))
|
|
219
220
|
return
|
|
220
221
|
}
|
|
221
222
|
const getOtherAttData = this.$refs['showOtherAttNew'] && this.$refs['showOtherAttNew']?.getOtherAttData()
|
|
@@ -35,6 +35,7 @@ import emitter from '../../utils/element-ui-emitter'
|
|
|
35
35
|
import { $lc } from '../../utils/i18n/index'
|
|
36
36
|
import N from '../../utils/numberPor'
|
|
37
37
|
|
|
38
|
+
|
|
38
39
|
export default {
|
|
39
40
|
name: 'InputNumber',
|
|
40
41
|
mixins: [emitter],
|
|
@@ -125,7 +126,7 @@ export default {
|
|
|
125
126
|
if (this.placeholder) {
|
|
126
127
|
return this.placeholder
|
|
127
128
|
} else {
|
|
128
|
-
return $lc(
|
|
129
|
+
return $lc("请输入")
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
132
|
/**
|
|
@@ -55,6 +55,7 @@ import auth from '../../../utils/auth.js'
|
|
|
55
55
|
import axios from '../../../utils/axios.js'
|
|
56
56
|
import { $lc } from '../../../utils/i18n/index.js'
|
|
57
57
|
|
|
58
|
+
|
|
58
59
|
export default {
|
|
59
60
|
props: {
|
|
60
61
|
visible: {
|
|
@@ -127,8 +128,8 @@ export default {
|
|
|
127
128
|
(this.ipInfo = {
|
|
128
129
|
headers: {
|
|
129
130
|
reqIp: '127.0.0.1',
|
|
130
|
-
reqAddr: encodeURIComponent(
|
|
131
|
-
reqCountry: encodeURIComponent(
|
|
131
|
+
reqAddr: encodeURIComponent($lc("内网")),
|
|
132
|
+
reqCountry: encodeURIComponent($lc("中国"))
|
|
132
133
|
}
|
|
133
134
|
})
|
|
134
135
|
)
|
|
@@ -188,13 +189,13 @@ export default {
|
|
|
188
189
|
callback()
|
|
189
190
|
})
|
|
190
191
|
.catch(() => {
|
|
191
|
-
callback(new Error($lc(
|
|
192
|
+
callback(new Error($lc("原始密码与旧密码不一致")))
|
|
192
193
|
})
|
|
193
194
|
},
|
|
194
195
|
newPasswordVd(r, value, callback) {
|
|
195
196
|
let _re_1 = new RegExp(`^.{${this.pwdMin},${this.pwdMax}}$`)
|
|
196
197
|
if (!_re_1.test(value)) {
|
|
197
|
-
callback(new Error(`${$lc(
|
|
198
|
+
callback(new Error(`${$lc("密码长度范围:")}${this.pwdMin}-${this.pwdMax}${$lc("位")}`))
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
if (this.pwdRE) {
|
|
@@ -211,7 +212,7 @@ export default {
|
|
|
211
212
|
if (value === this.form.newPassword) {
|
|
212
213
|
callback()
|
|
213
214
|
} else {
|
|
214
|
-
callback(new Error($lc(
|
|
215
|
+
callback(new Error($lc("两次输入密码不一致!")))
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
newPwdChange(val) {
|
|
@@ -224,7 +225,7 @@ export default {
|
|
|
224
225
|
this.$refs['cp-form'].validate((v) => {
|
|
225
226
|
if (v) {
|
|
226
227
|
if (this.form.newPassword === this.form.orginPassword) {
|
|
227
|
-
this.$message.error($lc(
|
|
228
|
+
this.$message.error($lc("新密码不能与旧密码相同!"))
|
|
228
229
|
this.form.newPassword = ''
|
|
229
230
|
this.form.validatePassword = ''
|
|
230
231
|
return
|
|
@@ -253,7 +254,7 @@ export default {
|
|
|
253
254
|
},
|
|
254
255
|
confirmFnThen() {
|
|
255
256
|
this.$message({
|
|
256
|
-
message: $lc(
|
|
257
|
+
message: $lc("密码修改成功!"),
|
|
257
258
|
type: 'success'
|
|
258
259
|
})
|
|
259
260
|
axios.delete('/bems/prod_1.0/uas/api/authorization/logout', null, { loading: false }).then(() => {
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
<dialogWrap :title="'语言切换' | $lc" :visible.sync="langV" append-to-body width="560px">
|
|
132
132
|
<div style="min-height: 114px">
|
|
133
133
|
<el-radio-group v-model="langVal" @change="setLang">
|
|
134
|
-
<el-radio label="zh-cn" border
|
|
135
|
-
<el-radio label="zh-hk" border
|
|
134
|
+
<el-radio label="zh-cn" border>{{ $lc('简体中文') }}</el-radio>
|
|
135
|
+
<el-radio label="zh-hk" border>{{ $lc('繁體中文') }}</el-radio>
|
|
136
136
|
<el-radio label="en" border>English</el-radio>
|
|
137
137
|
</el-radio-group>
|
|
138
138
|
</div>
|
|
@@ -191,6 +191,7 @@ dayjs.extend(duration)
|
|
|
191
191
|
|
|
192
192
|
import { siteTree2menus } from '../../LoginTemporary/utils'
|
|
193
193
|
|
|
194
|
+
|
|
194
195
|
const prefix = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || process.env.BASE_URL || '/'
|
|
195
196
|
|
|
196
197
|
export default {
|
|
@@ -242,7 +243,7 @@ export default {
|
|
|
242
243
|
userInfo: {},
|
|
243
244
|
userMd: undefined,
|
|
244
245
|
userNo: window.sessionStorage.getItem('userNo'),
|
|
245
|
-
durationTime: $lc(
|
|
246
|
+
durationTime: $lc("00小时00分00秒"),
|
|
246
247
|
cpwdV: false,
|
|
247
248
|
langV: false,
|
|
248
249
|
langVal: window.localStorage.getItem('pageLang') || 'zh-cn',
|
|
@@ -320,7 +321,7 @@ export default {
|
|
|
320
321
|
}
|
|
321
322
|
},
|
|
322
323
|
setDurationTime(loginTime) {
|
|
323
|
-
this.durationTime = dayjs.duration(Date.now() - loginTime).format(`HH${$lc(
|
|
324
|
+
this.durationTime = dayjs.duration(Date.now() - loginTime).format(`HH${$lc("小时")}mm${$lc("分")}ss${$lc("秒")}`)
|
|
324
325
|
},
|
|
325
326
|
// 打开帮助文档
|
|
326
327
|
openHelp() {
|
|
@@ -328,14 +329,14 @@ export default {
|
|
|
328
329
|
.get(`/bems/1.0/userManual`, {}, { responseType: 'blob', loading: false })
|
|
329
330
|
.then((res) => {
|
|
330
331
|
let url = window.URL.createObjectURL(res)
|
|
331
|
-
let win = window.open(url, $lc(
|
|
332
|
+
let win = window.open(url, $lc("帮助文档"))
|
|
332
333
|
setTimeout(function () {
|
|
333
|
-
win.document.title = $lc(
|
|
334
|
+
win.document.title = $lc("帮助文档")
|
|
334
335
|
}, 1000)
|
|
335
336
|
})
|
|
336
337
|
.catch(({ code }) => {
|
|
337
338
|
if (code === 404) {
|
|
338
|
-
this.$message.error($lc(
|
|
339
|
+
this.$message.error($lc("暂无帮助文档,请联系管理员!"))
|
|
339
340
|
return
|
|
340
341
|
}
|
|
341
342
|
})
|
|
@@ -422,9 +423,9 @@ export default {
|
|
|
422
423
|
},
|
|
423
424
|
logOut() {
|
|
424
425
|
// alert('退出登录')
|
|
425
|
-
this.$confirm($lc(
|
|
426
|
-
confirmButtonText: $lc(
|
|
427
|
-
cancelButtonText: $lc(
|
|
426
|
+
this.$confirm($lc("退出将清除未保存的临时操作,请确认是否继续?"), $lc("退出提示"), {
|
|
427
|
+
confirmButtonText: $lc("确定"),
|
|
428
|
+
cancelButtonText: $lc("取消"),
|
|
428
429
|
type: 'warning'
|
|
429
430
|
}).then(() => {
|
|
430
431
|
if (this.beforeLogout) {
|