eoss-ui 0.5.43 → 0.5.44
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/CHANGELOG.md +929 -0
- package/README.md +18 -0
- package/lib/button-group.js +120 -69
- package/lib/button.js +133 -72
- package/lib/checkbox-group.js +116 -67
- package/lib/data-table-form.js +126 -74
- package/lib/data-table.js +210 -104
- package/lib/date-picker.js +116 -67
- package/lib/dialog.js +132 -71
- package/lib/eoss-ui.common.js +704 -411
- package/lib/flow-group.js +144 -74
- package/lib/flow-list.js +120 -69
- package/lib/flow.js +169 -99
- package/lib/form.js +125 -69
- package/lib/handle-user.js +127 -70
- package/lib/handler.js +145 -92
- package/lib/index.js +1 -1
- package/lib/input-number.js +116 -67
- package/lib/input.js +116 -67
- package/lib/login.js +149 -97
- package/lib/main.js +234 -152
- package/lib/nav.js +116 -67
- package/lib/page.js +116 -67
- package/lib/player.js +116 -67
- package/lib/qr-code.js +116 -67
- package/lib/radio-group.js +116 -67
- package/lib/retrial-auth.js +130 -71
- package/lib/select-ganged.js +116 -67
- package/lib/select.js +116 -67
- package/lib/selector-panel.js +131 -74
- package/lib/selector.js +116 -67
- package/lib/sizer.js +116 -67
- package/lib/steps.js +116 -67
- package/lib/switch.js +116 -67
- package/lib/table-form.js +123 -72
- package/lib/tabs.js +119 -69
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +116 -67
- package/lib/tree-group.js +151 -71
- package/lib/tree.js +116 -67
- package/lib/upload.js +136 -78
- package/lib/utils/util.js +116 -67
- package/lib/wujie.js +116 -67
- package/lib/wxlogin.js +116 -67
- package/package.json +2 -2
- package/packages/button/src/main.vue +17 -5
- package/packages/button-group/src/main.vue +2 -0
- package/packages/data-table/src/column.vue +4 -0
- package/packages/data-table/src/main.vue +66 -26
- package/packages/data-table-form/src/tbody.vue +3 -0
- package/packages/dialog/src/main.vue +14 -2
- package/packages/flow/src/component/CustomPreset.vue +14 -7
- package/packages/flow/src/component/FileList.vue +4 -2
- package/packages/flow/src/component/Preset.vue +11 -13
- package/packages/flow/src/form.vue +5 -4
- package/packages/flow/src/main.vue +7 -7
- package/packages/flow/src/table.vue +8 -1
- package/packages/flow-group/src/main.vue +26 -5
- package/packages/form/src/main.vue +12 -0
- package/packages/form/src/table.vue +2 -0
- package/packages/handle-user/src/main.vue +9 -1
- package/packages/handler/src/main.vue +31 -27
- package/packages/login/src/main.vue +35 -31
- package/packages/main/src/async-component/index.vue +4 -2
- package/packages/main/src/main.vue +62 -30
- package/packages/main/src/userinfo.vue +29 -25
- package/packages/retrial-auth/src/main.vue +12 -2
- package/packages/selector-panel/src/selection.vue +6 -0
- package/packages/tabs/src/main.vue +1 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +1 -0
- package/packages/theme-chalk/lib/card.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +1 -0
- package/packages/theme-chalk/lib/clients.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -0
- package/packages/theme-chalk/lib/data-table.css +1 -0
- package/packages/theme-chalk/lib/date-picker.css +1 -0
- package/packages/theme-chalk/lib/dialog.css +1 -0
- package/packages/theme-chalk/lib/enterprise.css +1 -0
- package/packages/theme-chalk/lib/error-page.css +1 -0
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- 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 +1 -0
- package/packages/theme-chalk/lib/handle-user.css +1 -0
- package/packages/theme-chalk/lib/handler.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/icons.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +1 -0
- package/packages/theme-chalk/lib/label.css +1 -0
- package/packages/theme-chalk/lib/layout.css +1 -0
- package/packages/theme-chalk/lib/login.css +1 -0
- package/packages/theme-chalk/lib/main.css +1 -0
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/lib/menu.css +1 -0
- package/packages/theme-chalk/lib/nav.css +1 -0
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/player.css +1 -0
- package/packages/theme-chalk/lib/qr-code.css +1 -0
- package/packages/theme-chalk/lib/radio-group.css +1 -0
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/lib/select-ganged.css +1 -0
- package/packages/theme-chalk/lib/select.css +1 -0
- package/packages/theme-chalk/lib/selector-panel.css +1 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -0
- package/packages/theme-chalk/lib/steps.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- 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 +1 -0
- package/packages/theme-chalk/lib/tips.css +1 -0
- package/packages/theme-chalk/lib/toolbar.css +1 -0
- package/packages/theme-chalk/lib/tree-group.css +1 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/upload.css +1 -0
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +1 -0
- package/packages/theme-chalk/src/data-table.scss +6 -0
- package/packages/tree-group/src/main.vue +36 -2
- package/packages/upload/src/main.vue +15 -6
- package/src/index.js +1 -1
- package/src/utils/util.js +132 -80
- package/packages/theme-chalk/gulpfile.js +0 -25
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-collapse v-model="activeNames" accordion>
|
|
3
|
-
<el-collapse-item
|
|
3
|
+
<el-collapse-item
|
|
4
|
+
:title="customPresetHintMessage || '预设节点信息(折叠不作处理)'"
|
|
5
|
+
name="1"
|
|
6
|
+
>
|
|
4
7
|
<div v-for="(item, index) of newPresetList" :key="index">
|
|
5
8
|
<el-form-item prop="flow" :label="`➤ 节点${index + 1}`">
|
|
6
9
|
<el-select
|
|
@@ -77,6 +80,7 @@ export default {
|
|
|
77
80
|
watch: {
|
|
78
81
|
activeNames(val) {
|
|
79
82
|
this.$emit('changeActiveNames', val);
|
|
83
|
+
this.$emit('change-active-names', val);
|
|
80
84
|
},
|
|
81
85
|
processDefinitionId: {
|
|
82
86
|
handler(val) {
|
|
@@ -99,6 +103,7 @@ export default {
|
|
|
99
103
|
return;
|
|
100
104
|
}
|
|
101
105
|
this.$emit('loadingStart');
|
|
106
|
+
this.$emit('loading-start');
|
|
102
107
|
this.show = false;
|
|
103
108
|
this.getPresetFlowInfo(nodeId, processDefinitionId);
|
|
104
109
|
// return
|
|
@@ -114,7 +119,7 @@ export default {
|
|
|
114
119
|
};
|
|
115
120
|
util
|
|
116
121
|
.ajax({ url: getNodeInfo, params })
|
|
117
|
-
.then(res => {
|
|
122
|
+
.then((res) => {
|
|
118
123
|
const {
|
|
119
124
|
status,
|
|
120
125
|
message,
|
|
@@ -134,7 +139,7 @@ export default {
|
|
|
134
139
|
info.presetEdit = 0;
|
|
135
140
|
info.presetEdit = nodeExtAttr.presetEdit;
|
|
136
141
|
info.isDefSelectedObj = nodeExtAttr.isDefSelectedObj;
|
|
137
|
-
nextUserList.map(item => {
|
|
142
|
+
nextUserList.map((item) => {
|
|
138
143
|
if (info.multiple && info.isDefSelectedObj == 1) {
|
|
139
144
|
info.nextUser.push(item.userId);
|
|
140
145
|
info.selectUserList.push({
|
|
@@ -168,6 +173,7 @@ export default {
|
|
|
168
173
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
169
174
|
}
|
|
170
175
|
this.$emit('loadingEnd');
|
|
176
|
+
this.$emit('loading-end');
|
|
171
177
|
nodeId &&
|
|
172
178
|
setTimeout(() => {
|
|
173
179
|
this.$refs.selectUser[index].changeInfo(
|
|
@@ -175,7 +181,7 @@ export default {
|
|
|
175
181
|
);
|
|
176
182
|
}, 500);
|
|
177
183
|
})
|
|
178
|
-
.catch(err => {
|
|
184
|
+
.catch((err) => {
|
|
179
185
|
if (err.message && err.message !== 'canceled') {
|
|
180
186
|
this.$message.error(err.message);
|
|
181
187
|
}
|
|
@@ -226,7 +232,7 @@ export default {
|
|
|
226
232
|
};
|
|
227
233
|
util
|
|
228
234
|
.ajax(params)
|
|
229
|
-
.then(res => {
|
|
235
|
+
.then((res) => {
|
|
230
236
|
const { status, data } = res;
|
|
231
237
|
if (status === 'success') {
|
|
232
238
|
let list = [
|
|
@@ -279,7 +285,7 @@ export default {
|
|
|
279
285
|
}
|
|
280
286
|
}
|
|
281
287
|
})
|
|
282
|
-
.catch(err => {
|
|
288
|
+
.catch((err) => {
|
|
283
289
|
if (err.message && err.message !== 'canceled') {
|
|
284
290
|
this.$message.error(err.message);
|
|
285
291
|
}
|
|
@@ -293,7 +299,7 @@ export default {
|
|
|
293
299
|
},
|
|
294
300
|
changeSelectData() {
|
|
295
301
|
let customPresetUserJson = [];
|
|
296
|
-
this.newPresetList.map(item => {
|
|
302
|
+
this.newPresetList.map((item) => {
|
|
297
303
|
customPresetUserJson.push({
|
|
298
304
|
name: item.name,
|
|
299
305
|
lastName: item.lastName,
|
|
@@ -307,6 +313,7 @@ export default {
|
|
|
307
313
|
});
|
|
308
314
|
});
|
|
309
315
|
this.$emit('changeCustom', customPresetUserJson);
|
|
316
|
+
this.$emit('change-custom', customPresetUserJson);
|
|
310
317
|
}
|
|
311
318
|
}
|
|
312
319
|
};
|
|
@@ -62,6 +62,7 @@ export default {
|
|
|
62
62
|
methods: {
|
|
63
63
|
successFile(response, file, fileList) {
|
|
64
64
|
this.$emit('changeFileNum', fileList.length);
|
|
65
|
+
this.$emit('change-file-num', fileList.length);
|
|
65
66
|
},
|
|
66
67
|
//删除附件
|
|
67
68
|
delFile(file, fileList) {
|
|
@@ -75,16 +76,17 @@ export default {
|
|
|
75
76
|
};
|
|
76
77
|
util
|
|
77
78
|
.ajax(params)
|
|
78
|
-
.then(res => {
|
|
79
|
+
.then((res) => {
|
|
79
80
|
const { rCode, msg } = res;
|
|
80
81
|
if (rCode == 0) {
|
|
81
82
|
this.$message.success('删除成功');
|
|
82
83
|
this.$emit('changeFileNum', fileList.length);
|
|
84
|
+
this.$emit('change-fFile-num', fileList.length);
|
|
83
85
|
} else {
|
|
84
86
|
this.$message.error(msg || '系统错误,请联系管理员!');
|
|
85
87
|
}
|
|
86
88
|
})
|
|
87
|
-
.catch(err => {
|
|
89
|
+
.catch((err) => {
|
|
88
90
|
if (err.message && err.message !== 'canceled') {
|
|
89
91
|
this.$message.error(err.message);
|
|
90
92
|
}
|
|
@@ -103,13 +103,14 @@ export default {
|
|
|
103
103
|
methods: {
|
|
104
104
|
changeSelectData() {
|
|
105
105
|
let presetUserJson = [];
|
|
106
|
-
this.nodeList.map(item => {
|
|
106
|
+
this.nodeList.map((item) => {
|
|
107
107
|
presetUserJson.push({
|
|
108
108
|
name: item.name,
|
|
109
109
|
value: item.multiple ? item.nextUser.join(',') : item.nextUser
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
this.$emit('changePreset', presetUserJson);
|
|
113
|
+
this.$emit('change-preset', presetUserJson);
|
|
113
114
|
},
|
|
114
115
|
changePresetUser(val, index) {
|
|
115
116
|
const { nextUser } = val;
|
|
@@ -129,13 +130,9 @@ export default {
|
|
|
129
130
|
},
|
|
130
131
|
getNodeUser() {
|
|
131
132
|
this.$emit('loadingStart');
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
businessId,
|
|
136
|
-
pendingId,
|
|
137
|
-
nodeId
|
|
138
|
-
} = this;
|
|
133
|
+
this.$emit('loading-start');
|
|
134
|
+
const { nextNodeId, processDefinitionId, businessId, pendingId, nodeId } =
|
|
135
|
+
this;
|
|
139
136
|
let params = {
|
|
140
137
|
url: getPresetNodeInfo,
|
|
141
138
|
params: {
|
|
@@ -149,11 +146,11 @@ export default {
|
|
|
149
146
|
};
|
|
150
147
|
util
|
|
151
148
|
.ajax(params)
|
|
152
|
-
.then(res => {
|
|
149
|
+
.then((res) => {
|
|
153
150
|
const { status, message, data } = res;
|
|
154
151
|
if (status == 'success') {
|
|
155
152
|
if (data) {
|
|
156
|
-
this.nodeList.map(item => {
|
|
153
|
+
this.nodeList.map((item) => {
|
|
157
154
|
for (let key in data) {
|
|
158
155
|
if (item.name === key) {
|
|
159
156
|
item.configInfo = data[key];
|
|
@@ -166,7 +163,7 @@ export default {
|
|
|
166
163
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
167
164
|
}
|
|
168
165
|
})
|
|
169
|
-
.catch(err => {
|
|
166
|
+
.catch((err) => {
|
|
170
167
|
if (err.message && err.message !== 'canceled') {
|
|
171
168
|
this.$message.error(err.message);
|
|
172
169
|
}
|
|
@@ -174,7 +171,7 @@ export default {
|
|
|
174
171
|
},
|
|
175
172
|
getConfig() {
|
|
176
173
|
this.nodeList = this.nodeList.filter(
|
|
177
|
-
item => item.name.indexOf(this.nodeId) == -1
|
|
174
|
+
(item) => item.name.indexOf(this.nodeId) == -1
|
|
178
175
|
);
|
|
179
176
|
this.nodeList.map((item, index) => {
|
|
180
177
|
const { multiple, params } = this.isMultiple(
|
|
@@ -188,7 +185,7 @@ export default {
|
|
|
188
185
|
item.radioList = [];
|
|
189
186
|
item.selectUserList = [];
|
|
190
187
|
item.isDefSelectedObj = item.configInfo.nodeExtAttr.isDefSelectedObj;
|
|
191
|
-
item.configInfo.nextUserList.map(items => {
|
|
188
|
+
item.configInfo.nextUserList.map((items) => {
|
|
192
189
|
if (item.multiple && item.isDefSelectedObj == 1) {
|
|
193
190
|
item.nextUser.push(items.userId);
|
|
194
191
|
item.selectUserList.push({
|
|
@@ -218,6 +215,7 @@ export default {
|
|
|
218
215
|
});
|
|
219
216
|
this.changeSelectData();
|
|
220
217
|
this.$emit('loadingEnd');
|
|
218
|
+
this.$emit('loading-end');
|
|
221
219
|
},
|
|
222
220
|
isMultiple(val, choiceOrgId, choiceDeptId, pOrgId) {
|
|
223
221
|
let multiple = false;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<!-- <el-form-item> -->
|
|
31
31
|
<!-- </el-form-item> -->
|
|
32
32
|
</el-form>
|
|
33
|
-
<div style="text-align:right">
|
|
33
|
+
<div style="text-align: right">
|
|
34
34
|
<el-button
|
|
35
35
|
v-show="showSubBtn"
|
|
36
36
|
type="primary"
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
url: id ? editCommonOpion : addCommonOpion,
|
|
91
91
|
params: { id }
|
|
92
92
|
})
|
|
93
|
-
.then(res => {
|
|
93
|
+
.then((res) => {
|
|
94
94
|
const { status, message, data } = res;
|
|
95
95
|
if (status == 'success') {
|
|
96
96
|
this.newData = data.bean;
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
}
|
|
100
100
|
this.loading = false;
|
|
101
101
|
})
|
|
102
|
-
.catch(err => {
|
|
102
|
+
.catch((err) => {
|
|
103
103
|
this.loading = false;
|
|
104
104
|
if (err.message && err.message !== 'canceled') {
|
|
105
105
|
this.$message.error(err.message);
|
|
@@ -107,9 +107,10 @@ export default {
|
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
109
|
submitForm(formName) {
|
|
110
|
-
this.$refs[formName].validate(valid => {
|
|
110
|
+
this.$refs[formName].validate((valid) => {
|
|
111
111
|
if (valid) {
|
|
112
112
|
this.$emit('subMit', { addVisible: false, data: this.newData });
|
|
113
|
+
this.$emit('sub-mit', { addVisible: false, data: this.newData });
|
|
113
114
|
} else {
|
|
114
115
|
return false;
|
|
115
116
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="es-flow-index"
|
|
4
|
-
:class="{ 'es-flow-narrow': shrink
|
|
4
|
+
:class="{ 'es-flow-narrow': shrink, required: this.requiredValue }"
|
|
5
5
|
:style="styles"
|
|
6
6
|
v-if="!shrinkAbled"
|
|
7
7
|
>
|
|
@@ -744,7 +744,7 @@ export default {
|
|
|
744
744
|
nextCurrentOrgObjSelect: [],
|
|
745
745
|
loading: null, // 加载中
|
|
746
746
|
newTypeCode: '',
|
|
747
|
-
requiredValue:false,
|
|
747
|
+
requiredValue: false,
|
|
748
748
|
NodeName: '', // 当前节点值
|
|
749
749
|
radioList: [],
|
|
750
750
|
value: '',
|
|
@@ -1333,8 +1333,7 @@ export default {
|
|
|
1333
1333
|
.then((next) => {
|
|
1334
1334
|
if (!this.value) {
|
|
1335
1335
|
// return this.$message.warning('请填写意见');
|
|
1336
|
-
|
|
1337
|
-
|
|
1336
|
+
return (this.requiredValue = true);
|
|
1338
1337
|
}
|
|
1339
1338
|
this.showReject = true;
|
|
1340
1339
|
})
|
|
@@ -1342,7 +1341,7 @@ export default {
|
|
|
1342
1341
|
} else {
|
|
1343
1342
|
if (!this.value) {
|
|
1344
1343
|
// return this.$message.warning('请填写意见');
|
|
1345
|
-
return this.requiredValue = true
|
|
1344
|
+
return (this.requiredValue = true);
|
|
1346
1345
|
}
|
|
1347
1346
|
this.showReject = true;
|
|
1348
1347
|
}
|
|
@@ -1659,8 +1658,8 @@ export default {
|
|
|
1659
1658
|
this.$confirm('确认' + res.value + '?')
|
|
1660
1659
|
.then(() => {
|
|
1661
1660
|
if (this.isOpinionRequired == 1 && (this.value == '' || !this.value))
|
|
1662
|
-
|
|
1663
|
-
|
|
1661
|
+
return (this.requiredValue = true);
|
|
1662
|
+
// return this.$message.warning('请填写意见');
|
|
1664
1663
|
let params = {
|
|
1665
1664
|
url: rejectAndEnd,
|
|
1666
1665
|
headers: { Accept: 'application/json,text/plain' },
|
|
@@ -2044,6 +2043,7 @@ export default {
|
|
|
2044
2043
|
}
|
|
2045
2044
|
} = res;
|
|
2046
2045
|
this.$emit('startTaskRead', res);
|
|
2046
|
+
this.$emit('start-task-read', res);
|
|
2047
2047
|
this.currentOrgName = currentOrgName;
|
|
2048
2048
|
this.otherOrgName = otherOrgName;
|
|
2049
2049
|
this.endFlowInfo.choiceOrgId = choiceOrgId;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-table
|
|
2
|
+
<el-table
|
|
3
|
+
:data="dataList"
|
|
4
|
+
border
|
|
5
|
+
stripe
|
|
6
|
+
style="width: 100%; margin-top: 10px"
|
|
7
|
+
>
|
|
3
8
|
<el-table-column
|
|
4
9
|
v-for="item of tableHead"
|
|
5
10
|
:key="item.id"
|
|
@@ -42,9 +47,11 @@ export default {
|
|
|
42
47
|
methods: {
|
|
43
48
|
handleClick(val) {
|
|
44
49
|
this.$emit('upDateClick', val);
|
|
50
|
+
this.$emit('up-date-click', val);
|
|
45
51
|
},
|
|
46
52
|
delClick(val) {
|
|
47
53
|
this.$emit('delClick', val);
|
|
54
|
+
this.$emit('del-click', val);
|
|
48
55
|
}
|
|
49
56
|
}
|
|
50
57
|
};
|
|
@@ -573,8 +573,20 @@ export default {
|
|
|
573
573
|
let item = this.tabs[n];
|
|
574
574
|
let url = null;
|
|
575
575
|
let name = item.name;
|
|
576
|
-
let width =
|
|
577
|
-
let height =
|
|
576
|
+
let width = 0;
|
|
577
|
+
let height = 0;
|
|
578
|
+
try {
|
|
579
|
+
width = util.win.top.screen.availWidth - 10;
|
|
580
|
+
height = util.win.top.screen.availHeight - 60;
|
|
581
|
+
} catch (error) {
|
|
582
|
+
try {
|
|
583
|
+
width = util.win.parent.screen.availWidth - 10;
|
|
584
|
+
height = util.win.parent.screen.availHeight - 60;
|
|
585
|
+
} catch (error) {
|
|
586
|
+
width = util.win.screen.availWidth - 10;
|
|
587
|
+
height = util.win.screen.availHeight - 60;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
578
590
|
if (item.url) {
|
|
579
591
|
url = this.handleUrlJoinParams(item);
|
|
580
592
|
}
|
|
@@ -588,7 +600,7 @@ export default {
|
|
|
588
600
|
}
|
|
589
601
|
if (url) {
|
|
590
602
|
reject();
|
|
591
|
-
util.win.
|
|
603
|
+
util.win.open(
|
|
592
604
|
url,
|
|
593
605
|
name,
|
|
594
606
|
`width=${width}px,height=${height}px,resizable=yes,status=yes,menubar=no,scrollbars=yes`
|
|
@@ -645,8 +657,16 @@ export default {
|
|
|
645
657
|
handleSuccess() {
|
|
646
658
|
if (this.closeDialog && this.esDialog) {
|
|
647
659
|
this.esDialog.handleClose();
|
|
648
|
-
} else if (util.win.
|
|
649
|
-
|
|
660
|
+
} else if (util.win.opener) {
|
|
661
|
+
try {
|
|
662
|
+
util.win.top.close();
|
|
663
|
+
} catch (error) {
|
|
664
|
+
try {
|
|
665
|
+
util.win.parent.close();
|
|
666
|
+
} catch (error) {
|
|
667
|
+
util.win.postMessage({ type: 0 }, '*');
|
|
668
|
+
}
|
|
669
|
+
}
|
|
650
670
|
}
|
|
651
671
|
if (this.events && this.events.success) {
|
|
652
672
|
this.events.success();
|
|
@@ -665,6 +685,7 @@ export default {
|
|
|
665
685
|
},
|
|
666
686
|
handleChangeData(res) {
|
|
667
687
|
this.$emit('changeData', res);
|
|
688
|
+
this.$emit('change-data', res);
|
|
668
689
|
}
|
|
669
690
|
}
|
|
670
691
|
};
|
|
@@ -4546,6 +4546,7 @@ export default {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
this.values = util.extend({}, data, value);
|
|
4548
4548
|
this.$emit('valueSuccess', this.values);
|
|
4549
|
+
this.$emit('value-success', this.values);
|
|
4549
4550
|
this.$emit('result', this.values);
|
|
4550
4551
|
}
|
|
4551
4552
|
})
|
|
@@ -4611,6 +4612,7 @@ export default {
|
|
|
4611
4612
|
if (valid) {
|
|
4612
4613
|
this.stepActive = index;
|
|
4613
4614
|
this.$emit('stepChange', this.stepActive);
|
|
4615
|
+
this.$emit('step-change', this.stepActive);
|
|
4614
4616
|
} else {
|
|
4615
4617
|
this.setScroll(valid, triggers, this.$refs.scrollbar);
|
|
4616
4618
|
}
|
|
@@ -4618,6 +4620,7 @@ export default {
|
|
|
4618
4620
|
} else {
|
|
4619
4621
|
this.stepActive = index;
|
|
4620
4622
|
this.$emit('stepChange', this.stepActive);
|
|
4623
|
+
this.$emit('step-change', this.stepActive);
|
|
4621
4624
|
}
|
|
4622
4625
|
} else if (
|
|
4623
4626
|
res.event === 'submit' ||
|
|
@@ -4655,6 +4658,7 @@ export default {
|
|
|
4655
4658
|
} else if (res.event === 'stepPrev') {
|
|
4656
4659
|
this.stepActive -= 1;
|
|
4657
4660
|
this.$emit('stepChange', this.stepActive);
|
|
4661
|
+
this.$emit('step-change', this.stepActive);
|
|
4658
4662
|
this.$emit(
|
|
4659
4663
|
'stepPrev',
|
|
4660
4664
|
res,
|
|
@@ -4666,12 +4670,19 @@ export default {
|
|
|
4666
4670
|
if (valid) {
|
|
4667
4671
|
this.stepActive += 1;
|
|
4668
4672
|
this.$emit('stepChange', this.stepActive);
|
|
4673
|
+
this.$emit('step-change', this.stepActive);
|
|
4669
4674
|
this.$emit(
|
|
4670
4675
|
'stepNext',
|
|
4671
4676
|
res,
|
|
4672
4677
|
this.models,
|
|
4673
4678
|
this.getNewValue(util.extend({}, this._value, this.models), res)
|
|
4674
4679
|
);
|
|
4680
|
+
this.$emit(
|
|
4681
|
+
'step-next',
|
|
4682
|
+
res,
|
|
4683
|
+
this.models,
|
|
4684
|
+
this.getNewValue(util.extend({}, this._value, this.models), res)
|
|
4685
|
+
);
|
|
4675
4686
|
} else {
|
|
4676
4687
|
this.setScroll(valid, triggers, this.$refs.scrollbar);
|
|
4677
4688
|
}
|
|
@@ -4737,6 +4748,7 @@ export default {
|
|
|
4737
4748
|
},
|
|
4738
4749
|
handleDataChange(res, data) {
|
|
4739
4750
|
this.$emit('dataChange', res, data);
|
|
4751
|
+
this.$emit('data-change', res, data);
|
|
4740
4752
|
},
|
|
4741
4753
|
handleCollapse() {},
|
|
4742
4754
|
handleChange(a, b, c) {
|
|
@@ -1336,6 +1336,7 @@ export default {
|
|
|
1336
1336
|
},
|
|
1337
1337
|
handleClick(res) {
|
|
1338
1338
|
this.$emit('btnClick', res, this.models);
|
|
1339
|
+
this.$emit('btn-click', res, this.models);
|
|
1339
1340
|
},
|
|
1340
1341
|
handleChange(res, value, data) {
|
|
1341
1342
|
if (res.events && res.events.change) {
|
|
@@ -1369,6 +1370,7 @@ export default {
|
|
|
1369
1370
|
res.events.dataChange(res, value, data);
|
|
1370
1371
|
} else {
|
|
1371
1372
|
this.$emit('dataChange', res, data);
|
|
1373
|
+
this.$emit('data-change', res, data);
|
|
1372
1374
|
}
|
|
1373
1375
|
},
|
|
1374
1376
|
handleExclAttribute({ data, attrs }) {
|
|
@@ -98,7 +98,15 @@ export default {
|
|
|
98
98
|
duration: 500,
|
|
99
99
|
onClose: () => {
|
|
100
100
|
util.removeStorage(['mainConfig', 'jump']);
|
|
101
|
-
|
|
101
|
+
try {
|
|
102
|
+
util.win.top.location.reload();
|
|
103
|
+
} catch (error) {
|
|
104
|
+
try {
|
|
105
|
+
util.win.parent.location.reload();
|
|
106
|
+
} catch (error) {
|
|
107
|
+
util.win.location.reload();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
102
110
|
}
|
|
103
111
|
});
|
|
104
112
|
} else {
|
|
@@ -304,37 +304,41 @@ export default {
|
|
|
304
304
|
if (this.onQuit && typeof this.onQuit === 'function') {
|
|
305
305
|
this.onQuit();
|
|
306
306
|
} else {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
pathname
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
307
|
+
try {
|
|
308
|
+
const loginPage =
|
|
309
|
+
util.getStorage('login') || util.getStorage('loginPage');
|
|
310
|
+
if (loginPage) {
|
|
311
|
+
let src;
|
|
312
|
+
if (!util.startWith(loginPage, ['http', '/'], true)) {
|
|
313
|
+
let pathname = util.win.top.location.pathname;
|
|
314
|
+
if (pathname !== '/') {
|
|
315
|
+
pathname = pathname.split('/');
|
|
316
|
+
pathname.splice(pathname.length - 1);
|
|
317
|
+
pathname = pathname.join('/');
|
|
318
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
319
|
+
} else {
|
|
320
|
+
src = pathname + loginPage.replace('./', '');
|
|
321
|
+
}
|
|
318
322
|
} else {
|
|
319
|
-
src =
|
|
323
|
+
src = loginPage;
|
|
320
324
|
}
|
|
325
|
+
util.win.top.location.href = src;
|
|
326
|
+
} else if (
|
|
327
|
+
util.win.top.location.href.indexOf('main.html') > -1
|
|
328
|
+
) {
|
|
329
|
+
util.win.top.location.href = './login.html';
|
|
321
330
|
} else {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
const hash = util.win.top.location.hash;
|
|
331
|
-
if (hash) {
|
|
332
|
-
const len = util.win.top.location.href.indexOf(hash);
|
|
333
|
-
util.win.top.location.href =
|
|
334
|
-
util.win.location.href.slice(0, len) + '#/login';
|
|
335
|
-
} else {
|
|
336
|
-
util.win.top.location.href = '/login.html';
|
|
331
|
+
const hash = util.win.top.location.hash;
|
|
332
|
+
if (hash) {
|
|
333
|
+
const len = util.win.top.location.href.indexOf(hash);
|
|
334
|
+
util.win.top.location.href =
|
|
335
|
+
util.win.location.href.slice(0, len) + '#/login';
|
|
336
|
+
} else {
|
|
337
|
+
util.win.top.location.href = '/login.html';
|
|
338
|
+
}
|
|
337
339
|
}
|
|
340
|
+
} catch (error) {
|
|
341
|
+
util.win.postMessage({ type: 1 }, '*');
|
|
338
342
|
}
|
|
339
343
|
}
|
|
340
344
|
}
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
</div>
|
|
184
184
|
<es-qr-code
|
|
185
185
|
:content="identifyingId"
|
|
186
|
-
v-if="active == 3"
|
|
186
|
+
v-if="active == 3 && identifyingId"
|
|
187
187
|
></es-qr-code>
|
|
188
188
|
<div class="es-wx-qrcode-box" v-if="active == 9">
|
|
189
189
|
<es-wxlogin
|
|
@@ -761,7 +761,7 @@ export default {
|
|
|
761
761
|
doAssistance: null
|
|
762
762
|
};
|
|
763
763
|
},
|
|
764
|
-
|
|
764
|
+
beforeCreate() {
|
|
765
765
|
util.removeStorage([
|
|
766
766
|
'remind',
|
|
767
767
|
'ssId',
|
|
@@ -772,6 +772,8 @@ export default {
|
|
|
772
772
|
'userName',
|
|
773
773
|
'useCaseCodes'
|
|
774
774
|
]);
|
|
775
|
+
},
|
|
776
|
+
created() {
|
|
775
777
|
this.code = util.getParams('code');
|
|
776
778
|
if (this.code) {
|
|
777
779
|
this.doWechatLogin(this.code);
|
|
@@ -914,6 +916,7 @@ export default {
|
|
|
914
916
|
this.onDownLoadApp();
|
|
915
917
|
} else {
|
|
916
918
|
this.$emit('handleDownLoadApp');
|
|
919
|
+
this.$emit('handle-down-load-app');
|
|
917
920
|
}
|
|
918
921
|
} else {
|
|
919
922
|
this.showDownLoadApp = true;
|
|
@@ -934,39 +937,37 @@ export default {
|
|
|
934
937
|
return this.loginType.indexOf(res) > -1;
|
|
935
938
|
},
|
|
936
939
|
getLogin() {
|
|
937
|
-
const config =
|
|
940
|
+
const config = util.getStorage('initLogin');
|
|
938
941
|
if (config) {
|
|
939
942
|
this.setConfig(config);
|
|
940
|
-
} else {
|
|
941
|
-
util
|
|
942
|
-
.ajax({ url: this.initLogin })
|
|
943
|
-
.then((res) => {
|
|
944
|
-
if (res && res.rCode === 0) {
|
|
945
|
-
store.set('initLogin', res.results);
|
|
946
|
-
util.setStorage({
|
|
947
|
-
type: this.storage,
|
|
948
|
-
key: 'initLogin',
|
|
949
|
-
value: JSON.stringify(res.results)
|
|
950
|
-
});
|
|
951
|
-
this.setConfig(res.results);
|
|
952
|
-
} else {
|
|
953
|
-
this.$message({
|
|
954
|
-
message: res.msg || '系统错误,请联系管理员!',
|
|
955
|
-
type: 'error',
|
|
956
|
-
duration: 2000
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
})
|
|
960
|
-
.catch((err) => {
|
|
961
|
-
if (err.message && err.message !== 'canceled') {
|
|
962
|
-
this.$message.error(err.message);
|
|
963
|
-
}
|
|
964
|
-
});
|
|
965
943
|
}
|
|
944
|
+
util
|
|
945
|
+
.ajax({ url: this.initLogin })
|
|
946
|
+
.then((res) => {
|
|
947
|
+
if (res && res.rCode === 0) {
|
|
948
|
+
store.set('initLogin', res.results);
|
|
949
|
+
util.setStorage({
|
|
950
|
+
type: 'localStorage',
|
|
951
|
+
key: 'initLogin',
|
|
952
|
+
value: JSON.stringify(res.results)
|
|
953
|
+
});
|
|
954
|
+
this.setConfig(res.results);
|
|
955
|
+
} else {
|
|
956
|
+
this.$message({
|
|
957
|
+
message: res.msg || '系统错误,请联系管理员!',
|
|
958
|
+
type: 'error',
|
|
959
|
+
duration: 2000
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
})
|
|
963
|
+
.catch((err) => {
|
|
964
|
+
if (err.message && err.message !== 'canceled') {
|
|
965
|
+
this.$message.error(err.message);
|
|
966
|
+
}
|
|
967
|
+
});
|
|
966
968
|
},
|
|
967
969
|
setConfig(res) {
|
|
968
|
-
|
|
969
|
-
this.identifyingId = res.identifyingId;
|
|
970
|
+
this.identifyingId = res.identifyingId || '';
|
|
970
971
|
this.getImgCode();
|
|
971
972
|
let downloads = {};
|
|
972
973
|
if (res.androidDownloadUrl) {
|
|
@@ -996,9 +997,12 @@ export default {
|
|
|
996
997
|
? res.loginBackgroundUrl.split(',')
|
|
997
998
|
: null;
|
|
998
999
|
this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
|
|
1000
|
+
res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
|
|
999
1001
|
if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
|
|
1000
1002
|
this.icpInfo = res.subsystemExtend;
|
|
1001
1003
|
this.forgetUrl = res.subsystemExtend.look_pass_url;
|
|
1004
|
+
res.subsystemExtend.loginPage &&
|
|
1005
|
+
sessionStorage.setItem('loginPage', res.subsystemExtend.loginPage);
|
|
1002
1006
|
if (res.subsystemExtend.login_url) {
|
|
1003
1007
|
this.actionUrl = res.subsystemExtend.login_url;
|
|
1004
1008
|
}
|
|
@@ -1221,7 +1225,7 @@ export default {
|
|
|
1221
1225
|
.then((res) => {
|
|
1222
1226
|
this.submit = false;
|
|
1223
1227
|
if (res.rCode == 0) {
|
|
1224
|
-
|
|
1228
|
+
util.removeStorage('extUserBindHandleId');
|
|
1225
1229
|
this.handleRemember();
|
|
1226
1230
|
const results = res.results;
|
|
1227
1231
|
this.handleResults(results);
|