eoss-ui 0.7.95 → 0.7.97

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 (117) hide show
  1. package/lib/button-group.js +1 -1
  2. package/lib/button.js +1 -1
  3. package/lib/calogin.js +1 -1
  4. package/lib/cascader.js +1 -1
  5. package/lib/checkbox-group.js +1 -1
  6. package/lib/data-table-form.js +9 -9
  7. package/lib/data-table.js +9 -8
  8. package/lib/date-picker.js +1 -1
  9. package/lib/dialog.js +1 -1
  10. package/lib/eoss-ui.common.js +38 -36
  11. package/lib/flow-group.js +1 -1
  12. package/lib/flow-list.js +1 -1
  13. package/lib/flow.js +14 -13
  14. package/lib/form.js +1 -1
  15. package/lib/handle-user.js +1 -1
  16. package/lib/handler.js +1 -1
  17. package/lib/icon.js +1 -1
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +1 -1
  20. package/lib/input.js +1 -1
  21. package/lib/login.js +1 -1
  22. package/lib/main.js +1 -1
  23. package/lib/nav.js +1 -1
  24. package/lib/page.js +1 -1
  25. package/lib/pagination.js +1 -1
  26. package/lib/player.js +1 -1
  27. package/lib/qr-code.js +1 -1
  28. package/lib/radio-group.js +1 -1
  29. package/lib/retrial-auth.js +1 -1
  30. package/lib/select-ganged.js +1 -1
  31. package/lib/select.js +2 -2
  32. package/lib/selector-panel.js +1 -1
  33. package/lib/selector.js +1 -1
  34. package/lib/sizer.js +1 -1
  35. package/lib/steps.js +1 -1
  36. package/lib/switch.js +1 -1
  37. package/lib/table-form.js +1 -1
  38. package/lib/tabs.js +1 -1
  39. package/lib/tips.js +1 -1
  40. package/lib/tree-group.js +1 -1
  41. package/lib/tree.js +1 -1
  42. package/lib/upload.js +1 -1
  43. package/lib/utils/util.js +1 -1
  44. package/lib/wujie.js +1 -1
  45. package/lib/wxlogin.js +1 -1
  46. package/package.json +1 -1
  47. package/packages/cascader/src/main.vue +1 -1
  48. package/packages/data-table/src/column.vue +1 -0
  49. package/packages/data-table-form/src/tbody.vue +1 -1
  50. package/packages/flow/src/component/FreeCirculation.vue +245 -244
  51. package/packages/flow/src/main.vue +1 -1
  52. package/packages/select/src/main.vue +1 -1
  53. package/packages/theme-chalk/gulpfile.js +25 -0
  54. package/src/index.js +1 -1
  55. package/src/utils/util.js +18 -19
  56. package/packages/theme-chalk/lib/base.css +0 -1
  57. package/packages/theme-chalk/lib/button-group.css +0 -1
  58. package/packages/theme-chalk/lib/button.css +0 -1
  59. package/packages/theme-chalk/lib/calendar.css +0 -1
  60. package/packages/theme-chalk/lib/calogin.css +0 -0
  61. package/packages/theme-chalk/lib/card.css +0 -1
  62. package/packages/theme-chalk/lib/cascader.css +0 -0
  63. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  64. package/packages/theme-chalk/lib/clients.css +0 -1
  65. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  66. package/packages/theme-chalk/lib/data-table.css +0 -1
  67. package/packages/theme-chalk/lib/date-picker.css +0 -1
  68. package/packages/theme-chalk/lib/dialog.css +0 -1
  69. package/packages/theme-chalk/lib/enable-drag.css +0 -1
  70. package/packages/theme-chalk/lib/enterprise.css +0 -1
  71. package/packages/theme-chalk/lib/error-page.css +0 -1
  72. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  73. package/packages/theme-chalk/lib/flow-group.css +0 -1
  74. package/packages/theme-chalk/lib/flow-list.css +0 -1
  75. package/packages/theme-chalk/lib/flow.css +0 -1
  76. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  77. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  78. package/packages/theme-chalk/lib/form.css +0 -1
  79. package/packages/theme-chalk/lib/handle-user.css +0 -1
  80. package/packages/theme-chalk/lib/handler.css +0 -1
  81. package/packages/theme-chalk/lib/icon.css +0 -1
  82. package/packages/theme-chalk/lib/icons.css +0 -1
  83. package/packages/theme-chalk/lib/index.css +0 -1
  84. package/packages/theme-chalk/lib/input-number.css +0 -0
  85. package/packages/theme-chalk/lib/input.css +0 -1
  86. package/packages/theme-chalk/lib/label.css +0 -1
  87. package/packages/theme-chalk/lib/layout.css +0 -1
  88. package/packages/theme-chalk/lib/login.css +0 -1
  89. package/packages/theme-chalk/lib/main.css +0 -1
  90. package/packages/theme-chalk/lib/menu.css +0 -1
  91. package/packages/theme-chalk/lib/nav.css +0 -1
  92. package/packages/theme-chalk/lib/notify.css +0 -0
  93. package/packages/theme-chalk/lib/page.css +0 -1
  94. package/packages/theme-chalk/lib/pagination.css +0 -1
  95. package/packages/theme-chalk/lib/player.css +0 -1
  96. package/packages/theme-chalk/lib/qr-code.css +0 -1
  97. package/packages/theme-chalk/lib/radio-group.css +0 -1
  98. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  99. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  100. package/packages/theme-chalk/lib/select.css +0 -1
  101. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  102. package/packages/theme-chalk/lib/selector.css +0 -1
  103. package/packages/theme-chalk/lib/simplicity-top.css +0 -1
  104. package/packages/theme-chalk/lib/simplicity.css +0 -1
  105. package/packages/theme-chalk/lib/sizer.css +0 -1
  106. package/packages/theme-chalk/lib/steps.css +0 -1
  107. package/packages/theme-chalk/lib/switch.css +0 -1
  108. package/packages/theme-chalk/lib/table-form.css +0 -0
  109. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  110. package/packages/theme-chalk/lib/tabs.css +0 -1
  111. package/packages/theme-chalk/lib/tips.css +0 -1
  112. package/packages/theme-chalk/lib/toolbar.css +0 -1
  113. package/packages/theme-chalk/lib/tree-group.css +0 -1
  114. package/packages/theme-chalk/lib/tree.css +0 -1
  115. package/packages/theme-chalk/lib/upload.css +0 -1
  116. package/packages/theme-chalk/lib/wujie.css +0 -0
  117. package/packages/theme-chalk/lib/wxlogin.css +0 -1
