ocpview-plus 1.3.15 → 1.3.17
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 +55 -43
- package/dist/ocpviewplus.min.esm.js +574 -482
- package/dist/ocpviewplus.min.js +9 -9
- package/dist/style.css +1 -1
- package/dist/styles/efviewplus.css +1 -1
- package/package.json +146 -146
- package/src/components/base/ContractPrintMixins.js +30 -30
- package/src/components/base/controlbase.vue +190 -190
- package/src/components/base/controlbox.vue +102 -102
- package/src/components/base/index.js +2 -2
- package/src/components/base/load.js +19 -19
- package/src/components/base/probase.js +220 -220
- package/src/components/base/size.js +78 -78
- package/src/components/billbox/billbox.vue +67 -67
- package/src/components/billbox/index.js +1 -1
- package/src/components/cascaderbox/cascaderbox.vue +184 -184
- package/src/components/cascaderbox/index.js +2 -2
- package/src/components/checkbox/checkbox.vue +75 -75
- package/src/components/checkbox/checkgroupbox.vue +103 -103
- package/src/components/checkbox/index.js +2 -2
- package/src/components/colorbox/colorbox.vue +43 -43
- package/src/components/colorbox/index.js +1 -1
- package/src/components/combobox/combobox.vue +219 -219
- package/src/components/combobox/index.js +1 -1
- package/src/components/conditionbox/conditionbase.vue +194 -194
- package/src/components/conditionbox/conditionbox.vue +62 -62
- package/src/components/conditionbox/conditionfilterbox.vue +479 -479
- package/src/components/conditionbox/conditionselectorbox.vue +237 -237
- package/src/components/conditionbox/index.js +4 -4
- package/src/components/conditionbox/queryconditionbox.vue +25 -25
- package/src/components/conditionbox/queryconditionboxbase.vue +123 -123
- package/src/components/conditionbox/searchconditionbox.vue +113 -113
- package/src/components/conditionbox/searchgrid.vue +391 -391
- package/src/components/datebox/DateBoxV1.vue +22 -22
- package/src/components/datebox/datebox.vue +129 -129
- package/src/components/datebox/daterangebox.vue +154 -154
- package/src/components/datebox/index.js +5 -5
- package/src/components/form/baseform.vue +676 -676
- package/src/components/form/detailsbox.vue +487 -487
- package/src/components/form/formbox.vue +28 -28
- package/src/components/form/formcardbox.vue +267 -267
- package/src/components/form/formcardbox2.vue +228 -228
- package/src/components/form/formcardgroupbox.vue +251 -251
- package/src/components/form/formcompro.js +18 -18
- package/src/components/form/formdetail.vue +128 -128
- package/src/components/form/formdetailtwo.vue +302 -302
- package/src/components/form/index.js +9 -9
- package/src/components/form/toolanchor.js +45 -45
- package/src/components/form/workform.vue +167 -167
- package/src/components/grid/basegrid.vue +1062 -1062
- package/src/components/grid/editgrid.vue +51 -51
- package/src/components/grid/editgridbase.vue +1062 -1062
- package/src/components/grid/editgridcard.vue +193 -193
- package/src/components/grid/expandrow.vue +137 -137
- package/src/components/grid/index.js +5 -5
- package/src/components/grid/viewgrid.vue +121 -121
- package/src/components/grid/viewgridbase.vue +1286 -1286
- package/src/components/icon/common-icon.vue +53 -53
- package/src/components/icon/eicon.vue +28 -28
- package/src/components/icon/icons.vue +42 -42
- package/src/components/icon/index.js +1 -1
- package/src/components/label/index.js +2 -2
- package/src/components/label/showtext.vue +94 -94
- package/src/components/load/loadcartoon.vue +227 -227
- package/src/components/map/index.js +1 -1
- package/src/components/map/mapbox.vue +348 -348
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanel.vue +184 -184
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +838 -838
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlbox.vue +126 -126
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlboxNumberbox.vue +27 -27
- package/src/components/masterplate/RewriteBillListDetails/BillListPanel.vue +126 -126
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelQueryBar.vue +280 -280
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +346 -346
- package/src/components/masterplate/RewriteBillListDetails/index.vue +325 -325
- package/src/components/masterplate/RewriteBillListDetails/mixins/useVxeGridEditTypeKeydownEventHook.js +251 -251
- package/src/components/masterplate/RewriteListdetails/BillListPanelV2.vue +115 -115
- package/src/components/masterplate/RewriteListdetails/BillListPanelV2QueryBar.vue +24 -24
- package/src/components/masterplate/RewriteListdetails/BillListPanelV3.vue +121 -121
- package/src/components/masterplate/RewriteListdetails/BillListPanelV3QueryBar.vue +275 -275
- package/src/components/masterplate/RewriteListdetails/indexV2.vue +320 -320
- package/src/components/masterplate/RewriteListdetails/indexV3.vue +331 -331
- package/src/components/masterplate/appendix.vue +586 -586
- package/src/components/masterplate/approval.vue +863 -863
- package/src/components/masterplate/base.vue +1028 -1028
- package/src/components/masterplate/billasyncimport.vue +614 -614
- package/src/components/masterplate/billconditionbox.vue +223 -223
- package/src/components/masterplate/billconditionsbox.vue +427 -427
- package/src/components/masterplate/billdetailform.vue +1028 -1028
- package/src/components/masterplate/billimport.vue +301 -301
- package/src/components/masterplate/billquerygrid.vue +391 -391
- package/src/components/masterplate/billsinglegrid.vue +234 -234
- package/src/components/masterplate/birtreport.vue +185 -185
- package/src/components/masterplate/contractappendix.vue +688 -688
- package/src/components/masterplate/detailbtntoolbar.vue +311 -311
- package/src/components/masterplate/detailsbox.vue +386 -386
- package/src/components/masterplate/editgridcard.vue +292 -292
- package/src/components/masterplate/editgridcard2.vue +127 -127
- package/src/components/masterplate/formcard.vue +105 -105
- package/src/components/masterplate/formcardgroupbox.vue +167 -167
- package/src/components/masterplate/formdetailtwo.vue +366 -366
- package/src/components/masterplate/gridcolset.vue +226 -226
- package/src/components/masterplate/index.js +54 -54
- package/src/components/masterplate/layouttemplate.vue +51 -51
- package/src/components/masterplate/leftlistrightdetails.vue +581 -581
- package/src/components/masterplate/leftlistrightlist.vue +464 -464
- package/src/components/masterplate/lefttreerightdetails.vue +636 -636
- package/src/components/masterplate/levelreport.vue +510 -510
- package/src/components/masterplate/listbtntoolbar.vue +276 -276
- package/src/components/masterplate/listdetails.vue +768 -768
- package/src/components/masterplate/operlog.vue +272 -272
- package/src/components/masterplate/options.vue +110 -110
- package/src/components/masterplate/page.vue +102 -102
- package/src/components/masterplate/promptmessage.vue +73 -73
- package/src/components/masterplate/querybar.vue +490 -490
- package/src/components/masterplate/report.vue +357 -357
- package/src/components/masterplate/rowbtntoolbar.vue +126 -126
- package/src/components/masterplate/simpletree.vue +137 -137
- package/src/components/masterplate/simpleviewgrid.vue +144 -144
- package/src/components/mychart/bar/bar.vue +201 -201
- package/src/components/mychart/basechart.vue +190 -190
- package/src/components/mychart/complexmychart/barline.vue +153 -153
- package/src/components/mychart/gauge/gauge.vue +82 -82
- package/src/components/mychart/index.js +8 -8
- package/src/components/mychart/line/line.vue +201 -201
- package/src/components/mychart/liquidfill/liquidfill.vue +108 -108
- package/src/components/mychart/pie/pie.vue +95 -95
- package/src/components/mychart/radar/radar.vue +121 -121
- package/src/components/mychart/scatter/scatter.vue +75 -75
- package/src/components/numberbox/NumberBoxV1.vue +39 -39
- package/src/components/numberbox/append.js +11 -11
- package/src/components/numberbox/index.js +4 -4
- package/src/components/numberbox/numberbox.vue +302 -302
- package/src/components/numberbox/numberrangebox.vue +422 -422
- package/src/components/picturebox/filebox.vue +369 -369
- package/src/components/picturebox/index.js +2 -2
- package/src/components/picturebox/picturebox.vue +541 -541
- package/src/components/picturebox/uploadbox.vue +164 -164
- package/src/components/poptagbox/index.js +1 -1
- package/src/components/poptagbox/poptagbox.vue +388 -388
- package/src/components/poptextbox/index.js +1 -1
- package/src/components/poptextbox/poptextbox.vue +624 -624
- package/src/components/radiobox/index.js +1 -1
- package/src/components/radiobox/radiogroupbox.vue +75 -75
- package/src/components/richtextbox/editor.vue +150 -150
- package/src/components/richtextbox/index.js +1 -1
- package/src/components/richtextbox/richtextbox.vue +448 -448
- package/src/components/textbox/index.js +1 -1
- package/src/components/textbox/textbox.vue +97 -97
- package/src/components/timebox/index.js +1 -1
- package/src/components/timebox/timebox.vue +75 -75
- package/src/components/toolbar/ebutton.vue +169 -169
- package/src/components/toolbar/index.js +3 -3
- package/src/components/toolbar/toolbar.vue +445 -445
- package/src/components/tree/CompatTree.vue +297 -297
- package/src/components/tree/basetree.vue +1098 -1098
- package/src/components/tree/index.js +2 -2
- package/src/components/tree/treedata.vue +53 -53
- package/src/components/tree/treedatabase.vue +189 -189
- package/src/components/upload/billimport.vue +233 -233
- package/src/components/upload/index.js +1 -1
- package/src/components/videobox/index.js +1 -1
- package/src/components/videobox/uploadbox.vue +148 -148
- package/src/components/videobox/videobox.vue +503 -503
- package/src/components/wrichtextbox/editor.vue +219 -219
- package/src/components/wrichtextbox/index.js +1 -1
- package/src/components/wrichtextbox/wrichtextbox.vue +62 -62
- package/src/index.js +231 -231
- package/src/locale/format.js +51 -51
- package/src/locale/index.js +63 -63
- package/src/locale/lang/zh-CN.js +123 -123
- package/src/locale/lang/zh-TW.js +114 -114
- package/src/locale/lang/zh-UG.js +115 -115
- package/src/locale/lang.js +15 -15
- package/src/method/case/case.js +1274 -1274
- package/src/method/config/queryconfig.js +24 -24
- package/src/method/const/const.js +815 -815
- package/src/method/index.js +7 -7
- package/src/plugins/theme/theme-variable.css +114 -114
- package/src/plugins/vxeTable/index.js +241 -241
- package/src/plugins/vxeTable/renderer/components/TableFilterInput.vue +51 -51
- package/src/plugins/vxeTable/renderer/filter.js +32 -32
- package/src/static/excel/exportexcel.js +626 -626
- package/src/static/iview/coustom.js +462 -462
- package/src/store/index.js +18 -18
- package/src/store/modules/app.js +53 -53
- package/src/styles/README.md +3 -3
- package/src/styles/common.less +80 -80
- package/src/styles/components/anchor.less +74 -74
- package/src/styles/components/approval.less +135 -135
- package/src/styles/components/button.less +208 -208
- package/src/styles/components/card.less +51 -51
- package/src/styles/components/content.less +38 -38
- package/src/styles/components/font.less +313 -313
- package/src/styles/components/form.less +71 -71
- package/src/styles/components/iconfont/fonts/iconfont.less +1384 -1384
- package/src/styles/components/iconfont/fonts/iconfont.svg +703 -703
- package/src/styles/components/index.less +16 -16
- package/src/styles/components/input.less +290 -290
- package/src/styles/components/modal.less +203 -203
- package/src/styles/components/page.less +340 -340
- package/src/styles/components/select.less +361 -361
- package/src/styles/components/steps.less +367 -367
- package/src/styles/components/table.less +544 -544
- package/src/styles/components/tabs.less +249 -249
- package/src/styles/components/upload.less +82 -82
- package/src/styles/custom.less +67 -67
- package/src/styles/index.less +6 -6
- package/src/styles/pack.less +6 -6
- package/src/utils/EfuMessenger.js +155 -155
- package/src/utils/assist.js +353 -353
- package/src/utils/index.js +1 -1
- package/src/utils/random_str.js +10 -10
- package/src/components/masterplate/detailgridbox.vue +0 -386
|
@@ -1,624 +1,624 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-show="myConfig.visible" :class="classes" >
|
|
3
|
-
<template v-if="multiple">
|
|
4
|
-
<div ref="myControl" class="ivu-select-selection">
|
|
5
|
-
<template v-for="(item, index) in selectedMultiple" >
|
|
6
|
-
<div
|
|
7
|
-
class="ivu-tag ivu-tag-checked"
|
|
8
|
-
:key="'tag_'+index"
|
|
9
|
-
v-if="myConfig.maxTagCount === undefined || index < myConfig.maxTagCount">
|
|
10
|
-
<span class="ivu-tag-text" >{{ item.label}}</span>
|
|
11
|
-
<Icon type="ios-close" v-if="!myConfig.readOnly" @click.enter.stop="closeTag(item)"></Icon>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
<Tooltip theme="light" :transfer="true">
|
|
15
|
-
<div class="ivu-tag ivu-tag-checked" v-if="myConfig.maxTagCount !== undefined && selectedMultiple.length > myConfig.maxTagCount">
|
|
16
|
-
<span class="ivu-tag-text ivu-select-max-tag">
|
|
17
|
-
+ {{ selectedMultiple.length - myConfig.maxTagCount }}...
|
|
18
|
-
</span>
|
|
19
|
-
</div>
|
|
20
|
-
<template #content>
|
|
21
|
-
<Row type="flex">
|
|
22
|
-
<template v-for="(item, index) in selectedMultiple">
|
|
23
|
-
<Col
|
|
24
|
-
class="ivu-tag ivu-tag-checked"
|
|
25
|
-
:key="'tag_'+index"
|
|
26
|
-
v-if="myConfig.maxTagCount === undefined || index >= myConfig.maxTagCount">
|
|
27
|
-
<span class="ivu-tag-text" >{{ item.label}}</span>
|
|
28
|
-
<Icon type="ios-close" v-if="!myConfig.readOnly" @click.enter.stop="closeTag(item)"></Icon>
|
|
29
|
-
</Col>
|
|
30
|
-
</template>
|
|
31
|
-
</Row>
|
|
32
|
-
</template>
|
|
33
|
-
</Tooltip>
|
|
34
|
-
<Icon type="ios-search" class="ivu-select-arrow" @click.enter.stop="click"></Icon>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
<template v-else>
|
|
38
|
-
<Input ref="myControl" v-model="text" icon="ios-search" :size="myConfig.size" type="text" :placeholder="myConfig.placeholder" :disabled="myConfig.readOnly" :readonly="!myConfig.allowInput" :clearable="myConfig.clearable" @on-click="click" @keydown.enter.stop="onEnter" @on-blur="onEnter" @on-clear="onEnter"/>
|
|
39
|
-
</template>
|
|
40
|
-
<Modal v-model="popShow" :styles="queryConfig.popStyle" :width="currentWidth" :title="modeTitle" :footer-hide="footerHide" :draggable="draggable" :closable="myConfig.closable" class="efuture-model" >
|
|
41
|
-
<div>
|
|
42
|
-
<component :is="pop" ref="popView" :config="queryConfig" :dictData="myConfig.dictData" @conditionAction="conditionAction" :isPop="true" @dbclick="dbclick"/></div>
|
|
43
|
-
<template #footer>
|
|
44
|
-
<div>
|
|
45
|
-
<Row type="flex" justify="end" align="middle" :gutter="0">
|
|
46
|
-
<Col>
|
|
47
|
-
<Button style="width:80px" @click="cancel" >取消</Button>
|
|
48
|
-
</Col>
|
|
49
|
-
<Col style="margin-left:20px">
|
|
50
|
-
<Button type="info" style="width:80px" @click="ok" >确认</Button>
|
|
51
|
-
</Col>
|
|
52
|
-
</Row>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
</Modal>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
<script>
|
|
60
|
-
import Base from '@/components/base/controlbase.vue';
|
|
61
|
-
export default {
|
|
62
|
-
name: 'poptextbox',
|
|
63
|
-
extends: Base,
|
|
64
|
-
data () {
|
|
65
|
-
return {
|
|
66
|
-
myConfig: {
|
|
67
|
-
isTree:false,
|
|
68
|
-
textName:'',
|
|
69
|
-
selectkey:'',
|
|
70
|
-
searchBefore:'',
|
|
71
|
-
setDataBefore:'',
|
|
72
|
-
closable:true,
|
|
73
|
-
allowInput:true,
|
|
74
|
-
clearCondition:true,
|
|
75
|
-
multiple: false,
|
|
76
|
-
popControl:'',
|
|
77
|
-
maxTagCount: 2,
|
|
78
|
-
dictData:{}
|
|
79
|
-
},
|
|
80
|
-
selectedMultiple:[],
|
|
81
|
-
queryConfig:{
|
|
82
|
-
popStyle:{
|
|
83
|
-
top:'20px'
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
multiple:false,
|
|
87
|
-
popShow:false,
|
|
88
|
-
footerHide:false,
|
|
89
|
-
text:'',
|
|
90
|
-
oldText:'',
|
|
91
|
-
oldValue:'',
|
|
92
|
-
data:[],
|
|
93
|
-
selectTreeData:[],
|
|
94
|
-
customRows:[],
|
|
95
|
-
draggable:false
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
props:{
|
|
99
|
-
fatherValue: {
|
|
100
|
-
type: [String,Array],
|
|
101
|
-
default:''
|
|
102
|
-
},
|
|
103
|
-
fatherText: {
|
|
104
|
-
type: [String,Array],
|
|
105
|
-
default:''
|
|
106
|
-
}
|
|
107
|
-
} ,
|
|
108
|
-
computed: {
|
|
109
|
-
pop () {
|
|
110
|
-
if (this.queryConfig.popControl) {
|
|
111
|
-
return this.queryConfig.popControl;
|
|
112
|
-
} else {
|
|
113
|
-
if (this.queryConfig.isTree) {
|
|
114
|
-
return 'TreeBox';
|
|
115
|
-
} else {
|
|
116
|
-
return 'ViewGrid';
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
classes () {
|
|
121
|
-
if (!this.multiple) {
|
|
122
|
-
return '';
|
|
123
|
-
} else {
|
|
124
|
-
if (!this.myConfig.readOnly) {
|
|
125
|
-
return 'vu-select ivu-select-multiple ivu-select-default';
|
|
126
|
-
} else {
|
|
127
|
-
return 'vu-select ivu-select-disabled ivu-select-multiple ivu-select-default';
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
modeTitle() {
|
|
132
|
-
let title = this.config.label;
|
|
133
|
-
if (this.queryConfig.title) {
|
|
134
|
-
title = this.queryConfig.title;
|
|
135
|
-
}
|
|
136
|
-
if (this.myConfig.curlTitle) {
|
|
137
|
-
title = this.myConfig.curlTitle
|
|
138
|
-
}
|
|
139
|
-
return title;
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
methods:{
|
|
143
|
-
conditionAction(temp) {
|
|
144
|
-
switch(temp.action) {
|
|
145
|
-
case 'condition_ok':
|
|
146
|
-
if (temp.rows) {
|
|
147
|
-
this.customRows = [];
|
|
148
|
-
let flag = true;
|
|
149
|
-
if (temp.rows.length === 0) {
|
|
150
|
-
this.$refs.popView.alert('请选择');
|
|
151
|
-
this.popShow = true;
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
if (this.queryConfig.isTree) {
|
|
155
|
-
let allowLastNode = this.queryConfig.allowLastNode;
|
|
156
|
-
if (this.config.allowLastNode !== undefined) {
|
|
157
|
-
allowLastNode = this.config.allowLastNode;
|
|
158
|
-
}
|
|
159
|
-
if (allowLastNode) {
|
|
160
|
-
temp.rows.some(el => {
|
|
161
|
-
if (this.$refs.popView.isChildren(el)) {
|
|
162
|
-
flag = false;
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
if (!flag) {
|
|
168
|
-
this.$refs.popView.alert('选中的节点存在非末级节点,请检查');
|
|
169
|
-
this.popShow = true;
|
|
170
|
-
} else {
|
|
171
|
-
if (allowLastNode === true) {
|
|
172
|
-
let rows = [];
|
|
173
|
-
temp.rows.forEach(el => {
|
|
174
|
-
if (!el.children || el.children.length === 0) {
|
|
175
|
-
rows.push(el);
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
this.setCommmonValue(rows);
|
|
179
|
-
} else {
|
|
180
|
-
this.setCommmonValue(temp.rows);
|
|
181
|
-
}
|
|
182
|
-
this.popShow = false;
|
|
183
|
-
}
|
|
184
|
-
} else {
|
|
185
|
-
this.setCommmonValue(temp.rows);
|
|
186
|
-
this.popShow = false;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
break;
|
|
191
|
-
case 'condition_cancel':
|
|
192
|
-
this.popShow = false;
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
if (!this.popShow) {
|
|
196
|
-
document.querySelector('body').removeAttribute("style");
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
overrideSearchParam (param) {
|
|
200
|
-
if (this.myConfig.overrideSearchParam) {
|
|
201
|
-
return this.myConfig.overrideSearchParam(param);
|
|
202
|
-
} else {
|
|
203
|
-
return param;
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
setCommmonValue(rows,isnull) {
|
|
207
|
-
let flag = true;
|
|
208
|
-
//对象转数组
|
|
209
|
-
if (!Array.isArray(rows)) {
|
|
210
|
-
let data = [];
|
|
211
|
-
data.push(rows);
|
|
212
|
-
rows = data;
|
|
213
|
-
}
|
|
214
|
-
if (this.myConfig.setDataBefore) {
|
|
215
|
-
if (isnull === 'Y') {
|
|
216
|
-
flag = this.myConfig.setDataBefore(null,this);
|
|
217
|
-
} else {
|
|
218
|
-
flag = this.myConfig.setDataBefore(rows,this);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
if (flag) {
|
|
222
|
-
if (this.multiple) {
|
|
223
|
-
let value = [];
|
|
224
|
-
let text = [];
|
|
225
|
-
rows.forEach(el => {
|
|
226
|
-
let temp = this.getCodeName(el);
|
|
227
|
-
el.label = temp.name;
|
|
228
|
-
value.push(el[this.queryConfig.responseId]);
|
|
229
|
-
text.push(temp.name);
|
|
230
|
-
});
|
|
231
|
-
this.value = value;
|
|
232
|
-
this.text = text;
|
|
233
|
-
this.oldValue = this.$Method.copy(value);
|
|
234
|
-
this.oldText = this.$Method.copy(text);
|
|
235
|
-
} else {
|
|
236
|
-
//多选自定义设置
|
|
237
|
-
if (this.customRows && this.customRows.length > 0) {
|
|
238
|
-
rows = this.customRows;
|
|
239
|
-
}
|
|
240
|
-
let temp = this.getCodeName(rows[0]);
|
|
241
|
-
if (rows[0][this.queryConfig.responseId]) {
|
|
242
|
-
this.value = rows[0][this.queryConfig.responseId];
|
|
243
|
-
this.text = temp.name;
|
|
244
|
-
} else {
|
|
245
|
-
this.value ='';
|
|
246
|
-
this.text = '';
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
this.oldValue = this.value;
|
|
250
|
-
this.oldText = this.text;
|
|
251
|
-
}
|
|
252
|
-
this.setFatherValue();
|
|
253
|
-
} else {
|
|
254
|
-
if (this.multiple) {
|
|
255
|
-
this.value =this.$Method.copy(this.oldValue);
|
|
256
|
-
this.text = this.$Method.copy(this.oldText);
|
|
257
|
-
} else {
|
|
258
|
-
this.value = this.oldText;
|
|
259
|
-
this.text = this.oldText;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
getCodeName(row) {
|
|
264
|
-
let code = row[this.queryConfig.responseCode];
|
|
265
|
-
let name = row[this.queryConfig.responseName];
|
|
266
|
-
if (this.queryConfig.showCodeWithName !== false) {
|
|
267
|
-
if (this.queryConfig.responseCode != this.queryConfig.responseName) {
|
|
268
|
-
if (code) {
|
|
269
|
-
if (name) {
|
|
270
|
-
name = '[' + code +']' + name;
|
|
271
|
-
} else {
|
|
272
|
-
name = code;
|
|
273
|
-
}
|
|
274
|
-
} else {
|
|
275
|
-
name = '';
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
} else {
|
|
279
|
-
if (code) {
|
|
280
|
-
if (!name) {
|
|
281
|
-
name = code;
|
|
282
|
-
}
|
|
283
|
-
} else {
|
|
284
|
-
name = '';
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
let obj = {};
|
|
288
|
-
obj.code = code;
|
|
289
|
-
obj.name = name;
|
|
290
|
-
return obj;
|
|
291
|
-
},
|
|
292
|
-
setFatherValue() {
|
|
293
|
-
let para = this.valueToFatherValue();
|
|
294
|
-
para.name = this.myConfig.name;
|
|
295
|
-
if (this.myConfig.textName !== undefined) {
|
|
296
|
-
para.textName = this.myConfig.textName;
|
|
297
|
-
}
|
|
298
|
-
if (!this.multiple) {
|
|
299
|
-
if (this.customRows && this.customRows.length > 0) {
|
|
300
|
-
para.customRows = this.customRows;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
this.$emit('inputValue', para);
|
|
304
|
-
},
|
|
305
|
-
closeTag(item) {
|
|
306
|
-
let index = this.value.findIndex(el => el === item[this.queryConfig.responseId]);
|
|
307
|
-
let flag = true;
|
|
308
|
-
let that = this;
|
|
309
|
-
if (this.myConfig.onDelTag) {
|
|
310
|
-
let temp = {};
|
|
311
|
-
temp.delIndex = index;
|
|
312
|
-
temp.data = this.$Method.copy(this.value);
|
|
313
|
-
temp.control = that;
|
|
314
|
-
temp.name = this.myConfig.name;
|
|
315
|
-
flag = this.myConfig.onDelTag(temp);
|
|
316
|
-
}
|
|
317
|
-
if (flag) {
|
|
318
|
-
if (index > -1) {
|
|
319
|
-
this.value.splice(index, 1);
|
|
320
|
-
this.text.splice(index, 1);
|
|
321
|
-
this.selectedMultiple.splice(index,1);
|
|
322
|
-
this.setFatherValue();
|
|
323
|
-
this.oldValue = this.$Method.copy(this.value);
|
|
324
|
-
this.oldText = this.$Method.copy(this.text);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
customInit () {
|
|
329
|
-
if (this.config.selectkey) {
|
|
330
|
-
Object.assign(this.queryConfig, this.getQueryConfig(this.config.selectkey));
|
|
331
|
-
if (!this.queryConfig.isConfig) {
|
|
332
|
-
this.queryConfig.resources = this.OmdUrl[this.queryConfig.resources];
|
|
333
|
-
}
|
|
334
|
-
if (this.queryConfig.draggable) {
|
|
335
|
-
this.draggable = this.queryConfig.draggable;
|
|
336
|
-
}
|
|
337
|
-
if (this.config.multiSelect !== undefined) {
|
|
338
|
-
this.queryConfig.multiSelect = this.config.multiSelect;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (this.config.showAll !== undefined) {
|
|
342
|
-
this.queryConfig.showAll = this.config.showAll;
|
|
343
|
-
}
|
|
344
|
-
if (this.queryConfig.popControl) {
|
|
345
|
-
if (this.queryConfig.popControl !== 'SimpleViewGrid' && this.queryConfig.popControl !== 'SimpleTree') {
|
|
346
|
-
this.footerHide = true;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
this.setSizeConfig(this.queryConfig);
|
|
350
|
-
this.queryConfig.overrideSearchParam = this.overrideSearchParam;
|
|
351
|
-
|
|
352
|
-
if (JSON.stringify(this.myConfig.dictData) === '{}') {
|
|
353
|
-
let obj = {};
|
|
354
|
-
if (this.queryConfig.items && this.queryConfig.items.length > 0) {
|
|
355
|
-
this.queryConfig.items.forEach(el => {
|
|
356
|
-
let dictkey = el.dictkey;
|
|
357
|
-
if (el.customDictkey) {
|
|
358
|
-
dictkey = el.customDictkey;
|
|
359
|
-
}
|
|
360
|
-
if (dictkey) {
|
|
361
|
-
obj[dictkey] = '';
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
if (JSON.stringify(obj) !== '{}') {
|
|
366
|
-
if (this.myConfig.getDictData) {
|
|
367
|
-
obj = this.myConfig.getDictData(obj);
|
|
368
|
-
}
|
|
369
|
-
this.myConfig.dictData = obj;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
if (this.myConfig.sysDictData !== undefined) {
|
|
373
|
-
if (this.myConfig.dictData === undefined) {
|
|
374
|
-
this.myConfig.dictData = {};
|
|
375
|
-
}
|
|
376
|
-
this.myConfig.dictData = Object.assign({}, this.myConfig.sysDictData, this.myConfig.dictData);
|
|
377
|
-
}
|
|
378
|
-
if (this.myConfig.multiple) {
|
|
379
|
-
this.multiple = true;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
if(this.queryConfig.isTree) {
|
|
383
|
-
this.queryConfig.showTitle = false;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
if (this.myConfig.setQueryConfig) {
|
|
387
|
-
this.myConfig.setQueryConfig(this.queryConfig);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
},
|
|
392
|
-
valueToFatherValue() {
|
|
393
|
-
let para= {};
|
|
394
|
-
if (!this.value || this.value.length === 0) {
|
|
395
|
-
if (this.multiple) {
|
|
396
|
-
this.text = [];
|
|
397
|
-
this.oldText = [];
|
|
398
|
-
} else {
|
|
399
|
-
this.value = '';
|
|
400
|
-
this.text = '';
|
|
401
|
-
}
|
|
402
|
-
} else {
|
|
403
|
-
para.value = this.value;
|
|
404
|
-
para.text = this.text;
|
|
405
|
-
}
|
|
406
|
-
return para;
|
|
407
|
-
},
|
|
408
|
-
click(){
|
|
409
|
-
let flag = true;
|
|
410
|
-
if (!this.queryConfig.isTree) {
|
|
411
|
-
if (this.$refs.popView.$children && this.$refs.popView.$children.length > 0) {
|
|
412
|
-
if (this.$refs.popView.$children[0].customClear) {
|
|
413
|
-
this.$refs.popView.$children[0].customClear();
|
|
414
|
-
}
|
|
415
|
-
this.$refs.popView.clearData();
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
if (this.myConfig.readOnly) {
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
if (this.myConfig.searchBefore) {
|
|
422
|
-
this.$refs['popView'].clearSearchBeforeSearchParam();
|
|
423
|
-
flag = this.myConfig.searchBefore(this,this.$refs['popView']);
|
|
424
|
-
if (flag) {
|
|
425
|
-
if (this.searchParam !== undefined) {
|
|
426
|
-
this.$refs['popView'].setSearchBeforeSearchParam(this.searchParam);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
if (flag) {
|
|
431
|
-
if (this.config.selectkey) {
|
|
432
|
-
if(this.query && this.query.Config ) {
|
|
433
|
-
const lastParam = this.query.Config.lastQueryParam;
|
|
434
|
-
if (this.queryConfig) {
|
|
435
|
-
const lastParam = this.query.Config.lastQueryParam || {}; // 始终记住前一次的参数
|
|
436
|
-
const currentParam = this.searchParam || {}; // 当前的参数
|
|
437
|
-
|
|
438
|
-
let finalParam = currentParam;
|
|
439
|
-
|
|
440
|
-
// 只有 lastflag = "1" 时才合并记录的旧参数
|
|
441
|
-
if (currentParam.lastflag === "1") {
|
|
442
|
-
finalParam = { ...lastParam, ...currentParam }; // 当前参数优先覆盖旧参数
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
// 无论是否合并,都要记录当前的最终 searchParam 作为下一次的 lastQueryParam
|
|
446
|
-
this.query.Config.lastQueryParam = { ...finalParam };
|
|
447
|
-
|
|
448
|
-
// 更新 this.searchParam
|
|
449
|
-
this.searchParam = finalParam;
|
|
450
|
-
|
|
451
|
-
// 传递给 popView
|
|
452
|
-
this.$refs['popView'].setSearchBeforeSearchParam(this.searchParam);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
this.popShow = true;
|
|
456
|
-
if (this.myConfig.clearCondition !== false) {
|
|
457
|
-
if (this.$refs['popView'].clearCondition) {
|
|
458
|
-
this.$refs['popView'].clearCondition();
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
if (this.queryConfig.manualLoad) {
|
|
462
|
-
this.$refs['popView'].refurbish();
|
|
463
|
-
} else {
|
|
464
|
-
this.$refs['popView'].setData([]);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
onEnter(e) {
|
|
471
|
-
if (this.text === this.oldText) {
|
|
472
|
-
if (e && e.type ==='keydown' && e.key === 'Enter') {
|
|
473
|
-
if (this.$parent.enterKeyDown) {
|
|
474
|
-
this.$parent.enterKeyDown();
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
return;
|
|
478
|
-
}
|
|
479
|
-
let obj ={};
|
|
480
|
-
let flag = true;
|
|
481
|
-
let searchParam = {};
|
|
482
|
-
if (this.myConfig.searchBefore) {
|
|
483
|
-
this.$refs['popView'].clearSearchBeforeSearchParam();
|
|
484
|
-
obj.value = this.text;
|
|
485
|
-
flag = this.myConfig.searchBefore(this,obj);
|
|
486
|
-
}
|
|
487
|
-
if (flag) {
|
|
488
|
-
if (!this.text) {
|
|
489
|
-
this.value = '';
|
|
490
|
-
this.oldValue='';
|
|
491
|
-
this.oldText='';
|
|
492
|
-
this.text = '';
|
|
493
|
-
if (this.myConfig.setDataBefore) {
|
|
494
|
-
this.myConfig.setDataBefore(null, this);
|
|
495
|
-
}
|
|
496
|
-
this.setFatherValue();
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
if (this.searchParam !== undefined) {
|
|
500
|
-
this.$refs['popView'].setSearchBeforeSearchParam(this.searchParam);
|
|
501
|
-
}
|
|
502
|
-
searchParam[this.queryConfig.responseCode] = this.text;
|
|
503
|
-
let data = this.$refs['popView'].popValueChanged(searchParam);
|
|
504
|
-
if (data.length === 0) {
|
|
505
|
-
this.alert(this.myConfig.label+':['+this.text+']不存在!');
|
|
506
|
-
this.text = this.oldText;
|
|
507
|
-
} else {
|
|
508
|
-
this.setCommmonValue(data[0]);
|
|
509
|
-
if (e && e.type ==='keydown' && e.key === 'Enter') {
|
|
510
|
-
if (this.$parent.enterKeyDown) {
|
|
511
|
-
this.$parent.enterKeyDown();
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
} else {
|
|
516
|
-
this.text = this.oldText;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
onSelectChange() {
|
|
521
|
-
return this.$refs.myTreeBox.onSelectChange();
|
|
522
|
-
},
|
|
523
|
-
onCheckChange(param) {
|
|
524
|
-
this.selectTreeData=param;
|
|
525
|
-
let mktNameArray=[];
|
|
526
|
-
param.forEach(el => {
|
|
527
|
-
mktNameArray.push(el.name);
|
|
528
|
-
});
|
|
529
|
-
let mktname=mktNameArray.join(',');
|
|
530
|
-
this.text=mktname;
|
|
531
|
-
},
|
|
532
|
-
|
|
533
|
-
onToggleExpand() {
|
|
534
|
-
return this.$refs.myTreeBox.onToggleExpand();
|
|
535
|
-
},
|
|
536
|
-
|
|
537
|
-
setData(data) {
|
|
538
|
-
if (this.$refs.popView) {
|
|
539
|
-
this.$refs.popView.setData(data);
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
dbclick(e) {
|
|
543
|
-
let temp = {};
|
|
544
|
-
temp.action= 'condition_ok';
|
|
545
|
-
temp.rows = [];
|
|
546
|
-
temp.rows.push(e);
|
|
547
|
-
this.conditionAction(temp);
|
|
548
|
-
},
|
|
549
|
-
ok() {
|
|
550
|
-
let temp = {};
|
|
551
|
-
temp.action= 'condition_ok';
|
|
552
|
-
temp.rows = this.$refs.popView.getSelection();
|
|
553
|
-
this.conditionAction(temp);
|
|
554
|
-
},
|
|
555
|
-
watchCustomFatherValue () {
|
|
556
|
-
if (!this.value) {
|
|
557
|
-
if (!this.multiple) {
|
|
558
|
-
this.text = '';
|
|
559
|
-
this.OldText = '';
|
|
560
|
-
} else {
|
|
561
|
-
this.text = [];
|
|
562
|
-
this.OldText = [];
|
|
563
|
-
this.selectedMultiple = [];
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
setFocus(value) {
|
|
568
|
-
if (value) {
|
|
569
|
-
this.$refs.myControl.focus();
|
|
570
|
-
} else {
|
|
571
|
-
this.$refs.myControl.blur();
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
initSlectedMultiple () {
|
|
575
|
-
let selectedMultiple = [];
|
|
576
|
-
if (this.value.length > 0) {
|
|
577
|
-
this.value.forEach((el,index) => {
|
|
578
|
-
let temp = {};
|
|
579
|
-
temp[this.queryConfig.responseId] = el;
|
|
580
|
-
if (this.text && index < this.text.length) {
|
|
581
|
-
temp.label = this.text[index];
|
|
582
|
-
} else {
|
|
583
|
-
temp.label = el;
|
|
584
|
-
}
|
|
585
|
-
selectedMultiple.push(temp);
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
this.selectedMultiple = selectedMultiple;
|
|
589
|
-
},
|
|
590
|
-
cancel() {
|
|
591
|
-
this.popShow = false;
|
|
592
|
-
},
|
|
593
|
-
onEnter2(e) {
|
|
594
|
-
this.alert('1');
|
|
595
|
-
}
|
|
596
|
-
},
|
|
597
|
-
mounted() {
|
|
598
|
-
//this._setCustomWidth(this.clientWidth);
|
|
599
|
-
},
|
|
600
|
-
watch:{
|
|
601
|
-
fatherText: {
|
|
602
|
-
handler(newValue) {
|
|
603
|
-
this.text = newValue;
|
|
604
|
-
this.oldText = this.$Method.copy(newValue);
|
|
605
|
-
if (this.config.multiple) {
|
|
606
|
-
this.$nextTick(() => {
|
|
607
|
-
this.initSlectedMultiple();
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
immediate: true
|
|
612
|
-
},
|
|
613
|
-
popShow:{
|
|
614
|
-
handler(newValue) {
|
|
615
|
-
if (this.config.onOpenChange) {
|
|
616
|
-
this.config.onOpenChange(newValue);
|
|
617
|
-
}
|
|
618
|
-
},
|
|
619
|
-
immediate: true
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
};
|
|
624
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div v-show="myConfig.visible" :class="classes" >
|
|
3
|
+
<template v-if="multiple">
|
|
4
|
+
<div ref="myControl" class="ivu-select-selection">
|
|
5
|
+
<template v-for="(item, index) in selectedMultiple" >
|
|
6
|
+
<div
|
|
7
|
+
class="ivu-tag ivu-tag-checked"
|
|
8
|
+
:key="'tag_'+index"
|
|
9
|
+
v-if="myConfig.maxTagCount === undefined || index < myConfig.maxTagCount">
|
|
10
|
+
<span class="ivu-tag-text" >{{ item.label}}</span>
|
|
11
|
+
<Icon type="ios-close" v-if="!myConfig.readOnly" @click.enter.stop="closeTag(item)"></Icon>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<Tooltip theme="light" :transfer="true">
|
|
15
|
+
<div class="ivu-tag ivu-tag-checked" v-if="myConfig.maxTagCount !== undefined && selectedMultiple.length > myConfig.maxTagCount">
|
|
16
|
+
<span class="ivu-tag-text ivu-select-max-tag">
|
|
17
|
+
+ {{ selectedMultiple.length - myConfig.maxTagCount }}...
|
|
18
|
+
</span>
|
|
19
|
+
</div>
|
|
20
|
+
<template #content>
|
|
21
|
+
<Row type="flex">
|
|
22
|
+
<template v-for="(item, index) in selectedMultiple">
|
|
23
|
+
<Col
|
|
24
|
+
class="ivu-tag ivu-tag-checked"
|
|
25
|
+
:key="'tag_'+index"
|
|
26
|
+
v-if="myConfig.maxTagCount === undefined || index >= myConfig.maxTagCount">
|
|
27
|
+
<span class="ivu-tag-text" >{{ item.label}}</span>
|
|
28
|
+
<Icon type="ios-close" v-if="!myConfig.readOnly" @click.enter.stop="closeTag(item)"></Icon>
|
|
29
|
+
</Col>
|
|
30
|
+
</template>
|
|
31
|
+
</Row>
|
|
32
|
+
</template>
|
|
33
|
+
</Tooltip>
|
|
34
|
+
<Icon type="ios-search" class="ivu-select-arrow" @click.enter.stop="click"></Icon>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
<template v-else>
|
|
38
|
+
<Input ref="myControl" v-model="text" icon="ios-search" :size="myConfig.size" type="text" :placeholder="myConfig.placeholder" :disabled="myConfig.readOnly" :readonly="!myConfig.allowInput" :clearable="myConfig.clearable" @on-click="click" @keydown.enter.stop="onEnter" @on-blur="onEnter" @on-clear="onEnter"/>
|
|
39
|
+
</template>
|
|
40
|
+
<Modal v-model="popShow" :styles="queryConfig.popStyle" :width="currentWidth" :title="modeTitle" :footer-hide="footerHide" :draggable="draggable" :closable="myConfig.closable" class="efuture-model" >
|
|
41
|
+
<div>
|
|
42
|
+
<component :is="pop" ref="popView" :config="queryConfig" :dictData="myConfig.dictData" @conditionAction="conditionAction" :isPop="true" @dbclick="dbclick"/></div>
|
|
43
|
+
<template #footer>
|
|
44
|
+
<div>
|
|
45
|
+
<Row type="flex" justify="end" align="middle" :gutter="0">
|
|
46
|
+
<Col>
|
|
47
|
+
<Button style="width:80px" @click="cancel" >取消</Button>
|
|
48
|
+
</Col>
|
|
49
|
+
<Col style="margin-left:20px">
|
|
50
|
+
<Button type="info" style="width:80px" @click="ok" >确认</Button>
|
|
51
|
+
</Col>
|
|
52
|
+
</Row>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
</Modal>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
<script>
|
|
60
|
+
import Base from '@/components/base/controlbase.vue';
|
|
61
|
+
export default {
|
|
62
|
+
name: 'poptextbox',
|
|
63
|
+
extends: Base,
|
|
64
|
+
data () {
|
|
65
|
+
return {
|
|
66
|
+
myConfig: {
|
|
67
|
+
isTree:false,
|
|
68
|
+
textName:'',
|
|
69
|
+
selectkey:'',
|
|
70
|
+
searchBefore:'',
|
|
71
|
+
setDataBefore:'',
|
|
72
|
+
closable:true,
|
|
73
|
+
allowInput:true,
|
|
74
|
+
clearCondition:true,
|
|
75
|
+
multiple: false,
|
|
76
|
+
popControl:'',
|
|
77
|
+
maxTagCount: 2,
|
|
78
|
+
dictData:{}
|
|
79
|
+
},
|
|
80
|
+
selectedMultiple:[],
|
|
81
|
+
queryConfig:{
|
|
82
|
+
popStyle:{
|
|
83
|
+
top:'20px'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
multiple:false,
|
|
87
|
+
popShow:false,
|
|
88
|
+
footerHide:false,
|
|
89
|
+
text:'',
|
|
90
|
+
oldText:'',
|
|
91
|
+
oldValue:'',
|
|
92
|
+
data:[],
|
|
93
|
+
selectTreeData:[],
|
|
94
|
+
customRows:[],
|
|
95
|
+
draggable:false
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
props:{
|
|
99
|
+
fatherValue: {
|
|
100
|
+
type: [String,Array],
|
|
101
|
+
default:''
|
|
102
|
+
},
|
|
103
|
+
fatherText: {
|
|
104
|
+
type: [String,Array],
|
|
105
|
+
default:''
|
|
106
|
+
}
|
|
107
|
+
} ,
|
|
108
|
+
computed: {
|
|
109
|
+
pop () {
|
|
110
|
+
if (this.queryConfig.popControl) {
|
|
111
|
+
return this.queryConfig.popControl;
|
|
112
|
+
} else {
|
|
113
|
+
if (this.queryConfig.isTree) {
|
|
114
|
+
return 'TreeBox';
|
|
115
|
+
} else {
|
|
116
|
+
return 'ViewGrid';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
classes () {
|
|
121
|
+
if (!this.multiple) {
|
|
122
|
+
return '';
|
|
123
|
+
} else {
|
|
124
|
+
if (!this.myConfig.readOnly) {
|
|
125
|
+
return 'vu-select ivu-select-multiple ivu-select-default';
|
|
126
|
+
} else {
|
|
127
|
+
return 'vu-select ivu-select-disabled ivu-select-multiple ivu-select-default';
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
modeTitle() {
|
|
132
|
+
let title = this.config.label;
|
|
133
|
+
if (this.queryConfig.title) {
|
|
134
|
+
title = this.queryConfig.title;
|
|
135
|
+
}
|
|
136
|
+
if (this.myConfig.curlTitle) {
|
|
137
|
+
title = this.myConfig.curlTitle
|
|
138
|
+
}
|
|
139
|
+
return title;
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
methods:{
|
|
143
|
+
conditionAction(temp) {
|
|
144
|
+
switch(temp.action) {
|
|
145
|
+
case 'condition_ok':
|
|
146
|
+
if (temp.rows) {
|
|
147
|
+
this.customRows = [];
|
|
148
|
+
let flag = true;
|
|
149
|
+
if (temp.rows.length === 0) {
|
|
150
|
+
this.$refs.popView.alert('请选择');
|
|
151
|
+
this.popShow = true;
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
if (this.queryConfig.isTree) {
|
|
155
|
+
let allowLastNode = this.queryConfig.allowLastNode;
|
|
156
|
+
if (this.config.allowLastNode !== undefined) {
|
|
157
|
+
allowLastNode = this.config.allowLastNode;
|
|
158
|
+
}
|
|
159
|
+
if (allowLastNode) {
|
|
160
|
+
temp.rows.some(el => {
|
|
161
|
+
if (this.$refs.popView.isChildren(el)) {
|
|
162
|
+
flag = false;
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
if (!flag) {
|
|
168
|
+
this.$refs.popView.alert('选中的节点存在非末级节点,请检查');
|
|
169
|
+
this.popShow = true;
|
|
170
|
+
} else {
|
|
171
|
+
if (allowLastNode === true) {
|
|
172
|
+
let rows = [];
|
|
173
|
+
temp.rows.forEach(el => {
|
|
174
|
+
if (!el.children || el.children.length === 0) {
|
|
175
|
+
rows.push(el);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
this.setCommmonValue(rows);
|
|
179
|
+
} else {
|
|
180
|
+
this.setCommmonValue(temp.rows);
|
|
181
|
+
}
|
|
182
|
+
this.popShow = false;
|
|
183
|
+
}
|
|
184
|
+
} else {
|
|
185
|
+
this.setCommmonValue(temp.rows);
|
|
186
|
+
this.popShow = false;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
break;
|
|
191
|
+
case 'condition_cancel':
|
|
192
|
+
this.popShow = false;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
if (!this.popShow) {
|
|
196
|
+
document.querySelector('body').removeAttribute("style");
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
overrideSearchParam (param) {
|
|
200
|
+
if (this.myConfig.overrideSearchParam) {
|
|
201
|
+
return this.myConfig.overrideSearchParam(param);
|
|
202
|
+
} else {
|
|
203
|
+
return param;
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
setCommmonValue(rows,isnull) {
|
|
207
|
+
let flag = true;
|
|
208
|
+
//对象转数组
|
|
209
|
+
if (!Array.isArray(rows)) {
|
|
210
|
+
let data = [];
|
|
211
|
+
data.push(rows);
|
|
212
|
+
rows = data;
|
|
213
|
+
}
|
|
214
|
+
if (this.myConfig.setDataBefore) {
|
|
215
|
+
if (isnull === 'Y') {
|
|
216
|
+
flag = this.myConfig.setDataBefore(null,this);
|
|
217
|
+
} else {
|
|
218
|
+
flag = this.myConfig.setDataBefore(rows,this);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (flag) {
|
|
222
|
+
if (this.multiple) {
|
|
223
|
+
let value = [];
|
|
224
|
+
let text = [];
|
|
225
|
+
rows.forEach(el => {
|
|
226
|
+
let temp = this.getCodeName(el);
|
|
227
|
+
el.label = temp.name;
|
|
228
|
+
value.push(el[this.queryConfig.responseId]);
|
|
229
|
+
text.push(temp.name);
|
|
230
|
+
});
|
|
231
|
+
this.value = value;
|
|
232
|
+
this.text = text;
|
|
233
|
+
this.oldValue = this.$Method.copy(value);
|
|
234
|
+
this.oldText = this.$Method.copy(text);
|
|
235
|
+
} else {
|
|
236
|
+
//多选自定义设置
|
|
237
|
+
if (this.customRows && this.customRows.length > 0) {
|
|
238
|
+
rows = this.customRows;
|
|
239
|
+
}
|
|
240
|
+
let temp = this.getCodeName(rows[0]);
|
|
241
|
+
if (rows[0][this.queryConfig.responseId]) {
|
|
242
|
+
this.value = rows[0][this.queryConfig.responseId];
|
|
243
|
+
this.text = temp.name;
|
|
244
|
+
} else {
|
|
245
|
+
this.value ='';
|
|
246
|
+
this.text = '';
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
this.oldValue = this.value;
|
|
250
|
+
this.oldText = this.text;
|
|
251
|
+
}
|
|
252
|
+
this.setFatherValue();
|
|
253
|
+
} else {
|
|
254
|
+
if (this.multiple) {
|
|
255
|
+
this.value =this.$Method.copy(this.oldValue);
|
|
256
|
+
this.text = this.$Method.copy(this.oldText);
|
|
257
|
+
} else {
|
|
258
|
+
this.value = this.oldText;
|
|
259
|
+
this.text = this.oldText;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
getCodeName(row) {
|
|
264
|
+
let code = row[this.queryConfig.responseCode];
|
|
265
|
+
let name = row[this.queryConfig.responseName];
|
|
266
|
+
if (this.queryConfig.showCodeWithName !== false) {
|
|
267
|
+
if (this.queryConfig.responseCode != this.queryConfig.responseName) {
|
|
268
|
+
if (code) {
|
|
269
|
+
if (name) {
|
|
270
|
+
name = '[' + code +']' + name;
|
|
271
|
+
} else {
|
|
272
|
+
name = code;
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
name = '';
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
} else {
|
|
279
|
+
if (code) {
|
|
280
|
+
if (!name) {
|
|
281
|
+
name = code;
|
|
282
|
+
}
|
|
283
|
+
} else {
|
|
284
|
+
name = '';
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
let obj = {};
|
|
288
|
+
obj.code = code;
|
|
289
|
+
obj.name = name;
|
|
290
|
+
return obj;
|
|
291
|
+
},
|
|
292
|
+
setFatherValue() {
|
|
293
|
+
let para = this.valueToFatherValue();
|
|
294
|
+
para.name = this.myConfig.name;
|
|
295
|
+
if (this.myConfig.textName !== undefined) {
|
|
296
|
+
para.textName = this.myConfig.textName;
|
|
297
|
+
}
|
|
298
|
+
if (!this.multiple) {
|
|
299
|
+
if (this.customRows && this.customRows.length > 0) {
|
|
300
|
+
para.customRows = this.customRows;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
this.$emit('inputValue', para);
|
|
304
|
+
},
|
|
305
|
+
closeTag(item) {
|
|
306
|
+
let index = this.value.findIndex(el => el === item[this.queryConfig.responseId]);
|
|
307
|
+
let flag = true;
|
|
308
|
+
let that = this;
|
|
309
|
+
if (this.myConfig.onDelTag) {
|
|
310
|
+
let temp = {};
|
|
311
|
+
temp.delIndex = index;
|
|
312
|
+
temp.data = this.$Method.copy(this.value);
|
|
313
|
+
temp.control = that;
|
|
314
|
+
temp.name = this.myConfig.name;
|
|
315
|
+
flag = this.myConfig.onDelTag(temp);
|
|
316
|
+
}
|
|
317
|
+
if (flag) {
|
|
318
|
+
if (index > -1) {
|
|
319
|
+
this.value.splice(index, 1);
|
|
320
|
+
this.text.splice(index, 1);
|
|
321
|
+
this.selectedMultiple.splice(index,1);
|
|
322
|
+
this.setFatherValue();
|
|
323
|
+
this.oldValue = this.$Method.copy(this.value);
|
|
324
|
+
this.oldText = this.$Method.copy(this.text);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
customInit () {
|
|
329
|
+
if (this.config.selectkey) {
|
|
330
|
+
Object.assign(this.queryConfig, this.getQueryConfig(this.config.selectkey));
|
|
331
|
+
if (!this.queryConfig.isConfig) {
|
|
332
|
+
this.queryConfig.resources = this.OmdUrl[this.queryConfig.resources];
|
|
333
|
+
}
|
|
334
|
+
if (this.queryConfig.draggable) {
|
|
335
|
+
this.draggable = this.queryConfig.draggable;
|
|
336
|
+
}
|
|
337
|
+
if (this.config.multiSelect !== undefined) {
|
|
338
|
+
this.queryConfig.multiSelect = this.config.multiSelect;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if (this.config.showAll !== undefined) {
|
|
342
|
+
this.queryConfig.showAll = this.config.showAll;
|
|
343
|
+
}
|
|
344
|
+
if (this.queryConfig.popControl) {
|
|
345
|
+
if (this.queryConfig.popControl !== 'SimpleViewGrid' && this.queryConfig.popControl !== 'SimpleTree') {
|
|
346
|
+
this.footerHide = true;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
this.setSizeConfig(this.queryConfig);
|
|
350
|
+
this.queryConfig.overrideSearchParam = this.overrideSearchParam;
|
|
351
|
+
|
|
352
|
+
if (JSON.stringify(this.myConfig.dictData) === '{}') {
|
|
353
|
+
let obj = {};
|
|
354
|
+
if (this.queryConfig.items && this.queryConfig.items.length > 0) {
|
|
355
|
+
this.queryConfig.items.forEach(el => {
|
|
356
|
+
let dictkey = el.dictkey;
|
|
357
|
+
if (el.customDictkey) {
|
|
358
|
+
dictkey = el.customDictkey;
|
|
359
|
+
}
|
|
360
|
+
if (dictkey) {
|
|
361
|
+
obj[dictkey] = '';
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
if (JSON.stringify(obj) !== '{}') {
|
|
366
|
+
if (this.myConfig.getDictData) {
|
|
367
|
+
obj = this.myConfig.getDictData(obj);
|
|
368
|
+
}
|
|
369
|
+
this.myConfig.dictData = obj;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
if (this.myConfig.sysDictData !== undefined) {
|
|
373
|
+
if (this.myConfig.dictData === undefined) {
|
|
374
|
+
this.myConfig.dictData = {};
|
|
375
|
+
}
|
|
376
|
+
this.myConfig.dictData = Object.assign({}, this.myConfig.sysDictData, this.myConfig.dictData);
|
|
377
|
+
}
|
|
378
|
+
if (this.myConfig.multiple) {
|
|
379
|
+
this.multiple = true;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if(this.queryConfig.isTree) {
|
|
383
|
+
this.queryConfig.showTitle = false;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (this.myConfig.setQueryConfig) {
|
|
387
|
+
this.myConfig.setQueryConfig(this.queryConfig);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
},
|
|
392
|
+
valueToFatherValue() {
|
|
393
|
+
let para= {};
|
|
394
|
+
if (!this.value || this.value.length === 0) {
|
|
395
|
+
if (this.multiple) {
|
|
396
|
+
this.text = [];
|
|
397
|
+
this.oldText = [];
|
|
398
|
+
} else {
|
|
399
|
+
this.value = '';
|
|
400
|
+
this.text = '';
|
|
401
|
+
}
|
|
402
|
+
} else {
|
|
403
|
+
para.value = this.value;
|
|
404
|
+
para.text = this.text;
|
|
405
|
+
}
|
|
406
|
+
return para;
|
|
407
|
+
},
|
|
408
|
+
click(){
|
|
409
|
+
let flag = true;
|
|
410
|
+
if (!this.queryConfig.isTree) {
|
|
411
|
+
if (this.$refs.popView.$children && this.$refs.popView.$children.length > 0) {
|
|
412
|
+
if (this.$refs.popView.$children[0].customClear) {
|
|
413
|
+
this.$refs.popView.$children[0].customClear();
|
|
414
|
+
}
|
|
415
|
+
this.$refs.popView.clearData();
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if (this.myConfig.readOnly) {
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
if (this.myConfig.searchBefore) {
|
|
422
|
+
this.$refs['popView'].clearSearchBeforeSearchParam();
|
|
423
|
+
flag = this.myConfig.searchBefore(this,this.$refs['popView']);
|
|
424
|
+
if (flag) {
|
|
425
|
+
if (this.searchParam !== undefined) {
|
|
426
|
+
this.$refs['popView'].setSearchBeforeSearchParam(this.searchParam);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
if (flag) {
|
|
431
|
+
if (this.config.selectkey) {
|
|
432
|
+
if(this.query && this.query.Config ) {
|
|
433
|
+
const lastParam = this.query.Config.lastQueryParam;
|
|
434
|
+
if (this.queryConfig) {
|
|
435
|
+
const lastParam = this.query.Config.lastQueryParam || {}; // 始终记住前一次的参数
|
|
436
|
+
const currentParam = this.searchParam || {}; // 当前的参数
|
|
437
|
+
|
|
438
|
+
let finalParam = currentParam;
|
|
439
|
+
|
|
440
|
+
// 只有 lastflag = "1" 时才合并记录的旧参数
|
|
441
|
+
if (currentParam.lastflag === "1") {
|
|
442
|
+
finalParam = { ...lastParam, ...currentParam }; // 当前参数优先覆盖旧参数
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// 无论是否合并,都要记录当前的最终 searchParam 作为下一次的 lastQueryParam
|
|
446
|
+
this.query.Config.lastQueryParam = { ...finalParam };
|
|
447
|
+
|
|
448
|
+
// 更新 this.searchParam
|
|
449
|
+
this.searchParam = finalParam;
|
|
450
|
+
|
|
451
|
+
// 传递给 popView
|
|
452
|
+
this.$refs['popView'].setSearchBeforeSearchParam(this.searchParam);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
this.popShow = true;
|
|
456
|
+
if (this.myConfig.clearCondition !== false) {
|
|
457
|
+
if (this.$refs['popView'].clearCondition) {
|
|
458
|
+
this.$refs['popView'].clearCondition();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (this.queryConfig.manualLoad) {
|
|
462
|
+
this.$refs['popView'].refurbish();
|
|
463
|
+
} else {
|
|
464
|
+
this.$refs['popView'].setData([]);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
onEnter(e) {
|
|
471
|
+
if (this.text === this.oldText) {
|
|
472
|
+
if (e && e.type ==='keydown' && e.key === 'Enter') {
|
|
473
|
+
if (this.$parent.enterKeyDown) {
|
|
474
|
+
this.$parent.enterKeyDown();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
let obj ={};
|
|
480
|
+
let flag = true;
|
|
481
|
+
let searchParam = {};
|
|
482
|
+
if (this.myConfig.searchBefore) {
|
|
483
|
+
this.$refs['popView'].clearSearchBeforeSearchParam();
|
|
484
|
+
obj.value = this.text;
|
|
485
|
+
flag = this.myConfig.searchBefore(this,obj);
|
|
486
|
+
}
|
|
487
|
+
if (flag) {
|
|
488
|
+
if (!this.text) {
|
|
489
|
+
this.value = '';
|
|
490
|
+
this.oldValue='';
|
|
491
|
+
this.oldText='';
|
|
492
|
+
this.text = '';
|
|
493
|
+
if (this.myConfig.setDataBefore) {
|
|
494
|
+
this.myConfig.setDataBefore(null, this);
|
|
495
|
+
}
|
|
496
|
+
this.setFatherValue();
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
if (this.searchParam !== undefined) {
|
|
500
|
+
this.$refs['popView'].setSearchBeforeSearchParam(this.searchParam);
|
|
501
|
+
}
|
|
502
|
+
searchParam[this.queryConfig.responseCode] = this.text;
|
|
503
|
+
let data = this.$refs['popView'].popValueChanged(searchParam);
|
|
504
|
+
if (data.length === 0) {
|
|
505
|
+
this.alert(this.myConfig.label+':['+this.text+']不存在!');
|
|
506
|
+
this.text = this.oldText;
|
|
507
|
+
} else {
|
|
508
|
+
this.setCommmonValue(data[0]);
|
|
509
|
+
if (e && e.type ==='keydown' && e.key === 'Enter') {
|
|
510
|
+
if (this.$parent.enterKeyDown) {
|
|
511
|
+
this.$parent.enterKeyDown();
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
} else {
|
|
516
|
+
this.text = this.oldText;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
},
|
|
520
|
+
onSelectChange() {
|
|
521
|
+
return this.$refs.myTreeBox.onSelectChange();
|
|
522
|
+
},
|
|
523
|
+
onCheckChange(param) {
|
|
524
|
+
this.selectTreeData=param;
|
|
525
|
+
let mktNameArray=[];
|
|
526
|
+
param.forEach(el => {
|
|
527
|
+
mktNameArray.push(el.name);
|
|
528
|
+
});
|
|
529
|
+
let mktname=mktNameArray.join(',');
|
|
530
|
+
this.text=mktname;
|
|
531
|
+
},
|
|
532
|
+
|
|
533
|
+
onToggleExpand() {
|
|
534
|
+
return this.$refs.myTreeBox.onToggleExpand();
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
setData(data) {
|
|
538
|
+
if (this.$refs.popView) {
|
|
539
|
+
this.$refs.popView.setData(data);
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
dbclick(e) {
|
|
543
|
+
let temp = {};
|
|
544
|
+
temp.action= 'condition_ok';
|
|
545
|
+
temp.rows = [];
|
|
546
|
+
temp.rows.push(e);
|
|
547
|
+
this.conditionAction(temp);
|
|
548
|
+
},
|
|
549
|
+
ok() {
|
|
550
|
+
let temp = {};
|
|
551
|
+
temp.action= 'condition_ok';
|
|
552
|
+
temp.rows = this.$refs.popView.getSelection();
|
|
553
|
+
this.conditionAction(temp);
|
|
554
|
+
},
|
|
555
|
+
watchCustomFatherValue () {
|
|
556
|
+
if (!this.value) {
|
|
557
|
+
if (!this.multiple) {
|
|
558
|
+
this.text = '';
|
|
559
|
+
this.OldText = '';
|
|
560
|
+
} else {
|
|
561
|
+
this.text = [];
|
|
562
|
+
this.OldText = [];
|
|
563
|
+
this.selectedMultiple = [];
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
setFocus(value) {
|
|
568
|
+
if (value) {
|
|
569
|
+
this.$refs.myControl.focus();
|
|
570
|
+
} else {
|
|
571
|
+
this.$refs.myControl.blur();
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
initSlectedMultiple () {
|
|
575
|
+
let selectedMultiple = [];
|
|
576
|
+
if (this.value.length > 0) {
|
|
577
|
+
this.value.forEach((el,index) => {
|
|
578
|
+
let temp = {};
|
|
579
|
+
temp[this.queryConfig.responseId] = el;
|
|
580
|
+
if (this.text && index < this.text.length) {
|
|
581
|
+
temp.label = this.text[index];
|
|
582
|
+
} else {
|
|
583
|
+
temp.label = el;
|
|
584
|
+
}
|
|
585
|
+
selectedMultiple.push(temp);
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
this.selectedMultiple = selectedMultiple;
|
|
589
|
+
},
|
|
590
|
+
cancel() {
|
|
591
|
+
this.popShow = false;
|
|
592
|
+
},
|
|
593
|
+
onEnter2(e) {
|
|
594
|
+
this.alert('1');
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
mounted() {
|
|
598
|
+
//this._setCustomWidth(this.clientWidth);
|
|
599
|
+
},
|
|
600
|
+
watch:{
|
|
601
|
+
fatherText: {
|
|
602
|
+
handler(newValue) {
|
|
603
|
+
this.text = newValue;
|
|
604
|
+
this.oldText = this.$Method.copy(newValue);
|
|
605
|
+
if (this.config.multiple) {
|
|
606
|
+
this.$nextTick(() => {
|
|
607
|
+
this.initSlectedMultiple();
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
immediate: true
|
|
612
|
+
},
|
|
613
|
+
popShow:{
|
|
614
|
+
handler(newValue) {
|
|
615
|
+
if (this.config.onOpenChange) {
|
|
616
|
+
this.config.onOpenChange(newValue);
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
immediate: true
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
};
|
|
624
|
+
</script>
|