ocpview-plus 0.0.1
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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/efviewplus.min.esm.js +99954 -0
- package/dist/efviewplus.min.js +142 -0
- package/dist/locale/lang.js +1 -0
- package/dist/locale/zh-CN.js +1 -0
- package/dist/locale/zh-TW.js +1 -0
- package/dist/locale/zh-UG.js +1 -0
- package/dist/style.css +9 -0
- package/dist/styles/efviewplus.css +1 -0
- package/package.json +144 -0
- package/src/components/base/controlbase.vue +191 -0
- package/src/components/base/controlbox.vue +102 -0
- package/src/components/base/index.js +3 -0
- package/src/components/base/load.js +20 -0
- package/src/components/base/probase.js +220 -0
- package/src/components/base/size.js +78 -0
- package/src/components/billbox/billbox.vue +68 -0
- package/src/components/billbox/index.js +2 -0
- package/src/components/cascaderbox/cascaderbox.vue +184 -0
- package/src/components/cascaderbox/index.js +2 -0
- package/src/components/checkbox/checkbox.vue +76 -0
- package/src/components/checkbox/checkgroupbox.vue +104 -0
- package/src/components/checkbox/index.js +3 -0
- package/src/components/colorbox/colorbox.vue +44 -0
- package/src/components/colorbox/index.js +2 -0
- package/src/components/combobox/combobox.vue +220 -0
- package/src/components/combobox/index.js +2 -0
- package/src/components/conditionbox/conditionbase.vue +195 -0
- package/src/components/conditionbox/conditionbox.vue +63 -0
- package/src/components/conditionbox/conditionfilterbox.vue +477 -0
- package/src/components/conditionbox/conditionselectorbox.vue +237 -0
- package/src/components/conditionbox/index.js +5 -0
- package/src/components/conditionbox/queryconditionbox.vue +26 -0
- package/src/components/conditionbox/queryconditionboxbase.vue +124 -0
- package/src/components/conditionbox/searchconditionbox.vue +114 -0
- package/src/components/conditionbox/searchgrid.vue +391 -0
- package/src/components/datebox/datebox.vue +129 -0
- package/src/components/datebox/daterangebox.vue +155 -0
- package/src/components/datebox/index.js +3 -0
- package/src/components/form/baseform.vue +677 -0
- package/src/components/form/detailsbox.vue +487 -0
- package/src/components/form/formbox.vue +29 -0
- package/src/components/form/formcardbox.vue +268 -0
- package/src/components/form/formcardgroupbox.vue +252 -0
- package/src/components/form/formcompro.js +19 -0
- package/src/components/form/formdetail.vue +129 -0
- package/src/components/form/formdetailtwo.vue +302 -0
- package/src/components/form/index.js +8 -0
- package/src/components/form/toolanchor.js +46 -0
- package/src/components/form/workform.vue +168 -0
- package/src/components/grid/basegrid.vue +1061 -0
- package/src/components/grid/editgrid.vue +51 -0
- package/src/components/grid/editgridbase.vue +947 -0
- package/src/components/grid/editgridcard.vue +193 -0
- package/src/components/grid/expandrow.vue +137 -0
- package/src/components/grid/index.js +6 -0
- package/src/components/grid/viewgrid.vue +122 -0
- package/src/components/grid/viewgridbase.vue +1284 -0
- package/src/components/icon/common-icon.vue +53 -0
- package/src/components/icon/eicon.vue +29 -0
- package/src/components/icon/icons.vue +42 -0
- package/src/components/icon/index.js +2 -0
- package/src/components/label/index.js +3 -0
- package/src/components/label/showtext.vue +95 -0
- package/src/components/load/loadcartoon.vue +228 -0
- package/src/components/map/index.js +2 -0
- package/src/components/map/mapbox.vue +348 -0
- package/src/components/masterplate/appendix.vue +586 -0
- package/src/components/masterplate/approval.vue +803 -0
- package/src/components/masterplate/base.vue +985 -0
- package/src/components/masterplate/billasyncimport.vue +614 -0
- package/src/components/masterplate/billconditionbox.vue +224 -0
- package/src/components/masterplate/billconditionsbox.vue +427 -0
- package/src/components/masterplate/billdetailform.vue +990 -0
- package/src/components/masterplate/billimport.vue +263 -0
- package/src/components/masterplate/billquerygrid.vue +316 -0
- package/src/components/masterplate/billsinglegrid.vue +234 -0
- package/src/components/masterplate/birtreport.vue +185 -0
- package/src/components/masterplate/detailbtntoolbar.vue +311 -0
- package/src/components/masterplate/detailsbox.vue +386 -0
- package/src/components/masterplate/editgridcard.vue +222 -0
- package/src/components/masterplate/editgridcard2.vue +109 -0
- package/src/components/masterplate/formcard.vue +106 -0
- package/src/components/masterplate/formcardgroupbox.vue +168 -0
- package/src/components/masterplate/formdetailtwo.vue +356 -0
- package/src/components/masterplate/gridcolset.vue +227 -0
- package/src/components/masterplate/index.js +23 -0
- package/src/components/masterplate/layouttemplate.vue +33 -0
- package/src/components/masterplate/leftlistrightdetails.vue +474 -0
- package/src/components/masterplate/leftlistrightlist.vue +465 -0
- package/src/components/masterplate/lefttreerightdetails.vue +619 -0
- package/src/components/masterplate/levelreport.vue +510 -0
- package/src/components/masterplate/listbtntoolbar.vue +257 -0
- package/src/components/masterplate/listdetails.vue +769 -0
- package/src/components/masterplate/operlog.vue +272 -0
- package/src/components/masterplate/options.vue +110 -0
- package/src/components/masterplate/page.vue +102 -0
- package/src/components/masterplate/promptmessage.vue +74 -0
- package/src/components/masterplate/querybar.vue +490 -0
- package/src/components/masterplate/report.vue +357 -0
- package/src/components/masterplate/rowbtntoolbar.vue +126 -0
- package/src/components/masterplate/simpletree.vue +129 -0
- package/src/components/masterplate/simpleviewgrid.vue +144 -0
- package/src/components/mychart/bar/bar.vue +202 -0
- package/src/components/mychart/basechart.vue +190 -0
- package/src/components/mychart/complexmychart/barline.vue +154 -0
- package/src/components/mychart/gauge/gauge.vue +83 -0
- package/src/components/mychart/index.js +9 -0
- package/src/components/mychart/line/line.vue +202 -0
- package/src/components/mychart/liquidfill/liquidfill.vue +109 -0
- package/src/components/mychart/pie/pie.vue +96 -0
- package/src/components/mychart/radar/radar.vue +122 -0
- package/src/components/mychart/scatter/scatter.vue +76 -0
- package/src/components/numberbox/append.js +11 -0
- package/src/components/numberbox/index.js +3 -0
- package/src/components/numberbox/numberbox.vue +303 -0
- package/src/components/numberbox/numberrangebox.vue +423 -0
- package/src/components/picturebox/filebox.vue +365 -0
- package/src/components/picturebox/index.js +3 -0
- package/src/components/picturebox/picturebox.vue +541 -0
- package/src/components/picturebox/uploadbox.vue +164 -0
- package/src/components/poptagbox/index.js +2 -0
- package/src/components/poptagbox/poptagbox.vue +389 -0
- package/src/components/poptextbox/index.js +2 -0
- package/src/components/poptextbox/poptextbox.vue +601 -0
- package/src/components/radiobox/index.js +2 -0
- package/src/components/radiobox/radiogroupbox.vue +76 -0
- package/src/components/richtextbox/editor.vue +150 -0
- package/src/components/richtextbox/index.js +2 -0
- package/src/components/richtextbox/richtextbox.vue +448 -0
- package/src/components/textbox/index.js +2 -0
- package/src/components/textbox/textbox.vue +98 -0
- package/src/components/timebox/index.js +2 -0
- package/src/components/timebox/timebox.vue +76 -0
- package/src/components/toolbar/ebutton.vue +169 -0
- package/src/components/toolbar/index.js +3 -0
- package/src/components/toolbar/toolbar.vue +446 -0
- package/src/components/tree/basetree.vue +725 -0
- package/src/components/tree/index.js +3 -0
- package/src/components/tree/treedata.vue +51 -0
- package/src/components/tree/treedatabase.vue +189 -0
- package/src/components/upload/billimport.vue +233 -0
- package/src/components/upload/index.js +2 -0
- package/src/components/videobox/index.js +2 -0
- package/src/components/videobox/uploadbox.vue +148 -0
- package/src/components/videobox/videobox.vue +503 -0
- package/src/components/wrichtextbox/editor.vue +219 -0
- package/src/components/wrichtextbox/index.js +2 -0
- package/src/components/wrichtextbox/wrichtextbox.vue +63 -0
- package/src/index.js +215 -0
- package/src/locale/format.js +51 -0
- package/src/locale/index.js +63 -0
- package/src/locale/lang/zh-CN.js +123 -0
- package/src/locale/lang/zh-TW.js +114 -0
- package/src/locale/lang/zh-UG.js +115 -0
- package/src/locale/lang.js +15 -0
- package/src/method/case/case.js +1180 -0
- package/src/method/config/queryconfig.js +24 -0
- package/src/method/const/const.js +815 -0
- package/src/method/index.js +8 -0
- package/src/static/excel/exportexcel.js +627 -0
- package/src/static/iview/coustom.js +463 -0
- package/src/store/index.js +19 -0
- package/src/store/modules/app.js +53 -0
- package/src/styles/README.md +3 -0
- package/src/styles/common.less +75 -0
- package/src/styles/components/anchor.less +74 -0
- package/src/styles/components/approval.less +136 -0
- package/src/styles/components/button.less +208 -0
- package/src/styles/components/card.less +51 -0
- package/src/styles/components/content.less +38 -0
- package/src/styles/components/font.less +314 -0
- package/src/styles/components/form.less +72 -0
- package/src/styles/components/iconfont/fonts/iconfont.less +1376 -0
- package/src/styles/components/iconfont/fonts/iconfont.svg +699 -0
- package/src/styles/components/iconfont/fonts/iconfont.ttf +0 -0
- package/src/styles/components/iconfont/fonts/iconfont.woff +0 -0
- package/src/styles/components/iconfont/fonts/iconfont.woff2 +0 -0
- package/src/styles/components/index.less +16 -0
- package/src/styles/components/input.less +290 -0
- package/src/styles/components/modal.less +203 -0
- package/src/styles/components/page.less +340 -0
- package/src/styles/components/select.less +361 -0
- package/src/styles/components/steps.less +367 -0
- package/src/styles/components/table.less +544 -0
- package/src/styles/components/tabs.less +249 -0
- package/src/styles/components/upload.less +83 -0
- package/src/styles/custom.less +67 -0
- package/src/styles/index.less +6 -0
- package/src/styles/pack.less +6 -0
- package/src/utils/EfuMessenger.js +155 -0
- package/src/utils/assist.js +353 -0
- package/src/utils/index.js +1 -0
- package/src/utils/random_str.js +10 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Row type="flex" :gutter="0" justify="start" align="middle">
|
|
3
|
+
<Col span="18">
|
|
4
|
+
<Row v-if="!notpowerFlag" type="flex" :gutter="0" justify="start" align="middle">
|
|
5
|
+
<Col v-if="addDataBtnFlag">
|
|
6
|
+
<Button :custom-icon="mainButtonCustomIcon" :icon="mainButtonIcon" type="primary" class="mainBtn" :disabled="!!addReadOnly" @click="addData" >{{myConfig.mainButtonText}}</Button>
|
|
7
|
+
</Col>
|
|
8
|
+
<Col v-if="addDataBtnFlag">
|
|
9
|
+
<Divider type="vertical" class="dividercommon"/>
|
|
10
|
+
</Col>
|
|
11
|
+
<template v-for="(item,index) in btnItems" :key="'btn_' + index">
|
|
12
|
+
<Col v-if="!moreFlag || index < myConfig.showNum" style="margin-right:10px">
|
|
13
|
+
<Button :icon="item.icon" :custom-icon="item.customIcon" @click="action(item.name)" :disabled="!!item.readOnly">{{item.text}}</Button>
|
|
14
|
+
</Col>
|
|
15
|
+
</template>
|
|
16
|
+
<Col v-if="moreFlag">
|
|
17
|
+
<Dropdown>
|
|
18
|
+
<Button type="info" icon="ios-arrow-down" > </Button>
|
|
19
|
+
<template #list>
|
|
20
|
+
<DropdownMenu>
|
|
21
|
+
<template v-for="(item,index) in btnItems" :key="'btn_' + index">
|
|
22
|
+
<DropdownItem v-if="index > myConfig.showNum" :disabled="item.readOnly">
|
|
23
|
+
<Button :type="item.type" :icon="item.icon" :custom-icon="item.customIcon" :size="item.size" @click="action(item.name)" :disabled="!!item.readOnly">{{item.text}}</Button>
|
|
24
|
+
</DropdownItem>
|
|
25
|
+
</template>
|
|
26
|
+
</DropdownMenu>
|
|
27
|
+
</template>
|
|
28
|
+
</Dropdown>
|
|
29
|
+
</Col>
|
|
30
|
+
</Row>
|
|
31
|
+
<Row v-else type="flex" :gutter="0" justify="start" align="middle">
|
|
32
|
+
<Icon custom="iconfont icon-custom-tishi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold">注意:当前页面您没有操作权限</span>
|
|
33
|
+
</Row>
|
|
34
|
+
</Col>
|
|
35
|
+
<Col span="6">
|
|
36
|
+
<PromptMessages modetype="2" style="height:100%"/>
|
|
37
|
+
</Col>
|
|
38
|
+
</Row>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script>
|
|
42
|
+
import PromptMessages from './promptmessage.vue';
|
|
43
|
+
export default {
|
|
44
|
+
name:'listbtntoolbar',
|
|
45
|
+
components:{
|
|
46
|
+
PromptMessages
|
|
47
|
+
},
|
|
48
|
+
data () {
|
|
49
|
+
return {
|
|
50
|
+
myConfig:{
|
|
51
|
+
showNum:10,
|
|
52
|
+
enablePermissions:true,
|
|
53
|
+
curHelpUrl:'',
|
|
54
|
+
modulecode:'',
|
|
55
|
+
items:[],
|
|
56
|
+
mainButton:'addData',
|
|
57
|
+
mainButtonText:'新增',
|
|
58
|
+
mainButtonIcon:null,
|
|
59
|
+
mainButtonCustomIcon:'iconfont icon-custom-add'
|
|
60
|
+
},
|
|
61
|
+
addDataBtnFlag:true,
|
|
62
|
+
addReadOnly:false,
|
|
63
|
+
showHelpBtn:false,
|
|
64
|
+
showModuleCode:false,
|
|
65
|
+
moreFlag:false,
|
|
66
|
+
btnItems:[],
|
|
67
|
+
ignoreModule:['downTemplate'],
|
|
68
|
+
notpowerFlag:true
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
props:{
|
|
72
|
+
config: {
|
|
73
|
+
type:Object,
|
|
74
|
+
default:null
|
|
75
|
+
},
|
|
76
|
+
moduleMethod:{
|
|
77
|
+
type:Array,
|
|
78
|
+
default: () => {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
created () {
|
|
84
|
+
this.init();
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
init () {
|
|
88
|
+
this.myConfig = Object.assign({},this.myConfig, this.config);
|
|
89
|
+
if (this.myConfig.ignoreModule) {
|
|
90
|
+
let ignoreModule = this.$Method.copy(this.ignoreModule);
|
|
91
|
+
let flag = true;
|
|
92
|
+
this.myConfig.ignoreModule.forEach(el => {
|
|
93
|
+
flag = false;
|
|
94
|
+
this.ignoreModule.some(el2 => {
|
|
95
|
+
if (el2 == el) {
|
|
96
|
+
flag = true;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
if (!flag) {
|
|
101
|
+
ignoreModule.push(el);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (this.myConfig.items && this.myConfig.items.length > 0) {
|
|
106
|
+
this.myConfig.items.forEach(el => {
|
|
107
|
+
if (el.name !== this.myConfig.mainButton) {
|
|
108
|
+
let tmp = this.$Method.copy(el);
|
|
109
|
+
if (tmp.readOnly === undefined) {
|
|
110
|
+
tmp.readOnly = false;
|
|
111
|
+
}
|
|
112
|
+
if (tmp.icon && tmp.icon.startsWith('custom')) {
|
|
113
|
+
tmp.customIcon='iconfont icon-' + tmp.icon;
|
|
114
|
+
tmp.icon = null;
|
|
115
|
+
}
|
|
116
|
+
this.btnItems.push(tmp);
|
|
117
|
+
} else {
|
|
118
|
+
if (el.icon && el.icon.startsWith('custom')) {
|
|
119
|
+
this.mainButtonCustomIcon = 'iconfont icon-' + el.icon;
|
|
120
|
+
this.mainButtonIcon = null;
|
|
121
|
+
} else {
|
|
122
|
+
this.mainButtonIcon = el.icon;
|
|
123
|
+
this.mainButtonCustomIcon = null;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (this.myConfig.curHelpUrl) {
|
|
131
|
+
this.showHelpBtn = true;
|
|
132
|
+
}
|
|
133
|
+
if (this.myConfig.modulecode) {
|
|
134
|
+
this.showModuleCode = true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (this.myConfig.enablePermissions) {
|
|
138
|
+
if (this.moduleMethod && this.moduleMethod.length > 0) {
|
|
139
|
+
let addIndex = this.moduleMethod.findIndex(el => el.name === this.myConfig.mainButton);
|
|
140
|
+
if (addIndex === -1) {
|
|
141
|
+
this.addDataBtnFlag = false;
|
|
142
|
+
} else {
|
|
143
|
+
this.addDataBtnFlag = true;
|
|
144
|
+
}
|
|
145
|
+
let btnItems = [];
|
|
146
|
+
this.moduleMethod.forEach(el =>{
|
|
147
|
+
let tmp = this.btnItems.find(el2 => el.name === el2.name);
|
|
148
|
+
if (tmp) {
|
|
149
|
+
btnItems.push(tmp);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
if (btnItems.length === 0) {
|
|
153
|
+
this.btnItems = [];
|
|
154
|
+
this.notpowerFlag = true;
|
|
155
|
+
} else{
|
|
156
|
+
this.ignoreModule.forEach(el => {
|
|
157
|
+
let tmp = btnItems.find(el2 => el2.name === el)
|
|
158
|
+
if (!tmp) {
|
|
159
|
+
let tmp2 = this.btnItems.find(el3 => el3.name === el);
|
|
160
|
+
if (tmp2) {
|
|
161
|
+
btnItems.push(tmp2);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
let mainIndex = this.ignoreModule.findIndex(el => el === this.myConfig.mainButton);
|
|
166
|
+
if (mainIndex > -1) {
|
|
167
|
+
this.addDataBtnFlag = true;
|
|
168
|
+
}
|
|
169
|
+
this.btnItems = btnItems;
|
|
170
|
+
this.notpowerFlag = false;
|
|
171
|
+
}
|
|
172
|
+
} else {
|
|
173
|
+
this.notpowerFlag = true;
|
|
174
|
+
}
|
|
175
|
+
} else {
|
|
176
|
+
this.notpowerFlag = false;
|
|
177
|
+
}
|
|
178
|
+
if (this.btnItems.length > this.myConfig.showNum){
|
|
179
|
+
this.moreFlag = true;
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
action(name) {
|
|
183
|
+
let obj = {};
|
|
184
|
+
obj.name = name;
|
|
185
|
+
this.$emit('doAction', obj);
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
setAllReadOnly (value) {
|
|
189
|
+
let btn = this.$Method.copy(this.btnItems);
|
|
190
|
+
this.addReadOnly = value;
|
|
191
|
+
btn.forEach(el => {
|
|
192
|
+
this.doCommonPro(el.name,'readOnly', value);
|
|
193
|
+
});
|
|
194
|
+
},
|
|
195
|
+
setReadOnly (obj, value) {
|
|
196
|
+
if (obj) {
|
|
197
|
+
if (obj instanceof Array) {
|
|
198
|
+
obj.forEach(el => {
|
|
199
|
+
if (el === this.myConfig.mainButton) {
|
|
200
|
+
this.addReadOnly = value;
|
|
201
|
+
} else {
|
|
202
|
+
this.doCommonPro(el,'readOnly', value);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
} else {
|
|
206
|
+
if (obj === this.myConfig.mainButton) {
|
|
207
|
+
this.addReadOnly = value;
|
|
208
|
+
} else {
|
|
209
|
+
this.doCommonPro(obj,'readOnly', value);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
doCommonPro (btnName, proName, value) {
|
|
215
|
+
let index = this.btnItems.findIndex(el => el.name === btnName);
|
|
216
|
+
if (index > -1) {
|
|
217
|
+
let pro = {};
|
|
218
|
+
pro[proName] = value;
|
|
219
|
+
let temp = Object.assign({},this.btnItems[index], pro);
|
|
220
|
+
this.btnItems.splice(index,1,temp);
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
addData() {
|
|
224
|
+
this.doBtn(this.myConfig.mainButton);
|
|
225
|
+
},
|
|
226
|
+
doBtn(name) {
|
|
227
|
+
let obj = {};
|
|
228
|
+
obj.name = name;
|
|
229
|
+
this.$emit('doAction', obj);
|
|
230
|
+
},
|
|
231
|
+
changedStatus(value) {
|
|
232
|
+
if (this.myConfig.status && this.myConfig.status[value]) {
|
|
233
|
+
let btn = this.$Method.copy(this.btnItems);
|
|
234
|
+
btn.forEach(el => {
|
|
235
|
+
let tmp = this.myConfig.status[value].find(el2 => el2 === el.name);
|
|
236
|
+
if (tmp) {
|
|
237
|
+
if (el.readOnly !== false) {
|
|
238
|
+
this.doCommonPro(el.name,'readOnly', false);
|
|
239
|
+
}
|
|
240
|
+
} else {
|
|
241
|
+
if (el.readOnly !== true) {
|
|
242
|
+
this.doCommonPro(el.name,'readOnly', true);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
};
|
|
251
|
+
</script>
|
|
252
|
+
<style lang="less" scoped>
|
|
253
|
+
.dividercommon {
|
|
254
|
+
margin:1px 12px 0 12px;
|
|
255
|
+
height:32px;
|
|
256
|
+
}
|
|
257
|
+
</style>
|