eoss-ui 0.4.68 → 0.4.69
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/data-table.js +7 -7
- package/lib/eoss-ui.common.js +1187 -1056
- package/lib/flow-group.js +1004 -895
- package/lib/flow-list.js +112 -110
- package/lib/index.js +1 -1
- package/lib/main.js +7 -8
- package/lib/tabs-panel.js +24 -6
- package/lib/tabs.js +5 -2
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +3 -3
- package/packages/flow-group/src/main.vue +261 -248
- package/packages/flow-list/src/main.vue +22 -16
- package/packages/main/src/message.vue +0 -1
- package/packages/tabs/src/main.vue +3 -1
- package/packages/tabs-panel/src/main.vue +15 -4
- package/src/index.js +1 -1
|
@@ -13,20 +13,14 @@
|
|
|
13
13
|
>
|
|
14
14
|
<div class="es-flow-list-box">
|
|
15
15
|
<es-data-table
|
|
16
|
+
v-if="show"
|
|
16
17
|
:class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
|
|
18
|
+
:display="display"
|
|
17
19
|
number
|
|
18
20
|
@cell-click="handleCellClick"
|
|
19
21
|
full
|
|
20
22
|
v-bind="item"
|
|
21
|
-
:data="
|
|
22
|
-
item.type === 'preset'
|
|
23
|
-
? presetData
|
|
24
|
-
: item.type === 'sign'
|
|
25
|
-
? signData
|
|
26
|
-
: item.type === 'splitReading'
|
|
27
|
-
? splitReadingData
|
|
28
|
-
: flowData
|
|
29
|
-
"
|
|
23
|
+
:data="returnData(item.type)"
|
|
30
24
|
@btn-click="handleBtnClick"
|
|
31
25
|
></es-data-table>
|
|
32
26
|
</div>
|
|
@@ -56,6 +50,7 @@
|
|
|
56
50
|
>
|
|
57
51
|
<div style="height: 400px" v-loading="pressLoading">
|
|
58
52
|
<es-data-table
|
|
53
|
+
v-if="show"
|
|
59
54
|
:data="pressTableList"
|
|
60
55
|
:thead="pressThead"
|
|
61
56
|
@page-size-change="handleSizeChange"
|
|
@@ -85,7 +80,6 @@
|
|
|
85
80
|
>
|
|
86
81
|
</es-form>
|
|
87
82
|
</es-dialog>
|
|
88
|
-
|
|
89
83
|
</div>
|
|
90
84
|
</template>
|
|
91
85
|
|
|
@@ -123,7 +117,8 @@ export default {
|
|
|
123
117
|
default() {
|
|
124
118
|
return ['flow', 'splitReading', 'preset'];
|
|
125
119
|
}
|
|
126
|
-
}
|
|
120
|
+
},
|
|
121
|
+
display: Boolean
|
|
127
122
|
},
|
|
128
123
|
inheritAttrs: false,
|
|
129
124
|
data() {
|
|
@@ -607,7 +602,7 @@ export default {
|
|
|
607
602
|
};
|
|
608
603
|
},
|
|
609
604
|
content() {
|
|
610
|
-
|
|
605
|
+
let contents = this.contents.map((item) => {
|
|
611
606
|
if (typeof item === 'string') {
|
|
612
607
|
return {
|
|
613
608
|
type: item,
|
|
@@ -627,6 +622,7 @@ export default {
|
|
|
627
622
|
return item;
|
|
628
623
|
}
|
|
629
624
|
});
|
|
625
|
+
return contents;
|
|
630
626
|
},
|
|
631
627
|
newToolbar() {
|
|
632
628
|
if (this.toolbar && this.toolbar.length > 0) {
|
|
@@ -746,12 +742,22 @@ export default {
|
|
|
746
742
|
this.getFlowList();
|
|
747
743
|
this.getSysInfo('preset_type');
|
|
748
744
|
this.getSysInfo('is_edit');
|
|
749
|
-
this
|
|
750
|
-
this.getListInfo();
|
|
751
|
-
});
|
|
745
|
+
this.getListInfo();
|
|
752
746
|
},
|
|
753
747
|
|
|
754
748
|
methods: {
|
|
749
|
+
returnData(type) {
|
|
750
|
+
switch (type) {
|
|
751
|
+
case 'preset':
|
|
752
|
+
return this.presetData;
|
|
753
|
+
case 'sign':
|
|
754
|
+
return this.signData;
|
|
755
|
+
case 'splitReading':
|
|
756
|
+
return this.splitReadingData;
|
|
757
|
+
default:
|
|
758
|
+
return this.flowData;
|
|
759
|
+
}
|
|
760
|
+
},
|
|
755
761
|
handleCellClick(row, column) {
|
|
756
762
|
if (column.property == 'hasAdjunct' && row.hasAdjunct) {
|
|
757
763
|
this.showFile(row.wfpendingid);
|
|
@@ -954,10 +960,10 @@ export default {
|
|
|
954
960
|
this.flowData = wfHistoryList;
|
|
955
961
|
this.splitReadingData = fyHistoryList;
|
|
956
962
|
this.modify = modify;
|
|
963
|
+
this.show = true;
|
|
957
964
|
} else {
|
|
958
965
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
959
966
|
}
|
|
960
|
-
this.show = true;
|
|
961
967
|
})
|
|
962
968
|
.catch((err) => {
|
|
963
969
|
this.loading.close();
|
|
@@ -37,7 +37,9 @@
|
|
|
37
37
|
</span>
|
|
38
38
|
</template>
|
|
39
39
|
<es-tabs-panel v-bind="items" :show="activeName === String(indexs)">
|
|
40
|
-
<template
|
|
40
|
+
<template
|
|
41
|
+
slot-scope="{ contents, average, data, title, show, isShow }"
|
|
42
|
+
>
|
|
41
43
|
<template v-if="Array.isArray(contents)">
|
|
42
44
|
<template v-for="(item, index) in contents">
|
|
43
45
|
<div class="es-tab-pane-list" :key="index" v-if="average">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="es-tabs-panel">
|
|
3
|
-
<slot v-bind="$attrs"></slot>
|
|
3
|
+
<slot v-bind="$attrs" :show="show" :isShow="isShow"></slot>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
@@ -8,10 +8,21 @@
|
|
|
8
8
|
export default {
|
|
9
9
|
name: 'EsTabsPanel',
|
|
10
10
|
inheritAttrs: false,
|
|
11
|
-
props: {
|
|
12
|
-
|
|
11
|
+
props: {
|
|
12
|
+
show: Boolean
|
|
13
|
+
},
|
|
14
|
+
watch: {
|
|
15
|
+
show: {
|
|
16
|
+
immediate: true,
|
|
17
|
+
handler(val) {
|
|
18
|
+
val && (this.isShow = true);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
13
22
|
data() {
|
|
14
|
-
return {
|
|
23
|
+
return {
|
|
24
|
+
isShow: false
|
|
25
|
+
};
|
|
15
26
|
},
|
|
16
27
|
mounted() {}
|
|
17
28
|
};
|