n20-common-lib 2.4.5 → 2.4.7
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/README.md +1 -1
- package/nstc-g6/components/Calendar/index.js +5 -5
- package/nstc-g6/components/Calendar/src/basic/month-table.vue +12 -20
- package/nstc-g6/components/Calendar/src/basic/year-table.vue +18 -22
- package/nstc-g6/components/Calendar/src/main.vue +1 -5
- package/nstc-g6/components/DialogForm/index.js +5 -5
- package/nstc-g6/components/DialogForm/src/demo/index.vue +18 -27
- package/nstc-g6/components/DialogForm/src/main.vue +15 -21
- package/nstc-g6/components/Form/A_DEMO/component/originalForm.vue +35 -50
- package/nstc-g6/components/Form/A_DEMO/config/config_3.js +1115 -1110
- package/nstc-g6/components/Form/A_DEMO/index.vue +7 -29
- package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -5
- package/nstc-g6/components/Form/BusinessSpecific/InputMultiple.vue +60 -62
- package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +12 -35
- package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +77 -77
- package/nstc-g6/components/Form/CascaderCustom/index.vue +4 -4
- package/nstc-g6/components/Form/CheckboxCustom/index.vue +5 -11
- package/nstc-g6/components/Form/Component.vue +56 -78
- package/nstc-g6/components/Form/ComponentSecond.vue +55 -77
- package/nstc-g6/components/Form/InputAndDialog/index.js +5 -5
- package/nstc-g6/components/Form/InputAndDialog/src/main.vue +130 -153
- package/nstc-g6/components/Form/InputCustom/demo/index.vue +4 -12
- package/nstc-g6/components/Form/InputCustom/index.vue +51 -54
- package/nstc-g6/components/Form/IntervalinputCustom/demo/index.vue +1 -3
- package/nstc-g6/components/Form/IntervalinputCustom/index.vue +19 -41
- package/nstc-g6/components/Form/Item.vue +15 -30
- package/nstc-g6/components/Form/ItemSecond.vue +7 -22
- package/nstc-g6/components/Form/List.vue +12 -28
- package/nstc-g6/components/Form/ListSecond.vue +11 -27
- package/nstc-g6/components/Form/RadioCustom/index.vue +5 -23
- package/nstc-g6/components/Form/SelectAccount/index.js +5 -5
- package/nstc-g6/components/Form/SelectAccount/src/demo/index.vue +34 -28
- package/nstc-g6/components/Form/SelectAccount/src/main.vue +112 -83
- package/nstc-g6/components/Form/SelectAndDialog/index.js +5 -5
- package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +126 -149
- package/nstc-g6/components/Form/SelectCashFlow/index.js +5 -5
- package/nstc-g6/components/Form/SelectCashFlow/src/demo/index.vue +18 -19
- package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +52 -41
- package/nstc-g6/components/Form/SelectCustom/demo/index.vue +14 -16
- package/nstc-g6/components/Form/SelectCustom/index.vue +129 -139
- package/nstc-g6/components/Form/SelectSubject/index.js +5 -5
- package/nstc-g6/components/Form/SelectSubject/src/demo/index.vue +42 -48
- package/nstc-g6/components/Form/SelectSubject/src/main.vue +83 -86
- package/nstc-g6/components/Form/SelectindialogCustom/demo/index.vue +34 -35
- package/nstc-g6/components/Form/SelectindialogCustom/index.vue +133 -148
- package/nstc-g6/components/Form/SelectindialogCustom/install.js +3 -3
- package/nstc-g6/components/Form/TableRadioCustom/demo/index.vue +1 -7
- package/nstc-g6/components/Form/TableRadioCustom/index.vue +17 -26
- package/nstc-g6/components/Form/TextCustom/index.vue +2 -2
- package/nstc-g6/components/Form/UploadCustom/demo/index.vue +1 -3
- package/nstc-g6/components/Form/UploadCustom/index.vue +143 -173
- package/nstc-g6/components/Form/configs.js +3 -14
- package/nstc-g6/components/Form/configsSecond.js +3 -16
- package/nstc-g6/components/Form/index.js +1 -1
- package/nstc-g6/components/Form/payeePersonSelect/index.js +5 -5
- package/nstc-g6/components/Form/payeePersonSelect/src/demo/index.vue +50 -44
- package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +73 -82
- package/nstc-g6/components/FormGroup/index.js +5 -5
- package/nstc-g6/components/FormGroup/src/demo/config.js +18 -19
- package/nstc-g6/components/FormGroup/src/demo/index.vue +14 -22
- package/nstc-g6/components/FormGroup/src/main.vue +122 -141
- package/nstc-g6/components/FormGroup/src/validate.js +11 -13
- package/nstc-g6/components/InputTag/InputTag.vue +78 -111
- package/nstc-g6/components/NstcBackToTop/NstcBackToTop.vue +24 -24
- package/nstc-g6/components/NstcBranchLazyLoad/NstcBranchLazyLoad.vue +4 -13
- package/nstc-g6/components/NstcCharts/NstcCharts.vue +9 -18
- package/nstc-g6/components/NstcCharts/define.js +1 -6
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +6 -21
- package/nstc-g6/components/NstcConfirm/index.js +21 -19
- package/nstc-g6/components/NstcDialog/NstcDialog.vue +34 -38
- package/nstc-g6/components/NstcDialogForm/NstcDialogForm.vue +17 -21
- package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +4 -17
- package/nstc-g6/components/NstcDropdown/NstcDropdown.vue +2 -12
- package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +3 -13
- package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +18 -78
- package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +121 -147
- package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +9 -31
- package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +10 -33
- package/nstc-g6/components/NstcExpandCollapse/NstcExpandCollapse.vue +12 -16
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +19 -75
- package/nstc-g6/components/NstcForm/A_DEMO/component/originalForm.vue +35 -50
- package/nstc-g6/components/NstcForm/A_DEMO/config/config_3.js +1115 -1110
- package/nstc-g6/components/NstcForm/A_DEMO/index.vue +340 -354
- package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +2 -2
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +11 -34
- package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +77 -77
- package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +5 -11
- package/nstc-g6/components/NstcForm/Component.vue +17 -62
- package/nstc-g6/components/NstcForm/ComponentSecond.vue +55 -77
- package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +6 -24
- package/nstc-g6/components/NstcForm/InputCustom/index.vue +2 -8
- package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +4 -21
- package/nstc-g6/components/NstcForm/Item.vue +3 -15
- package/nstc-g6/components/NstcForm/ItemSecond.vue +7 -22
- package/nstc-g6/components/NstcForm/List.vue +12 -28
- package/nstc-g6/components/NstcForm/ListSecond.vue +11 -27
- package/nstc-g6/components/NstcForm/RadioCustom/index.vue +5 -23
- package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +4 -24
- package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +7 -30
- package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +50 -38
- package/nstc-g6/components/NstcForm/SelectCustom/index.vue +6 -16
- package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +72 -82
- package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +6 -20
- package/nstc-g6/components/NstcForm/TableRadioCustom/index.vue +17 -26
- package/nstc-g6/components/NstcForm/TextCustom/index.vue +2 -2
- package/nstc-g6/components/NstcForm/UploadCustom/index.vue +13 -60
- package/nstc-g6/components/NstcForm/configs.js +3 -14
- package/nstc-g6/components/NstcForm/configsSecond.js +3 -16
- package/nstc-g6/components/NstcForm/index.js +1 -1
- package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +57 -73
- package/nstc-g6/components/NstcPagination/NstcPagination.vue +2 -12
- package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +2 -3
- package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +4 -15
- package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +5 -20
- package/nstc-g6/components/NstcSticky/NstcSticky.vue +10 -4
- package/nstc-g6/components/NstcSvgIcon/NstcSvgIcon.vue +1 -7
- package/nstc-g6/components/NstcTab/NstcTab.vue +8 -20
- package/nstc-g6/components/NstcTabWithBadge/NstcTabWithBadge.vue +7 -7
- package/nstc-g6/components/NstcTable/ElTableColumnCustom/index.vue +88 -126
- package/nstc-g6/components/NstcTable/NstcTable.vue +4 -17
- package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +27 -72
- package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +13 -14
- package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +3 -13
- package/nstc-g6/components/NstcUploadExcel/NstcUploadExcel.vue +21 -22
- package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +4 -17
- package/nstc-g6/components/Search/NstcSearch.vue +12 -47
- package/nstc-g6/components/Search/src/demo/index copy.vue +28 -28
- package/nstc-g6/components/Search/src/demo/index.vue +36 -36
- package/nstc-g6/components/Search/src/main copy.vue +169 -204
- package/nstc-g6/components/approvelTwo/main.vue +2 -6
- package/nstc-g6/components/approvelTwo/progress.vue +7 -29
- package/nstc-g6/directives/VCopy/index.js +52 -54
- package/nstc-g6/directives/VNstcNumber/index.js +1 -1
- package/nstc-g6/directives/VNstcNumber/temp.js +357 -362
- package/nstc-g6/utils/mapper_aims.js +774 -775
- package/nstc-g6/utils/parseTime.js +38 -36
- package/nstc-g6/utils/validate/index.js +2 -2
- package/nstc-g6/utils/vendor/Export2Excel.js +110 -111
- package/nstc-g6/utils/vendor/Export2Zip.js +12 -7
- package/nstc-g6/utils/vue-bus.js +1 -1
- package/package.json +1 -1
- package/src/assets/iconFont/demo_index.html +1 -1
- package/src/assets/iconFont/iconfont.js +66 -1
- package/src/assets/iconFont2/demo_index.html +277 -286
- package/src/assets/iconFont2/iconfont.js +66 -1
- package/src/components/Button/button-group.vue +1 -1
- package/src/components/Layout/HeaderWrap/indexN.vue +1 -1
- package/src/components/Layout/indexN.vue +1 -2
- package/src/components/LoginTemporary/indexN.vue +12 -2
- package/src/components/TableOperateColumn/index.vue +1 -1
- package/src/plugins/Print/print-js/README.md +5 -5
- package/src/plugins/Print/print-js/package.json +2 -2
- package/src/plugins/Print/print-js/src/index.d.ts +36 -36
- package/src/plugins/Print/print-js/src/js/browser.js +3 -1
- package/src/plugins/Print/print-js/src/js/functions.js +16 -10
- package/src/plugins/Print/print-js/src/js/html.js +2 -2
- package/src/plugins/Print/print-js/src/js/image.js +1 -1
- package/src/plugins/Print/print-js/src/js/init.js +15 -7
- package/src/plugins/Print/print-js/src/js/json.js +14 -4
- package/src/plugins/Print/print-js/src/js/modal.js +16 -15
- package/src/plugins/Print/print-js/src/js/pdf.js +1 -1
- package/src/plugins/Print/print-js/src/js/print.js +6 -6
- package/src/plugins/Sign/NetSM3/InfosecNetSignCNGAgent.min.js +1825 -1592
- package/src/plugins/Sign/cfca/index.js +525 -520
- package/src/plugins/Sign/sign.js +128 -128
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
|
@@ -1,77 +1,53 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
@mouseenter="!disabled && (isHover = true)"
|
|
5
|
-
@mouseleave="!disabled && (isHover = false)"
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
class="el-select__tags"
|
|
9
|
-
:ref="`nstc-input-tag-${random}`"
|
|
10
|
-
:id="`nstc-input-tag-${random}`"
|
|
11
|
-
>
|
|
2
|
+
<div class="nstc-input-tag" @mouseenter="!disabled && (isHover = true)" @mouseleave="!disabled && (isHover = false)">
|
|
3
|
+
<div class="el-select__tags" :ref="`nstc-input-tag-${random}`" :id="`nstc-input-tag-${random}`">
|
|
12
4
|
<template v-if="tags.length">
|
|
13
|
-
<el-tag
|
|
14
|
-
v-if="tags.length === 1"
|
|
15
|
-
type="info"
|
|
16
|
-
:closable="closable"
|
|
17
|
-
@close="handleClose(0)"
|
|
18
|
-
>
|
|
5
|
+
<el-tag v-if="tags.length === 1" type="info" :closable="closable" @close="handleClose(0)">
|
|
19
6
|
<span>{{ tags[0][props.label] }}</span>
|
|
20
7
|
</el-tag>
|
|
21
8
|
<template v-else-if="collapseTags && tags.length > 1">
|
|
22
9
|
<el-tag type="info" :closable="closable" @close="handleClose(0)">
|
|
23
10
|
<span :title="tags[0][props.label]">{{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
: tags[0][props.label]
|
|
27
|
-
}}</span>
|
|
11
|
+
tags[0][props.label].length > 5 ? tags[0][props.label].substring(0, 5) + '...' : tags[0][props.label]
|
|
12
|
+
}}</span>
|
|
28
13
|
</el-tag>
|
|
29
14
|
<el-tag type="info" disable-transitions>
|
|
30
15
|
<span class="el-select__tags-text">+ {{ tags.length - 1 }}</span>
|
|
31
16
|
</el-tag>
|
|
32
17
|
</template>
|
|
33
18
|
<el-tags
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
v-else
|
|
20
|
+
v-for="(tag, index) in tags"
|
|
21
|
+
:key="index"
|
|
22
|
+
type="info"
|
|
23
|
+
:closable="closable"
|
|
24
|
+
disable-transitions
|
|
25
|
+
@close="handleClose(index)"
|
|
41
26
|
>
|
|
42
27
|
<span :title="tag[props.value]">{{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
: tag[props.value]
|
|
46
|
-
}}</span>
|
|
28
|
+
tag[props.value].length > 6 ? tag[props.value].substring(0, 6) + '...' : tag[props.value]
|
|
29
|
+
}}</span>
|
|
47
30
|
</el-tags>
|
|
48
31
|
</template>
|
|
49
32
|
<input
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
33
|
+
v-model="inputValue"
|
|
34
|
+
type="text"
|
|
35
|
+
class="el-select__input"
|
|
36
|
+
:disabled="disabled"
|
|
37
|
+
@input="handleInput"
|
|
38
|
+
@blur="handBlur"
|
|
39
|
+
@focus="isFocus = true"
|
|
40
|
+
ref="input"
|
|
58
41
|
/>
|
|
59
42
|
</div>
|
|
60
|
-
<div
|
|
61
|
-
:class="[
|
|
62
|
-
'nstc-input-tag-wrapper',
|
|
63
|
-
'el-input',
|
|
64
|
-
'el-input--suffix',
|
|
65
|
-
{ 'is-focus': isFocus },
|
|
66
|
-
]"
|
|
67
|
-
>
|
|
43
|
+
<div :class="['nstc-input-tag-wrapper', 'el-input', 'el-input--suffix', { 'is-focus': isFocus }]">
|
|
68
44
|
<input
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
45
|
+
type="text"
|
|
46
|
+
readonly="readonly"
|
|
47
|
+
autocomplete="off"
|
|
48
|
+
:placeholder="tags.length || inputValue ? '' : '请选择'"
|
|
49
|
+
class="el-input__inner"
|
|
50
|
+
:style="{ height: baseInputHeight + 'px' }"
|
|
75
51
|
/>
|
|
76
52
|
<!-- :style="{
|
|
77
53
|
height:
|
|
@@ -83,20 +59,13 @@
|
|
|
83
59
|
}" -->
|
|
84
60
|
<span class="el-input__suffix">
|
|
85
61
|
<span
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
62
|
+
v-if="isHover && tags.length"
|
|
63
|
+
slot="suffix"
|
|
64
|
+
class="icon-close el-icon-circle-close"
|
|
65
|
+
@click="handleClear"
|
|
90
66
|
></span>
|
|
91
67
|
<span class="el-input__suffix-inner" v-else>
|
|
92
|
-
<i
|
|
93
|
-
:class="[
|
|
94
|
-
'el-select__caret',
|
|
95
|
-
'el-input__icon',
|
|
96
|
-
'el-icon-arrow-up',
|
|
97
|
-
{ 'is-reverse': isFocus },
|
|
98
|
-
]"
|
|
99
|
-
></i>
|
|
68
|
+
<i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', { 'is-reverse': isFocus }]"></i>
|
|
100
69
|
</span>
|
|
101
70
|
</span>
|
|
102
71
|
</div>
|
|
@@ -104,113 +73,111 @@
|
|
|
104
73
|
</template>
|
|
105
74
|
<script>
|
|
106
75
|
export default {
|
|
107
|
-
name:
|
|
76
|
+
name: 'InputTag',
|
|
108
77
|
props: {
|
|
109
78
|
value: {
|
|
110
79
|
type: Array,
|
|
111
|
-
default: () => []
|
|
80
|
+
default: () => []
|
|
112
81
|
},
|
|
113
82
|
closable: {
|
|
114
83
|
type: Boolean,
|
|
115
|
-
default: true
|
|
84
|
+
default: true
|
|
116
85
|
},
|
|
117
86
|
clearable: {
|
|
118
87
|
type: Boolean,
|
|
119
|
-
default: true
|
|
88
|
+
default: true
|
|
120
89
|
},
|
|
121
90
|
disabled: {
|
|
122
91
|
type: Boolean,
|
|
123
|
-
default: false
|
|
92
|
+
default: false
|
|
124
93
|
},
|
|
125
94
|
collapseTags: {
|
|
126
95
|
type: Boolean,
|
|
127
|
-
default: true
|
|
96
|
+
default: true
|
|
128
97
|
},
|
|
129
98
|
props: {
|
|
130
99
|
type: Object,
|
|
131
100
|
default: () => {
|
|
132
101
|
return {
|
|
133
|
-
label:
|
|
134
|
-
value:
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
102
|
+
label: 'label',
|
|
103
|
+
value: 'value'
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
138
107
|
},
|
|
139
108
|
data() {
|
|
140
109
|
return {
|
|
141
110
|
random: Date.now(),
|
|
142
|
-
inputValue:
|
|
111
|
+
inputValue: '',
|
|
143
112
|
isFocus: false,
|
|
144
113
|
isHover: false,
|
|
145
114
|
baseInputHeight: 32,
|
|
146
115
|
wrapperWidth: 0,
|
|
147
|
-
contentWidth: 0
|
|
148
|
-
}
|
|
116
|
+
contentWidth: 0
|
|
117
|
+
}
|
|
149
118
|
},
|
|
150
119
|
computed: {
|
|
151
120
|
tags: {
|
|
152
121
|
get() {
|
|
153
|
-
return this.value
|
|
122
|
+
return this.value
|
|
154
123
|
},
|
|
155
124
|
set(val) {
|
|
156
|
-
this.$emit(
|
|
157
|
-
}
|
|
158
|
-
}
|
|
125
|
+
this.$emit('input', val)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
159
128
|
},
|
|
160
129
|
watch: {
|
|
161
130
|
value: {
|
|
162
131
|
handler(val) {
|
|
163
|
-
this.tags = val
|
|
132
|
+
this.tags = val
|
|
164
133
|
},
|
|
165
134
|
deep: true,
|
|
166
|
-
Immediate: true
|
|
135
|
+
Immediate: true
|
|
167
136
|
},
|
|
168
137
|
tags: {
|
|
169
138
|
handler(val) {
|
|
170
|
-
this.inputValue =
|
|
171
|
-
this.handleInput()
|
|
172
|
-
this.$emit(
|
|
173
|
-
this.contentWidth = this.getContentWidth()
|
|
139
|
+
this.inputValue = ''
|
|
140
|
+
this.handleInput()
|
|
141
|
+
this.$emit('input', val)
|
|
142
|
+
this.contentWidth = this.getContentWidth()
|
|
174
143
|
},
|
|
175
|
-
deep: true
|
|
176
|
-
}
|
|
144
|
+
deep: true
|
|
145
|
+
}
|
|
177
146
|
},
|
|
178
147
|
mounted() {
|
|
179
|
-
this.contentWidth = this.getContentWidth()
|
|
180
|
-
this.wrapperWidth = this.$refs[`nstc-input-tag-${this.random}`].clientWidth
|
|
148
|
+
this.contentWidth = this.getContentWidth()
|
|
149
|
+
this.wrapperWidth = this.$refs[`nstc-input-tag-${this.random}`].clientWidth
|
|
181
150
|
},
|
|
182
151
|
methods: {
|
|
183
152
|
handBlur() {
|
|
184
|
-
this.isFocus = false
|
|
185
|
-
this.$emit(
|
|
186
|
-
this.inputValue =
|
|
153
|
+
this.isFocus = false
|
|
154
|
+
this.$emit('clearFilterText')
|
|
155
|
+
this.inputValue = ''
|
|
187
156
|
},
|
|
188
157
|
handleInput() {
|
|
189
|
-
this.$emit(
|
|
158
|
+
this.$emit('input-value', this.inputValue)
|
|
190
159
|
},
|
|
191
160
|
handleClose(index) {
|
|
192
|
-
this.tags.splice(index, 1)
|
|
161
|
+
this.tags.splice(index, 1)
|
|
193
162
|
},
|
|
194
163
|
handleClear(e) {
|
|
195
|
-
e.stopPropagation()
|
|
164
|
+
e.stopPropagation()
|
|
196
165
|
// this.tags = []; // bug: 直接修改引用地址不会生效
|
|
197
166
|
// 这里暂时倒序挨个删除
|
|
198
167
|
for (let i = this.tags.length - 1; i >= 0; i--) {
|
|
199
|
-
this.tags.splice(i, 1)
|
|
168
|
+
this.tags.splice(i, 1)
|
|
200
169
|
}
|
|
201
170
|
},
|
|
202
171
|
getContentWidth() {
|
|
203
|
-
let contentWidth = 0
|
|
204
|
-
const tags = document.querySelectorAll(
|
|
205
|
-
`#nstc-input-tag-${this.random} .el-tag`
|
|
206
|
-
);
|
|
172
|
+
let contentWidth = 0
|
|
173
|
+
const tags = document.querySelectorAll(`#nstc-input-tag-${this.random} .el-tag`)
|
|
207
174
|
tags.forEach((tag) => {
|
|
208
|
-
contentWidth += tag.offsetWidth
|
|
209
|
-
})
|
|
210
|
-
return contentWidth
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
175
|
+
contentWidth += tag.offsetWidth
|
|
176
|
+
})
|
|
177
|
+
return contentWidth
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
214
181
|
</script>
|
|
215
182
|
<style scoped>
|
|
216
183
|
.nstc-input-tag {
|
|
@@ -267,4 +234,4 @@ export default {
|
|
|
267
234
|
text-align: center;
|
|
268
235
|
cursor: pointer;
|
|
269
236
|
}
|
|
270
|
-
</style>
|
|
237
|
+
</style>
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition :name="transitionName">
|
|
3
|
-
<div
|
|
4
|
-
v-show="visible"
|
|
5
|
-
:style="customStyle"
|
|
6
|
-
class="back-to-ceiling"
|
|
7
|
-
@click="backToTop"
|
|
8
|
-
>
|
|
3
|
+
<div v-show="visible" :style="customStyle" class="back-to-ceiling" @click="backToTop">
|
|
9
4
|
<svg
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
width="16"
|
|
6
|
+
height="16"
|
|
7
|
+
viewBox="0 0 17 17"
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
class="Icon Icon--backToTopArrow"
|
|
10
|
+
aria-hidden="true"
|
|
11
|
+
style="height: 16px; width: 16px"
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
d="M12.036 15.59a1 1 0 0 1-.997.995H5.032a.996.996 0 0 1-.997-.996V8.584H1.03c-1.1 0-1.36-.633-.578-1.416L7.33.29a1.003 1.003 0 0 1 1.412 0l6.878 6.88c.782.78.523 1.415-.58 1.415h-3.004v7.004z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
18
17
|
</div>
|
|
19
18
|
</transition>
|
|
20
19
|
</template>
|
|
@@ -33,7 +32,7 @@ export default {
|
|
|
33
32
|
},
|
|
34
33
|
customStyle: {
|
|
35
34
|
type: Object,
|
|
36
|
-
default: function() {
|
|
35
|
+
default: function () {
|
|
37
36
|
return {
|
|
38
37
|
right: '50px',
|
|
39
38
|
bottom: '70px',
|
|
@@ -64,7 +63,7 @@ export default {
|
|
|
64
63
|
}
|
|
65
64
|
},
|
|
66
65
|
mounted() {
|
|
67
|
-
window.addEventListener('scroll', this.handleScroll,true)
|
|
66
|
+
window.addEventListener('scroll', this.handleScroll, true)
|
|
68
67
|
},
|
|
69
68
|
beforeDestroy() {
|
|
70
69
|
if (this.scrollBox) {
|
|
@@ -78,14 +77,15 @@ export default {
|
|
|
78
77
|
},
|
|
79
78
|
methods: {
|
|
80
79
|
handleScroll() {
|
|
81
|
-
this.scrollTop =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
this.scrollTop =
|
|
81
|
+
document.getElementsByClassName(this.scrollBoxClassName)[0].scrollTop ||
|
|
82
|
+
window.pageYOffset ||
|
|
83
|
+
document.documentElement.scrollTop ||
|
|
84
|
+
document.body.scrollTop
|
|
85
85
|
this.visible = this.scrollTop > this.visibilityHeight
|
|
86
86
|
},
|
|
87
87
|
backToTop() {
|
|
88
|
-
document.getElementsByClassName(this.scrollBoxClassName)[0].scrollTo(0,0)
|
|
88
|
+
document.getElementsByClassName(this.scrollBoxClassName)[0].scrollTo(0, 0)
|
|
89
89
|
// console.log(55,this.isMoving)
|
|
90
90
|
// if (this.isMoving) return
|
|
91
91
|
// const start = this.pageYOffset
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
// }
|
|
112
112
|
// i++
|
|
113
113
|
// }, 16.7)
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
115
|
// easeInOutQuad(t, b, c, d) {
|
|
116
116
|
// if ((t /= d / 2) < 1) return c / 2 * t * t + b
|
|
117
117
|
// return -c / 2 * (--t * (t - 2) - 1) + b
|
|
@@ -135,12 +135,12 @@ export default {
|
|
|
135
135
|
|
|
136
136
|
.fade-enter-active,
|
|
137
137
|
.fade-leave-active {
|
|
138
|
-
transition: opacity .5s;
|
|
138
|
+
transition: opacity 0.5s;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.fade-enter,
|
|
142
142
|
.fade-leave-to {
|
|
143
|
-
opacity: 0
|
|
143
|
+
opacity: 0;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.back-to-ceiling .Icon {
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
@change="changeBranchBank"
|
|
12
12
|
@blur="blurBranchBank"
|
|
13
13
|
>
|
|
14
|
-
<el-option
|
|
15
|
-
v-for="(item, index) in accountAssociateBankDb"
|
|
16
|
-
:key="index"
|
|
17
|
-
:label="item.label"
|
|
18
|
-
:value="item.value"
|
|
19
|
-
/>
|
|
14
|
+
<el-option v-for="(item, index) in accountAssociateBankDb" :key="index" :label="item.label" :value="item.value" />
|
|
20
15
|
</el-select>
|
|
21
16
|
</div>
|
|
22
17
|
</template>
|
|
@@ -28,12 +23,9 @@ export default {
|
|
|
28
23
|
directives: {
|
|
29
24
|
'el-select-loadmore': {
|
|
30
25
|
bind(el, binding) {
|
|
31
|
-
const SELECTWRAP_DOM = el.querySelector(
|
|
32
|
-
'.el-select-dropdown .el-select-dropdown__wrap'
|
|
33
|
-
)
|
|
26
|
+
const SELECTWRAP_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap')
|
|
34
27
|
SELECTWRAP_DOM.addEventListener('scroll', function () {
|
|
35
|
-
const condition =
|
|
36
|
-
this.scrollHeight - this.scrollTop <= this.clientHeight
|
|
28
|
+
const condition = this.scrollHeight - this.scrollTop <= this.clientHeight
|
|
37
29
|
if (condition) {
|
|
38
30
|
binding.value()
|
|
39
31
|
}
|
|
@@ -96,8 +88,7 @@ export default {
|
|
|
96
88
|
if (flag === 'query') {
|
|
97
89
|
this.accountAssociateBankDb = res
|
|
98
90
|
} else {
|
|
99
|
-
this.accountAssociateBankDb =
|
|
100
|
-
this.accountAssociateBankDb.concat(res)
|
|
91
|
+
this.accountAssociateBankDb = this.accountAssociateBankDb.concat(res)
|
|
101
92
|
}
|
|
102
93
|
})
|
|
103
94
|
.catch(() => {})
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
-
import * as echarts from 'echarts'
|
|
6
|
+
import * as echarts from 'echarts'
|
|
7
7
|
import resize from './mixins/resize'
|
|
8
8
|
import merge from 'lodash/merge'
|
|
9
9
|
|
|
@@ -26,7 +26,8 @@ export default {
|
|
|
26
26
|
default: () => ({})
|
|
27
27
|
},
|
|
28
28
|
|
|
29
|
-
composedChartOption: {
|
|
29
|
+
composedChartOption: {
|
|
30
|
+
// 是否不跟之前设置的 option 进行合并,默认为 true,即不合并。如果合并,减少数据时,视图上还是保持着最多数据的展示效果
|
|
30
31
|
type: Boolean,
|
|
31
32
|
default: true
|
|
32
33
|
}
|
|
@@ -65,14 +66,12 @@ export default {
|
|
|
65
66
|
this.chart.setOption(this.calcOption(this.option), this.composedChartOption)
|
|
66
67
|
},
|
|
67
68
|
|
|
68
|
-
grid({ grid = {}}) {
|
|
69
|
+
grid({ grid = {} }) {
|
|
69
70
|
const selfGrid = {
|
|
70
71
|
containLabel: true
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
grid = Array.isArray(grid)
|
|
74
|
-
? grid.map(item => merge({}, selfGrid, item))
|
|
75
|
-
: merge({}, selfGrid, grid)
|
|
74
|
+
grid = Array.isArray(grid) ? grid.map((item) => merge({}, selfGrid, item)) : merge({}, selfGrid, grid)
|
|
76
75
|
|
|
77
76
|
return {
|
|
78
77
|
grid
|
|
@@ -80,24 +79,19 @@ export default {
|
|
|
80
79
|
},
|
|
81
80
|
|
|
82
81
|
xAxis({ xAxis }) {
|
|
83
|
-
xAxis = xAxis && xAxis.length
|
|
84
|
-
? xAxis.map(item => merge({}, axisConfig, item))
|
|
85
|
-
: [merge({}, axisConfig, xAxis)]
|
|
82
|
+
xAxis = xAxis && xAxis.length ? xAxis.map((item) => merge({}, axisConfig, item)) : [merge({}, axisConfig, xAxis)]
|
|
86
83
|
|
|
87
84
|
return { xAxis }
|
|
88
85
|
},
|
|
89
86
|
|
|
90
87
|
yAxis({ yAxis }) {
|
|
91
|
-
yAxis =
|
|
92
|
-
yAxis && yAxis.length
|
|
93
|
-
? yAxis.map(item => merge({}, axisConfig, item))
|
|
94
|
-
: [merge({}, axisConfig, yAxis)]
|
|
88
|
+
yAxis = yAxis && yAxis.length ? yAxis.map((item) => merge({}, axisConfig, item)) : [merge({}, axisConfig, yAxis)]
|
|
95
89
|
|
|
96
90
|
return { yAxis }
|
|
97
91
|
},
|
|
98
92
|
|
|
99
93
|
series({ series = [] }) {
|
|
100
|
-
series = series.map(sery => {
|
|
94
|
+
series = series.map((sery) => {
|
|
101
95
|
const type = sery.type
|
|
102
96
|
let config = {}
|
|
103
97
|
|
|
@@ -123,9 +117,7 @@ export default {
|
|
|
123
117
|
|
|
124
118
|
calcOption(params) {
|
|
125
119
|
const base = ['grid', 'series']
|
|
126
|
-
const keys = this.isPie
|
|
127
|
-
? base
|
|
128
|
-
: base.concat(['xAxis', 'yAxis'])
|
|
120
|
+
const keys = this.isPie ? base : base.concat(['xAxis', 'yAxis'])
|
|
129
121
|
const defaultConfigs = {
|
|
130
122
|
color,
|
|
131
123
|
barMaxWidth: 32,
|
|
@@ -159,4 +151,3 @@ export default {
|
|
|
159
151
|
}
|
|
160
152
|
}
|
|
161
153
|
</script>
|
|
162
|
-
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
const color = ['#99C0E5', '#A6ACE3', '#EFC27A', '#99DCD2', '#C1C1C1', '#FFB59E', '#EF8787']
|
|
3
2
|
|
|
4
3
|
const axisConfig = {
|
|
@@ -67,8 +66,4 @@ const pieConfig = {
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
export {
|
|
71
|
-
color,
|
|
72
|
-
axisConfig,
|
|
73
|
-
pieConfig
|
|
74
|
-
}
|
|
69
|
+
export { color, axisConfig, pieConfig }
|
|
@@ -11,18 +11,9 @@
|
|
|
11
11
|
>
|
|
12
12
|
<div class="main">
|
|
13
13
|
<div class="main-item">
|
|
14
|
-
<i
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
></i>
|
|
18
|
-
<i
|
|
19
|
-
v-if="config.type == 'question'"
|
|
20
|
-
class="el-icon-question question i-item"
|
|
21
|
-
></i>
|
|
22
|
-
<i
|
|
23
|
-
v-if="config.type == 'info'"
|
|
24
|
-
class="el-icon-info infoColor i-item"
|
|
25
|
-
></i>
|
|
14
|
+
<i v-if="config.type == 'error'" class="el-icon-error errorColor i-item"></i>
|
|
15
|
+
<i v-if="config.type == 'question'" class="el-icon-question question i-item"></i>
|
|
16
|
+
<i v-if="config.type == 'info'" class="el-icon-info infoColor i-item"></i>
|
|
26
17
|
<div class="title margin-l-8">{{ config.title }}</div>
|
|
27
18
|
</div>
|
|
28
19
|
|
|
@@ -44,16 +35,10 @@
|
|
|
44
35
|
</div>
|
|
45
36
|
</div>
|
|
46
37
|
<span slot="footer" class="dialog-footer">
|
|
47
|
-
<el-button v-if="config.button.ok" type="primary" @click="ok">{{
|
|
48
|
-
|
|
38
|
+
<el-button v-if="config.button.ok" type="primary" @click="ok">{{ config.button.ok }}</el-button>
|
|
39
|
+
<el-button v-if="config.button.cancel" class="nstc-g6-common-btn-2" plain @click="cancel">{{
|
|
40
|
+
config.button.cancel
|
|
49
41
|
}}</el-button>
|
|
50
|
-
<el-button
|
|
51
|
-
v-if="config.button.cancel"
|
|
52
|
-
class="nstc-g6-common-btn-2"
|
|
53
|
-
plain
|
|
54
|
-
@click="cancel"
|
|
55
|
-
>{{ config.button.cancel }}</el-button
|
|
56
|
-
>
|
|
57
42
|
</span>
|
|
58
43
|
<!-- </el-dialog> -->
|
|
59
44
|
</NstcDialog>
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
import confirm from './NstcConfirm'
|
|
3
3
|
|
|
4
|
-
const confirmCon = Vue.extend(confirm)
|
|
4
|
+
const confirmCon = Vue.extend(confirm)
|
|
5
5
|
const confirmFunction = (config, ok, cancel) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
document.body.appendChild(confirmDom.$el);
|
|
11
|
-
console.log(confirmDom, 'confirmDom----------------');
|
|
12
|
-
confirmDom.config = config;
|
|
13
|
-
confirmDom.ok = ok ||
|
|
14
|
-
function () {
|
|
15
|
-
res()
|
|
16
|
-
confirmDom.dialogVisible = false
|
|
17
|
-
}
|
|
18
|
-
confirmDom.cancel = cancel || function () {
|
|
19
|
-
rej()
|
|
20
|
-
confirmDom.dialogVisible = false
|
|
21
|
-
}
|
|
6
|
+
return new Promise((res, rej) => {
|
|
7
|
+
let confirmDom = new confirmCon({
|
|
8
|
+
el: document.createElement('div')
|
|
22
9
|
})
|
|
23
|
-
|
|
10
|
+
document.body.appendChild(confirmDom.$el)
|
|
11
|
+
console.log(confirmDom, 'confirmDom----------------')
|
|
12
|
+
confirmDom.config = config
|
|
13
|
+
confirmDom.ok =
|
|
14
|
+
ok ||
|
|
15
|
+
function () {
|
|
16
|
+
res()
|
|
17
|
+
confirmDom.dialogVisible = false
|
|
18
|
+
}
|
|
19
|
+
confirmDom.cancel =
|
|
20
|
+
cancel ||
|
|
21
|
+
function () {
|
|
22
|
+
rej()
|
|
23
|
+
confirmDom.dialogVisible = false
|
|
24
|
+
}
|
|
25
|
+
})
|
|
24
26
|
}
|
|
25
|
-
export default confirmFunction
|
|
27
|
+
export default confirmFunction
|