@@ -1,244 +1,245 @@
1
- <template>
2
- <div>
3
- <el-form
4
- ref="nextNode"
5
- :model="nextNode"
6
- class="demo-dynamic"
7
- label-width="120px"
8
- :label-position="formLabelPosition"
9
- >
10
- <el-form-item prop="nextCurrentOrgObj" label="本单位">
11
- <SelectUser
12
- :nextUser="nextCurrentOrgObjSelect"
13
- multiple
14
- mix
15
- :showTooltip="showTooltip"
16
- :disableds="currentOrgDisabledObjId"
17
- @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
18
- :types="currentOrgSelectorTabs"
19
- :params="currentOrgSelectorParams"
20
- />
21
- </el-form-item>
22
- <el-form-item v-if="showOther" prop="nextOtherOrgObj" label="外单位">
23
- <SelectUser
24
- :nextUser="nextOtherOrgObjSelect"
25
- multiple
26
- mix
27
- :showTooltip="showTooltip"
28
- :disableds="otherOrgDisabledObjId"
29
- :where="{ filid: 'all',roleid :selectorParams.roleid }"
30
-
31
- @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
32
- :types="foreignOrgSelectorTabs"
33
- :params="foreignOrgSelectorParams"
34
- />
35
- </el-form-item>
36
- </el-form>
37
- <div style="text-align: right">
38
- <el-button type="primary" @click="subMit"> 确定 </el-button>
39
- <el-button @click="quit" > 取消 </el-button>
40
- </div>
41
- </div>
42
- </template>
43
-
44
- <script>
45
- import SelectUser from '../selectUser.vue';
46
- import util from 'eoss-ui/src/utils/util';
47
- import {
48
- toFreeTaskCircularRead,
49
- freeTaskCircularRead
50
- } from 'eoss-ui/src/config/api';
51
- export default {
52
- components: { SelectUser },
53
- props: {
54
- formLabelPosition: {
55
- type: String,
56
- default: 'left'
57
- },
58
- showTooltip: { type: Boolean, default: true },
59
- selectorParams: { type: Object, default: () => {return {}} },
60
- params: {
61
- type: Object,
62
- default: () => {}
63
- },
64
- appId: {
65
- type: String,
66
- default: ''
67
- },
68
- showOther: { type: Boolean, default: true }
69
- },
70
- data() {
71
- return {
72
- currentOrgDisabledObjId: [],
73
- otherOrgDisabledObjId: [],
74
- nextCurrentOrgObjSelect: [],
75
- currentNodeIsCircularReadNode: false,
76
- simpleTips: true,
77
- subProcessColumns: [],
78
- nextOtherOrgObjSelect: [],
79
- nextNode: {},
80
- currentOrgSelectorParams: {
81
- filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId,only_filid:true
82
- },
83
- currentOrgSelectorTabs: ['employee', 'persongroup'],
84
- foreignOrgSelectorTabs: ['enterprise', 'filgroup'],
85
- foreignOrgSelectorParams: {enterprise:{filid: 'all', roleid: '', nofilid:sessionStorage.getItem('orgId')},filgroup:{filid: 'all', roleid: '', nofilid: sessionStorage.getItem('orgId')},roleid:'' },
86
- loading: null
87
- };
88
- },
89
- mounted() {
90
- this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid =
91
- this.selectorParams.roleid;
92
- this.getFreeTaskCircularRead();
93
- },
94
- methods: {
95
- quit() {
96
- this.$emit('cancel');
97
- this.$parent.$emit('cancel');
98
- },
99
- subMit() {
100
- if (!this.nextNode.nextCurrentOrgObj && !this.nextNode.nextOtherOrgObj)
101
- return this.$message.warning('请选择下步办理对象!');
102
- let param = {
103
- url: freeTaskCircularRead,
104
- data: {
105
- ...this.params,
106
- appId: this.appId || this.params.appId,
107
- nextCurrentOrgObj: this.nextNode.nextCurrentOrgObj,
108
- nextOtherOrgObj: this.nextNode.nextOtherOrgObj || ''
109
- },
110
- method: 'post'
111
- };
112
- this.loading = util.loading(this.$loading, '加载中...');
113
- util.ajax(param).then((res) => {
114
- this.loading.close();
115
- if (res.rCode == 0 || res.status == 'success') {
116
- if (!this.simpleTips) {
117
- this.$alert('提交成功', '', {
118
- confirmButtonText: '确定',
119
- type: 'success',
120
- callback: (action) => {
121
- this.$parent.$emit('success');
122
- }
123
- });
124
- } else {
125
- this.$parent.$emit('success');
126
- }
127
- } else {
128
- this.$message.error(
129
- res.message || res.msg || '系统错误,请联系管理员!'
130
- );
131
- }
132
- });
133
- },
134
- getFreeTaskCircularRead() {
135
- let param = {
136
- url: toFreeTaskCircularRead,
137
- params: {...this.params, appId: this.appId || this.params.appId }
138
- };
139
- this.loading = util.loading(this.$loading, '加载中...');
140
- util.ajax(param).then((res) => {
141
- this.loading.close();
142
- if (res.rCode == 0 || res.status == 'success') {
143
- this.simpleTips = res.results.simpleTips;
144
- this.currentOrgDisabledObjId =
145
- res.results.disabledCurrentOrgUserId.split(',');
146
- this.otherOrgDisabledObjId =
147
- res.results.disabledForeignOrgId.split(',');
148
- }
149
- });
150
- },
151
- getsubProcessColumns() {
152
- let data = [];
153
- let obj = { name: '[部门员工]-' };
154
- if (this.nextCurrentOrgObjSelect.length > 0) {
155
- this.nextCurrentOrgObjSelect.map((x) => {
156
- if (x.stype == 'employee') {
157
- obj.name = !obj.value
158
- ? obj.name + x.showname
159
- : obj.name + ',' + x.showname;
160
- obj.value = obj.value
161
- ? obj.value + ',' + x.showid
162
- : 'employee-' + x.showid;
163
- } else {
164
- data.push({
165
- name: '[部门]' + x.showname,
166
- value: 'department-' + x.showid
167
- });
168
- }
169
- });
170
- }
171
- obj.value && data.push(obj);
172
- if (this.nextOtherOrgObjSelect.length > 0) {
173
- this.nextOtherOrgObjSelect.map((x) => {
174
- data.push({
175
- name: '[企业]' + x.showname,
176
- value: 'enterprise-' + x.showid
177
- });
178
- });
179
- }
180
- this.subProcessColumns = data;
181
- // return data;
182
- },
183
- // 单位选择完回调
184
- disposeAppUnit(res, type) {
185
- let label = type.substring(0, type.lastIndexOf('Select'));
186
- this.nextNode[label + 'Name'] = '';
187
- res.options && (this[type] = res.options);
188
- let obj = {};
189
- // if (typeof res.mixList == 'array')
190
- res.mixList && (this.nextNode[label] = res.mixList.join('|'));
191
- res.options.map((item) => {
192
- if (obj[item.stype]) {
193
- obj[item.stype].push(item.showname);
194
- } else {
195
- obj[item.stype] = [item.showname];
196
- }
197
- });
198
- for (let key in obj) {
199
- if (
200
- key === 'enterprise' &&
201
- this.nextNode[label + 'Name'].indexOf('[企业]') == -1
202
- ) {
203
- this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
204
- ? this.nextNode[label + 'Name'] +
205
- '|' +
206
- '[企业]-' +
207
- obj[key].join(',')
208
- : '' + '[企业]-' + obj[key].join(',');
209
- }
210
- if (
211
- key === 'department' &&
212
- this.nextNode[label + 'Name'].indexOf('[部门]') == -1
213
- ) {
214
- this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
215
- ? this.nextNode[label + 'Name'] +
216
- '|' +
217
- '[部门]-' +
218
- obj[key].join(',')
219
- : '' + '[部门]-' + obj[key].join(',');
220
- }
221
- if (
222
- key === 'employee' &&
223
- this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1
224
- ) {
225
- this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
226
- ? this.nextNode[label + 'Name'] +
227
- '|' +
228
- '[部门员工]-' +
229
- obj[key].join(',')
230
- : '' + '[部门员工]-' + obj[key].join(',');
231
- }
232
- }
233
- // this.nextNode[label + 'Name'] = obj.enterprise?;
234
- if (!this.currentNodeIsCircularReadNode) {
235
- this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
236
- this.nextNode[label + 'Json'] = JSON.stringify(res.options);
237
- }
238
- this.getsubProcessColumns();
239
- }
240
- }
241
- };
242
- </script>
243
-
244
- <style></style>
1
+ <template>
2
+ <div>
3
+ <el-form
4
+ ref="nextNode"
5
+ :model="nextNode"
6
+ class="demo-dynamic"
7
+ label-width="120px"
8
+ :label-position="formLabelPosition"
9
+ >
10
+ <el-form-item prop="nextCurrentOrgObj" label="本单位">
11
+ <SelectUser
12
+ :nextUser="nextCurrentOrgObjSelect"
13
+ multiple
14
+ mix
15
+ :showTooltip="showTooltip"
16
+ :disableds="currentOrgDisabledObjId"
17
+ @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
18
+ :types="currentOrgSelectorTabs"
19
+ :params="currentOrgSelectorParams"
20
+ />
21
+ </el-form-item>
22
+ <el-form-item v-if="showOther" prop="nextOtherOrgObj" label="外单位">
23
+ <SelectUser
24
+ :nextUser="nextOtherOrgObjSelect"
25
+ multiple
26
+ mix
27
+ :showTooltip="showTooltip"
28
+ :disableds="otherOrgDisabledObjId"
29
+ :where="{ filid: 'all',roleid :selectorParams.roleid }"
30
+
31
+ @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
32
+ :types="foreignOrgSelectorTabs"
33
+ :params="foreignOrgSelectorParams"
34
+ />
35
+ </el-form-item>
36
+ </el-form>
37
+ <div style="text-align: right">
38
+ <el-button type="primary" @click="subMit"> 确定 </el-button>
39
+ <el-button @click="quit" > 取消 </el-button>
40
+ </div>
41
+ </div>
42
+ </template>
43
+
44
+ <script>
45
+ import SelectUser from '../selectUser.vue';
46
+ import util from 'eoss-ui/src/utils/util';
47
+ import {
48
+ toFreeTaskCircularRead,
49
+ freeTaskCircularRead
50
+ } from 'eoss-ui/src/config/api';
51
+ export default {
52
+ components: { SelectUser },
53
+ props: {
54
+ formLabelPosition: {
55
+ type: String,
56
+ default: 'left'
57
+ },
58
+ showTooltip: { type: Boolean, default: true },
59
+ selectorParams: { type: Object, default: () => {return {}} },
60
+ params: {
61
+ type: Object,
62
+ default: () => {}
63
+ },
64
+ appId: {
65
+ type: String,
66
+ default: ''
67
+ },
68
+ showOther: { type: Boolean, default: true }
69
+ },
70
+ data() {
71
+ return {
72
+ currentOrgDisabledObjId: [],
73
+ otherOrgDisabledObjId: [],
74
+ nextCurrentOrgObjSelect: [],
75
+ currentNodeIsCircularReadNode: false,
76
+ simpleTips: true,
77
+ subProcessColumns: [],
78
+ nextOtherOrgObjSelect: [],
79
+ nextNode: {},
80
+ currentOrgSelectorParams: {
81
+ filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId,only_filid:true
82
+ },
83
+ currentOrgSelectorTabs: ['employee', 'persongroup'],
84
+ foreignOrgSelectorTabs: ['enterprise', 'filgroup'],
85
+ foreignOrgSelectorParams: {enterprise:{filid: 'all', roleid: '', nofilid:sessionStorage.getItem('orgId')},filgroup:{filid: 'all', roleid: '', nofilid: sessionStorage.getItem('orgId')} },
86
+ loading: null
87
+ };
88
+ },
89
+ mounted() {
90
+ console.log('selectorParams', this.selectorParams);
91
+ this.foreignOrgSelectorParams.enterprise.roleid = this.foreignOrgSelectorParams.filgroup.roleid = this.currentOrgSelectorParams.roleid =
92
+ this.selectorParams.roleid;
93
+ this.getFreeTaskCircularRead();
94
+ },
95
+ methods: {
96
+ quit() {
97
+ this.$emit('cancel');
98
+ this.$parent.$emit('cancel');
99
+ },
100
+ subMit() {
101
+ if (!this.nextNode.nextCurrentOrgObj && !this.nextNode.nextOtherOrgObj)
102
+ return this.$message.warning('请选择下步办理对象!');
103
+ let param = {
104
+ url: freeTaskCircularRead,
105
+ data: {
106
+ ...this.params,
107
+ appId: this.appId || this.params.appId,
108
+ nextCurrentOrgObj: this.nextNode.nextCurrentOrgObj,
109
+ nextOtherOrgObj: this.nextNode.nextOtherOrgObj || ''
110
+ },
111
+ method: 'post'
112
+ };
113
+ this.loading = util.loading(this.$loading, '加载中...');
114
+ util.ajax(param).then((res) => {
115
+ this.loading.close();
116
+ if (res.rCode == 0 || res.status == 'success') {
117
+ if (!this.simpleTips) {
118
+ this.$alert('提交成功', '', {
119
+ confirmButtonText: '确定',
120
+ type: 'success',
121
+ callback: (action) => {
122
+ this.$parent.$emit('success');
123
+ }
124
+ });
125
+ } else {
126
+ this.$parent.$emit('success');
127
+ }
128
+ } else {
129
+ this.$message.error(
130
+ res.message || res.msg || '系统错误,请联系管理员!'
131
+ );
132
+ }
133
+ });
134
+ },
135
+ getFreeTaskCircularRead() {
136
+ let param = {
137
+ url: toFreeTaskCircularRead,
138
+ params: {...this.params, appId: this.appId || this.params.appId }
139
+ };
140
+ this.loading = util.loading(this.$loading, '加载中...');
141
+ util.ajax(param).then((res) => {
142
+ this.loading.close();
143
+ if (res.rCode == 0 || res.status == 'success') {
144
+ this.simpleTips = res.results.simpleTips;
145
+ this.currentOrgDisabledObjId =
146
+ res.results.disabledCurrentOrgUserId.split(',');
147
+ this.otherOrgDisabledObjId =
148
+ res.results.disabledForeignOrgId.split(',');
149
+ }
150
+ });
151
+ },
152
+ getsubProcessColumns() {
153
+ let data = [];
154
+ let obj = { name: '[部门员工]-' };
155
+ if (this.nextCurrentOrgObjSelect.length > 0) {
156
+ this.nextCurrentOrgObjSelect.map((x) => {
157
+ if (x.stype == 'employee') {
158
+ obj.name = !obj.value
159
+ ? obj.name + x.showname
160
+ : obj.name + ',' + x.showname;
161
+ obj.value = obj.value
162
+ ? obj.value + ',' + x.showid
163
+ : 'employee-' + x.showid;
164
+ } else {
165
+ data.push({
166
+ name: '[部门]' + x.showname,
167
+ value: 'department-' + x.showid
168
+ });
169
+ }
170
+ });
171
+ }
172
+ obj.value && data.push(obj);
173
+ if (this.nextOtherOrgObjSelect.length > 0) {
174
+ this.nextOtherOrgObjSelect.map((x) => {
175
+ data.push({
176
+ name: '[企业]' + x.showname,
177
+ value: 'enterprise-' + x.showid
178
+ });
179
+ });
180
+ }
181
+ this.subProcessColumns = data;
182
+ // return data;
183
+ },
184
+ // 单位选择完回调
185
+ disposeAppUnit(res, type) {
186
+ let label = type.substring(0, type.lastIndexOf('Select'));
187
+ this.nextNode[label + 'Name'] = '';
188
+ res.options && (this[type] = res.options);
189
+ let obj = {};
190
+ // if (typeof res.mixList == 'array')
191
+ res.mixList && (this.nextNode[label] = res.mixList.join('|'));
192
+ res.options.map((item) => {
193
+ if (obj[item.stype]) {
194
+ obj[item.stype].push(item.showname);
195
+ } else {
196
+ obj[item.stype] = [item.showname];
197
+ }
198
+ });
199
+ for (let key in obj) {
200
+ if (
201
+ key === 'enterprise' &&
202
+ this.nextNode[label + 'Name'].indexOf('[企业]') == -1
203
+ ) {
204
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
205
+ ? this.nextNode[label + 'Name'] +
206
+ '|' +
207
+ '[企业]-' +
208
+ obj[key].join(',')
209
+ : '' + '[企业]-' + obj[key].join(',');
210
+ }
211
+ if (
212
+ key === 'department' &&
213
+ this.nextNode[label + 'Name'].indexOf('[部门]') == -1
214
+ ) {
215
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
216
+ ? this.nextNode[label + 'Name'] +
217
+ '|' +
218
+ '[部门]-' +
219
+ obj[key].join(',')
220
+ : '' + '[部门]-' + obj[key].join(',');
221
+ }
222
+ if (
223
+ key === 'employee' &&
224
+ this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1
225
+ ) {
226
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
227
+ ? this.nextNode[label + 'Name'] +
228
+ '|' +
229
+ '[部门员工]-' +
230
+ obj[key].join(',')
231
+ : '' + '[部门员工]-' + obj[key].join(',');
232
+ }
233
+ }
234
+ // this.nextNode[label + 'Name'] = obj.enterprise?;
235
+ if (!this.currentNodeIsCircularReadNode) {
236
+ this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
237
+ this.nextNode[label + 'Json'] = JSON.stringify(res.options);
238
+ }
239
+ this.getsubProcessColumns();
240
+ }
241
+ }
242
+ };
243
+ </script>
244
+
245
+ <style></style>
@@ -400,7 +400,7 @@
400
400
  <el-form-item
