n20-common-lib 3.2.55 → 3.2.56
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/nstc-g6/components/Calendar/src/main.vue +1 -1
- package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -1
- package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +5 -4
- package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +18 -15
- package/nstc-g6/components/Form/Component.vue +1 -1
- package/nstc-g6/components/Form/ComponentSecond.vue +1 -1
- package/nstc-g6/components/Form/DatepickerCustom/index.vue +3 -3
- package/nstc-g6/components/Form/InputAndDialog/src/main.vue +5 -4
- package/nstc-g6/components/Form/InputCustom/index.vue +3 -2
- package/nstc-g6/components/Form/IntervalinputCustom/index.vue +2 -1
- package/nstc-g6/components/Form/ItemSecond.vue +2 -2
- package/nstc-g6/components/Form/SelectAccount/src/main.vue +9 -8
- package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +5 -4
- package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +7 -6
- package/nstc-g6/components/Form/SelectCustom/index.vue +3 -2
- package/nstc-g6/components/Form/SelectSubject/src/main.vue +8 -7
- package/nstc-g6/components/Form/SelectindialogCustom/index.vue +3 -2
- package/nstc-g6/components/Form/UploadCustom/index.vue +4 -3
- package/nstc-g6/components/Form/configs.js +2 -1
- package/nstc-g6/components/Form/configsSecond.js +2 -1
- package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +15 -18
- package/nstc-g6/components/FormGroup/src/main.vue +9 -6
- package/nstc-g6/components/FormGroup/src/validate.js +3 -1
- package/nstc-g6/components/InputTag/InputTag.vue +1 -1
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +5 -4
- package/nstc-g6/components/NstcDialog/NstcDialog.vue +5 -2
- package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +5 -3
- package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +5 -4
- package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +32 -30
- package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +17 -15
- package/nstc-g6/components/NstcExcelExport/NstcExcelExport.vue +3 -2
- package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +18 -16
- package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +17 -15
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +39 -37
- package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +3 -1
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +5 -4
- package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +16 -15
- package/nstc-g6/components/NstcForm/Component.vue +1 -1
- package/nstc-g6/components/NstcForm/ComponentSecond.vue +1 -1
- package/nstc-g6/components/NstcForm/DatepickerCustom/index.vue +3 -3
- package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +5 -4
- package/nstc-g6/components/NstcForm/InputCustom/index.vue +3 -2
- package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +2 -1
- package/nstc-g6/components/NstcForm/ItemSecond.vue +2 -2
- package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +11 -10
- package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +5 -4
- package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +9 -8
- package/nstc-g6/components/NstcForm/SelectCustom/index.vue +3 -2
- package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +10 -9
- package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +4 -3
- package/nstc-g6/components/NstcForm/UploadCustom/index.vue +4 -3
- package/nstc-g6/components/NstcForm/configs.js +2 -1
- package/nstc-g6/components/NstcForm/configsSecond.js +2 -1
- package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +15 -14
- package/nstc-g6/components/NstcPagination/NstcPagination.vue +9 -7
- package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +3 -1
- package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +6 -5
- package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +4 -3
- package/nstc-g6/components/NstcTable/NstcTable.vue +3 -2
- package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +16 -14
- package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +3 -1
- package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +36 -32
- package/nstc-g6/components/Search/NstcSearch.vue +8 -6
- package/nstc-g6/components/approvelTwo/main.vue +6 -5
- package/nstc-g6/components/approvelTwo/progress.vue +2 -2
- package/nstc-g6/index.js +3 -1
- package/nstc-g6/utils/dateAndValidator.js +8 -6
- package/nstc-g6/utils/vendor/Export2Zip.js +2 -1
- package/package.json +1 -1
- package/src/components/ApprovalButtons/index.vue +1 -1
- package/src/components/ApprovalButtons/indexApp.vue +1 -1
- package/src/components/ApprovalButtons/selectSpr.vue +3 -3
- package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
- package/src/components/ApprovalRecord/approvalImg.vue +2 -1
- package/src/components/AttachmentPass/index.vue +1 -1
- package/src/components/DateChoose/index.vue +3 -3
- package/src/components/DateSelect/index.vue +1 -1
- package/src/components/DateSelect/quarterDatePicker.vue +5 -5
- package/src/components/DynamicField/DynamicFieldOptions.vue +4 -4
- package/src/components/DynamicField/tableList.vue +1 -1
- package/src/components/ElectronicArchive/index.vue +1 -1
- package/src/components/FileUploadTable/index.vue +1 -1
- package/src/components/LoginSetting/index.vue +19 -9
- package/src/components/LoginTemporary/form.vue +2 -4
- package/src/components/LoginTemporary/index.vue +1 -1
- package/src/components/LoginTemporary/retrievePw.vue +8 -8
- package/src/components/Pivot/ChartView.vue +1 -1
- package/src/components/Pivot/TableView.vue +1 -1
- package/src/components/Pivot/index.vue +11 -7
- package/src/components/ProFilterView/index.vue +4 -3
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +4 -4
- package/src/components/SelectDatePickerPro/index.vue +1 -1
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +5 -5
- package/src/components/TableSetSize/index.vue +2 -2
- package/src/components/Upload/index.vue +1 -1
- package/src/components/operatingStatus/index.vue +1 -1
- package/src/components/v3/UploadList/index.vue +1 -1
- package/src/i18n.json +802 -4
- package/src/plugins/Print/print-js/src/js/init.js +2 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +3 -3
- package/src/plugins/SetMenuTree/utils.js +2 -1
- package/src/plugins/Sign/Itrus/index.js +12 -9
- package/src/plugins/Sign/Itrus/sign_3720.js +13 -8
- package/src/plugins/Sign/NetSM3/index.js +14 -11
- package/src/plugins/Sign/NetV3/index.js +17 -16
- package/src/plugins/Sign/SkfSign/index.js +14 -11
- package/src/plugins/Sign/bjca/index.js +21 -18
- package/src/plugins/Sign/cfca/index.js +10 -9
- package/src/plugins/Sign/hnca/index.js +11 -11
- package/src/plugins/Sign/index.js +2 -1
- package/src/plugins/Sign/kySign/index.js +13 -10
- package/src/plugins/Sign/netca/index.js +8 -7
- package/src/plugins/Sign/sdca/index.js +16 -15
- package/src/plugins/Sign/sign.js +13 -10
- package/src/plugins/Sign/signV3/sign.js +17 -14
- package/src/plugins/Sign/sign_back.js +13 -10
- package/src/utils/xls2json.js +2 -1
- package/src/utils/xlsx2json.js +2 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<el-dropdown trigger="click" placement="bottom-start" @command="handleCommand">
|
|
4
4
|
<el-button type="primary" class="drop-btn-item">
|
|
5
|
-
|
|
5
|
+
{{ $lc('导入') }}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
6
6
|
</el-button>
|
|
7
7
|
<el-dropdown-menu slot="dropdown" class="drop">
|
|
8
|
-
<el-dropdown-item command="a"
|
|
9
|
-
<el-dropdown-item command="b"
|
|
8
|
+
<el-dropdown-item command="a">{{ $lc('导入数据') }}</el-dropdown-item>
|
|
9
|
+
<el-dropdown-item command="b">{{ $lc('模板下载') }}</el-dropdown-item>
|
|
10
10
|
</el-dropdown-menu>
|
|
11
11
|
</el-dropdown>
|
|
12
12
|
<NstcDialog
|
|
@@ -21,26 +21,26 @@
|
|
|
21
21
|
@cancel="resetAction"
|
|
22
22
|
>
|
|
23
23
|
<div class="file-box">
|
|
24
|
-
<span class="file-box-title"
|
|
24
|
+
<span class="file-box-title">{{ $lc('导入文件') }}</span>
|
|
25
25
|
<span class="file-name">{{ fileName }}</span>
|
|
26
26
|
</div>
|
|
27
|
-
<div class="import-process"
|
|
27
|
+
<div class="import-process">{{ $lc('导入进度') }}</div>
|
|
28
28
|
<div v-show="statisticsFlag" class="excel-upload-result-box">
|
|
29
29
|
<div class="excel-upload-result-box-head">
|
|
30
|
-
导入统计
|
|
31
|
-
<span
|
|
30
|
+
{{ $lc('导入统计') }}
|
|
31
|
+
<span>{{ $lc('共计导入') }} {{ validateResult.totalNum }}{{ $lc('条,') }} </span>
|
|
32
32
|
<span
|
|
33
|
-
|
|
33
|
+
>{{ $lc('其中有效数据') }}<span class="effect-data"> {{ validateResult.successNum }} </span>{{ $lc('条,') }}
|
|
34
34
|
</span>
|
|
35
35
|
<span
|
|
36
|
-
|
|
36
|
+
>{{ $lc('无效数据') }}
|
|
37
37
|
<span class="nstc-import-error-num">{{ validateResult.errorList.length }}</span>
|
|
38
|
-
|
|
38
|
+
{{ $lc('条。') }}</span
|
|
39
39
|
>
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
<div v-show="hasErrorFlag" class="fail-excel-import-box fail-box">
|
|
43
|
-
<div class="fail-excel-import-box-title"
|
|
43
|
+
<div class="fail-excel-import-box-title">{{ $lc('无效数据详情') }}</div>
|
|
44
44
|
<el-table :data="errorListTemp" style="width: 100%">
|
|
45
45
|
<el-table-column
|
|
46
46
|
v-for="column in columnsListTemp"
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
</el-table-column>
|
|
57
57
|
</el-table>
|
|
58
58
|
</div>
|
|
59
|
-
<div v-show="hasErrorFlag" class="end-tips"
|
|
59
|
+
<div v-show="hasErrorFlag" class="end-tips">{{ $lc('上述数据输入有误,请修改导入文件中相关信息!') }}</div>
|
|
60
60
|
<div class="footer">
|
|
61
61
|
<el-button type="primary" :disabled="excelData.tableData.length === 0 || confirmDisabledFlag" @click="cancel"
|
|
62
|
-
|
|
62
|
+
>{{ $lc('确定') }}
|
|
63
63
|
</el-button>
|
|
64
64
|
</div>
|
|
65
65
|
</NstcDialog>
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
<script>
|
|
69
69
|
import XLSX from 'xlsx'
|
|
70
70
|
import axios from '../../../src/utils/axios.js'
|
|
71
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
71
72
|
import NstcDialog from '../NstcDialog/NstcDialog'
|
|
72
73
|
|
|
73
74
|
export default {
|
|
@@ -79,7 +80,7 @@ export default {
|
|
|
79
80
|
title: {
|
|
80
81
|
type: String,
|
|
81
82
|
default: function () {
|
|
82
|
-
return '文件导入'
|
|
83
|
+
return $lc('文件导入')
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
tips: {
|
|
@@ -97,7 +98,7 @@ export default {
|
|
|
97
98
|
default() {
|
|
98
99
|
return {
|
|
99
100
|
isFrontDown: true,
|
|
100
|
-
fileName: '
|
|
101
|
+
fileName: $lc('下载') + '.xlsx'
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
},
|
|
@@ -232,6 +233,7 @@ export default {
|
|
|
232
233
|
}
|
|
233
234
|
},
|
|
234
235
|
methods: {
|
|
236
|
+
$lc,
|
|
235
237
|
cancel() {
|
|
236
238
|
this.handleConfirmImportExcel()
|
|
237
239
|
},
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
:disabled="isDisabled"
|
|
14
14
|
@click="add"
|
|
15
15
|
>
|
|
16
|
-
新增
|
|
16
|
+
{{ $lc('新增') }}
|
|
17
17
|
</el-button>
|
|
18
18
|
<el-button
|
|
19
19
|
v-if="tableData.length !== 0 && !views"
|
|
20
20
|
class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-s"
|
|
21
21
|
@click="batchDownload"
|
|
22
|
-
|
|
22
|
+
>{{ $lc('下载') }}
|
|
23
23
|
</el-button>
|
|
24
24
|
<el-button
|
|
25
25
|
v-if="tableData.length !== 0 && !views"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
:disabled="isDisabled"
|
|
28
28
|
@click="batchDelete"
|
|
29
29
|
>
|
|
30
|
-
删除
|
|
30
|
+
{{ $lc('删除') }}
|
|
31
31
|
</el-button>
|
|
32
32
|
</div>
|
|
33
33
|
<div v-else class="nstc-file-upload-head">
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
v-if="tableData.length !== 0 && !views"
|
|
36
36
|
class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-s"
|
|
37
37
|
@click="batchDownload"
|
|
38
|
-
|
|
38
|
+
>{{ $lc('下载') }}
|
|
39
39
|
</el-button>
|
|
40
40
|
</div>
|
|
41
41
|
<div class="nstc-file-upload-table">
|
|
42
42
|
<el-form ref="form" :rules="model.rules" :model="model">
|
|
43
43
|
<el-table :data="tableData" @selection-change="handleSelectionChange">
|
|
44
44
|
<el-table-column type="selection" width="50" align="center" />
|
|
45
|
-
<el-table-column label="附件类型" align="left" min-width="180">
|
|
45
|
+
<el-table-column :label="$lc('附件类型')" align="left" min-width="180">
|
|
46
46
|
<template slot-scope="scope">
|
|
47
47
|
<!-- !textFlag(scope.row.uuid,scope.row.filePath) -->
|
|
48
48
|
<el-select v-if="!textFlag(scope.row.uuid, scope.row.filePath) && !views" v-model="scope.row.fileType">
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<span v-else>{{ getFileTypeLabel(scope.row.fileType) || '--' }}</span>
|
|
52
52
|
</template>
|
|
53
53
|
</el-table-column>
|
|
54
|
-
<el-table-column label="附件名称" align="left" min-width="180">
|
|
54
|
+
<el-table-column :label="$lc('附件名称')" align="left" min-width="180">
|
|
55
55
|
<template slot-scope="scope">
|
|
56
56
|
<el-form-item
|
|
57
57
|
v-if="!textFlag(scope.row.uuid, scope.row.filePath) && !views"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
>
|
|
61
61
|
<el-input
|
|
62
62
|
v-model.trim="scope.row.attachmentName"
|
|
63
|
-
placeholder="请输入附件名称"
|
|
63
|
+
:placeholder="$lc('请输入附件名称')"
|
|
64
64
|
clearable
|
|
65
65
|
:maxlength="attachmentMaxlength"
|
|
66
66
|
/>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<span v-else>{{ scope.row.attachmentName || '--' }}</span>
|
|
70
70
|
</template>
|
|
71
71
|
</el-table-column>
|
|
72
|
-
<el-table-column label="附件上传" align="left" min-width="180">
|
|
72
|
+
<el-table-column :label="$lc('附件上传')" align="left" min-width="180">
|
|
73
73
|
<template slot-scope="scope">
|
|
74
74
|
<el-upload
|
|
75
75
|
v-if="pattern !== 'text' && !views"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
>
|
|
96
96
|
<el-input
|
|
97
97
|
v-model="scope.row.fileName"
|
|
98
|
-
placeholder="请选择附件"
|
|
98
|
+
:placeholder="$lc('请选择附件')"
|
|
99
99
|
readonly
|
|
100
100
|
@click="getUploadIndex(scope.$index)"
|
|
101
101
|
>
|
|
@@ -108,17 +108,17 @@
|
|
|
108
108
|
</template>
|
|
109
109
|
<el-input />
|
|
110
110
|
</el-table-column>
|
|
111
|
-
<el-table-column label="上传时间" prop="time" align="left" width="220px">
|
|
111
|
+
<el-table-column :label="$lc('上传时间')" prop="time" align="left" width="220px">
|
|
112
112
|
<template slot-scope="scope">
|
|
113
113
|
<span>{{ (scope.row.time || scope.row.createTime) | parseTimeFormat }}</span>
|
|
114
114
|
</template>
|
|
115
115
|
</el-table-column>
|
|
116
|
-
<el-table-column label="上传人" prop="user" align="left">
|
|
116
|
+
<el-table-column :label="$lc('上传人')" prop="user" align="left">
|
|
117
117
|
<template slot-scope="scope">
|
|
118
118
|
<span>{{ scope.row.user || scope.row.creator }}</span>
|
|
119
119
|
</template>
|
|
120
120
|
</el-table-column>
|
|
121
|
-
<el-table-column v-if="pattern !== 'text'" label="上传进度" align="left" width="300px">
|
|
121
|
+
<el-table-column v-if="pattern !== 'text'" :label="$lc('上传进度')" align="left" width="300px">
|
|
122
122
|
<template slot-scope="scope">
|
|
123
123
|
<div class="nstc-el-progress-box">
|
|
124
124
|
<el-progress
|
|
@@ -136,11 +136,11 @@
|
|
|
136
136
|
v-if="scope.row.status === 'exception'"
|
|
137
137
|
class="nstc-file-reload"
|
|
138
138
|
@click="reUploadAction(scope.$index)"
|
|
139
|
-
|
|
139
|
+
>{{ $lc('重新上传') }}</span
|
|
140
140
|
>
|
|
141
141
|
</template>
|
|
142
142
|
</el-table-column>
|
|
143
|
-
<el-table-column label="操作" align="left" width="100px">
|
|
143
|
+
<el-table-column :label="$lc('操作')" align="left" width="100px">
|
|
144
144
|
<template slot-scope="scope">
|
|
145
145
|
<div class="nstc-file-upload-opt">
|
|
146
146
|
<!-- v-if="false" -->
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
</el-form>
|
|
166
166
|
</div>
|
|
167
167
|
<DialogCustom v-model="dialogShowFlag" :show-footer="false" :title="dialogTitle" @confirm="handleConfirm">
|
|
168
|
-
<span
|
|
168
|
+
<span>{{ $lc('查看文件') }}</span>
|
|
169
169
|
</DialogCustom>
|
|
170
170
|
</div>
|
|
171
171
|
</template>
|
|
@@ -184,6 +184,7 @@ import DialogCustom from '../NstcDialog/NstcDialog'
|
|
|
184
184
|
import { parseTime } from '../../utils/parseTime'
|
|
185
185
|
import auth from '../../utils/auth'
|
|
186
186
|
import axios from 'axios'
|
|
187
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
187
188
|
|
|
188
189
|
export default {
|
|
189
190
|
name: 'NstcFileUpload',
|
|
@@ -257,7 +258,7 @@ export default {
|
|
|
257
258
|
attachmentName: {
|
|
258
259
|
type: 'string',
|
|
259
260
|
required: true,
|
|
260
|
-
message: '必填字段',
|
|
261
|
+
message: $lc('必填字段'),
|
|
261
262
|
trigger: 'change'
|
|
262
263
|
}
|
|
263
264
|
},
|
|
@@ -266,7 +267,7 @@ export default {
|
|
|
266
267
|
fileList: [],
|
|
267
268
|
tableSelectionData: [],
|
|
268
269
|
tableSelectionData2: [],
|
|
269
|
-
fileTypeList: [{ label: '附件', value: 1 }],
|
|
270
|
+
fileTypeList: [{ label: $lc('附件'), value: 1 }],
|
|
270
271
|
tempFile: {
|
|
271
272
|
id: '',
|
|
272
273
|
attachmentName: '',
|
|
@@ -282,12 +283,12 @@ export default {
|
|
|
282
283
|
fileObj: '',
|
|
283
284
|
percentage: 0
|
|
284
285
|
},
|
|
285
|
-
dialogTitle: '查看',
|
|
286
|
+
dialogTitle: $lc('查看'),
|
|
286
287
|
dialogShowFlag: false,
|
|
287
288
|
currentUploadIndex: null,
|
|
288
289
|
showProgress: true,
|
|
289
290
|
dialogShowDelete: false,
|
|
290
|
-
dialogDeleteTitle: '提示'
|
|
291
|
+
dialogDeleteTitle: $lc('提示')
|
|
291
292
|
}
|
|
292
293
|
},
|
|
293
294
|
computed: {
|
|
@@ -319,6 +320,7 @@ export default {
|
|
|
319
320
|
}, 1)
|
|
320
321
|
},
|
|
321
322
|
methods: {
|
|
323
|
+
$lc,
|
|
322
324
|
beforeUpload(file, row) {
|
|
323
325
|
console.log(file, row)
|
|
324
326
|
// if(!row.attachmentName) {
|
|
@@ -445,17 +447,17 @@ export default {
|
|
|
445
447
|
deleteFile(index) {
|
|
446
448
|
this.$confirmTip({
|
|
447
449
|
type: 'info',
|
|
448
|
-
title: '确认删除该文件?',
|
|
450
|
+
title: $lc('确认删除该文件?'),
|
|
449
451
|
info: '',
|
|
450
452
|
button: {
|
|
451
|
-
ok: '提交',
|
|
452
|
-
cancel: '取消'
|
|
453
|
+
ok: $lc('提交'),
|
|
454
|
+
cancel: $lc('取消')
|
|
453
455
|
}
|
|
454
456
|
}).then(() => {
|
|
455
457
|
this.tableData.splice(index, 1)
|
|
456
458
|
this.$message({
|
|
457
459
|
type: 'success',
|
|
458
|
-
message: '删除成功!'
|
|
460
|
+
message: $lc('删除成功!')
|
|
459
461
|
})
|
|
460
462
|
})
|
|
461
463
|
},
|
|
@@ -484,7 +486,7 @@ export default {
|
|
|
484
486
|
// 阻断下载
|
|
485
487
|
this.$message({
|
|
486
488
|
type: 'warning',
|
|
487
|
-
message: '勾选文件中有文件未上传'
|
|
489
|
+
message: $lc('勾选文件中有文件未上传')
|
|
488
490
|
})
|
|
489
491
|
return
|
|
490
492
|
}
|
|
@@ -521,7 +523,7 @@ export default {
|
|
|
521
523
|
let elink = document.createElement('a')
|
|
522
524
|
elink.style.display = 'none'
|
|
523
525
|
elink.href = window.URL.createObjectURL(blob)
|
|
524
|
-
elink.download = '
|
|
526
|
+
elink.download = `${$lc('批量下载')}.zip`
|
|
525
527
|
document.body.appendChild(elink)
|
|
526
528
|
elink.click()
|
|
527
529
|
URL.revokeObjectURL(elink.href)
|
|
@@ -533,7 +535,7 @@ export default {
|
|
|
533
535
|
} else {
|
|
534
536
|
this.$message({
|
|
535
537
|
type: 'warning',
|
|
536
|
-
message: '请选择要下载的附件'
|
|
538
|
+
message: $lc('请选择要下载的附件')
|
|
537
539
|
})
|
|
538
540
|
}
|
|
539
541
|
},
|
|
@@ -546,11 +548,11 @@ export default {
|
|
|
546
548
|
this.dialogShowDelete = true
|
|
547
549
|
this.$confirmTip({
|
|
548
550
|
type: 'error',
|
|
549
|
-
title: '确认要删除所选附件吗?',
|
|
550
|
-
info: '删除后数据不可恢复',
|
|
551
|
+
title: $lc('确认要删除所选附件吗?'),
|
|
552
|
+
info: $lc('删除后数据不可恢复'),
|
|
551
553
|
button: {
|
|
552
|
-
ok: '提交',
|
|
553
|
-
cancel: '取消'
|
|
554
|
+
ok: $lc('提交'),
|
|
555
|
+
cancel: $lc('取消')
|
|
554
556
|
}
|
|
555
557
|
}).then(() => {
|
|
556
558
|
this.tableData = this.tableData.filter((i) => {
|
|
@@ -561,13 +563,13 @@ export default {
|
|
|
561
563
|
}, 30)
|
|
562
564
|
this.$message({
|
|
563
565
|
type: 'success',
|
|
564
|
-
message: '删除成功!'
|
|
566
|
+
message: $lc('删除成功!')
|
|
565
567
|
})
|
|
566
568
|
})
|
|
567
569
|
} else {
|
|
568
570
|
this.$message({
|
|
569
571
|
type: 'warning',
|
|
570
|
-
message: '请选择要删除的附件'
|
|
572
|
+
message: $lc('请选择要删除的附件')
|
|
571
573
|
})
|
|
572
574
|
}
|
|
573
575
|
},
|
|
@@ -581,7 +583,7 @@ export default {
|
|
|
581
583
|
this.dialogShowDelete = false
|
|
582
584
|
this.$message({
|
|
583
585
|
type: 'success',
|
|
584
|
-
message: '删除成功!'
|
|
586
|
+
message: $lc('删除成功!')
|
|
585
587
|
})
|
|
586
588
|
},
|
|
587
589
|
|
|
@@ -606,7 +608,7 @@ export default {
|
|
|
606
608
|
const isLt2M = fileObj.file.size / 1024 / 1024 < 20
|
|
607
609
|
if (!isLt2M) {
|
|
608
610
|
this.$message({
|
|
609
|
-
message: '上传文件大小不能超过 20MB!',
|
|
611
|
+
message: $lc('上传文件大小不能超过 20MB!'),
|
|
610
612
|
type: 'warning'
|
|
611
613
|
})
|
|
612
614
|
this.tableData[this.currentUploadIndex].percentage = 75
|
|
@@ -660,7 +662,7 @@ export default {
|
|
|
660
662
|
handleExceed() {
|
|
661
663
|
this.$message({
|
|
662
664
|
type: 'error',
|
|
663
|
-
message: '最多只能选择一个文件'
|
|
665
|
+
message: $lc('最多只能选择一个文件')
|
|
664
666
|
})
|
|
665
667
|
},
|
|
666
668
|
|
|
@@ -725,7 +727,7 @@ export default {
|
|
|
725
727
|
if (t.length) {
|
|
726
728
|
this.$message({
|
|
727
729
|
type: 'error',
|
|
728
|
-
message: '文件名不能超过64个字,请重新上传!'
|
|
730
|
+
message: $lc('文件名不能超过64个字,请重新上传!')
|
|
729
731
|
})
|
|
730
732
|
// this.tableData[index].status = 'exception';
|
|
731
733
|
return null
|
|
@@ -738,7 +740,7 @@ export default {
|
|
|
738
740
|
if (temp.length) {
|
|
739
741
|
this.$message({
|
|
740
742
|
type: 'error',
|
|
741
|
-
message: '暂不支持 .exe, .bin等格式文件格式上传!'
|
|
743
|
+
message: $lc('暂不支持 .exe, .bin等格式文件格式上传!')
|
|
742
744
|
})
|
|
743
745
|
this.tableData[index].fileName = ''
|
|
744
746
|
return null
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
18
|
+
|
|
17
19
|
export default {
|
|
18
20
|
name: 'AutocompleteCustom',
|
|
19
21
|
|
|
@@ -38,7 +40,7 @@ export default {
|
|
|
38
40
|
placeholder: {
|
|
39
41
|
type: String,
|
|
40
42
|
default: function () {
|
|
41
|
-
return '请输入'
|
|
43
|
+
return $lc('请输入')
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
46
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
<div v-else class="nstc-g6-common-input-with-unit">
|
|
8
8
|
<InputCustom v-model="_value[0]" :width="_widthConfig[0]" :maxlength="3" />
|
|
9
|
-
<span style="margin: 0 10px"
|
|
9
|
+
<span style="margin: 0 10px">{{ $lc('至') }}</span>
|
|
10
10
|
<InputCustom v-model="_value[1]" :width="_widthConfig[1]" :maxlength="3" />
|
|
11
11
|
<SelectCustom v-model="_value[2]" filterable :options="options" :width="_widthConfig[2]" />
|
|
12
12
|
</div>
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<script>
|
|
17
17
|
import InputCustom from '../InputCustom'
|
|
18
18
|
import SelectCustom from '../SelectCustom'
|
|
19
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
19
20
|
export default {
|
|
20
21
|
name: 'NstcInputWithUnit',
|
|
21
22
|
props: {
|
|
@@ -33,9 +34,9 @@ export default {
|
|
|
33
34
|
type: Array,
|
|
34
35
|
default: () => {
|
|
35
36
|
return [
|
|
36
|
-
{ label: '年', value: 3 },
|
|
37
|
-
{ label: '月', value: 2 },
|
|
38
|
-
{ label: '日', value: 1 }
|
|
37
|
+
{ label: $lc('年'), value: 3 },
|
|
38
|
+
{ label: $lc('月'), value: 2 },
|
|
39
|
+
{ label: $lc('日'), value: 1 }
|
|
39
40
|
]
|
|
40
41
|
}
|
|
41
42
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
>
|
|
16
16
|
<template v-slot:table>
|
|
17
17
|
<div style="display: flex">
|
|
18
|
-
<el-input class="select-dialog-custom-tree-inp" placeholder="输入关键字进行过滤" v-model="filterText">
|
|
18
|
+
<el-input class="select-dialog-custom-tree-inp" :placeholder="$lc('输入关键字进行过滤')" v-model="filterText">
|
|
19
19
|
</el-input>
|
|
20
20
|
<el-button
|
|
21
21
|
type="primary"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b"
|
|
24
24
|
@click.stop="handleQuery"
|
|
25
25
|
>
|
|
26
|
-
查询
|
|
26
|
+
{{ $lc('查询') }}
|
|
27
27
|
</el-button>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
<div style="text-align: center">
|
|
48
48
|
<el-button type="primary" class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click.stop="handleclick">
|
|
49
|
-
确认
|
|
49
|
+
{{ $lc('确认') }}
|
|
50
50
|
</el-button>
|
|
51
|
-
<el-button class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click.stop="handleClear"> 取消 </el-button>
|
|
51
|
+
<el-button class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click.stop="handleClear">{{ $lc('取消') }}</el-button>
|
|
52
52
|
</div>
|
|
53
53
|
</template>
|
|
54
54
|
</SelectInDialogCustom>
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
<script>
|
|
58
58
|
import SelectInDialogCustom from '../SelectindialogCustom'
|
|
59
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
59
60
|
export default {
|
|
60
61
|
name: 'SelectTreeDialog',
|
|
61
62
|
|
|
@@ -77,7 +78,7 @@ export default {
|
|
|
77
78
|
props: {
|
|
78
79
|
title: {
|
|
79
80
|
type: String,
|
|
80
|
-
default: '表格里边弹窗'
|
|
81
|
+
default: () => $lc('表格里边弹窗')
|
|
81
82
|
},
|
|
82
83
|
value: {
|
|
83
84
|
type: String,
|
|
@@ -88,19 +89,19 @@ export default {
|
|
|
88
89
|
default: () => [
|
|
89
90
|
{
|
|
90
91
|
id: 1,
|
|
91
|
-
label: '一级 1
|
|
92
|
+
label: `${$lc('一级')} 1`,
|
|
92
93
|
children: [
|
|
93
94
|
{
|
|
94
95
|
id: 4,
|
|
95
|
-
label: '二级 1-1
|
|
96
|
+
label: `${$lc('二级')} 1-1`,
|
|
96
97
|
children: [
|
|
97
98
|
{
|
|
98
99
|
id: 9,
|
|
99
|
-
label: '三级 1-1-1
|
|
100
|
+
label: `${$lc('三级')} 1-1-1`
|
|
100
101
|
},
|
|
101
102
|
{
|
|
102
103
|
id: 10,
|
|
103
|
-
label: '三级 1-1-2
|
|
104
|
+
label: `${$lc('三级')} 1-1-2`
|
|
104
105
|
}
|
|
105
106
|
]
|
|
106
107
|
}
|
|
@@ -108,29 +109,29 @@ export default {
|
|
|
108
109
|
},
|
|
109
110
|
{
|
|
110
111
|
id: 2,
|
|
111
|
-
label: '一级 2
|
|
112
|
+
label: `${$lc('一级')} 2`,
|
|
112
113
|
children: [
|
|
113
114
|
{
|
|
114
115
|
id: 5,
|
|
115
|
-
label: '二级 2-1
|
|
116
|
+
label: `${$lc('二级')} 2-1`
|
|
116
117
|
},
|
|
117
118
|
{
|
|
118
119
|
id: 6,
|
|
119
|
-
label: '二级 2-2
|
|
120
|
+
label: `${$lc('二级')} 2-2`
|
|
120
121
|
}
|
|
121
122
|
]
|
|
122
123
|
},
|
|
123
124
|
{
|
|
124
125
|
id: 3,
|
|
125
|
-
label: '一级 3
|
|
126
|
+
label: `${$lc('一级')} 3`,
|
|
126
127
|
children: [
|
|
127
128
|
{
|
|
128
129
|
id: 7,
|
|
129
|
-
label: '二级 3-1
|
|
130
|
+
label: `${$lc('二级')} 3-1`
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
id: 8,
|
|
133
|
-
label: '二级 3-2
|
|
134
|
+
label: `${$lc('二级')} 3-2`
|
|
134
135
|
}
|
|
135
136
|
]
|
|
136
137
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
<div v-if="isVertical && queryBtn" :class="[`form-item`, `form-item-button`]">
|
|
35
35
|
<el-button v-bind="queryBtn" :loading="queryLoading" :disabled="disableds.querybutton" @click="handleExpectQuery">
|
|
36
|
-
|
|
36
|
+
{{ queryBtn.name || $lc('查询') }}
|
|
37
37
|
</el-button>
|
|
38
38
|
</div>
|
|
39
39
|
</el-form>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
<div v-if="isVertical && queryBtn" :class="[`form-item`, `form-item-button`]">
|
|
33
33
|
<el-button v-bind="queryBtn" :loading="queryLoading" :disabled="disableds.querybutton" @click="handleExpectQuery">
|
|
34
|
-
|
|
34
|
+
{{ queryBtn.name || $lc('查询') }}
|
|
35
35
|
</el-button>
|
|
36
36
|
</div>
|
|
37
37
|
</el-form>
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
:picker-options="_pickerOptions"
|
|
9
9
|
:style="{ width: parseFloat(width) + 'px' }"
|
|
10
10
|
clearable
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
:placeholder="$lc('请选择')"
|
|
12
|
+
:start-placeholder="$lc('请选择')"
|
|
13
|
+
:end-placeholder="$lc('请选择')"
|
|
14
14
|
v-on="$listeners"
|
|
15
15
|
/>
|
|
16
16
|
</template>
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
<script>
|
|
38
38
|
import axios from '../../../../src/utils/axios'
|
|
39
39
|
import DialogTable from '../../NstcDialog/NstcDialog.vue'
|
|
40
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
40
41
|
|
|
41
42
|
export default {
|
|
42
43
|
name: 'NstcInputAndDialog',
|
|
@@ -116,10 +117,10 @@ export default {
|
|
|
116
117
|
chMapper: {
|
|
117
118
|
type: Object,
|
|
118
119
|
default: () => ({
|
|
119
|
-
title: '选择xx',
|
|
120
|
-
noselectmsg: '请选择xx',
|
|
121
|
-
plcInput: '请输入',
|
|
122
|
-
plcSelect: '请选择'
|
|
120
|
+
title: $lc('选择xx'),
|
|
121
|
+
noselectmsg: $lc('请选择xx'),
|
|
122
|
+
plcInput: $lc('请输入'),
|
|
123
|
+
plcSelect: $lc('请选择')
|
|
123
124
|
})
|
|
124
125
|
},
|
|
125
126
|
// 是否添加懒加载
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
v-nstc-number="numberRule"
|
|
8
8
|
v-bind="$attrs"
|
|
9
9
|
:style="{ width: parseFloat(width) + 'px' }"
|
|
10
|
-
|
|
10
|
+
:placeholder="placeholder || $lc('请输入')"
|
|
11
11
|
:type="_type"
|
|
12
12
|
:maxlength="maxlength"
|
|
13
13
|
:class="{
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<script>
|
|
32
32
|
import axios from '../../../../src/utils/axios'
|
|
33
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
33
34
|
export default {
|
|
34
35
|
name: 'InputCustom',
|
|
35
36
|
|
|
@@ -53,7 +54,7 @@ export default {
|
|
|
53
54
|
|
|
54
55
|
placeholder: {
|
|
55
56
|
type: String,
|
|
56
|
-
default: '请输入'
|
|
57
|
+
default: () => $lc('请输入')
|
|
57
58
|
},
|
|
58
59
|
|
|
59
60
|
type: {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
10
|
import InputCustom from '../InputCustom'
|
|
11
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
11
12
|
|
|
12
13
|
export default {
|
|
13
14
|
name: 'IntervalInputCustom', // 区间输入框
|
|
@@ -64,7 +65,7 @@ export default {
|
|
|
64
65
|
value1 = isNaN(parseFloat(this._value[0])) ? 0 : parseFloat(this._value[0])
|
|
65
66
|
value2 = isNaN(parseFloat(this._value[1])) ? 0 : parseFloat(this._value[1])
|
|
66
67
|
if (value1 > value2) {
|
|
67
|
-
this.$message.warning('起始值不能大于结束值')
|
|
68
|
+
this.$message.warning($lc('起始值不能大于结束值'))
|
|
68
69
|
newVal = ['', '']
|
|
69
70
|
}
|
|
70
71
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
class="query-button nstc-g6-common-btn-1 nstc-g6-common-btn-size-b"
|
|
11
11
|
@click="$emit('query-click')"
|
|
12
12
|
>
|
|
13
|
-
{{ item.name || '查询' }}
|
|
13
|
+
{{ item.name || $lc('查询') }}
|
|
14
14
|
</el-button>
|
|
15
15
|
</el-form-item>
|
|
16
16
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:icon="item.icon || 'el-icon-plus'"
|
|
22
22
|
@click="$emit('add-click')"
|
|
23
23
|
>
|
|
24
|
-
{{ item.name || '新增' }}
|
|
24
|
+
{{ item.name || $lc('新增') }}
|
|
25
25
|
</el-button>
|
|
26
26
|
</el-form-item>
|
|
27
27
|
|