eoss 0.1.0-alpha.44 → 0.1.0-alpha.46

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.
Files changed (79) hide show
  1. package/lib/button-group.js +11 -9
  2. package/lib/button.js +5 -3
  3. package/lib/cascader.js +3 -3
  4. package/lib/color-picker.js +6 -3
  5. package/lib/data-table.js +60 -23
  6. package/lib/date-picker.js +5 -3
  7. package/lib/eoss.common.js +748 -332
  8. package/lib/flow.js +7 -9
  9. package/lib/form-editor.js +2 -3
  10. package/lib/index.js +1 -1
  11. package/lib/input-number.js +6 -2
  12. package/lib/input.js +148 -87
  13. package/lib/select.js +237 -15
  14. package/lib/selector.js +16 -4
  15. package/lib/switch.js +6 -3
  16. package/lib/table-column.js +49 -68
  17. package/lib/table.js +111 -90
  18. package/lib/tag.js +2 -0
  19. package/lib/theme-chalk/base.css +1 -1
  20. package/lib/theme-chalk/cascader.css +1 -1
  21. package/lib/theme-chalk/icons.css +1 -1
  22. package/lib/theme-chalk/index.css +1 -1
  23. package/lib/theme-chalk/main.css +1 -1
  24. package/lib/theme-chalk/pagination.css +1 -1
  25. package/lib/theme-chalk/select.css +1 -1
  26. package/lib/theme-chalk/table-column.css +1 -1
  27. package/lib/theme-chalk/table.css +1 -1
  28. package/lib/theme-chalk/tag.css +1 -1
  29. package/lib/time-picker.js +5 -3
  30. package/lib/time-select.js +5 -3
  31. package/lib/tree.js +17 -7
  32. package/lib/upload.js +85 -8
  33. package/package.json +1 -1
  34. package/packages/button/src/button-group.vue +9 -7
  35. package/packages/button/src/button.vue +7 -5
  36. package/packages/cascader/src/cascader.vue +1 -1
  37. package/packages/color-picker/src/color-picker.vue +4 -1
  38. package/packages/data-table/src/data-table.vue +32 -7
  39. package/packages/date-picker/src/picker.vue +3 -1
  40. package/packages/flow/src/selectUser.vue +12 -18
  41. package/packages/form-editor/src/form-editor.vue +0 -1
  42. package/packages/input/src/input.vue +94 -60
  43. package/packages/input-number/src/input-number.vue +5 -1
  44. package/packages/select/src/select.vue +208 -13
  45. package/packages/selector/src/selector.vue +10 -1
  46. package/packages/switch/src/switch.vue +4 -1
  47. package/packages/table/src/store/index.js +10 -1
  48. package/packages/table/src/table-column.js +7 -1
  49. package/packages/table/src/table-header.js +52 -7
  50. package/packages/table/src/util.js +35 -60
  51. package/packages/tag/src/tag.vue +2 -0
  52. package/packages/theme-chalk/src/base.scss +7 -0
  53. package/packages/theme-chalk/src/icons.scss +13 -1
  54. package/packages/theme-chalk/src/table.scss +18 -2
  55. package/packages/theme-chalk/src/tag.scss +303 -242
  56. package/packages/tree/src/tree.vue +13 -3
  57. package/packages/upload/src/index.vue +43 -8
  58. package/src/index.js +1 -1
  59. package/packages/flowOld/index.js +0 -7
  60. package/packages/flowOld/src/component/Circulate.vue +0 -464
  61. package/packages/flowOld/src/component/CustomPreset.vue +0 -343
  62. package/packages/flowOld/src/component/FileList.vue +0 -117
  63. package/packages/flowOld/src/component/FreeCirculation.vue +0 -278
  64. package/packages/flowOld/src/component/Preset.vue +0 -283
  65. package/packages/flowOld/src/component/SendMsg.vue +0 -309
  66. package/packages/flowOld/src/component/TimeLimit.vue +0 -223
  67. package/packages/flowOld/src/component/opinions-file.vue +0 -126
  68. package/packages/flowOld/src/component/opinions.vue +0 -429
  69. package/packages/flowOld/src/component/taskUnionExamine.vue +0 -832
  70. package/packages/flowOld/src/form.vue +0 -134
  71. package/packages/flowOld/src/freeStartFlow.vue +0 -2945
  72. package/packages/flowOld/src/main.vue +0 -4141
  73. package/packages/flowOld/src/processForm.vue +0 -1431
  74. package/packages/flowOld/src/processReject.vue +0 -338
  75. package/packages/flowOld/src/reset.vue +0 -964
  76. package/packages/flowOld/src/selectUser.vue +0 -520
  77. package/packages/flowOld/src/startTaskRead.vue +0 -737
  78. package/packages/flowOld/src/supervise.vue +0 -197
  79. package/packages/flowOld/src/table.vue +0 -71
