n20-common-lib 1.3.76 → 1.3.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/ApprovalButtons/index.vue +44 -25
- package/src/components/ApprovalButtons/setCarboncopyProp.vue +9 -9
- package/src/components/ApprovalCard/index.vue +8 -7
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +8 -7
- package/src/components/ApprovalRecord/flowDialog.vue +2 -2
- package/src/components/ApprovalRecord/index.vue +5 -5
- package/src/components/Button/button-group.vue +18 -17
- package/src/components/ChildRange/index.vue +2 -2
- package/src/components/ContentLoading/index.vue +4 -3
- package/src/components/ContentNull/index.vue +1 -1
- package/src/components/DatePicker/por.vue +12 -11
- package/src/components/Diff/index.vue +2 -1
- package/src/components/EventBubble/demo/a.vue +1 -1
- package/src/components/EventBubble/demo/c.vue +4 -2
- package/src/components/Expandable/index.vue +1 -1
- package/src/components/FileExportAsync/index.vue +12 -11
- package/src/components/FileImport/index.vue +6 -5
- package/src/components/FileUploadTable/index.vue +46 -45
- package/src/components/Filters/form-item-input.vue +1 -1
- package/src/components/Filters/index.vue +7 -5
- package/src/components/Filters/indexO.vue +5 -4
- package/src/components/InputNumber/index.vue +3 -2
- package/src/components/InputSearch/index.vue +1 -0
- package/src/components/Layout/HeaderWrap/changePwd.vue +20 -19
- package/src/components/Layout/HeaderWrap/index.vue +36 -90
- package/src/components/Layout/HeaderWrap/noticePop.vue +16 -15
- package/src/components/Layout/HeaderWrap/switchUser.vue +6 -6
- package/src/components/Layout/TabsNav/index.vue +6 -21
- package/src/components/Layout/index.vue +2 -1
- package/src/components/LoginTemporary/form.vue +34 -33
- package/src/components/LoginTemporary/index.vue +7 -6
- package/src/components/LoginTemporary/qrcode.vue +3 -2
- package/src/components/LoginTemporary/retrievePw.vue +32 -31
- package/src/components/MicroFrame/index.vue +1 -0
- package/src/components/MoreTab/index.vue +9 -4
- package/src/components/NavMenu/index.vue +1 -0
- package/src/components/PageHeader/index.vue +2 -1
- package/src/components/PageLayout/page.vue +1 -0
- package/src/components/Pagination/index.vue +5 -4
- package/src/components/SecondaryTab/index.vue +1 -0
- package/src/components/SelectLazy/index.vue +1 -0
- package/src/components/SelectTree/SelectTreeLazy.vue +1 -0
- package/src/components/SelectTree/index.vue +1 -0
- package/src/components/ShowColumn/index.vue +14 -13
- package/src/components/Sifting/index.vue +5 -4
- package/src/components/Stamp/index.vue +8 -7
- package/src/components/Statis/index.vue +20 -13
- package/src/components/Statis/statisItem.vue +3 -2
- package/src/components/Statis/statisPopover.vue +1 -0
- package/src/components/Step/index.vue +1 -0
- package/src/components/Suspend/index.vue +1 -0
- package/src/components/Table/index.vue +1 -0
- package/src/components/Table/indexO.vue +1 -0
- package/src/components/TableOperateColumn/OperateBtns.vue +1 -0
- package/src/components/TableOperateColumn/index.vue +1 -0
- package/src/components/Task/index.vue +1 -0
- package/src/components/TertiaryTab/index.vue +1 -0
- package/src/components/TimePicker/index.vue +1 -0
- package/src/components/Upload/index.vue +7 -6
- package/src/components/Upload/uploadMsg.vue +9 -8
- package/src/index.js +2 -1
- package/src/utils/axios.js +9 -8
- package/src/utils/i18n/index.js +8 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex-box flex-v">
|
|
3
|
-
<label
|
|
3
|
+
<label>{{ '标题' | $lc }}</label
|
|
4
|
+
><el-input v-model="title" class="flex-item m-l" />
|
|
4
5
|
<EventBubble :data-custom="{ title: title }" data-event="demoEv" />
|
|
5
6
|
</div>
|
|
6
7
|
</template>
|
|
7
8
|
|
|
8
9
|
<script>
|
|
10
|
+
import { $lc } from '../../../utils/i18n/index'
|
|
9
11
|
import EventBubble from '../index.vue'
|
|
10
12
|
export default {
|
|
11
13
|
components: { EventBubble },
|
|
12
14
|
data() {
|
|
13
15
|
return {
|
|
14
|
-
title: '默认标题'
|
|
16
|
+
title: $lc('默认标题')
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div>
|
|
8
8
|
<slot name="tips"></slot>
|
|
9
9
|
<span v-if="showExpand" class="n20-tips" @click="expand = !expand">
|
|
10
|
-
<span>{{ expand ? '收起' : '展开' }}</span
|
|
10
|
+
<span>{{ expand ? $lc('收起') : $lc('展开') }}</span
|
|
11
11
|
><i class="el-icon-arrow-right m-l-ss" :class="{ expand: expand }"></i>
|
|
12
12
|
</span>
|
|
13
13
|
</div>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<el-dialog
|
|
4
4
|
v-drag
|
|
5
5
|
:visible.sync="pgsV"
|
|
6
|
-
title="文件导出"
|
|
6
|
+
:title="'文件导出' | $lc"
|
|
7
7
|
width="432px"
|
|
8
8
|
top="calc(50vh - 92px)"
|
|
9
9
|
append-to-body
|
|
@@ -12,21 +12,22 @@
|
|
|
12
12
|
:before-close="exportCancel"
|
|
13
13
|
>
|
|
14
14
|
<div class="flex-box m-b">
|
|
15
|
-
<span class="m-r"
|
|
15
|
+
<span class="m-r">{{ '导出文件' | $lc }}</span>
|
|
16
16
|
<span class="flex-item">{{ fileName }}</span>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="flex-box m-b">
|
|
19
|
-
<span class="m-r"
|
|
19
|
+
<span class="m-r">{{ '导出进度' | $lc }}</span>
|
|
20
20
|
<el-progress class="flex-item" :percentage="pgsVal" :status="pgsStatus" style="margin-right: -10px" />
|
|
21
21
|
</div>
|
|
22
22
|
<span slot="footer">
|
|
23
|
-
<el-button plain @click="exportCancel"
|
|
23
|
+
<el-button plain @click="exportCancel">{{ '取消' | $lc }}</el-button>
|
|
24
24
|
</span>
|
|
25
25
|
</el-dialog>
|
|
26
26
|
</div>
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script>
|
|
30
|
+
import { $lc } from '../../utils/i18n/index'
|
|
30
31
|
import downloadBlob from '../../utils/downloadBlob'
|
|
31
32
|
export default {
|
|
32
33
|
name: 'FileExportAsync',
|
|
@@ -141,12 +142,12 @@ export default {
|
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
this.$msgboxPor({
|
|
144
|
-
title: '确定取消',
|
|
145
|
-
message: '取消后,数据导出将中断,是否确定取消导出?',
|
|
145
|
+
title: $lc('确定取消'),
|
|
146
|
+
message: $lc('取消后,数据导出将中断,是否确定取消导出?'),
|
|
146
147
|
type: 'warning',
|
|
147
148
|
customClass: 'question',
|
|
148
|
-
confirmButtonText: '确定',
|
|
149
|
-
cancelButtonText: '取消'
|
|
149
|
+
confirmButtonText: $lc('确定'),
|
|
150
|
+
cancelButtonText: $lc('取消')
|
|
150
151
|
}).then(() => {
|
|
151
152
|
clearTimeout(this.timer)
|
|
152
153
|
this.pgsV = false
|
|
@@ -160,12 +161,12 @@ export default {
|
|
|
160
161
|
if (!this.waitPopV) {
|
|
161
162
|
this.waitPopV = true
|
|
162
163
|
this.$msgboxPor({
|
|
163
|
-
title: '提示',
|
|
164
|
+
title: $lc('提示'),
|
|
164
165
|
message: '您的数据导出时间可能会比较长,是否继续导出?',
|
|
165
166
|
type: 'warning',
|
|
166
167
|
customClass: `question ${this.waitClass}`,
|
|
167
|
-
confirmButtonText: '继续导出',
|
|
168
|
-
cancelButtonText: '取消'
|
|
168
|
+
confirmButtonText: $lc('继续导出'),
|
|
169
|
+
cancelButtonText: $lc('取消')
|
|
169
170
|
}).catch(() => {
|
|
170
171
|
clearTimeout(this.timer)
|
|
171
172
|
this.pgsV = false
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dropdown trigger="click" placement="bottom-start" @command="commandFn">
|
|
3
|
-
<el-button size="mini" type="primary"
|
|
3
|
+
<el-button size="mini" type="primary">{{ '导入' | $lc }}</el-button>
|
|
4
4
|
<el-dropdown-menu slot="dropdown">
|
|
5
|
-
<el-dropdown-item command="import"
|
|
6
|
-
<el-dropdown-item command="down"
|
|
5
|
+
<el-dropdown-item command="import">{{ '导入数据' | $lc }}</el-dropdown-item>
|
|
6
|
+
<el-dropdown-item command="down">{{ '模板下载' | $lc }}</el-dropdown-item>
|
|
7
7
|
</el-dropdown-menu>
|
|
8
8
|
<div style="display: none">
|
|
9
9
|
<cl-upload v-if="!uploadHttpRequest" v-bind="uploadProps" :validate-result="validateResult">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</cl-upload>
|
|
12
12
|
<uploadMsg
|
|
13
13
|
v-else
|
|
14
|
-
title="导入文件"
|
|
14
|
+
:title="'导入文件' | $lc"
|
|
15
15
|
:visible.sync="errorV"
|
|
16
16
|
:validate-result="validateResult"
|
|
17
17
|
:hide-percent="true"
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
|
+
import { $lc } from '../../utils/i18n/index'
|
|
24
25
|
import axios from '../../utils/axios'
|
|
25
26
|
import downloadBlob from '../../utils/downloadBlob'
|
|
26
27
|
import uploadMsg from '../Upload/uploadMsg.vue'
|
|
@@ -34,7 +35,7 @@ export default {
|
|
|
34
35
|
},
|
|
35
36
|
fileName: {
|
|
36
37
|
type: String,
|
|
37
|
-
default: '下载.xlsx'
|
|
38
|
+
default: $lc('下载.xlsx')
|
|
38
39
|
},
|
|
39
40
|
uploadHttpRequest: {
|
|
40
41
|
type: Function,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div class="flex-box flex-v flex-lr">
|
|
7
7
|
<div><slot name="title"></slot></div>
|
|
8
8
|
<slot v-if="tableData.length" name="down-btn">
|
|
9
|
-
<el-button size="mini" plain @click="downRows"
|
|
9
|
+
<el-button size="mini" plain @click="downRows">{{ '批量下载' | $lc }}</el-button>
|
|
10
10
|
</slot>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
@@ -27,42 +27,42 @@
|
|
|
27
27
|
/>
|
|
28
28
|
</template>
|
|
29
29
|
<template v-else>
|
|
30
|
-
<el-table-column label="附件类型" :prop="keys.type">
|
|
30
|
+
<el-table-column :label="'附件类型' | $lc" :prop="keys.type">
|
|
31
31
|
<template slot="header" slot-scope="scope">
|
|
32
|
-
<slot name="type-header" :column="scope.column"
|
|
32
|
+
<slot name="type-header" :column="scope.column">{{ '附件类型' | $lc }}</slot>
|
|
33
33
|
</template>
|
|
34
34
|
<template slot-scope="{ row }">
|
|
35
35
|
<slot name="type" :row="row">{{ row[keys.type] | typeFiter(typeOptions) }}</slot>
|
|
36
36
|
</template>
|
|
37
37
|
</el-table-column>
|
|
38
|
-
<el-table-column label="附件名称" :prop="keys.name">
|
|
38
|
+
<el-table-column :label="'附件名称' | $lc" :prop="keys.name">
|
|
39
39
|
<template slot="header" slot-scope="scope">
|
|
40
|
-
<slot name="name-header" :column="scope.column"
|
|
40
|
+
<slot name="name-header" :column="scope.column">{{ '附件名称' | $lc }}</slot>
|
|
41
41
|
</template>
|
|
42
42
|
<template slot-scope="{ row }">
|
|
43
43
|
<slot name="name" :row="row">{{ row[keys.name] }}</slot>
|
|
44
44
|
</template>
|
|
45
45
|
</el-table-column>
|
|
46
|
-
<el-table-column label="上传时间" :prop="keys.time" width="170" align="left">
|
|
46
|
+
<el-table-column :label="'上传时间' | $lc" :prop="keys.time" width="170" align="left">
|
|
47
47
|
<template slot="header" slot-scope="scope">
|
|
48
|
-
<slot name="time-header" :column="scope.column"
|
|
48
|
+
<slot name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
49
49
|
</template>
|
|
50
50
|
<template slot-scope="{ row }">
|
|
51
51
|
<slot name="time" :row="row">{{ row[keys.time] }}</slot>
|
|
52
52
|
</template>
|
|
53
53
|
</el-table-column>
|
|
54
|
-
<el-table-column label="上传人" :prop="keys.user">
|
|
54
|
+
<el-table-column :label="'上传人' | $lc" :prop="keys.user">
|
|
55
55
|
<template slot="header" slot-scope="scope">
|
|
56
|
-
<slot name="user-header" :column="scope.column"
|
|
56
|
+
<slot name="user-header" :column="scope.column">{{ '上传人' | $lc }}</slot>
|
|
57
57
|
</template>
|
|
58
58
|
<template slot-scope="{ row }">
|
|
59
59
|
<slot name="user" :row="row">{{ row[keys.user] }}</slot>
|
|
60
60
|
</template>
|
|
61
61
|
</el-table-column>
|
|
62
62
|
</template>
|
|
63
|
-
<el-table-column label="操作" align="center" width="80" fixed="right">
|
|
63
|
+
<el-table-column :label="'操作' | $lc" align="center" width="80" fixed="right">
|
|
64
64
|
<template slot="header" slot-scope="scope">
|
|
65
|
-
<slot name="handle-header" :column="scope.column"
|
|
65
|
+
<slot name="handle-header" :column="scope.column">{{ '操作' | $lc }}</slot>
|
|
66
66
|
</template>
|
|
67
67
|
<template slot-scope="{ row }">
|
|
68
68
|
<slot name="handle" :row="row">
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
<div><slot name="title"></slot></div>
|
|
81
81
|
<div>
|
|
82
82
|
<slot name="add-btn">
|
|
83
|
-
<el-button type="primary" size="mini" @click="addRow"
|
|
83
|
+
<el-button type="primary" size="mini" @click="addRow">{{ '新增' | $lc }}</el-button>
|
|
84
84
|
</slot>
|
|
85
85
|
<slot v-if="showBatchUpload" name="batch-btn">
|
|
86
|
-
<el-button size="mini" plain @click="visibleBatch = true"
|
|
86
|
+
<el-button size="mini" plain @click="visibleBatch = true">{{ '批量上传' | $lc }}</el-button>
|
|
87
87
|
</slot>
|
|
88
88
|
<slot v-if="tableData.length" name="down-btn">
|
|
89
|
-
<el-button size="mini" plain @click="downRows"
|
|
89
|
+
<el-button size="mini" plain @click="downRows">{{ '下载' | $lc }}</el-button>
|
|
90
90
|
</slot>
|
|
91
91
|
<slot v-if="tableData.length" name="delete-btn">
|
|
92
|
-
<el-button type="danger" plain size="mini" @click="deleteRows"
|
|
92
|
+
<el-button type="danger" plain size="mini" @click="deleteRows">{{ '删除' | $lc }}</el-button>
|
|
93
93
|
</slot>
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
@@ -111,16 +111,16 @@
|
|
|
111
111
|
/>
|
|
112
112
|
</template>
|
|
113
113
|
<template v-else>
|
|
114
|
-
<el-table-column label="附件类型" min-width="160">
|
|
114
|
+
<el-table-column :label="'附件类型' | $lc" min-width="160">
|
|
115
115
|
<template slot="header" slot-scope="scope">
|
|
116
|
-
<slot name="type-header" :column="scope.column"
|
|
116
|
+
<slot name="type-header" :column="scope.column">{{ '附件类型' | $lc }}</slot>
|
|
117
117
|
</template>
|
|
118
118
|
<template slot-scope="{ row }">
|
|
119
119
|
<slot name="type" :row="row">
|
|
120
120
|
<el-select
|
|
121
121
|
v-model="row[keys.type]"
|
|
122
122
|
:disabled="row['_typeDisabled']"
|
|
123
|
-
placeholder="请选择"
|
|
123
|
+
:placeholder="'请选择' | $lc"
|
|
124
124
|
style="width: 100%"
|
|
125
125
|
>
|
|
126
126
|
<el-option
|
|
@@ -134,19 +134,19 @@
|
|
|
134
134
|
</slot>
|
|
135
135
|
</template>
|
|
136
136
|
</el-table-column>
|
|
137
|
-
<el-table-column label="附件名称" min-width="160">
|
|
137
|
+
<el-table-column :label="'附件名称' | $lc" min-width="160">
|
|
138
138
|
<template slot="header" slot-scope="scope">
|
|
139
|
-
<slot name="name-header" :column="scope.column"
|
|
139
|
+
<slot name="name-header" :column="scope.column">{{ '附件名称' | $lc }}</slot>
|
|
140
140
|
</template>
|
|
141
141
|
<template slot-scope="{ row }">
|
|
142
142
|
<slot name="name" :row="row">
|
|
143
|
-
<el-input v-model="row[keys.name]" placeholder="请输入" />
|
|
143
|
+
<el-input v-model="row[keys.name]" :placeholder="'请输入' | $lc" />
|
|
144
144
|
</slot>
|
|
145
145
|
</template>
|
|
146
146
|
</el-table-column>
|
|
147
|
-
<el-table-column label="附件上传" min-width="160">
|
|
147
|
+
<el-table-column :label="'附件上传' | $lc" min-width="160">
|
|
148
148
|
<template slot="header" slot-scope="scope">
|
|
149
|
-
<slot name="upload-header" :column="scope.column"
|
|
149
|
+
<slot name="upload-header" :column="scope.column">{{ '附件上传' | $lc }}</slot>
|
|
150
150
|
</template>
|
|
151
151
|
<template slot-scope="{ row, $index }">
|
|
152
152
|
<slot name="upload" :row="row" :$index="$index">
|
|
@@ -171,26 +171,26 @@
|
|
|
171
171
|
</slot>
|
|
172
172
|
</template>
|
|
173
173
|
</el-table-column>
|
|
174
|
-
<el-table-column label="上传时间" :prop="keys.time" width="170" align="left">
|
|
174
|
+
<el-table-column :label="'上传时间' | $lc" :prop="keys.time" width="170" align="left">
|
|
175
175
|
<template slot="header" slot-scope="scope">
|
|
176
|
-
<slot name="time-header" :column="scope.column"
|
|
176
|
+
<slot name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
177
177
|
</template>
|
|
178
178
|
<template slot-scope="{ row }">
|
|
179
179
|
<slot name="time" :row="row">{{ row[keys.time] }}</slot>
|
|
180
180
|
</template>
|
|
181
181
|
</el-table-column>
|
|
182
|
-
<el-table-column label="上传人" :prop="keys.user" width="100">
|
|
182
|
+
<el-table-column :label="'上传人' | $lc" :prop="keys.user" width="100">
|
|
183
183
|
<template slot="header" slot-scope="scope">
|
|
184
|
-
<slot name="user-header" :column="scope.column"
|
|
184
|
+
<slot name="user-header" :column="scope.column">{{ '上传人' | $lc }}</slot>
|
|
185
185
|
</template>
|
|
186
186
|
<template slot-scope="{ row }">
|
|
187
187
|
<slot name="user" :row="row">{{ row[keys.user] }}</slot>
|
|
188
188
|
</template>
|
|
189
189
|
</el-table-column>
|
|
190
190
|
</template>
|
|
191
|
-
<el-table-column label="上传进度" width="220">
|
|
191
|
+
<el-table-column :label="'上传进度' | $lc" width="220">
|
|
192
192
|
<template slot="header" slot-scope="scope">
|
|
193
|
-
<slot name="percent-header" :column="scope.column"
|
|
193
|
+
<slot name="percent-header" :column="scope.column">{{ '上传进度' | $lc }}</slot>
|
|
194
194
|
</template>
|
|
195
195
|
<template slot-scope="{ row, $index }">
|
|
196
196
|
<slot name="percent" :row="row" :$index="$index">
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
size="mini"
|
|
208
208
|
style="width: 60px"
|
|
209
209
|
@click="anewSubmitFn(row, $index)"
|
|
210
|
-
|
|
210
|
+
>{{ '重新上传' | $lc }}</el-button
|
|
211
211
|
>
|
|
212
212
|
<el-button
|
|
213
213
|
v-else-if="row['_percent'] >= 0 && row['_percent'] < 100"
|
|
@@ -215,15 +215,15 @@
|
|
|
215
215
|
size="mini"
|
|
216
216
|
style="width: 60px"
|
|
217
217
|
@click="abortFn(row, $index)"
|
|
218
|
-
|
|
218
|
+
>{{ '取消' | $lc }}</el-button
|
|
219
219
|
>
|
|
220
220
|
</div>
|
|
221
221
|
</slot>
|
|
222
222
|
</template>
|
|
223
223
|
</el-table-column>
|
|
224
|
-
<el-table-column label="操作" align="center" width="80" fixed="right">
|
|
224
|
+
<el-table-column :label="'操作' | $lc" align="center" width="80" fixed="right">
|
|
225
225
|
<template slot="header" slot-scope="scope">
|
|
226
|
-
<slot name="handle-header" :column="scope.column"
|
|
226
|
+
<slot name="handle-header" :column="scope.column">{{ '操作' | $lc }}</slot>
|
|
227
227
|
</template>
|
|
228
228
|
<template slot-scope="{ row }">
|
|
229
229
|
<slot name="handle" :row="row">
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
<el-dialog
|
|
238
238
|
v-drag
|
|
239
239
|
class="p-a-0"
|
|
240
|
-
title="附件预览"
|
|
240
|
+
:title="'附件预览' | $lc"
|
|
241
241
|
:visible.sync="visibleP"
|
|
242
242
|
top="2vh"
|
|
243
243
|
width="96%"
|
|
@@ -257,15 +257,15 @@
|
|
|
257
257
|
<div class="flex-column flex-c flex-v" style="height: 100%">
|
|
258
258
|
<i class="el-icon-s-release" style="font-size: 60px; color: #999"></i>
|
|
259
259
|
<span style="margin-top: 16px">
|
|
260
|
-
不支持在线预览,请
|
|
261
|
-
<a :href="previewUrl" :download="previewName || previewUrl"
|
|
262
|
-
到本地查看
|
|
260
|
+
{{ '不支持在线预览,请' | $lc }}
|
|
261
|
+
<a :href="previewUrl" :download="previewName || previewUrl">{{ '下载' | $lc }}</a>
|
|
262
|
+
{{ '到本地查看' | $lc }}
|
|
263
263
|
</span>
|
|
264
264
|
</div>
|
|
265
265
|
</component>
|
|
266
266
|
</div>
|
|
267
267
|
</el-dialog>
|
|
268
|
-
<Dialog title="附件批量上传" :visible.sync="visibleBatch" top="5vh" width="692px" :destroy-on-open="true">
|
|
268
|
+
<Dialog :title="'附件批量上传' | $lc" :visible.sync="visibleBatch" top="5vh" width="692px" :destroy-on-open="true">
|
|
269
269
|
<clUpload
|
|
270
270
|
ref="upload-batch"
|
|
271
271
|
class="n20-upload-drag"
|
|
@@ -285,19 +285,20 @@
|
|
|
285
285
|
>
|
|
286
286
|
<template slot="trigger">
|
|
287
287
|
<i class="drag-icon n20-icon-shangchuan"></i>
|
|
288
|
-
<span class="drag-text"
|
|
288
|
+
<span class="drag-text">{{ '点击或将文件拖拽到这里上传' | $lc }}</span>
|
|
289
289
|
<span class="drag-tip">{{ fileAcceptTip }}</span>
|
|
290
290
|
</template>
|
|
291
291
|
</clUpload>
|
|
292
292
|
<div class="dialog-footer">
|
|
293
|
-
<el-button type="primary" @click="batchUploadFn"
|
|
294
|
-
<el-button plain @click="visibleBatch = false"
|
|
293
|
+
<el-button type="primary" @click="batchUploadFn">{{ '确认' | $lc }}</el-button>
|
|
294
|
+
<el-button plain @click="visibleBatch = false">{{ '取消' | $lc }}</el-button>
|
|
295
295
|
</div>
|
|
296
296
|
</Dialog>
|
|
297
297
|
</div>
|
|
298
298
|
</template>
|
|
299
299
|
|
|
300
300
|
<script>
|
|
301
|
+
import { $lc } from '../../utils/i18n/index'
|
|
301
302
|
import dayjs from 'dayjs'
|
|
302
303
|
import axios from '../../utils/axios'
|
|
303
304
|
import clUpload from '../Upload/index.vue'
|
|
@@ -391,7 +392,7 @@ export default {
|
|
|
391
392
|
return this.dataPorp.fileSize || undefined
|
|
392
393
|
},
|
|
393
394
|
fileAcceptTip() {
|
|
394
|
-
return this.dataPorp.fileAcceptTip || '支持扩展名:.rar .zip .doc .docx .pdf .jpg...'
|
|
395
|
+
return this.dataPorp.fileAcceptTip || $lc('支持扩展名:.rar .zip .doc .docx .pdf .jpg...')
|
|
395
396
|
},
|
|
396
397
|
fileData() {
|
|
397
398
|
return this.dataPorp.fileData || undefined
|
|
@@ -541,8 +542,8 @@ const keysD = {
|
|
|
541
542
|
user: 'user'
|
|
542
543
|
}
|
|
543
544
|
const typeOptionsD = [
|
|
544
|
-
{ type: '001', label: '信贷合同' },
|
|
545
|
-
{ type: '002', label: '贴现合同' },
|
|
546
|
-
{ type: '003', label: '其他合同' }
|
|
545
|
+
{ type: '001', label: $lc('信贷合同') },
|
|
546
|
+
{ type: '002', label: $lc('贴现合同') },
|
|
547
|
+
{ type: '003', label: $lc('其他合同') }
|
|
547
548
|
]
|
|
548
549
|
</script>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:clearable="item | clearableF"
|
|
6
6
|
style="width: 100%"
|
|
7
7
|
v-bind="item.props"
|
|
8
|
-
:placeholder="item.props && item.props.placeholder ? item.props.placeholder : '请输入'"
|
|
8
|
+
:placeholder="item.props && item.props.placeholder ? item.props.placeholder : $lc('请输入')"
|
|
9
9
|
v-on="item.on"
|
|
10
10
|
/>
|
|
11
11
|
<el-input
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-model="showPop"
|
|
5
5
|
trigger="manual"
|
|
6
6
|
:width="width"
|
|
7
|
-
title="筛选"
|
|
7
|
+
:title="'筛选' | $lc"
|
|
8
8
|
placement="bottom-end"
|
|
9
9
|
@show="show"
|
|
10
10
|
>
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
<template v-if="filterList.length > defaultShow">
|
|
27
27
|
<div :style="{ paddingLeft: labelWidth }">
|
|
28
28
|
<el-button class="p-t-0 m-b-s color-primary" type="text" @click="moreFn"
|
|
29
|
-
><span
|
|
29
|
+
><span>{{ '更多条件' | $lc }}</span
|
|
30
|
+
><i :class="showMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i
|
|
30
31
|
></el-button>
|
|
31
32
|
</div>
|
|
32
33
|
<el-collapse-transition>
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
</el-form-item>
|
|
48
49
|
<div :style="{ paddingLeft: labelWidth }">
|
|
49
50
|
<el-button class="p-t-0 m-b-s color-primary" type="text" @click="setRemoteV = true"
|
|
50
|
-
><span
|
|
51
|
+
><span>{{ '更多条件' | $lc }}</span
|
|
52
|
+
><i :class="showMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i
|
|
51
53
|
></el-button>
|
|
52
54
|
</div>
|
|
53
55
|
<showColumn
|
|
@@ -62,8 +64,8 @@
|
|
|
62
64
|
/>
|
|
63
65
|
</template>
|
|
64
66
|
<footerBox class="text-c">
|
|
65
|
-
<el-button type="primary" @click="filter"
|
|
66
|
-
<el-button plain @click="clear"
|
|
67
|
+
<el-button type="primary" @click="filter">{{ '确认' | $lc }}</el-button>
|
|
68
|
+
<el-button plain @click="clear">{{ '清空' | $lc }}</el-button>
|
|
67
69
|
</footerBox>
|
|
68
70
|
</el-form>
|
|
69
71
|
</el-popover>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-model="showPop"
|
|
4
4
|
:width="width"
|
|
5
5
|
placement="bottom-end"
|
|
6
|
-
title="筛选"
|
|
6
|
+
:title="'筛选' | $lc"
|
|
7
7
|
trigger="manual"
|
|
8
8
|
@after-leave="showMore = false"
|
|
9
9
|
>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div v-click-outside="clickOut" class="n20-filter p-a-s">
|
|
15
15
|
<slot></slot>
|
|
16
16
|
<el-button v-if="$slots.more" class="p-t-0 m-b-s" type="text" @click="showMore = !showMore"
|
|
17
|
-
><span>{{ showMore ? '收起' : '更多' }}
|
|
17
|
+
><span>{{ showMore ? $lc('收起') : $lc('更多') }}{{ '条件' | $lc }}</span
|
|
18
18
|
><i :class="showMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i
|
|
19
19
|
></el-button>
|
|
20
20
|
<el-collapse-transition v-if="$slots.more">
|
|
@@ -37,16 +37,17 @@
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<script>
|
|
40
|
+
import { $lc } from '../../utils/i18n/index'
|
|
40
41
|
export default {
|
|
41
42
|
name: 'FiltersO',
|
|
42
43
|
props: {
|
|
43
44
|
clearText: {
|
|
44
45
|
type: String,
|
|
45
|
-
default: '清空'
|
|
46
|
+
default: $lc('清空')
|
|
46
47
|
},
|
|
47
48
|
filterText: {
|
|
48
49
|
type: String,
|
|
49
|
-
default: '筛选'
|
|
50
|
+
default: $lc('筛选')
|
|
50
51
|
},
|
|
51
52
|
width: {
|
|
52
53
|
type: Number,
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script>
|
|
37
|
+
import { $lc } from '../../utils/i18n/index'
|
|
37
38
|
import numerify from 'numerify'
|
|
38
39
|
export default {
|
|
39
40
|
name: 'InputNumber',
|
|
@@ -88,9 +89,9 @@ export default {
|
|
|
88
89
|
if (this.placeholder) {
|
|
89
90
|
return this.placeholder
|
|
90
91
|
} else if (this.type === 'rate') {
|
|
91
|
-
return '请输入利率'
|
|
92
|
+
return $lc('请输入利率')
|
|
92
93
|
} else {
|
|
93
|
-
return '请输入金额'
|
|
94
|
+
return $lc('请输入金额')
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
},
|
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-loading="laoding">
|
|
3
3
|
<el-form ref="cp-form" :model="form" label-width="6em" @submit.native.prevent>
|
|
4
|
-
<el-form-item label="账号">
|
|
4
|
+
<el-form-item :label="'账号' | $lc">
|
|
5
5
|
<el-input :value="form.username" disabled />
|
|
6
6
|
</el-form-item>
|
|
7
7
|
<el-form-item
|
|
8
|
-
label="原始密码"
|
|
8
|
+
:label="'原始密码' | $lc"
|
|
9
9
|
prop="orginPassword"
|
|
10
10
|
:rules="[
|
|
11
|
-
{ required: true, message: '请输入原始密码', trigger: 'blur' },
|
|
11
|
+
{ required: true, message: $lc('请输入原始密码'), trigger: 'blur' },
|
|
12
12
|
{ validator: orginPasswordVd, trigger: 'blur' }
|
|
13
13
|
]"
|
|
14
14
|
>
|
|
15
|
-
<el-input v-model="form.orginPassword" type="password" placeholder="请输入原始密码" />
|
|
15
|
+
<el-input v-model="form.orginPassword" type="password" :placeholder="'请输入原始密码' | $lc" />
|
|
16
16
|
</el-form-item>
|
|
17
17
|
<el-form-item
|
|
18
|
-
label="新密码"
|
|
18
|
+
:label="'新密码' | $lc"
|
|
19
19
|
prop="newPassword"
|
|
20
20
|
:rules="[
|
|
21
|
-
{ required: true, message: '请输入新密码', trigger: 'blur' },
|
|
21
|
+
{ required: true, message: $lc('请输入新密码'), trigger: 'blur' },
|
|
22
22
|
{ validator: newPasswordVd, trigger: 'blur' }
|
|
23
23
|
]"
|
|
24
24
|
>
|
|
25
|
-
<el-input v-model="form.newPassword" placeholder="请输入新密码" show-password @change="newPwdChange" />
|
|
25
|
+
<el-input v-model="form.newPassword" :placeholder="'请输入新密码' | $lc" show-password @change="newPwdChange" />
|
|
26
26
|
</el-form-item>
|
|
27
27
|
<el-form-item
|
|
28
|
-
label="确认密码"
|
|
28
|
+
:label="'确认密码' | $lc"
|
|
29
29
|
prop="validatePassword"
|
|
30
30
|
:rules="[
|
|
31
|
-
{ required: true, message: '请确认新密码', trigger: 'blur' },
|
|
31
|
+
{ required: true, message: $lc('请确认新密码'), trigger: 'blur' },
|
|
32
32
|
{ validator: validatePasswordVd, trigger: 'blur' }
|
|
33
33
|
]"
|
|
34
34
|
>
|
|
35
35
|
<el-input
|
|
36
36
|
v-model="form.validatePassword"
|
|
37
37
|
:disabled="!form.newPassword"
|
|
38
|
-
placeholder="请确认新密码"
|
|
38
|
+
:placeholder="'请确认新密码' | $lc"
|
|
39
39
|
show-password
|
|
40
40
|
/>
|
|
41
41
|
</el-form-item>
|
|
42
42
|
</el-form>
|
|
43
43
|
|
|
44
44
|
<div class="dialog-footer">
|
|
45
|
-
<el-button type="primary" @click="confirmFn"
|
|
46
|
-
<el-button @click="closeFn"
|
|
45
|
+
<el-button type="primary" @click="confirmFn">{{ '确认' | $lc }}</el-button>
|
|
46
|
+
<el-button @click="closeFn">{{ '取消' | $lc }}</el-button>
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script>
|
|
52
|
+
import { $lc } from '../../../utils/i18n/index'
|
|
52
53
|
import auth from '../../../utils/auth'
|
|
53
54
|
import axios from '../../../utils/axios'
|
|
54
55
|
export default {
|
|
@@ -92,15 +93,15 @@ export default {
|
|
|
92
93
|
switch (passwordStrength) {
|
|
93
94
|
case '0':
|
|
94
95
|
this.pwdRE = [/[A-z0-9]+/]
|
|
95
|
-
this.pwdReMsg = `密码只能为字母数字`
|
|
96
|
+
this.pwdReMsg = $lc(`密码只能为字母数字`)
|
|
96
97
|
break
|
|
97
98
|
case '1':
|
|
98
99
|
this.pwdRE = [/[A-z]+/, /[0-9]+/]
|
|
99
|
-
this.pwdReMsg = `密码只能包含数字 + 字母`
|
|
100
|
+
this.pwdReMsg = $lc(`密码只能包含数字 + 字母`)
|
|
100
101
|
break
|
|
101
102
|
case '2':
|
|
102
103
|
this.pwdRE = [/[A-Z]+/, /[a-z]+/, /[0-9]+/]
|
|
103
|
-
this.pwdReMsg = `密码只能包含数字 + 大写字母 + 小写字母`
|
|
104
|
+
this.pwdReMsg = $lc(`密码只能包含数字 + 大写字母 + 小写字母`)
|
|
104
105
|
break
|
|
105
106
|
}
|
|
106
107
|
})
|
|
@@ -120,13 +121,13 @@ export default {
|
|
|
120
121
|
callback()
|
|
121
122
|
})
|
|
122
123
|
.catch(() => {
|
|
123
|
-
callback(new Error('原始密码与旧密码不一致'))
|
|
124
|
+
callback(new Error($lc('原始密码与旧密码不一致')))
|
|
124
125
|
})
|
|
125
126
|
},
|
|
126
127
|
newPasswordVd(r, value, callback) {
|
|
127
128
|
let _re_1 = new RegExp(`^.{${this.pwdMin},${this.pwdMax}}$`)
|
|
128
129
|
if (!_re_1.test(value)) {
|
|
129
|
-
callback(new Error(
|
|
130
|
+
callback(new Error(`${$lc('密码长度范围:')}${this.pwdMin}-${this.pwdMax}${$lc('位')}`))
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
if (this.pwdRE) {
|
|
@@ -143,7 +144,7 @@ export default {
|
|
|
143
144
|
if (value === this.form.newPassword) {
|
|
144
145
|
callback()
|
|
145
146
|
} else {
|
|
146
|
-
callback(new Error('两次输入密码不一致!'))
|
|
147
|
+
callback(new Error($lc('两次输入密码不一致!')))
|
|
147
148
|
}
|
|
148
149
|
},
|
|
149
150
|
newPwdChange(val) {
|
|
@@ -156,7 +157,7 @@ export default {
|
|
|
156
157
|
this.$refs['cp-form'].validate((v) => {
|
|
157
158
|
if (v) {
|
|
158
159
|
if (this.form.newPassword === this.form.orginPassword) {
|
|
159
|
-
this.$message.error('新密码不能与旧密码相同!')
|
|
160
|
+
this.$message.error($lc('新密码不能与旧密码相同!'))
|
|
160
161
|
this.form.newPassword = ''
|
|
161
162
|
this.form.validatePassword = ''
|
|
162
163
|
return
|