401
401
  prop="nextOperate"
402
402
  label="下步操作"
403
- v-if="isChooseNextNode == 1"
403
+ v-if="operationList.length>0"
404
404
  :rules="[
405
405
  { required: true, message: `请选择下步操作`, trigger: 'blur' }
406
406
  ]"
@@ -533,7 +533,7 @@ export default {
533
533
  }
534
534
  }
535
535
  }
536
- return '';
536
+ return value;
537
537
  },
538
538
  reload() {
539
539
  this.getData(...arguments);
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ const { series, src, dest } = require('gulp');
4
+ const sass = require('gulp-sass');
5
+ const autoprefixer = require('gulp-autoprefixer');
6
+ const cssmin = require('gulp-cssmin');
7
+
8
+ function compile() {
9
+ return src('./src/*.scss')
10
+ .pipe(sass.sync())
11
+ .pipe(autoprefixer({
12
+ overrideBrowserslist: ['ie > 9', 'last 2 versions'],
13
+ cascade: false
14
+ }))
15
+ .pipe(cssmin())
16
+ .pipe(dest('./lib'));
17
+ }
18
+
19
+ function copyfont() {
20
+ return src('./src/fonts/**')
21
+ .pipe(cssmin())
22
+ .pipe(dest('./lib/fonts'));
23
+ }
24
+
25
+ exports.build = series(compile, copyfont);
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.7.95',
128
+ version: '0.7.97',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -500,9 +500,8 @@ const ajaxStream = function ({
500
500
  errorMessage =
501
501
  '网络连接错误,请检查服务器是否正在运行或网络连接是否正常。';
502
502
  } else if (error.response) {
503
- errorMessage = `服务器错误 (${error.response.status}): ${
504
- error.response.data || '未知错误'
505
- }`;
503
+ errorMessage = `服务器错误 (${error.response.status}): ${error.response.data || '未知错误'
504
+ }`;
506
505
  }
507
506
  fail &&
508
507
  fail({
@@ -1501,7 +1500,7 @@ const getMainConfig = function (callback) {
1501
1500
  callback(res.results);
1502
1501
  }
1503
1502
  })
1504
- .catch(() => {});
1503
+ .catch(() => { });
1505
1504
  };
1506
1505
 
1507
1506
  /**
@@ -2249,7 +2248,7 @@ const indexOfObj = function (arry, target, key) {
2249
2248
  return i;
2250
2249
  }
2251
2250
  } else if (target && typeof target === 'object') {
2252
- if (currentItem[currentKey] === target[currentKey]) {
2251
+ if (currentItem[currentKey] !== undefined && currentItem[currentKey] === target[currentKey]) {
2253
2252
  return i;
2254
2253
  }
2255
2254
  }
@@ -2355,7 +2354,7 @@ const isLogined = async function ({
2355
2354
  removeStorage();
2356
2355
  }
2357
2356
  })
2358
- .catch(() => {});
2357
+ .catch(() => { });
2359
2358
  return;
2360
2359
  }
2361
2360
  let pathname = '';
@@ -2878,16 +2877,16 @@ const responses = function (data) {
2878
2877
  '提示',
2879
2878
  data.rCode === 69
2880
2879
  ? {
2881
- confirmButtonText: '确定',
2882
- closeOnClickModal: false,
2883
- type: 'warning'
2884
- }
2880
+ confirmButtonText: '确定',
2881
+ closeOnClickModal: false,
2882
+ type: 'warning'
2883
+ }
2885
2884
  : {
2886
- confirmButtonText: '确定',
2887
- cancelButtonText: '取消',
2888
- closeOnClickModal: false,
2889
- type: 'warning'
2890
- }
2885
+ confirmButtonText: '确定',
2886
+ cancelButtonText: '取消',
2887
+ closeOnClickModal: false,
2888
+ type: 'warning'
2889
+ }
2891
2890
  )
2892
2891
  .then(() => {
2893
2892
  try {
@@ -3489,10 +3488,10 @@ const watermark = function (option) {
3489
3488
  };
3490
3489
  let options = option
3491
3490
  ? extend(
3492
- true,
3493
- config,
3494
- typeof option === 'string' ? { html: option } : option
3495
- )
3491
+ true,
3492
+ config,
3493
+ typeof option === 'string' ? { html: option } : option
3494
+ )
3496
3495
  : config;
3497
3496
  let wrap = document.getElementById('watermark');
3498
3497
  if (!wrap) {