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.
- package/lib/button-group.js +1 -1
- package/lib/button.js +1 -1
- package/lib/calogin.js +1 -1
- package/lib/cascader.js +1 -1
- package/lib/checkbox-group.js +1 -1
- package/lib/data-table-form.js +9 -9
- package/lib/data-table.js +9 -8
- package/lib/date-picker.js +1 -1
- package/lib/dialog.js +1 -1
- package/lib/eoss-ui.common.js +38 -36
- package/lib/flow-group.js +1 -1
- package/lib/flow-list.js +1 -1
- package/lib/flow.js +14 -13
- package/lib/form.js +1 -1
- package/lib/handle-user.js +1 -1
- package/lib/handler.js +1 -1
- package/lib/icon.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +1 -1
- package/lib/input.js +1 -1
- package/lib/login.js +1 -1
- package/lib/main.js +1 -1
- package/lib/nav.js +1 -1
- package/lib/page.js +1 -1
- package/lib/pagination.js +1 -1
- package/lib/player.js +1 -1
- package/lib/qr-code.js +1 -1
- package/lib/radio-group.js +1 -1
- package/lib/retrial-auth.js +1 -1
- package/lib/select-ganged.js +1 -1
- package/lib/select.js +2 -2
- package/lib/selector-panel.js +1 -1
- package/lib/selector.js +1 -1
- package/lib/sizer.js +1 -1
- package/lib/steps.js +1 -1
- package/lib/switch.js +1 -1
- package/lib/table-form.js +1 -1
- package/lib/tabs.js +1 -1
- package/lib/tips.js +1 -1
- package/lib/tree-group.js +1 -1
- package/lib/tree.js +1 -1
- package/lib/upload.js +1 -1
- package/lib/utils/util.js +1 -1
- package/lib/wujie.js +1 -1
- package/lib/wxlogin.js +1 -1
- package/package.json +1 -1
- package/packages/cascader/src/main.vue +1 -1
- package/packages/data-table/src/column.vue +1 -0
- package/packages/data-table-form/src/tbody.vue +1 -1
- package/packages/flow/src/component/FreeCirculation.vue +245 -244
- package/packages/flow/src/main.vue +1 -1
- package/packages/select/src/main.vue +1 -1
- package/packages/theme-chalk/gulpfile.js +25 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +18 -19
- package/packages/theme-chalk/lib/base.css +0 -1
- package/packages/theme-chalk/lib/button-group.css +0 -1
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/calendar.css +0 -1
- package/packages/theme-chalk/lib/calogin.css +0 -0
- package/packages/theme-chalk/lib/card.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +0 -1
- package/packages/theme-chalk/lib/clients.css +0 -1
- package/packages/theme-chalk/lib/data-table-form.css +0 -1
- package/packages/theme-chalk/lib/data-table.css +0 -1
- package/packages/theme-chalk/lib/date-picker.css +0 -1
- package/packages/theme-chalk/lib/dialog.css +0 -1
- package/packages/theme-chalk/lib/enable-drag.css +0 -1
- package/packages/theme-chalk/lib/enterprise.css +0 -1
- package/packages/theme-chalk/lib/error-page.css +0 -1
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +0 -1
- package/packages/theme-chalk/lib/flow-list.css +0 -1
- package/packages/theme-chalk/lib/flow.css +0 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +0 -1
- package/packages/theme-chalk/lib/handle-user.css +0 -1
- package/packages/theme-chalk/lib/handler.css +0 -1
- package/packages/theme-chalk/lib/icon.css +0 -1
- package/packages/theme-chalk/lib/icons.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/label.css +0 -1
- package/packages/theme-chalk/lib/layout.css +0 -1
- package/packages/theme-chalk/lib/login.css +0 -1
- package/packages/theme-chalk/lib/main.css +0 -1
- package/packages/theme-chalk/lib/menu.css +0 -1
- package/packages/theme-chalk/lib/nav.css +0 -1
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/player.css +0 -1
- package/packages/theme-chalk/lib/qr-code.css +0 -1
- package/packages/theme-chalk/lib/radio-group.css +0 -1
- package/packages/theme-chalk/lib/retrial-auth.css +0 -1
- package/packages/theme-chalk/lib/select-ganged.css +0 -1
- package/packages/theme-chalk/lib/select.css +0 -1
- package/packages/theme-chalk/lib/selector-panel.css +0 -1
- package/packages/theme-chalk/lib/selector.css +0 -1
- package/packages/theme-chalk/lib/simplicity-top.css +0 -1
- package/packages/theme-chalk/lib/simplicity.css +0 -1
- package/packages/theme-chalk/lib/sizer.css +0 -1
- package/packages/theme-chalk/lib/steps.css +0 -1
- package/packages/theme-chalk/lib/switch.css +0 -1
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +0 -1
- package/packages/theme-chalk/lib/tips.css +0 -1
- package/packages/theme-chalk/lib/toolbar.css +0 -1
- package/packages/theme-chalk/lib/tree-group.css +0 -1
- package/packages/theme-chalk/lib/tree.css +0 -1
- package/packages/theme-chalk/lib/upload.css +0 -1
- package/packages/theme-chalk/lib/wujie.css +0 -0
- 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')}
|
|
86
|
-
loading: null
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
mounted() {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
this.$
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
util.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
util.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
this.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
let
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
res.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
'
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
'
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
'
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
this.nextNode[label + '
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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>
|
|
@@ -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
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
|
-
|
|
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
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2880
|
+
confirmButtonText: '确定',
|
|
2881
|
+
closeOnClickModal: false,
|
|
2882
|
+
type: 'warning'
|
|
2883
|
+
}
|
|
2885
2884
|
: {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
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
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
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) {
|