@@ -1,197 +0,0 @@
1
- <template>
2
- <div class="supervise-flow">
3
- <es-form
4
- ref="nextNode"
5
- :model="nextNode"
6
- class="demo-dynamic"
7
- label-width="150px"
8
- label-position="left"
9
- >
10
- <es-form-item prop="pendTitle" label="标题">
11
- <es-input
12
- v-model="nextNode.pendTitle"
13
- disabled
14
- type="textarea"
15
- autosize
16
- />
17
- </es-form-item>
18
- <es-form-item prop="currentHandleNode" label="当前办理节点">
19
- <es-input v-model="nextNode.currentHandleNode" disabled />
20
- </es-form-item>
21
- <es-form-item prop="pendingUserNames" label="当前办理人">
22
- <es-input
23
- type="textarea"
24
- autosize
25
- v-model="nextNode.pendingUserNames"
26
- disabled
27
- />
28
- </es-form-item>
29
- <es-form-item
30
- v-show="nextNode.notificationType.length > 0"
31
- prop="noticeType"
32
- label="通知方式"
33
- >
34
- <es-checkbox-group v-model="nextNode.noticeType">
35
- <es-checkbox
36
- v-for="(item, index) of nextNode.notificationType"
37
- :key="index"
38
- :label="item.cciValue"
39
- >
40
- {{ item.shortName }}
41
- </es-checkbox>
42
- </es-checkbox-group>
43
- </es-form-item>
44
- <!-- v-show="nextNode.noticeType.length != 0" -->
45
- <es-form-item
46
- v-show="nextNode.noticeType.length != 0"
47
- prop="notifyMessage"
48
- label="通知消息"
49
- >
50
- <es-input
51
- style="
52
- border-color: #ccc;
53
- padding: 5px;
54
- border-radius: 5px;
55
- font-size: 13px;
56
- "
57
- type="textarea"
58
- v-model="nextNode.notifyMessage"
59
- />
60
- </es-form-item>
61
- <es-form-item style="margin-bottom: 0px">
62
- <div style="text-align: right">
63
- <es-button type="primary" size="small" @click="subProcess()">
64
- 确认
65
- </es-button>
66
- </div>
67
- </es-form-item>
68
- </es-form>
69
- </div>
70
- </template>
71
-
72
- <script>
73
- import { toTaskSupervise, toTaskSuperviseSub } from 'eoss/src/config/api';
74
- import { ajax } from 'eoss/src/utils/ajax';
75
- import { getStorage } from 'eoss/src/utils/storage';
76
- import { error, success, warning, loading } from 'eoss/src/utils/util';
77
- import EsButton from 'eoss/packages/button';
78
- import EsCheckbox from 'eoss/packages/checkbox';
79
- import EsCheckboxGroup from 'eoss/packages/checkbox-group';
80
- import EsForm from 'eoss/packages/form';
81
- import EsFormItem from 'eoss/packages/form-item';
82
- import EsInput from 'eoss/packages/input';
83
- export default {
84
- name: 'supervise',
85
- components: {
86
- EsButton,
87
- EsCheckbox,
88
- EsCheckboxGroup,
89
- EsForm,
90
- EsFormItem,
91
- EsInput
92
- },
93
-
94
- props: {
95
- /**
96
- * 业务ID
97
- */
98
- businessId: {
99
- type: String,
100
- default: ''
101
- },
102
- /**
103
- * appId
104
- */
105
- appId: { type: String, default: '' }
106
- },
107
- data() {
108
- return {
109
- nextNode: {
110
- noticeType: [],
111
- notificationType: [],
112
- loading: undefined
113
- },
114
- loading: null
115
- };
116
- },
117
- mounted() {
118
- this.getFlowInfo();
119
- },
120
- methods: {
121
- subProcess() {
122
- if (this.nextNode.noticeType.length == 0) {
123
- warning('请选择通知方式');
124
- return;
125
- }
126
- if (
127
- this.nextNode.noticeType.length != 0 &&
128
- !this.nextNode.notifyMessage
129
- ) {
130
- warning('请填写通知消息内容');
131
- return;
132
- }
133
- let { noticeType, notifyMessage, pendingUserIds } = this.nextNode;
134
- let params = {
135
- url: toTaskSuperviseSub,
136
- params: {
137
- userId: getStorage('userId'),
138
- urgeUserIds: pendingUserIds,
139
- notificationType: noticeType.join(','),
140
- notificationMessage: notifyMessage,
141
- businessId: this.businessId,
142
- appId: this.appId
143
- }
144
- };
145
- this.loading = loading('提交中');
146
- ajax(params).then((res) => {
147
- this.loading.close();
148
- if (res.rCode == 0 || res.status == 'success') {
149
- this.$message({
150
- message: '操作成功',
151
- type: 'success',
152
- onClose: () => {
153
- this.$parent.$emit('success');
154
- }
155
- });
156
- } else {
157
- this.$message({
158
- message: res.message || '系统错误,请联系管理员!',
159
- type: 'error'
160
- });
161
- }
162
- });
163
- },
164
-
165
- getFlowInfo() {
166
- this.loading = loading();
167
- ajax({
168
- url: toTaskSupervise,
169
- params: {
170
- businessId: this.businessId,
171
- appId: this.appId,
172
- userId: getStorage('userId')
173
- }
174
- }).then((res) => {
175
- this.loading.close();
176
- if (res.rCode == 0 || res.status == 'success') {
177
- this.nextNode = { ...this.nextNode, ...res.results };
178
- let arr = [];
179
- this.nextNode.noticeType =
180
- res.results.defaultNotificationType.split(',');
181
- this.nextNode.notificationType.map((x) => {
182
- if (this.nextNode.noticeType.indexOf(x.cciValue) != -1) {
183
- arr.push(x.cciValue);
184
- }
185
- });
186
- this.nextNode.noticeType = arr;
187
- } else {
188
- error(res.msg || res.message);
189
- this.$emit('cancel');
190
- }
191
- });
192
- }
193
- }
194
- };
195
- </script>
196
-
197
- <style></style>
@@ -1,71 +0,0 @@
1
- <template>
2
- <es-table
3
- class="commonOpinion-table"
4
- :data="dataList"
5
- border
6
- stripe
7
- style="width: 100%; margin-top: 10px"
8
- >
9
- <es-table-column
10
- v-for="item of tableHead"
11
- :key="item.id"
12
- align="center"
13
- :prop="item.prop"
14
- :label="item.lable"
15
- :width="item.prop != 'content' && 180"
16
- v-bind="$attrs"
17
- ></es-table-column>
18
- <es-table-column label="操作" width="160">
19
- <template v-if="scope.row.userid" slot-scope="scope">
20
- <es-button type="text" size="small" @click="handleClick(scope.row)"
21
- >编辑</es-button
22
- >
23
- <es-button type="text" size="small" @click="delClick(scope.row)"
24
- >删除</es-button
25
- >
26
- </template>
27
- </es-table-column>
28
- </es-table>
29
- </template>
30
-
31
- <script>
32
- import EsButton from 'eoss/packages/button';
33
- import EsTable from 'eoss/packages/table';
34
- import EsTableColumn from 'eoss/packages/table-column';
35
-
36
- export default {
37
- name: 'Table',
38
- componentName: 'Table',
39
- components: { EsTableColumn, EsButton, EsTable },
40
-
41
- props: {
42
- /**
43
- * 表格数据
44
- */
45
- dataList: {
46
- type: Array,
47
- default: () => []
48
- },
49
- /**
50
- * 表格表头配置
51
- */
52
- tableHead: {
53
- type: Array,
54
- default: () => [
55
- { id: 0, lable: '内容', prop: 'content' },
56
- { id: 1, lable: '用户', prop: 'username' }
57
- ]
58
- }
59
- },
60
- methods: {
61
- handleClick(val) {
62
- this.$emit('upDateClick', val);
63
- this.$emit('up-date-click', val);
64
- },
65
- delClick(val) {
66
- this.$emit('delClick', val);
67
- this.$emit('del-click', val);
68
- }
69
- }
70
- };
71
- </script>