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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<template>
|
|
8
8
|
<div class="filter-custom-box">
|
|
9
9
|
<div>
|
|
10
|
-
|
|
10
|
+
{{ formModel }}
|
|
11
11
|
</div>
|
|
12
12
|
<el-popover
|
|
13
13
|
ref="popover"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
>
|
|
19
19
|
<div class="filter-custom-box-main">
|
|
20
20
|
<div class="filter-custom-box-main-header">
|
|
21
|
-
<div class="filter-text">{{ $t(
|
|
21
|
+
<div class="filter-text">{{ $t('common_w_0046') }}</div>
|
|
22
22
|
<div class="filter-close-img" @click="closePopover">
|
|
23
23
|
<img :src="filterCloseImg" alt="" />
|
|
24
24
|
</div>
|
|
@@ -35,38 +35,23 @@
|
|
|
35
35
|
/>
|
|
36
36
|
</div>
|
|
37
37
|
<div class="filter-custom-box-main-more">
|
|
38
|
-
<span @click="moreCondition">{{ $t(
|
|
38
|
+
<span @click="moreCondition">{{ $t('common_w_0047') }}</span>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="filter-custom-box-main-footer">
|
|
41
|
-
<el-button
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class="item"
|
|
49
|
-
effect="dark"
|
|
50
|
-
content="重置本次操作"
|
|
51
|
-
placement="top-start"
|
|
52
|
-
>
|
|
53
|
-
<el-button
|
|
54
|
-
class="nstc-g6-common-btn-3 nstc-g6-common-btn-size-b"
|
|
55
|
-
@click="resetAction"
|
|
56
|
-
>{{ $t("common_w_0037") }}</el-button
|
|
57
|
-
>
|
|
41
|
+
<el-button type="primary" class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click="confirmAction">{{
|
|
42
|
+
$t('common_w_0002_1')
|
|
43
|
+
}}</el-button>
|
|
44
|
+
<el-tooltip class="item" effect="dark" content="重置本次操作" placement="top-start">
|
|
45
|
+
<el-button class="nstc-g6-common-btn-3 nstc-g6-common-btn-size-b" @click="resetAction">{{
|
|
46
|
+
$t('common_w_0037')
|
|
47
|
+
}}</el-button>
|
|
58
48
|
</el-tooltip>
|
|
59
49
|
</div>
|
|
60
50
|
</div>
|
|
61
51
|
<div slot="reference" class="filter-opt">
|
|
62
52
|
<div class="filter-opt-temp" @click.stop="init">
|
|
63
53
|
<img class="svg-box" :src="searchImg" alt="" style="display: block" />
|
|
64
|
-
<img
|
|
65
|
-
class="g6-img svg-box-active"
|
|
66
|
-
:src="searchImgActive"
|
|
67
|
-
alt=""
|
|
68
|
-
style="display: none"
|
|
69
|
-
/>
|
|
54
|
+
<img class="g6-img svg-box-active" :src="searchImgActive" alt="" style="display: none" />
|
|
70
55
|
<!-- <span class="filter-text">{{$t('common_w_0046')}}</span> -->
|
|
71
56
|
</div>
|
|
72
57
|
</div>
|
|
@@ -85,120 +70,117 @@
|
|
|
85
70
|
|
|
86
71
|
<script>
|
|
87
72
|
// import filterImg from '@/theme/theme1/img/global/filter@2x.png'
|
|
88
|
-
import filterImg from
|
|
89
|
-
import filterImgActive from
|
|
90
|
-
import filterCloseImg from
|
|
91
|
-
import searchImg from
|
|
92
|
-
import searchImgActive from
|
|
93
|
-
import NstcTableSet from
|
|
94
|
-
import NstcForm from
|
|
95
|
-
import { getDynamicUnit } from
|
|
73
|
+
import filterImg from '@/theme/theme1/img/global/filter.svg'
|
|
74
|
+
import filterImgActive from '@/theme/theme1/img/global/filterActive.svg'
|
|
75
|
+
import filterCloseImg from '@/theme/theme1/img/global/filterClose@2x.png'
|
|
76
|
+
import searchImg from '@/theme/theme1/img/global/hourglass.svg'
|
|
77
|
+
import searchImgActive from '@/theme/theme1/img/global/searchActive.svg'
|
|
78
|
+
import NstcTableSet from '^/TableSet/src/main'
|
|
79
|
+
import NstcForm from '^/Form/Component'
|
|
80
|
+
import { getDynamicUnit } from '@/api/common'
|
|
96
81
|
|
|
97
82
|
export default {
|
|
98
|
-
name:
|
|
83
|
+
name: 'NstcSearch',
|
|
99
84
|
|
|
100
85
|
components: {
|
|
101
86
|
NstcTableSet,
|
|
102
|
-
NstcForm
|
|
87
|
+
NstcForm
|
|
103
88
|
},
|
|
104
89
|
|
|
105
90
|
props: {
|
|
106
91
|
defaultConfig: {
|
|
107
92
|
type: Object,
|
|
108
93
|
default: () => {
|
|
109
|
-
return {}
|
|
110
|
-
}
|
|
94
|
+
return {}
|
|
95
|
+
}
|
|
111
96
|
},
|
|
112
97
|
config: {
|
|
113
98
|
type: Object,
|
|
114
99
|
default: () => {
|
|
115
100
|
return {
|
|
116
|
-
pageUUID:
|
|
117
|
-
moduleNo:
|
|
118
|
-
queryType:
|
|
119
|
-
}
|
|
120
|
-
}
|
|
101
|
+
pageUUID: '',
|
|
102
|
+
moduleNo: '',
|
|
103
|
+
queryType: ''
|
|
104
|
+
}
|
|
105
|
+
}
|
|
121
106
|
},
|
|
122
107
|
defaultValue: {
|
|
123
108
|
type: Object,
|
|
124
109
|
default: () => {
|
|
125
|
-
return {}
|
|
126
|
-
}
|
|
110
|
+
return {}
|
|
111
|
+
}
|
|
127
112
|
},
|
|
128
113
|
valueConfig: {
|
|
129
114
|
type: Object,
|
|
130
115
|
default: () => {
|
|
131
|
-
return {}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
116
|
+
return {}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
134
119
|
},
|
|
135
120
|
|
|
136
121
|
data() {
|
|
137
122
|
return {
|
|
138
|
-
placement:'bottom',
|
|
123
|
+
placement: 'bottom',
|
|
139
124
|
filterImg,
|
|
140
125
|
filterCloseImg,
|
|
141
126
|
filterImgActive,
|
|
142
127
|
searchImg,
|
|
143
128
|
searchImgActive,
|
|
144
129
|
conditionSetFlag: false,
|
|
145
|
-
defaultType:
|
|
130
|
+
defaultType: 'condition',
|
|
146
131
|
formModel: {},
|
|
147
132
|
reset: false,
|
|
148
133
|
defaultSet: [],
|
|
149
|
-
setTitle:
|
|
134
|
+
setTitle: '筛选条件',
|
|
150
135
|
popoverShowFlag: false,
|
|
151
136
|
queryTypeObj: {
|
|
152
137
|
all: 1, // 全部
|
|
153
138
|
columnSet: 2, // 表格设置
|
|
154
|
-
condition: 3
|
|
139
|
+
condition: 3 // 条件设置
|
|
155
140
|
},
|
|
156
141
|
loadingFlag: false,
|
|
157
142
|
hasLoad: false,
|
|
158
143
|
formConfig: [],
|
|
159
|
-
oldFormModel: {}
|
|
160
|
-
}
|
|
144
|
+
oldFormModel: {}
|
|
145
|
+
}
|
|
161
146
|
},
|
|
162
147
|
|
|
163
148
|
computed: {
|
|
164
149
|
labelWidth() {
|
|
165
|
-
let l = 0
|
|
150
|
+
let l = 0
|
|
166
151
|
this.defaultSet.map((i) => {
|
|
167
|
-
l = Math.max(i[`name`].length, l)
|
|
168
|
-
})
|
|
169
|
-
return l === 0 ?
|
|
170
|
-
}
|
|
152
|
+
l = Math.max(i[`name`].length, l)
|
|
153
|
+
})
|
|
154
|
+
return l === 0 ? '120' : l * 16 + 12
|
|
155
|
+
}
|
|
171
156
|
},
|
|
172
157
|
watch: {
|
|
173
158
|
defaultSet: {
|
|
174
159
|
handler(value) {
|
|
175
160
|
if (value && Array.isArray(value) && value.length) {
|
|
176
|
-
const that = this
|
|
161
|
+
const that = this
|
|
177
162
|
this.formConfig = that.defaultSet.map((item) => {
|
|
178
|
-
let mold = that.typeConversion(item.type)
|
|
179
|
-
let options = []
|
|
163
|
+
let mold = that.typeConversion(item.type)
|
|
164
|
+
let options = []
|
|
180
165
|
try {
|
|
181
|
-
options = JSON.parse(item.options)
|
|
166
|
+
options = JSON.parse(item.options)
|
|
182
167
|
} catch (error) {
|
|
183
|
-
options = []
|
|
168
|
+
options = []
|
|
184
169
|
}
|
|
185
170
|
// item.multiple 添加默认配置
|
|
186
|
-
const customConfig = that.defaultConfig[item.id] || {}
|
|
171
|
+
const customConfig = that.defaultConfig[item.id] || {}
|
|
187
172
|
let data = [
|
|
188
173
|
{
|
|
189
174
|
mold: mold.type, // 组件名称
|
|
190
175
|
name: item.name, // 表单选项的名称
|
|
191
|
-
prop:
|
|
192
|
-
item.type == "select" && item.multiple
|
|
193
|
-
? item.id + "s"
|
|
194
|
-
: item.id, // 绑定的key值
|
|
176
|
+
prop: item.type == 'select' && item.multiple ? item.id + 's' : item.id, // 绑定的key值
|
|
195
177
|
options: options, //item.options ? JSON.parse(item.options):[], // 下拉选择框的选项
|
|
196
178
|
url: that.removeQuotation(item.url), // 远程查询的url
|
|
197
179
|
formConfig: item.formConfig || [], // 弹窗查询的 选择表单
|
|
198
180
|
columns: item.columns || [], // 弹框查询: 的表格配置
|
|
199
181
|
valueKey: that.removeQuotation(item.valueKey),
|
|
200
182
|
labelKey: that.removeQuotation(item.labelKey),
|
|
201
|
-
httpMethod: item.httpMethod ||
|
|
183
|
+
httpMethod: item.httpMethod || 'get', // 请求方式
|
|
202
184
|
lazyLoad: item.lazyLoad || false, // 请求方式
|
|
203
185
|
placeholder: item.placeholder,
|
|
204
186
|
width: item.width || 224,
|
|
@@ -215,64 +197,58 @@ export default {
|
|
|
215
197
|
resProp: item.resProp || null,
|
|
216
198
|
isCache: item.isCache,
|
|
217
199
|
class: {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"nstcSelectTree",
|
|
221
|
-
].includes(mold.type), // 用于控制组件长度
|
|
222
|
-
[item.className || "null-custom-class"]: true,
|
|
200
|
+
'filter-condition-input': ['input', 'nstcSelectTree'].includes(mold.type), // 用于控制组件长度
|
|
201
|
+
[item.className || 'null-custom-class']: true
|
|
223
202
|
},
|
|
224
203
|
...customConfig,
|
|
225
|
-
isInitRequest: item.name === '融资单位' && item.id
|
|
226
|
-
}
|
|
227
|
-
]
|
|
204
|
+
isInitRequest: item.name === '融资单位' && item.id // 特殊处理
|
|
205
|
+
}
|
|
206
|
+
]
|
|
228
207
|
|
|
229
208
|
// 判断是否设置默认值
|
|
230
|
-
if (![
|
|
231
|
-
data[0].default = this.defaultValue[item.id]
|
|
209
|
+
if (!['', null, undefined].includes(this.defaultValue[item.id])) {
|
|
210
|
+
data[0].default = this.defaultValue[item.id]
|
|
232
211
|
}
|
|
233
212
|
|
|
234
213
|
if (mold.attr) {
|
|
235
|
-
data[0].type = mold.attr
|
|
214
|
+
data[0].type = mold.attr
|
|
236
215
|
}
|
|
237
216
|
|
|
238
217
|
if (item.bind && item.bind instanceof Object) {
|
|
239
218
|
// 不能改变原来的属性
|
|
240
|
-
const bindKey = Object.keys(item.bind)
|
|
241
|
-
const dataKey = Object.keys(data[0])
|
|
242
|
-
const tempKey = bindKey.filter((k) => !dataKey.includes(k))
|
|
219
|
+
const bindKey = Object.keys(item.bind)
|
|
220
|
+
const dataKey = Object.keys(data[0])
|
|
221
|
+
const tempKey = bindKey.filter((k) => !dataKey.includes(k))
|
|
243
222
|
|
|
244
223
|
tempKey.map((k) => {
|
|
245
|
-
data[0][k] = item.bind[k]
|
|
246
|
-
})
|
|
224
|
+
data[0][k] = item.bind[k]
|
|
225
|
+
})
|
|
247
226
|
}
|
|
248
227
|
|
|
249
228
|
/**
|
|
250
229
|
* 特殊自定义组件属性处理
|
|
251
230
|
*/
|
|
252
|
-
if (
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
data[0].
|
|
257
|
-
data[0].
|
|
258
|
-
data[0].
|
|
259
|
-
data[0].params = item.params;
|
|
260
|
-
data[0].queryKey = item.queryKey;
|
|
261
|
-
data[0].label = item.label;
|
|
231
|
+
if (item.type === 'nstcSelectTree' || item.type === 'nstcSelectTreeList') {
|
|
232
|
+
data[0].defaultProps = item.defaultProps
|
|
233
|
+
data[0].tagProps = item.tagProps
|
|
234
|
+
data[0].nodeKey = item.nodeKey
|
|
235
|
+
data[0].params = item.params
|
|
236
|
+
data[0].queryKey = item.queryKey
|
|
237
|
+
data[0].label = item.label
|
|
262
238
|
}
|
|
263
|
-
if (item.id ===
|
|
264
|
-
data[0].defaultProps = item.defaultProps
|
|
265
|
-
data[0].nodeKey = item.nodeKey
|
|
266
|
-
data[0].params = item.params
|
|
267
|
-
data[0].queryKey = item.queryKey
|
|
268
|
-
data[0].filterable = item.filterable
|
|
269
|
-
data[0].httpMethod = item.httpMethod
|
|
270
|
-
data[0].queryKey = item.queryKey
|
|
271
|
-
data[0].lazyLoad = item.lazyLoad
|
|
272
|
-
data[0].pageMode = item.pageMode
|
|
273
|
-
data[0].pageCurrentKey = item.pageCurrentKey
|
|
274
|
-
data[0].pageSizeKey = item.pageSizeKey
|
|
275
|
-
data[0].remote = item.remote
|
|
239
|
+
if (item.id === 'branchBankNo') {
|
|
240
|
+
data[0].defaultProps = item.defaultProps
|
|
241
|
+
data[0].nodeKey = item.nodeKey
|
|
242
|
+
data[0].params = item.params
|
|
243
|
+
data[0].queryKey = item.queryKey
|
|
244
|
+
data[0].filterable = item.filterable
|
|
245
|
+
data[0].httpMethod = item.httpMethod
|
|
246
|
+
data[0].queryKey = item.queryKey
|
|
247
|
+
data[0].lazyLoad = item.lazyLoad
|
|
248
|
+
data[0].pageMode = item.pageMode
|
|
249
|
+
data[0].pageCurrentKey = item.pageCurrentKey
|
|
250
|
+
data[0].pageSizeKey = item.pageSizeKey
|
|
251
|
+
data[0].remote = item.remote
|
|
276
252
|
}
|
|
277
253
|
|
|
278
254
|
// 包含金额
|
|
@@ -290,15 +266,15 @@ export default {
|
|
|
290
266
|
// };
|
|
291
267
|
// }
|
|
292
268
|
// console.log('自定义设置条件data....', data[0])
|
|
293
|
-
return data
|
|
294
|
-
})
|
|
269
|
+
return data
|
|
270
|
+
})
|
|
295
271
|
setTimeout(() => {
|
|
296
|
-
this.setValue()
|
|
297
|
-
}, 0)
|
|
272
|
+
this.setValue()
|
|
273
|
+
}, 0)
|
|
298
274
|
}
|
|
299
275
|
},
|
|
300
276
|
immediate: true,
|
|
301
|
-
deep: true
|
|
277
|
+
deep: true
|
|
302
278
|
},
|
|
303
279
|
|
|
304
280
|
/**
|
|
@@ -308,11 +284,11 @@ export default {
|
|
|
308
284
|
formModel: {
|
|
309
285
|
deep: true,
|
|
310
286
|
handler(data) {
|
|
311
|
-
this.$emit(
|
|
312
|
-
}
|
|
313
|
-
}
|
|
287
|
+
this.$emit('form-change', data, this.formConfig)
|
|
288
|
+
}
|
|
289
|
+
}
|
|
314
290
|
},
|
|
315
|
-
mounted(){
|
|
291
|
+
mounted() {
|
|
316
292
|
console.log(444)
|
|
317
293
|
},
|
|
318
294
|
methods: {
|
|
@@ -320,111 +296,102 @@ export default {
|
|
|
320
296
|
* 组件联动,避免多次触发nstcform.watch.config
|
|
321
297
|
*/
|
|
322
298
|
updateFormConfig(newConfig) {
|
|
323
|
-
this.formConfig = newConfig
|
|
299
|
+
this.formConfig = newConfig
|
|
324
300
|
},
|
|
325
301
|
|
|
326
302
|
clickTreeNode(queryKey, data) {
|
|
327
303
|
if (queryKey) {
|
|
328
|
-
this.formModel[queryKey] = data[queryKey]
|
|
304
|
+
this.formModel[queryKey] = data[queryKey]
|
|
329
305
|
}
|
|
330
306
|
},
|
|
331
307
|
/**
|
|
332
308
|
* 提交保存成功
|
|
333
309
|
*/
|
|
334
310
|
handleConfirm() {
|
|
335
|
-
console.log(
|
|
311
|
+
console.log('查询条件设置成功', this.formModel)
|
|
336
312
|
// 缓存下之前的数据
|
|
337
|
-
const cache = JSON.parse(JSON.stringify(this.formModel))
|
|
338
|
-
this.init(
|
|
339
|
-
this.formModel = cache
|
|
340
|
-
})
|
|
341
|
-
this.popoverShowFlag = true
|
|
313
|
+
const cache = JSON.parse(JSON.stringify(this.formModel))
|
|
314
|
+
this.init('update', () => {
|
|
315
|
+
this.formModel = cache
|
|
316
|
+
})
|
|
317
|
+
this.popoverShowFlag = true
|
|
342
318
|
},
|
|
343
319
|
|
|
344
320
|
async init(flag, cb) {
|
|
345
|
-
this.popoverShowFlag = !this.popoverShowFlag
|
|
346
|
-
if (this.hasLoad && flag !==
|
|
347
|
-
this.changeDefaultSet()
|
|
321
|
+
this.popoverShowFlag = !this.popoverShowFlag
|
|
322
|
+
if (this.hasLoad && flag !== 'update') {
|
|
323
|
+
this.changeDefaultSet()
|
|
348
324
|
|
|
349
325
|
this.$nextTick(() => {
|
|
350
|
-
this.$forceUpdate()
|
|
351
|
-
})
|
|
352
|
-
return
|
|
326
|
+
this.$forceUpdate()
|
|
327
|
+
})
|
|
328
|
+
return
|
|
353
329
|
}
|
|
354
|
-
this.loadingFlag = true
|
|
355
|
-
this.defaultSet = []
|
|
330
|
+
this.loadingFlag = true
|
|
331
|
+
this.defaultSet = []
|
|
356
332
|
const res = await getDynamicUnit({
|
|
357
333
|
...this.config,
|
|
358
|
-
queryType: 3
|
|
359
|
-
})
|
|
360
|
-
this.loadingFlag = false
|
|
361
|
-
this.hasLoad = true
|
|
362
|
-
this.defaultSet = res
|
|
363
|
-
this.changeDefaultSet()
|
|
334
|
+
queryType: 3
|
|
335
|
+
})
|
|
336
|
+
this.loadingFlag = false
|
|
337
|
+
this.hasLoad = true
|
|
338
|
+
this.defaultSet = res
|
|
339
|
+
this.changeDefaultSet()
|
|
364
340
|
this.$nextTick(() => {
|
|
365
|
-
this.updatePop()
|
|
366
|
-
this.$forceUpdate()
|
|
367
|
-
cb && cb()
|
|
368
|
-
})
|
|
341
|
+
this.updatePop()
|
|
342
|
+
this.$forceUpdate()
|
|
343
|
+
cb && cb()
|
|
344
|
+
})
|
|
369
345
|
},
|
|
370
346
|
changeDefaultSet() {
|
|
371
347
|
this.defaultSet = this.defaultSet.map((item) => {
|
|
372
|
-
let nItem = Object.assign({}, item)
|
|
373
|
-
nItem.disabled = this.valueConfig[item.id]
|
|
374
|
-
|
|
375
|
-
: false;
|
|
376
|
-
this.valueConfig[item.id] &&
|
|
377
|
-
(nItem.label = this.valueConfig[item.id].label);
|
|
348
|
+
let nItem = Object.assign({}, item)
|
|
349
|
+
nItem.disabled = this.valueConfig[item.id] ? this.valueConfig[item.id].disabled || false : false
|
|
350
|
+
this.valueConfig[item.id] && (nItem.label = this.valueConfig[item.id].label)
|
|
378
351
|
nItem.options = this.valueConfig[item.id]
|
|
379
352
|
? JSON.stringify(this.valueConfig[item.id].options) || []
|
|
380
|
-
: item.options
|
|
381
|
-
nItem.time = new Date().getTime()
|
|
382
|
-
nItem.clearable = this.valueConfig[item.id]
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
return nItem;
|
|
386
|
-
});
|
|
353
|
+
: item.options
|
|
354
|
+
nItem.time = new Date().getTime()
|
|
355
|
+
nItem.clearable = this.valueConfig[item.id] ? this.valueConfig[item.id].clearable : true
|
|
356
|
+
return nItem
|
|
357
|
+
})
|
|
387
358
|
},
|
|
388
359
|
setValue() {
|
|
389
|
-
let newObj = {}
|
|
360
|
+
let newObj = {}
|
|
390
361
|
for (let key1 in this.valueConfig) {
|
|
391
|
-
let item = this.valueConfig[key1]
|
|
392
|
-
let keyObj = this.defaultSet.find(
|
|
393
|
-
(item) => item.id === key1 && item.type === "select" && item.multiple
|
|
394
|
-
);
|
|
362
|
+
let item = this.valueConfig[key1]
|
|
363
|
+
let keyObj = this.defaultSet.find((item) => item.id === key1 && item.type === 'select' && item.multiple)
|
|
395
364
|
if (item.value) {
|
|
396
|
-
this.$set(newObj, keyObj ? key1 +
|
|
365
|
+
this.$set(newObj, keyObj ? key1 + 's' : key1, item.value)
|
|
397
366
|
}
|
|
398
367
|
}
|
|
399
368
|
// this.formModel = {...this.formModel,...this.oldFormModel, ...newObj}
|
|
400
|
-
if (JSON.stringify(this.oldFormModel) !==
|
|
369
|
+
if (JSON.stringify(this.oldFormModel) !== '{}') {
|
|
401
370
|
// 旧配置中的字段不在新的配置中,则需要移除对应的缓存值
|
|
402
371
|
this.defaultSet.forEach(({ id, multiple, type, queryKey }) => {
|
|
403
|
-
const isExist =
|
|
404
|
-
Reflect.has(this.oldFormModel, id) ||
|
|
405
|
-
Reflect.has(this.oldFormModel, id + "s");
|
|
372
|
+
const isExist = Reflect.has(this.oldFormModel, id) || Reflect.has(this.oldFormModel, id + 's')
|
|
406
373
|
// 在缓存中存在,则取缓存的值
|
|
407
374
|
if (isExist) {
|
|
408
|
-
if (type ===
|
|
409
|
-
this.formModel[id +
|
|
375
|
+
if (type === 'select' && multiple) {
|
|
376
|
+
this.formModel[id + 's'] = this.oldFormModel[id + 's']
|
|
410
377
|
} else {
|
|
411
|
-
this.formModel[id] = this.oldFormModel[id]
|
|
378
|
+
this.formModel[id] = this.oldFormModel[id]
|
|
412
379
|
}
|
|
413
380
|
} else {
|
|
414
|
-
this.formModel[id] = this.defaultSet[id]
|
|
381
|
+
this.formModel[id] = this.defaultSet[id]
|
|
415
382
|
}
|
|
416
|
-
})
|
|
383
|
+
})
|
|
417
384
|
// 新配置中移除了某些字段,需要将缓存中的字段移除
|
|
418
385
|
Object.keys(this.oldFormModel).forEach((k) => {
|
|
419
386
|
const isExist = this.defaultSet.find((item) => {
|
|
420
|
-
return item.id === k || item.id +
|
|
421
|
-
})
|
|
387
|
+
return item.id === k || item.id + 's' === k || item.queryKey == k
|
|
388
|
+
})
|
|
422
389
|
if (!isExist) {
|
|
423
|
-
delete this.formModel[k]
|
|
390
|
+
delete this.formModel[k]
|
|
424
391
|
}
|
|
425
|
-
})
|
|
392
|
+
})
|
|
426
393
|
}
|
|
427
|
-
this.formModel = { ...this.formModel, ...newObj }
|
|
394
|
+
this.formModel = { ...this.formModel, ...newObj }
|
|
428
395
|
},
|
|
429
396
|
/**
|
|
430
397
|
* 类型转化方法
|
|
@@ -434,69 +401,69 @@ export default {
|
|
|
434
401
|
const mold = [
|
|
435
402
|
{
|
|
436
403
|
// 时间
|
|
437
|
-
type:
|
|
438
|
-
attr:
|
|
439
|
-
}
|
|
440
|
-
]
|
|
404
|
+
type: 'datepicker',
|
|
405
|
+
attr: 'daterange'
|
|
406
|
+
}
|
|
407
|
+
]
|
|
441
408
|
// 筛选对应需要添加属性的数据
|
|
442
409
|
// eg:
|
|
443
|
-
let isAddAttr = mold.filter((x) => x.attr === type)
|
|
410
|
+
let isAddAttr = mold.filter((x) => x.attr === type)
|
|
444
411
|
|
|
445
412
|
return isAddAttr.length !== 0
|
|
446
413
|
? {
|
|
447
414
|
type: isAddAttr[0].type,
|
|
448
|
-
attr: isAddAttr[0].attr
|
|
415
|
+
attr: isAddAttr[0].attr
|
|
449
416
|
}
|
|
450
417
|
: {
|
|
451
418
|
type: type,
|
|
452
|
-
attr: null
|
|
453
|
-
}
|
|
419
|
+
attr: null
|
|
420
|
+
}
|
|
454
421
|
},
|
|
455
422
|
|
|
456
423
|
/**
|
|
457
424
|
* 查询更多条件
|
|
458
425
|
*/
|
|
459
426
|
moreCondition() {
|
|
460
|
-
this.conditionSetFlag = true
|
|
427
|
+
this.conditionSetFlag = true
|
|
461
428
|
},
|
|
462
429
|
|
|
463
430
|
/**
|
|
464
431
|
* 确认查询
|
|
465
432
|
*/
|
|
466
433
|
confirmAction() {
|
|
467
|
-
this.popoverShowFlag = false
|
|
468
|
-
this.oldFormModel = JSON.parse(JSON.stringify(this.formModel))
|
|
434
|
+
this.popoverShowFlag = false
|
|
435
|
+
this.oldFormModel = JSON.parse(JSON.stringify(this.formModel))
|
|
469
436
|
// 格式化金额
|
|
470
|
-
this.$emit(
|
|
437
|
+
this.$emit('search', this.formModel)
|
|
471
438
|
},
|
|
472
439
|
|
|
473
440
|
/**
|
|
474
441
|
* 去掉后台返回字段的”
|
|
475
442
|
*/
|
|
476
443
|
removeQuotation(str) {
|
|
477
|
-
return str ? str.replace(/"/g,
|
|
444
|
+
return str ? str.replace(/"/g, '') : ''
|
|
478
445
|
},
|
|
479
446
|
|
|
480
447
|
/**
|
|
481
448
|
* 重置
|
|
482
449
|
*/
|
|
483
450
|
resetAction() {
|
|
484
|
-
this.reset = true
|
|
485
|
-
this.oldFormModel = {}
|
|
486
|
-
this.changeDefaultSet(
|
|
451
|
+
this.reset = true
|
|
452
|
+
this.oldFormModel = {}
|
|
453
|
+
this.changeDefaultSet('reset')
|
|
487
454
|
setTimeout(() => {
|
|
488
|
-
this.$emit(
|
|
489
|
-
}, 100)
|
|
455
|
+
this.$emit('reset', this.formModel)
|
|
456
|
+
}, 100)
|
|
490
457
|
},
|
|
491
458
|
|
|
492
459
|
/**
|
|
493
460
|
* 关闭
|
|
494
461
|
*/
|
|
495
462
|
closePopover() {
|
|
496
|
-
this.reset = true
|
|
463
|
+
this.reset = true
|
|
497
464
|
this.$nextTick(() => {
|
|
498
|
-
this.popoverShowFlag = false
|
|
499
|
-
})
|
|
465
|
+
this.popoverShowFlag = false
|
|
466
|
+
})
|
|
500
467
|
},
|
|
501
468
|
|
|
502
469
|
/**
|
|
@@ -505,15 +472,14 @@ export default {
|
|
|
505
472
|
openPopover() {},
|
|
506
473
|
|
|
507
474
|
updatePop() {
|
|
508
|
-
this.$refs.popover.updatePopper()
|
|
475
|
+
this.$refs.popover.updatePopper()
|
|
509
476
|
}
|
|
510
|
-
}
|
|
511
|
-
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
512
479
|
</script>
|
|
513
480
|
|
|
514
|
-
|
|
515
481
|
<style lang="scss">
|
|
516
|
-
@import
|
|
482
|
+
@import '~@/theme/theme1/styles/variables.scss';
|
|
517
483
|
.filter-custom-box {
|
|
518
484
|
.interval-input-custom {
|
|
519
485
|
}
|
|
@@ -604,4 +570,3 @@ export default {
|
|
|
604
570
|
padding-right: 0px !important;
|
|
605
571
|
}
|
|
606
572
|
</style>
|
|
607
|
-
|
|
@@ -86,9 +86,7 @@ export default {
|
|
|
86
86
|
attributes: {},
|
|
87
87
|
groupNo: this.$route.query.groupNo || this.$route.params.groupNo,
|
|
88
88
|
message: this.message,
|
|
89
|
-
procInstId:
|
|
90
|
-
this.$route.query.processInstanceId ||
|
|
91
|
-
this.$route.params.processInstanceId,
|
|
89
|
+
procInstId: this.$route.query.processInstanceId || this.$route.params.processInstanceId,
|
|
92
90
|
taskId: this.$route.query.taskId || this.$route.params.taskId,
|
|
93
91
|
typeCode: this.$route.query.typeCode || this.$route.params.typeCode
|
|
94
92
|
}
|
|
@@ -172,9 +170,7 @@ export default {
|
|
|
172
170
|
pendingBtn(val) {
|
|
173
171
|
switch (val) {
|
|
174
172
|
case 0: // 返回
|
|
175
|
-
window.closeTagsForBackPage
|
|
176
|
-
? window.closeTagsForBackPage(this.$route.fullPath)
|
|
177
|
-
: this.$router.go(-1)
|
|
173
|
+
window.closeTagsForBackPage ? window.closeTagsForBackPage(this.$route.fullPath) : this.$router.go(-1)
|
|
178
174
|
break
|
|
179
175
|
|
|
180
176
|
case 1: // 暂存
|