n20-common-lib 2.9.13 → 2.9.14
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/NstcCharts/NstcCharts.vue +16 -8
- package/package.json +8 -5
- package/src/assets/css/approve-card.scss +1 -1
- package/src/assets/css/date-quarter.scss +8 -0
- package/src/assets/css/expandable-pane.scss +7 -0
- package/src/assets/css/file-upload-table.scss +2 -3
- package/src/assets/css/font-icon.scss +3 -1
- package/src/assets/css/message.scss +6 -6
- package/src/assets/css/normalize.scss +4 -1
- package/src/assets/css/table.scss +16 -11
- package/src/assets/iconFont/SIMSUN.ttf +0 -0
- package/src/assets/iconFont/font.css +4 -0
- package/src/components/AIButton/index.vue +101 -0
- package/src/components/AdvancedFilter/formItemRender.vue +7 -4
- package/src/components/AdvancedFilter/index.vue +6 -7
- package/src/components/Anchor/index.vue +1 -0
- package/src/components/ApprovalButtons/index.vue +404 -82
- package/src/components/ApprovalButtons/indexApp.vue +1102 -0
- package/src/components/ApprovalButtons/selectSpr.vue +128 -0
- package/src/components/ApprovalButtons/setCarboncopyProp.vue +1 -1
- package/src/components/ApprovalButtons/setRejectToProp.vue +45 -5
- package/src/components/ApprovalButtons/showAppOpi.vue +265 -8
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +161 -0
- package/src/components/ApprovalCard/index.vue +190 -44
- package/src/components/ApprovalCard/indexApp.vue +592 -0
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +42 -5
- package/src/components/ApprovalRecord/index.vue +23 -6
- package/src/components/ApprovalRecord/indexApp.vue +79 -0
- package/src/components/AttachmentPass/index.vue +286 -0
- package/src/components/Button/button-group.vue +3 -1
- package/src/components/CascaderArea/index.vue +5 -6
- package/src/components/DatePicker/por.vue +31 -1
- package/src/components/DateSelect/quarterDatePicker.vue +23 -1
- package/src/components/Descriptions/index.vue +7 -3
- package/src/components/Dialog/index.vue +4 -0
- package/src/components/Diff/index.vue +4 -2
- package/src/components/DynamicField/DynamicField.vue +29 -6
- package/src/components/DynamicField/DynamicFieldMixin.js +13 -5
- package/src/components/DynamicField/DynamicFieldOptions.vue +135 -62
- package/src/components/DynamicField/DynamicTable.vue +11 -1
- package/src/components/DynamicField/contentPop.vue +110 -0
- package/src/components/DynamicField/tableList.vue +5 -1
- package/src/components/DynamicField/tableView.vue +143 -0
- package/src/components/ECharts/index.vue +15 -9
- package/src/components/Expandable/main.vue +17 -2
- package/src/components/FileImport/index.vue +4 -5
- package/src/components/FileUploadTable/FileUploadTableV3.vue +937 -0
- package/src/components/FileUploadTable/aiCheckDialog.vue +139 -0
- package/src/components/FileUploadTable/index.vue +251 -33
- package/src/components/FileUploadTable/jytg.svg +6 -0
- package/src/components/FileUploadTable/wsc.svg +3 -0
- package/src/components/FileUploadTable/ysc.svg +3 -0
- package/src/components/HandlingAdvice/index.vue +191 -0
- package/src/components/InputAccount/index.vue +105 -0
- package/src/components/InputNumber/index.vue +16 -4
- package/src/components/InputNumber/numberRange.vue +14 -0
- package/src/components/InputSearch/index.vue +8 -0
- package/src/components/Layout/HeaderWrap/changePwd.vue +50 -23
- package/src/components/Layout/HeaderWrap/index.vue +2 -2
- package/src/components/Layout/HeaderWrap/indexN.vue +296 -119
- package/src/components/Layout/SubContent/index.vue +45 -14
- package/src/components/Layout/indexN.vue +26 -5
- package/src/components/LoginTemporary/form.vue +126 -34
- package/src/components/LoginTemporary/index.vue +14 -3
- package/src/components/LoginTemporary/indexN.vue +35 -13
- package/src/components/Preview/index.vue +199 -0
- package/src/components/SelectDatePickerPro/customDatePicker.vue +7 -0
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +165 -0
- package/src/components/SelectDatePickerPro/index.vue +44 -4
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +32 -10
- package/src/components/SelectTree/index.vue +10 -4
- package/src/components/SelectTree/pro.vue +3 -0
- package/src/components/ShowColumn/index copy 2.vue +545 -0
- package/src/components/ShowColumn/index copy.vue +566 -0
- package/src/components/ShowColumn/index.vue +11 -7
- package/src/components/Statis/statisItem.vue +8 -7
- package/src/components/Table/filters.js +13 -0
- package/src/components/Table/index.vue +4 -4
- package/src/components/TablePro/filterContent.vue +18 -8
- package/src/components/TablePro/index.js +41 -1
- package/src/components/TablePro/index.vue +117 -6
- package/src/components/TableProOperateColumn/OperateBtns.vue +11 -53
- package/src/components/TableProOperateColumn/OperateBtns_copy.vue +141 -0
- package/src/components/TableProOperateColumn/childrenOperateBtn.vue +108 -0
- package/src/components/TableProOperateColumn/index.vue +3 -6
- package/src/components/TableSetSize/index.vue +1 -1
- package/src/components/Tree/index.vue +21 -5
- package/src/components/Upload/index.vue +25 -10
- package/src/components/Upload/uploadMsg.vue +30 -25
- package/src/components/operatingStatus/index.vue +3 -4
- package/src/directives/VTitle/index.js +15 -5
- package/src/directives/watermark/index.js +140 -56
- package/src/i18n.json +146 -18
- package/src/index.js +31 -3
- package/src/plugins/Sign/CaMap.js +47 -8
- package/src/plugins/Sign/Itrus/index.js +1 -1
- package/src/plugins/Sign/Itrus/sign_3720.js +2 -1
- package/src/plugins/Sign/NetSM3/index.js +20 -11
- package/src/plugins/Sign/NetV3/index.js +163 -22
- package/src/plugins/Sign/SkfSign/index.js +55 -52
- package/src/plugins/Sign/bjca/index.js +229 -9
- package/src/plugins/Sign/hnca/index.js +5064 -0
- package/src/plugins/Sign/index.js +155 -103
- package/src/plugins/Sign/kySign/base64.js +160 -0
- package/src/plugins/Sign/kySign/hex.js +92 -0
- package/src/plugins/Sign/kySign/index.js +186 -0
- package/src/plugins/Sign/kySign/skf.js +937 -0
- package/src/plugins/Sign/kySign/test.html +463 -0
- package/src/plugins/Sign/sdca/index.js +73 -0
- package/src/plugins/Sign/sign.js +72 -52
- package/src/plugins/Sign/signV3/InfosecNetSignCNGAgent.min.js +1 -0
- package/src/plugins/Sign/signV3/sign.js +187 -0
- package/src/plugins/Sign/sign_back.js +172 -0
- package/src/utils/accountFormat.js +7 -0
- package/src/utils/asyncGetRelaNos.js +79 -46
- package/src/utils/axios.js +3 -5
- package/src/utils/i18n/index.js +1 -1
- package/src/utils/importGlobal.js +23 -12
- package/style/fonts/SIMSUN.5e0c362c.ttf +0 -0
- package/style/index.css +2 -2
- package/theme/blue.css +2 -2
- package/theme/cctcRed.css +2 -2
- package/theme/fonts/SIMSUN.5e0c362c.ttf +0 -0
- package/theme/green.css +2 -2
- package/theme/lightBlue.css +2 -2
- package/theme/orange.css +2 -2
- package/theme/purple.css +2 -2
- package/theme/red.css +2 -2
- package/theme/yellow.css +2 -2
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<cl-dialog v-drag width="85%" max-dialog :visible.sync="tableVisible" title="数据展示" :destroy-on-open="true">
|
|
3
|
+
<cl-page class="contentPop">
|
|
4
|
+
<div class="flex-box flex-lr flex-v m-b-s">
|
|
5
|
+
<div></div>
|
|
6
|
+
<div>
|
|
7
|
+
<el-button type="primary" size="mini" @click="option('导出json')">导出json</el-button>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<cl-table-pro ref="xTable" :loading="loading" :data="value" :columns="TableHeader" :height="'300px'">
|
|
11
|
+
<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 />
|
|
13
|
+
</vxe-column>
|
|
14
|
+
<vxe-column slot="delete" slot-scope="{ column }" v-bind="column" :field="column.prop" :title="column.label">
|
|
15
|
+
<el-link
|
|
16
|
+
slot-scope="{ row, $rowIndex }"
|
|
17
|
+
class="m-r-s"
|
|
18
|
+
:underline="false"
|
|
19
|
+
icon="n20-icon-a-shanchuxuanzhong"
|
|
20
|
+
@click="option('删除', row, $rowIndex)"
|
|
21
|
+
/>
|
|
22
|
+
</vxe-column>
|
|
23
|
+
</cl-table-pro>
|
|
24
|
+
|
|
25
|
+
<div slot="footer" class="page-button-shadow flex-box flex-c flex-v">
|
|
26
|
+
<!-- <el-button type="primary" @click="option('保存')">保存</el-button> -->
|
|
27
|
+
<!-- <el-button plain @click="option('重置')">重置</el-button> -->
|
|
28
|
+
</div>
|
|
29
|
+
</cl-page>
|
|
30
|
+
</cl-dialog>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import clDialog from '../Dialog/index.vue'
|
|
35
|
+
import ClPage from '../PageLayout/page.vue'
|
|
36
|
+
import ClTablePro from '../TablePro/index.vue'
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
name: 'ContentPop',
|
|
40
|
+
components: { clDialog, ClPage, ClTablePro },
|
|
41
|
+
props: {
|
|
42
|
+
value: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => {
|
|
45
|
+
return []
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
data() {
|
|
50
|
+
return {
|
|
51
|
+
tableVisible: false,
|
|
52
|
+
TableHeader: [
|
|
53
|
+
{
|
|
54
|
+
slotName: 'input',
|
|
55
|
+
label: '枚举名',
|
|
56
|
+
prop: 'label',
|
|
57
|
+
align: 'left',
|
|
58
|
+
minWidth: '120',
|
|
59
|
+
'show-overflow-tooltip': true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
slotName: 'input',
|
|
63
|
+
label: '枚举值',
|
|
64
|
+
prop: 'value',
|
|
65
|
+
width: '260'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
slotName: 'delete',
|
|
69
|
+
width: '50'
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
loading: false
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
computed: {},
|
|
76
|
+
watch: {},
|
|
77
|
+
created() {},
|
|
78
|
+
mounted() {},
|
|
79
|
+
methods: {
|
|
80
|
+
setView(data) {
|
|
81
|
+
console.log(data)
|
|
82
|
+
let TableHeader = [
|
|
83
|
+
{
|
|
84
|
+
type: 'checkbox',
|
|
85
|
+
static: 'pre' // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"前面"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: 'seq',
|
|
89
|
+
label: '序号',
|
|
90
|
+
width: '56',
|
|
91
|
+
align: 'center'
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
data
|
|
95
|
+
.filter((item) => {
|
|
96
|
+
return item.isTableShow
|
|
97
|
+
})
|
|
98
|
+
.forEach((i) => {
|
|
99
|
+
TableHeader.push({
|
|
100
|
+
label: i.fieldName,
|
|
101
|
+
prop: i.fieldCode,
|
|
102
|
+
align: i.fieldType === 'input-number' ? 'right' : 'center',
|
|
103
|
+
sortable: i.fieldType === 'input-number',
|
|
104
|
+
formatter: i.fieldType === 'input-number' ? 'formatAmount' : '', // 金额格式化
|
|
105
|
+
minWidth: '120',
|
|
106
|
+
'show-overflow-tooltip': true
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
this.TableHeader = TableHeader
|
|
110
|
+
console.log(this.TableHeader)
|
|
111
|
+
this.tableVisible = true
|
|
112
|
+
},
|
|
113
|
+
option(key, row, index) {
|
|
114
|
+
// 将本地数据转换为 JSON 字符串
|
|
115
|
+
const jsonData = JSON.stringify(this.TableHeader, null, 2)
|
|
116
|
+
// 创建一个 Blob 对象
|
|
117
|
+
const blob = new Blob([jsonData], { type: 'application/json' })
|
|
118
|
+
// 创建一个下载链接
|
|
119
|
+
const url = window.URL.createObjectURL(blob)
|
|
120
|
+
const a = document.createElement('a')
|
|
121
|
+
switch (key) {
|
|
122
|
+
case '导出json':
|
|
123
|
+
a.href = url
|
|
124
|
+
a.download = 'TableHeader.json'
|
|
125
|
+
document.body.appendChild(a)
|
|
126
|
+
a.click()
|
|
127
|
+
// 释放 URL 对象
|
|
128
|
+
window.URL.revokeObjectURL(url)
|
|
129
|
+
document.body.removeChild(a)
|
|
130
|
+
break
|
|
131
|
+
|
|
132
|
+
default:
|
|
133
|
+
break
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
</script>
|
|
139
|
+
<style scoped>
|
|
140
|
+
.contentPop {
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
-
import
|
|
7
|
-
import merge from 'lodash/merge'
|
|
6
|
+
import XEUtils from 'xe-utils'
|
|
8
7
|
import importG from '../../utils/importGlobal.js'
|
|
8
|
+
import resize from './mixins/resize'
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { axisConfig, color, pieConfig } from './define'
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
name: 'Echarts',
|
|
@@ -72,7 +72,9 @@ export default {
|
|
|
72
72
|
containLabel: true
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
grid = Array.isArray(grid)
|
|
75
|
+
grid = Array.isArray(grid)
|
|
76
|
+
? grid.map((item) => XEUtils.merge({}, selfGrid, item))
|
|
77
|
+
: XEUtils.merge({}, selfGrid, grid)
|
|
76
78
|
|
|
77
79
|
return {
|
|
78
80
|
grid
|
|
@@ -80,13 +82,17 @@ export default {
|
|
|
80
82
|
},
|
|
81
83
|
|
|
82
84
|
xAxis({ xAxis }) {
|
|
83
|
-
xAxis = Array.isArray(xAxis)
|
|
85
|
+
xAxis = Array.isArray(xAxis)
|
|
86
|
+
? xAxis.map((item) => XEUtils.merge({}, axisConfig, item))
|
|
87
|
+
: XEUtils.merge({}, axisConfig, xAxis)
|
|
84
88
|
|
|
85
89
|
return { xAxis }
|
|
86
90
|
},
|
|
87
91
|
|
|
88
92
|
yAxis({ yAxis }) {
|
|
89
|
-
yAxis = Array.isArray(yAxis)
|
|
93
|
+
yAxis = Array.isArray(yAxis)
|
|
94
|
+
? yAxis.map((item) => XEUtils.merge({}, axisConfig, item))
|
|
95
|
+
: XEUtils.merge({}, axisConfig, yAxis)
|
|
90
96
|
|
|
91
97
|
return { yAxis }
|
|
92
98
|
},
|
|
@@ -111,7 +117,7 @@ export default {
|
|
|
111
117
|
config = pieConfig
|
|
112
118
|
}
|
|
113
119
|
|
|
114
|
-
return merge(config, sery)
|
|
120
|
+
return XEUtils.merge(config, sery)
|
|
115
121
|
})
|
|
116
122
|
|
|
117
123
|
return { series }
|
|
@@ -135,7 +141,7 @@ export default {
|
|
|
135
141
|
|
|
136
142
|
return {
|
|
137
143
|
options,
|
|
138
|
-
baseOption: merge({}, _baseOption, baseOption),
|
|
144
|
+
baseOption: XEUtils.merge({}, _baseOption, baseOption),
|
|
139
145
|
...other
|
|
140
146
|
}
|
|
141
147
|
}
|
|
@@ -144,7 +150,7 @@ export default {
|
|
|
144
150
|
return { ...prev, ...this[key](params) }
|
|
145
151
|
}, defaultConfigs)
|
|
146
152
|
|
|
147
|
-
return merge({}, option, params)
|
|
153
|
+
return XEUtils.merge({}, option, params)
|
|
148
154
|
},
|
|
149
155
|
|
|
150
156
|
clear() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="n20-form-expandable-pane">
|
|
3
|
-
<div class="n20-title flex-box flex-lr flex-v" :class="titleClass">
|
|
3
|
+
<div v-if="position === 'top'" class="n20-title flex-box flex-lr flex-v" :class="{'n20-title__top':expand,titleClass}">
|
|
4
4
|
<span class="n20-tips flex-item" @click="getExpand">
|
|
5
5
|
<i v-if="icon" class="el-icon-caret-right color-0 m-r-b" :class="{ expand: expand }"></i>
|
|
6
6
|
<slot name="title">
|
|
7
|
-
<span>{{ title }}</span>
|
|
7
|
+
<span :class="{'n20-title__algin_l':!icon}">{{ title }}</span>
|
|
8
8
|
</slot>
|
|
9
9
|
</span>
|
|
10
10
|
<div>
|
|
@@ -16,6 +16,17 @@
|
|
|
16
16
|
<slot></slot>
|
|
17
17
|
</div>
|
|
18
18
|
</el-collapse-transition>
|
|
19
|
+
<div v-if="position === 'bottom'" class="n20-title flex-box flex-lr flex-v" :class="{'n20-title__bottom':expand,titleClass}">
|
|
20
|
+
<span class="n20-tips flex-item" @click="getExpand">
|
|
21
|
+
<i v-if="icon" class="el-icon-caret-right color-0 m-r-b" :class="{ topExpand: expand }"></i>
|
|
22
|
+
<slot name="title">
|
|
23
|
+
<span>{{ title }}</span>
|
|
24
|
+
</slot>
|
|
25
|
+
</span>
|
|
26
|
+
<div>
|
|
27
|
+
<slot name="tips"></slot>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
19
30
|
</div>
|
|
20
31
|
</template>
|
|
21
32
|
|
|
@@ -42,6 +53,10 @@ export default {
|
|
|
42
53
|
titleClass: {
|
|
43
54
|
type: String,
|
|
44
55
|
default: ''
|
|
56
|
+
},
|
|
57
|
+
position: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: 'top'
|
|
45
60
|
}
|
|
46
61
|
},
|
|
47
62
|
data() {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
v-if="!uploadHttpRequest"
|
|
13
13
|
v-bind="uploadProps"
|
|
14
14
|
:width="width"
|
|
15
|
-
:
|
|
15
|
+
:show-error-export="showErrorExport"
|
|
16
16
|
:validate-result="validateResult"
|
|
17
17
|
:validate-confirm="validateConfirm"
|
|
18
|
-
@importError="importError"
|
|
19
18
|
:pagination="pagination"
|
|
19
|
+
@importError="importError"
|
|
20
20
|
>
|
|
21
21
|
<span ref="upload-trigger" slot="trigger">upload</span>
|
|
22
22
|
</Upload>
|
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
:title="'导入文件' | $lc"
|
|
27
27
|
:visible.sync="errorV"
|
|
28
28
|
:width="width"
|
|
29
|
-
:
|
|
29
|
+
:show-error-export="showErrorExport"
|
|
30
30
|
:validate-result="validateResult"
|
|
31
31
|
:hide-percent="true"
|
|
32
32
|
:footer-btn="footer"
|
|
33
33
|
:validate-confirm="validateConfirm"
|
|
34
34
|
@importError="importError"
|
|
35
|
-
|
|
36
|
-
</uploadMsg>
|
|
35
|
+
/>
|
|
37
36
|
</div>
|
|
38
37
|
</el-dropdown>
|
|
39
38
|
</template>
|