eoss-ui 0.4.80 → 0.4.82
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/lib/button-group.js +11 -11
- package/lib/button.js +11 -11
- package/lib/checkbox-group.js +11 -11
- package/lib/config/api.js +11 -11
- package/lib/data-table-form.js +11 -11
- package/lib/data-table.js +11 -11
- package/lib/date-picker.js +11 -11
- package/lib/dialog.js +11 -11
- package/lib/eoss-ui.common.js +478 -214
- package/lib/flow-group.js +11 -11
- package/lib/flow-list.js +11 -11
- package/lib/flow.js +296 -156
- package/lib/form.js +14 -14
- package/lib/handle-user.js +11 -11
- package/lib/handler.js +11 -11
- package/lib/index.js +1 -1
- package/lib/input-number.js +11 -11
- package/lib/input.js +11 -11
- package/lib/label.js +103 -11
- package/lib/layout.js +46 -15
- package/lib/login.js +11 -11
- package/lib/main.js +14 -13
- package/lib/nav.js +11 -11
- package/lib/notify.js +11 -11
- package/lib/page.js +11 -11
- package/lib/player.js +11 -11
- package/lib/qr-code.js +11 -11
- package/lib/radio-group.js +11 -11
- package/lib/retrial-auth.js +11 -11
- package/lib/select-ganged.js +11 -11
- package/lib/select.js +11 -11
- package/lib/selector-panel.js +11 -11
- package/lib/selector.js +11 -11
- package/lib/sizer.js +11 -11
- package/lib/steps.js +11 -11
- package/lib/switch.js +11 -11
- package/lib/table-form.js +11 -11
- package/lib/tabs.js +11 -11
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +11 -11
- package/lib/tree-group.js +11 -11
- package/lib/tree.js +11 -11
- package/lib/upload.js +11 -11
- package/lib/wujie.js +11 -11
- package/lib/wxlogin.js +11 -11
- package/package.json +1 -1
- package/packages/flow/src/main.vue +113 -50
- package/packages/form/src/main.vue +4 -1
- package/packages/label/src/main.vue +107 -12
- package/packages/layout/src/item.vue +10 -2
- package/packages/layout/src/main.vue +9 -1
- package/packages/main/src/main.vue +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow.scss +7 -0
- package/src/config/api.js +11 -11
- package/src/index.js +1 -1
|
@@ -432,14 +432,15 @@
|
|
|
432
432
|
<div
|
|
433
433
|
class="es-user-defined"
|
|
434
434
|
v-if="
|
|
435
|
-
nodeInfos.length > 0 ||
|
|
436
|
-
|
|
437
|
-
|
|
435
|
+
(nodeInfos.length > 0 ||
|
|
436
|
+
nodeInfo.option.length > 0 ||
|
|
437
|
+
operationList.length > 0) &&
|
|
438
|
+
btnList.length <= 2
|
|
438
439
|
"
|
|
439
440
|
>
|
|
440
441
|
<el-button
|
|
441
442
|
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
442
|
-
v-for="item of btnList"
|
|
443
|
+
v-for="item of btnList.slice(0, 1)"
|
|
443
444
|
:key="item.name"
|
|
444
445
|
:type="item.type"
|
|
445
446
|
:style="btnStyle"
|
|
@@ -447,29 +448,78 @@
|
|
|
447
448
|
>
|
|
448
449
|
{{ item.text }}
|
|
449
450
|
</el-button>
|
|
450
|
-
</div>
|
|
451
|
-
<div v-if="!isFlow" class="es-footer-btn">
|
|
452
|
-
<el-button
|
|
453
|
-
v-if="rejectObj.fun"
|
|
454
|
-
type="danger"
|
|
455
|
-
@click="rejectBtn"
|
|
456
|
-
class="btn"
|
|
457
|
-
>
|
|
458
|
-
驳回
|
|
459
|
-
</el-button>
|
|
460
451
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
:key="item.key"
|
|
469
|
-
@click="goView(item)"
|
|
452
|
+
<div
|
|
453
|
+
v-if="
|
|
454
|
+
btnList.length > 2 ||
|
|
455
|
+
(!isFlow && (rejectObj.fun || pointsReadingObj.fun || moreList))
|
|
456
|
+
"
|
|
457
|
+
placement="top"
|
|
458
|
+
trigger="click"
|
|
470
459
|
>
|
|
471
|
-
|
|
472
|
-
|
|
460
|
+
<!-- <div v-if="!isFlow" class="es-footer-btn">
|
|
461
|
+
<div
|
|
462
|
+
class="es-flow-btn"
|
|
463
|
+
style="color: red"
|
|
464
|
+
v-if="rejectObj.fun"
|
|
465
|
+
@click="rejectBtn"
|
|
466
|
+
>
|
|
467
|
+
驳回
|
|
468
|
+
</div>
|
|
469
|
+
<el-button
|
|
470
|
+
v-if="pointsReadingObj.fun"
|
|
471
|
+
class="btn"
|
|
472
|
+
@click="taskReadBtn"
|
|
473
|
+
>分阅</el-button
|
|
474
|
+
>
|
|
475
|
+
<el-button
|
|
476
|
+
class="btn"
|
|
477
|
+
v-for="item of moreList"
|
|
478
|
+
:key="item.key"
|
|
479
|
+
@click="goView(item)"
|
|
480
|
+
>
|
|
481
|
+
{{ item.value }}
|
|
482
|
+
</el-button>
|
|
483
|
+
</div> -->
|
|
484
|
+
<el-button-group slot="reference" style="margin: 0px 10px">
|
|
485
|
+
<el-button
|
|
486
|
+
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
487
|
+
v-for="item of btnList.slice(1)"
|
|
488
|
+
:key="item.name"
|
|
489
|
+
:type="item.type"
|
|
490
|
+
:style="btnStyle"
|
|
491
|
+
@click.stop="
|
|
492
|
+
item.event === 'sub' ? subProcess() : saveInfo(false, item)
|
|
493
|
+
"
|
|
494
|
+
>
|
|
495
|
+
{{ item.text }}
|
|
496
|
+
</el-button>
|
|
497
|
+
<el-dropdown
|
|
498
|
+
v-if="
|
|
499
|
+
!isFlow &&
|
|
500
|
+
(rejectObj.fun || pointsReadingObj.fun || moreList.length > 0)
|
|
501
|
+
"
|
|
502
|
+
trigger="click"
|
|
503
|
+
placement="top"
|
|
504
|
+
style="border-left:1px solid #d9d9d9"
|
|
505
|
+
>
|
|
506
|
+
<el-button>...</el-button>
|
|
507
|
+
<el-dropdown-menu slot="dropdown">
|
|
508
|
+
<el-dropdown-item v-for="item of moreList" :key="item.key">
|
|
509
|
+
<div class="btn" @click="goView(item)">
|
|
510
|
+
{{ item.value }}
|
|
511
|
+
</div>
|
|
512
|
+
</el-dropdown-item>
|
|
513
|
+
<el-dropdown-item v-if="pointsReadingObj.fun">
|
|
514
|
+
<div class="btn" @click="taskReadBtn">分阅</div>
|
|
515
|
+
</el-dropdown-item>
|
|
516
|
+
<el-dropdown-item v-if="rejectObj.fun">
|
|
517
|
+
<div style="color: red" @click="rejectBtn">驳回</div>
|
|
518
|
+
</el-dropdown-item>
|
|
519
|
+
</el-dropdown-menu>
|
|
520
|
+
</el-dropdown>
|
|
521
|
+
</el-button-group>
|
|
522
|
+
</div>
|
|
473
523
|
</div>
|
|
474
524
|
</div>
|
|
475
525
|
<div v-else-if="!shrink" class="es-fenyue-buttons">
|
|
@@ -815,6 +865,7 @@ export default {
|
|
|
815
865
|
nextFlowNode: '',
|
|
816
866
|
currentOrgName: '', //本单位名称
|
|
817
867
|
otherOrgName: '', //外单位名称
|
|
868
|
+
needRetrialAuth: false, //是否二次鉴权
|
|
818
869
|
nodeInfo: {
|
|
819
870
|
nextNode: '',
|
|
820
871
|
nextUser: '',
|
|
@@ -1922,6 +1973,8 @@ export default {
|
|
|
1922
1973
|
}
|
|
1923
1974
|
|
|
1924
1975
|
if (nodeInfoMap && JSON.stringify(nodeInfoMap) != '{}') {
|
|
1976
|
+
this.needRetrialAuth =
|
|
1977
|
+
!!nodeInfoMap.nodeExtAttr.isCurrentNodeSubmitNeedRetrialAuth;
|
|
1925
1978
|
if (nodeInfoMap.nodeExtAttr.nodeFixedOpinionSelectList) {
|
|
1926
1979
|
let notice = JSON.parse(
|
|
1927
1980
|
nodeInfoMap.nodeExtAttr.nodeFixedOpinionSelectList
|
|
@@ -2202,6 +2255,7 @@ export default {
|
|
|
2202
2255
|
this.value = this.value.replace(RegExp('同意。', 'g'), '');
|
|
2203
2256
|
this.value = val + this.value;
|
|
2204
2257
|
}
|
|
2258
|
+
if(!this.validInfo()) return
|
|
2205
2259
|
if (this.beforeSubmit == undefined) {
|
|
2206
2260
|
this.subFun(this.sendData);
|
|
2207
2261
|
} else {
|
|
@@ -2214,12 +2268,8 @@ export default {
|
|
|
2214
2268
|
}
|
|
2215
2269
|
});
|
|
2216
2270
|
},
|
|
2217
|
-
validInfo() {
|
|
2218
|
-
|
|
2219
|
-
this.$refs['nextNode'].validate(async (valid) => {
|
|
2220
|
-
if (valid) {
|
|
2221
|
-
if (this.isFlow) return (this.handleVisible = true);
|
|
2222
|
-
if (
|
|
2271
|
+
validInfo() {
|
|
2272
|
+
if (
|
|
2223
2273
|
!this.endFlow &&
|
|
2224
2274
|
this.newTypeCode != 'fenyue' &&
|
|
2225
2275
|
!this.shrink &&
|
|
@@ -2235,33 +2285,52 @@ export default {
|
|
|
2235
2285
|
this.nextNode.nextUserId == '' ||
|
|
2236
2286
|
(this.multiple && this.nextNode.nextUserId.length == 0)
|
|
2237
2287
|
) {
|
|
2238
|
-
|
|
2288
|
+
this.$message.warning('请选择下步办理人');
|
|
2289
|
+
return false
|
|
2239
2290
|
}
|
|
2240
2291
|
} else {
|
|
2241
2292
|
if (
|
|
2242
2293
|
this.nextNode.nextOrgId == '' ||
|
|
2243
2294
|
(this.multiple && this.nextNode.nextOrgId.length == 0)
|
|
2244
2295
|
) {
|
|
2245
|
-
|
|
2296
|
+
this.$message.warning('请选择办理对象');
|
|
2297
|
+
return false
|
|
2246
2298
|
}
|
|
2247
2299
|
}
|
|
2248
2300
|
}
|
|
2249
2301
|
|
|
2250
|
-
let nextUserId = [];
|
|
2251
|
-
if (this.multiple) {
|
|
2252
|
-
this.nextNode.nextUserId &&
|
|
2253
|
-
this.nextNode.nextUserId.map((item) => nextUserId.push(item));
|
|
2254
|
-
}
|
|
2255
2302
|
if (
|
|
2256
2303
|
this.nextNode.isAddSign == '1' &&
|
|
2257
2304
|
this.nextNode.addSignUserId.length == 0
|
|
2258
2305
|
)
|
|
2259
|
-
|
|
2306
|
+
{this.$message.warning('请选择加签办理人');
|
|
2307
|
+
return false}
|
|
2260
2308
|
if (
|
|
2261
2309
|
this.nextNode.isRemoveSign == '1' &&
|
|
2262
2310
|
this.nextNode.removeSignUserId.length == 0
|
|
2263
|
-
)
|
|
2264
|
-
|
|
2311
|
+
){
|
|
2312
|
+
this.$message.warning('请选择减签办理人');
|
|
2313
|
+
return false
|
|
2314
|
+
}
|
|
2315
|
+
if (!this.value && this.isOpinionRequired === 1) {
|
|
2316
|
+
this.$message.warning('请选择输入审批意见');
|
|
2317
|
+
return false;
|
|
2318
|
+
}
|
|
2319
|
+
if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
|
|
2320
|
+
this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
|
|
2321
|
+
return false;
|
|
2322
|
+
}
|
|
2323
|
+
return true
|
|
2324
|
+
},
|
|
2325
|
+
sendData() {
|
|
2326
|
+
this.$refs['nextNode'].validate(async (valid) => {
|
|
2327
|
+
if (valid) {
|
|
2328
|
+
if (this.isFlow) return (this.handleVisible = true);
|
|
2329
|
+
let nextUserId = [];
|
|
2330
|
+
if (this.multiple) {
|
|
2331
|
+
this.nextNode.nextUserId &&
|
|
2332
|
+
this.nextNode.nextUserId.map((item) => nextUserId.push(item));
|
|
2333
|
+
}
|
|
2265
2334
|
let addSignUserId = [];
|
|
2266
2335
|
if (this.isCanAddSign && this.nextNode.isAddSign == '1') {
|
|
2267
2336
|
this.nextNode.addSignUserId.map((item) => {
|
|
@@ -2274,14 +2343,6 @@ export default {
|
|
|
2274
2343
|
removeSignUserId.push(item);
|
|
2275
2344
|
});
|
|
2276
2345
|
}
|
|
2277
|
-
if (!this.value && this.isOpinionRequired === 1) {
|
|
2278
|
-
this.$message.warning('请选择输入审批意见');
|
|
2279
|
-
return;
|
|
2280
|
-
}
|
|
2281
|
-
if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
|
|
2282
|
-
this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
|
|
2283
|
-
return;
|
|
2284
|
-
}
|
|
2285
2346
|
let str = '';
|
|
2286
2347
|
if (this.value) {
|
|
2287
2348
|
str = this.value.replace(/\s+/g, '');
|
|
@@ -2350,7 +2411,8 @@ export default {
|
|
|
2350
2411
|
choiceOrgId,
|
|
2351
2412
|
choiceDeptId,
|
|
2352
2413
|
pOrgId,
|
|
2353
|
-
taskExamineInfo
|
|
2414
|
+
taskExamineInfo,
|
|
2415
|
+
needRetrialAuth
|
|
2354
2416
|
} = this;
|
|
2355
2417
|
params.isEndUserTask = isEndUserTask;
|
|
2356
2418
|
params.choiceOrgId = choiceOrgId;
|
|
@@ -2362,6 +2424,7 @@ export default {
|
|
|
2362
2424
|
params.processDefinitionId = taskExamineInfo.processDefinitionId;
|
|
2363
2425
|
params.isSubFlow = taskExamineInfo.isSubFlow;
|
|
2364
2426
|
params.nodeId = taskExamineInfo.nodeId;
|
|
2427
|
+
params.needRetrialAuth = needRetrialAuth;
|
|
2365
2428
|
return util
|
|
2366
2429
|
.ajax({ url: taskHandleHtml, method: 'post', data: params })
|
|
2367
2430
|
.then((res) => {
|
|
@@ -4845,7 +4845,10 @@ export default {
|
|
|
4845
4845
|
.then((res) => {
|
|
4846
4846
|
loading && loading.close();
|
|
4847
4847
|
if (res.rCode === 0) {
|
|
4848
|
-
this
|
|
4848
|
+
this.showMsg &&
|
|
4849
|
+
this.$message.success(
|
|
4850
|
+
res.msg || res.message || '成功!'
|
|
4851
|
+
);
|
|
4849
4852
|
this.$emit('success', res, models);
|
|
4850
4853
|
this.models = {};
|
|
4851
4854
|
if (this.esTabs) {
|
|
@@ -77,18 +77,51 @@ export default {
|
|
|
77
77
|
e.stopPropagation();
|
|
78
78
|
e.preventDefault();
|
|
79
79
|
if (type) {
|
|
80
|
-
if (
|
|
81
|
-
this
|
|
82
|
-
this.events[type]
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
if (this.events && this.events[type]) {
|
|
81
|
+
let params = obj ? [obj, e, this] : [e, this];
|
|
82
|
+
if (typeof this.events[type] === 'function') {
|
|
83
|
+
this.events[type]('click', ...params);
|
|
84
|
+
} else if (
|
|
85
|
+
this.events[type]['click'] &&
|
|
86
|
+
typeof this.events[type]['click'] === 'function'
|
|
87
|
+
) {
|
|
88
|
+
this.events[type]['click'](...params);
|
|
89
|
+
}
|
|
87
90
|
}
|
|
88
91
|
} else {
|
|
89
92
|
this.event && this.event(this, e);
|
|
90
93
|
this.$emit('click', this, e);
|
|
91
94
|
}
|
|
95
|
+
},
|
|
96
|
+
handleMouseenter(e, type, obj) {
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
if (type && this.events && this.events[type]) {
|
|
100
|
+
let params = obj ? [obj, e, this] : [e, this];
|
|
101
|
+
if (typeof this.events[type] === 'function') {
|
|
102
|
+
this.events[type]('mouseenter', ...params);
|
|
103
|
+
} else if (
|
|
104
|
+
this.events[type]['mouseenter'] &&
|
|
105
|
+
typeof this.events[type]['mouseenter'] === 'function'
|
|
106
|
+
) {
|
|
107
|
+
this.events[type]['mouseenter'](...params);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
handleMouseleave(e, type, obj) {
|
|
112
|
+
e.stopPropagation();
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
if (type && this.events && this.events[type]) {
|
|
115
|
+
let params = obj ? [obj, e, this] : [e, this];
|
|
116
|
+
if (typeof this.events[type] === 'function') {
|
|
117
|
+
this.events[type]('mouseleave', ...params);
|
|
118
|
+
} else if (
|
|
119
|
+
this.events[type]['mouseleave'] &&
|
|
120
|
+
typeof this.events[type]['mouseleave'] === 'function'
|
|
121
|
+
) {
|
|
122
|
+
this.events[type]['mouseleave'](...params);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
92
125
|
}
|
|
93
126
|
},
|
|
94
127
|
render(h) {
|
|
@@ -116,6 +149,12 @@ export default {
|
|
|
116
149
|
on: {
|
|
117
150
|
click: (e) => {
|
|
118
151
|
this.handleClick(e, 'icon');
|
|
152
|
+
},
|
|
153
|
+
mouseenter: (e) => {
|
|
154
|
+
this.handleMouseenter(e, 'icon');
|
|
155
|
+
},
|
|
156
|
+
mouseleave: (e) => {
|
|
157
|
+
this.handleMouseleave(e, 'icon');
|
|
119
158
|
}
|
|
120
159
|
}
|
|
121
160
|
})
|
|
@@ -133,6 +172,12 @@ export default {
|
|
|
133
172
|
on: {
|
|
134
173
|
click: (e) => {
|
|
135
174
|
this.handleClick(e, 'icon');
|
|
175
|
+
},
|
|
176
|
+
mouseenter: (e) => {
|
|
177
|
+
this.handleMouseenter(e, 'icon');
|
|
178
|
+
},
|
|
179
|
+
mouseleave: (e) => {
|
|
180
|
+
this.handleMouseleave(e, 'icon');
|
|
136
181
|
}
|
|
137
182
|
}
|
|
138
183
|
},
|
|
@@ -140,16 +185,26 @@ export default {
|
|
|
140
185
|
)
|
|
141
186
|
);
|
|
142
187
|
} else {
|
|
188
|
+
let icon =
|
|
189
|
+
this.icon.indexOf('es-') > -1
|
|
190
|
+
? 'es-icon-' + this.icon.replace('es-', '')
|
|
191
|
+
: 'el-icon-' + this.icon.replace('el-', '');
|
|
143
192
|
doms.push(
|
|
144
|
-
h('
|
|
193
|
+
h('i', {
|
|
145
194
|
class: [
|
|
195
|
+
icon,
|
|
146
196
|
'es-label-icon',
|
|
147
197
|
this.events && this.events['icon'] ? 'es-pointer' : ''
|
|
148
198
|
],
|
|
149
|
-
props: { name: this.icon },
|
|
150
199
|
on: {
|
|
151
200
|
click: (e) => {
|
|
152
201
|
this.handleClick(e, 'icon');
|
|
202
|
+
},
|
|
203
|
+
mouseenter: (e) => {
|
|
204
|
+
this.handleMouseenter(e, 'icon');
|
|
205
|
+
},
|
|
206
|
+
mouseleave: (e) => {
|
|
207
|
+
this.handleMouseleave(e, 'icon');
|
|
153
208
|
}
|
|
154
209
|
}
|
|
155
210
|
})
|
|
@@ -169,6 +224,12 @@ export default {
|
|
|
169
224
|
on: {
|
|
170
225
|
click: (e) => {
|
|
171
226
|
this.handleClick(e, this.image ? 'image' : 'img');
|
|
227
|
+
},
|
|
228
|
+
mouseenter: (e) => {
|
|
229
|
+
this.handleMouseenter(e, this.image ? 'image' : 'img');
|
|
230
|
+
},
|
|
231
|
+
mouseleave: (e) => {
|
|
232
|
+
this.handleMouseleave(e, this.image ? 'image' : 'img');
|
|
172
233
|
}
|
|
173
234
|
}
|
|
174
235
|
})
|
|
@@ -227,6 +288,12 @@ export default {
|
|
|
227
288
|
on: {
|
|
228
289
|
click: (e) => {
|
|
229
290
|
this.handleClick(e, 'icon');
|
|
291
|
+
},
|
|
292
|
+
mouseenter: (e) => {
|
|
293
|
+
this.handleMouseenter(e, 'icon');
|
|
294
|
+
},
|
|
295
|
+
mouseleave: (e) => {
|
|
296
|
+
this.handleMouseleave(e, 'icon');
|
|
230
297
|
}
|
|
231
298
|
}
|
|
232
299
|
})
|
|
@@ -244,6 +311,12 @@ export default {
|
|
|
244
311
|
on: {
|
|
245
312
|
click: (e) => {
|
|
246
313
|
this.handleClick(e, 'icon');
|
|
314
|
+
},
|
|
315
|
+
mouseenter: (e) => {
|
|
316
|
+
this.handleMouseenter(e, 'icon');
|
|
317
|
+
},
|
|
318
|
+
mouseleave: (e) => {
|
|
319
|
+
this.handleMouseleave(e, 'icon');
|
|
247
320
|
}
|
|
248
321
|
}
|
|
249
322
|
},
|
|
@@ -251,16 +324,26 @@ export default {
|
|
|
251
324
|
)
|
|
252
325
|
);
|
|
253
326
|
} else {
|
|
327
|
+
let icon =
|
|
328
|
+
this.contents[i].indexOf('es-') > -1
|
|
329
|
+
? 'es-icon-' + this.contents[i].replace('es-', '')
|
|
330
|
+
: 'el-icon-' + this.contents[i].replace('el-', '');
|
|
254
331
|
doms.push(
|
|
255
|
-
h('
|
|
332
|
+
h('i', {
|
|
256
333
|
class: [
|
|
334
|
+
icon,
|
|
257
335
|
'es-label-icon',
|
|
258
336
|
this.events && this.events['icon'] ? 'es-pointer' : ''
|
|
259
337
|
],
|
|
260
|
-
props: { name: this.contents[i] },
|
|
261
338
|
on: {
|
|
262
339
|
click: (e) => {
|
|
263
340
|
this.handleClick(e, 'icon');
|
|
341
|
+
},
|
|
342
|
+
mouseenter: (e) => {
|
|
343
|
+
this.handleMouseenter(e, 'icon');
|
|
344
|
+
},
|
|
345
|
+
mouseleave: (e) => {
|
|
346
|
+
this.handleMouseleave(e, 'icon');
|
|
264
347
|
}
|
|
265
348
|
}
|
|
266
349
|
})
|
|
@@ -278,6 +361,12 @@ export default {
|
|
|
278
361
|
on: {
|
|
279
362
|
click: (e) => {
|
|
280
363
|
this.handleClick(e, 'img');
|
|
364
|
+
},
|
|
365
|
+
mouseenter: (e) => {
|
|
366
|
+
this.handleMouseenter(e, 'img');
|
|
367
|
+
},
|
|
368
|
+
mouseleave: (e) => {
|
|
369
|
+
this.handleMouseleave(e, 'img');
|
|
281
370
|
}
|
|
282
371
|
}
|
|
283
372
|
})
|
|
@@ -293,7 +382,13 @@ export default {
|
|
|
293
382
|
attrs: { src: this.contents[i] },
|
|
294
383
|
on: {
|
|
295
384
|
click: (e) => {
|
|
296
|
-
this.handleClick(e, '
|
|
385
|
+
this.handleClick(e, 'image');
|
|
386
|
+
},
|
|
387
|
+
mouseenter: (e) => {
|
|
388
|
+
this.handleMouseenter(e, 'image');
|
|
389
|
+
},
|
|
390
|
+
mouseleave: (e) => {
|
|
391
|
+
this.handleMouseleave(e, 'image');
|
|
297
392
|
}
|
|
298
393
|
}
|
|
299
394
|
})
|
|
@@ -103,14 +103,22 @@ export default {
|
|
|
103
103
|
});
|
|
104
104
|
this.interaction.resizable({
|
|
105
105
|
modifiers: [
|
|
106
|
+
// keep the edges inside the parent
|
|
107
|
+
interact.modifiers.restrictEdges({
|
|
108
|
+
outer: 'parent'
|
|
109
|
+
}),
|
|
110
|
+
|
|
111
|
+
// minimum size
|
|
106
112
|
interact.modifiers.restrictSize({
|
|
107
|
-
min: { width: 100, height: 100 }
|
|
108
|
-
max: { width: this.$parent.$el.offsetWidth }
|
|
113
|
+
min: { width: 100, height: 100 }
|
|
109
114
|
})
|
|
110
115
|
],
|
|
116
|
+
|
|
117
|
+
//inertia: true,
|
|
111
118
|
edges: { top: true, left: true, bottom: true, right: true },
|
|
112
119
|
listeners: {
|
|
113
120
|
move: function (event) {
|
|
121
|
+
console.log(1212);
|
|
114
122
|
let { x, y } = event.target.dataset;
|
|
115
123
|
|
|
116
124
|
x = (parseFloat(x) || 0) + event.deltaRect.left;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
<div class="es-layout">
|
|
3
3
|
<layout-item></layout-item>
|
|
4
4
|
<layout-item top="100px"></layout-item>
|
|
5
|
+
<layout-item
|
|
6
|
+
v-for="(item, index) in contents"
|
|
7
|
+
:key="item.id || index"
|
|
8
|
+
v-bind="{ ...item, disabled: disabled }"
|
|
9
|
+
></layout-item>
|
|
5
10
|
</div>
|
|
6
11
|
</template>
|
|
7
12
|
<script>
|
|
@@ -9,7 +14,10 @@ import layoutItem from './item.vue';
|
|
|
9
14
|
export default {
|
|
10
15
|
name: 'EsLayout',
|
|
11
16
|
components: { layoutItem },
|
|
12
|
-
props: {
|
|
17
|
+
props: {
|
|
18
|
+
contents: Array,
|
|
19
|
+
disabled: Boolean
|
|
20
|
+
},
|
|
13
21
|
computed: {},
|
|
14
22
|
watch: {},
|
|
15
23
|
data() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.commonOpinion-set,.es-flow-index{-webkit-box-orient:vertical;-webkit-box-direction:normal}.es-common-opinions,.es-fenyue-buttons,.es-flow-buttons,.es-flow-title,.es-opinion{padding:0 12px}.es-user-defined{display:-webkit-box;display:-ms-flexbox;display:flex}.es-user-defined .el-button--primary{-webkit-box-flex:1;-ms-flex:1;flex:1}.no-checked .el-checkbox__input{display:none!important}.es-flow-index{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-bottom:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .el-checkbox-group{display:contents}.es-flow-index .es-eidt-title{font-size:13px;color:#333;line-height:20px}.es-flow-index .es-flow-top{height:350px}.es-flow-index .es-flow-top .es-flow-title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:40px}.es-flow-index .es-flow-top .es-flow-title .es-icon{margin:0 4px}.es-flow-index .es-flow-top .es-opinion{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .es-flow-top .es-opinion .es-opinion-file{cursor:pointer;position:relative}.es-flow-index .es-flow-top .es-opinion .es-opinion-file .es-file-num{color:red}.es-flow-index .es-button-agree{width:calc(43% - 15px)}.es-flow-index .es-button-agree-save{margin-top:10px}.commonOpinion-set{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.commonOpinion-set .el-table__body-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-flow-index-shrink{width:24px}.es-flow-index-shrink img{cursor:pointer;width:24px;height:24px}.es-flow-form .el-checkbox-group{display:contents}.es-flow-index .el-input-group--prepend>.el-input__inner,.es-flow-index .select-process>.el-input__inner{display:none!important}.es-flow-form .el-textarea:first-child,.es-flow-index .el-textarea{width:100%;margin-bottom:10px!important}.es-flow-form .es-opinions .el-select,.es-flow-index .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-select .el-input{width:100%;height:40px}.es-flow-index .process .el-select{width:calc(100% + 40px)!important}.es-flow-index .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-index .select-process .el-input-group__append{height:40px}.es-flow-index button.el-button.sub.el-button--primary.el-button--medium{width:calc(100% - 85px)}.es-flow-index .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-index .demo-dynamic .el-select{width:100%!important}.es-flow-index .demo-dynamic .select-process .el-select,.es-flow-index .demo-dynamic .selectUser,.es-flow-index.task-union-examine .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-input.el-input-group.el-input-group--append.el-input-group--prepend{margin:0!important}.es-flow-index .demo-dynamic,.es-flow-index .es-footer-btn{margin-top:10px}.es-flow-index .es-footer-btn .el-button+.el-button{margin:10px 10px 0 0}.es-flow-index .el-input.is-disabled .el-input__inner{color:#606266}.es-flow-index .btn{margin-right:10px}.es-flow-index .es-info{padding:0 8px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden}.es-flow-index .es-info::-webkit-scrollbar{width:5px}.es-flow-index .news{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;padding:10px 0}.es-flow-index .news .sj,.show{width:10px;height:10px;border-right:1px solid #000;border-bottom:1px solid #000;margin-right:10px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);-webkit-transition:.5s;transition:.5s}.es-flow-index .news .show{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.es-flow-index .el-checkbox{margin:0 10px 10px 0}.es-flow-index .info::-webkit-scrollbar-track{-webkit-box-shadow:inset006pxrgba(0,0,0,.3);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.1);-webkit-box-shadow:inset006pxrgba(0,0,0,.5)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{right:5px!important}.es-flow-form .input-with-select{width:100%;margin-top:0}.es-flow-form .el-select{width:100%}.es-flow-form .es-opinions .el-select{width:calc(100% + 40px)!important}.select-users .el-input-group__append .el-button span,.select-users .no-icon .el-input-group__append{display:none}.select-users .el-input-group__append{background-color:#1890ff}.select-users .el-input-group__append .el-button i{font-size:18px;color:#fff}.es-flow-form .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-form .el-input-group--prepend>.el-input__inner{display:none!important}.es-flow-form button.el-button.sub.el-button--danger.el-button--medium{width:calc(100% - 85px)}.es-flow-form .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-form .el-form-item__label{font-weight:700}.es-flow-form .el-input.is-disabled .el-input__inner{color:#000}.select-user{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.select-user .left{width:30%}.select-user .right{padding:3px;width:69%}.select-user .el-checkbox{width:170px;margin-top:11px;margin-bottom:11px}.select-user .all{margin:0!important}
|
|
1
|
+
@charset "UTF-8";.commonOpinion-set,.es-flow-index{-webkit-box-orient:vertical;-webkit-box-direction:normal}.es-common-opinions,.es-fenyue-buttons,.es-flow-buttons,.es-flow-title,.es-opinion{padding:0 12px}.es-user-defined{display:-webkit-box;display:-ms-flexbox;display:flex}.es-user-defined .el-button--primary{-webkit-box-flex:1;-ms-flex:1;flex:1}.no-checked .el-checkbox__input{display:none!important}.es-flow-index{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-bottom:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .el-checkbox-group{display:contents}.es-flow-index .es-eidt-title{font-size:13px;color:#333;line-height:20px}.es-flow-index .es-flow-top{height:350px}.es-flow-index .es-flow-top .es-flow-title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:40px}.es-flow-index .es-flow-top .es-flow-title .es-icon{margin:0 4px}.es-flow-index .es-flow-top .es-opinion{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .es-flow-top .es-opinion .es-opinion-file{cursor:pointer;position:relative}.es-flow-index .es-flow-top .es-opinion .es-opinion-file .es-file-num{color:red}.es-flow-index .es-button-agree{width:calc(43% - 15px)}.es-flow-index .es-button-agree-save{margin-top:10px}.commonOpinion-set{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.commonOpinion-set .el-table__body-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-flow-index-shrink{width:24px}.es-flow-index-shrink img{cursor:pointer;width:24px;height:24px}.es-flow-btn:hover{background-color:#F5F5F5;color:#1890ff}.es-flow-btn:hover ::v-deep .el-popover{padding:12px 0!important}.es-flow-form .el-checkbox-group{display:contents}.es-flow-index .el-input-group--prepend>.el-input__inner,.es-flow-index .select-process>.el-input__inner{display:none!important}.es-flow-form .el-textarea:first-child,.es-flow-index .el-textarea{width:100%;margin-bottom:10px!important}.es-flow-form .es-opinions .el-select,.es-flow-index .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-select .el-input{width:100%;height:40px}.es-flow-index .process .el-select{width:calc(100% + 40px)!important}.es-flow-index .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-index .select-process .el-input-group__append{height:40px}.es-flow-index button.el-button.sub.el-button--primary.el-button--medium{width:calc(100% - 85px)}.es-flow-index .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-index .demo-dynamic .el-select{width:100%!important}.es-flow-index .demo-dynamic .select-process .el-select,.es-flow-index .demo-dynamic .selectUser,.es-flow-index.task-union-examine .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-input.el-input-group.el-input-group--append.el-input-group--prepend{margin:0!important}.es-flow-index .demo-dynamic,.es-flow-index .es-footer-btn{margin-top:10px}.es-flow-index .es-footer-btn .el-button+.el-button{margin:10px 10px 0 0}.es-flow-index .el-input.is-disabled .el-input__inner{color:#606266}.es-flow-index .btn{margin-right:10px}.es-flow-index .es-info{padding:0 8px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden}.es-flow-index .es-info::-webkit-scrollbar{width:5px}.es-flow-index .news{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;padding:10px 0}.es-flow-index .news .sj,.show{width:10px;height:10px;border-right:1px solid #000;border-bottom:1px solid #000;margin-right:10px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);-webkit-transition:.5s;transition:.5s}.es-flow-index .news .show{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.es-flow-index .el-checkbox{margin:0 10px 10px 0}.es-flow-index .info::-webkit-scrollbar-track{-webkit-box-shadow:inset006pxrgba(0,0,0,.3);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.1);-webkit-box-shadow:inset006pxrgba(0,0,0,.5)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{right:5px!important}.es-flow-form .input-with-select{width:100%;margin-top:0}.es-flow-form .el-select{width:100%}.es-flow-form .es-opinions .el-select{width:calc(100% + 40px)!important}.select-users .el-input-group__append .el-button span,.select-users .no-icon .el-input-group__append{display:none}.select-users .el-input-group__append{background-color:#1890ff}.select-users .el-input-group__append .el-button i{font-size:18px;color:#fff}.es-flow-form .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-form .el-input-group--prepend>.el-input__inner{display:none!important}.es-flow-form button.el-button.sub.el-button--danger.el-button--medium{width:calc(100% - 85px)}.es-flow-form .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-form .el-form-item__label{font-weight:700}.es-flow-form .el-input.is-disabled .el-input__inner{color:#000}.select-user{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.select-user .left{width:30%}.select-user .right{padding:3px;width:69%}.select-user .el-checkbox{width:170px;margin-top:11px;margin-bottom:11px}.select-user .all{margin:0!important}
|