eoss-ui 0.4.18 → 0.4.19
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 +88 -88
- package/lib/button.js +90 -90
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +89 -89
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +870 -198
- package/lib/data-table.js +91 -91
- package/lib/date-picker.js +90 -90
- package/lib/dialog.js +138 -105
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +1456 -629
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +112 -95
- package/lib/flow-list.js +92 -92
- package/lib/flow.js +152 -146
- package/lib/form.js +183 -102
- package/lib/handle-user.js +91 -91
- package/lib/handler.js +91 -91
- package/lib/index.js +1 -1
- package/lib/input-number.js +90 -90
- package/lib/input.js +90 -90
- package/lib/label.js +2 -2
- package/lib/login.js +174 -131
- package/lib/main.js +111 -108
- package/lib/mainComp.js +107 -106
- package/lib/menu.js +2 -2
- package/lib/nav.js +90 -90
- package/lib/notify.js +95 -95
- package/lib/page.js +90 -90
- package/lib/pagination.js +2 -2
- package/lib/player.js +90 -90
- package/lib/qr-code.js +97 -97
- package/lib/radio-group.js +91 -91
- package/lib/select-ganged.js +90 -90
- package/lib/select.js +101 -101
- package/lib/selector-panel.js +115 -108
- package/lib/selector.js +91 -91
- package/lib/sizer.js +92 -92
- package/lib/steps.js +90 -90
- package/lib/switch.js +90 -90
- package/lib/table-form.js +97 -97
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +113 -94
- package/lib/theme-chalk/data-table-form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +91 -91
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +105 -95
- package/lib/tree.js +97 -93
- package/lib/upload.js +175 -125
- package/lib/wujie.js +90 -90
- package/lib/wxlogin.js +90 -90
- package/package.json +2 -2
- package/packages/data-table-form/src/checkbox.vue +101 -0
- package/packages/data-table-form/src/radio.vue +65 -0
- package/packages/data-table-form/src/table.vue +34 -6
- package/packages/data-table-form/src/tbody.vue +139 -25
- package/packages/dialog/src/main.vue +29 -3
- package/packages/flow/src/main.vue +103 -87
- package/packages/flow-group/src/main.vue +22 -13
- package/packages/form/src/main.vue +563 -470
- package/packages/login/src/main.vue +79 -34
- package/packages/main/src/main.vue +3 -1
- package/packages/select/src/main.vue +20 -20
- package/packages/selector-panel/src/main.vue +27 -17
- package/packages/tabs/src/main.vue +20 -12
- package/packages/theme-chalk/lib/data-table-form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/data-table-form.scss +7 -6
- package/packages/theme-chalk/src/index.scss +0 -1
- package/packages/tree/src/main.vue +4 -0
- package/packages/tree-group/src/main.vue +7 -4
- package/packages/upload/src/main.vue +77 -20
- package/src/index.js +1 -4
- package/lib/ca-login.js +0 -326
- package/lib/theme-chalk/ca-login.css +0 -1
- package/packages/ca-login/index.js +0 -5
- package/packages/ca-login/src/main.vue +0 -62
- package/packages/theme-chalk/lib/ca-login.css +0 -1
- package/packages/theme-chalk/src/ca-login.scss +0 -4
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
class="es-common-opinions"
|
|
34
34
|
v-show="!shrink"
|
|
35
35
|
ref="commonOpinions"
|
|
36
|
-
@change="val => (value = val)"
|
|
36
|
+
@change="(val) => (value = val)"
|
|
37
37
|
:opinion="value"
|
|
38
38
|
:isBanInputOpinion="isBanInputOpinion"
|
|
39
39
|
/>
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
<div
|
|
148
148
|
v-if="
|
|
149
149
|
nextNode.isAddSign != '1' &&
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
nextNode.isRemoveSign != '1' &&
|
|
151
|
+
isSpecial
|
|
152
152
|
"
|
|
153
153
|
>
|
|
154
154
|
<el-form-item
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
<TimeLimit
|
|
235
235
|
v-if="nodeType !== 0 && isLimitedTimeHandling === 1"
|
|
236
236
|
:newsList="newsList"
|
|
237
|
-
@change="val => (nextNode = { ...nextNode, ...val })"
|
|
237
|
+
@change="(val) => (nextNode = { ...nextNode, ...val })"
|
|
238
238
|
/>
|
|
239
239
|
<el-form-item
|
|
240
240
|
prop="nextReadUserId"
|
|
@@ -291,11 +291,11 @@
|
|
|
291
291
|
v-if="isCustomPreset"
|
|
292
292
|
ref="customPreset"
|
|
293
293
|
@changeCustom="
|
|
294
|
-
data => {
|
|
294
|
+
(data) => {
|
|
295
295
|
presetList = data;
|
|
296
296
|
}
|
|
297
297
|
"
|
|
298
|
-
@changeActiveNames="val => (activeNames = val)"
|
|
298
|
+
@changeActiveNames="(val) => (activeNames = val)"
|
|
299
299
|
@loadingEnd="customLoading('end')"
|
|
300
300
|
@loadingStart="customLoading('start')"
|
|
301
301
|
:nextNode="nextNode.nextNodeId"
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
<Preset
|
|
306
306
|
v-if="isPreset"
|
|
307
307
|
@changePreset="
|
|
308
|
-
data => {
|
|
308
|
+
(data) => {
|
|
309
309
|
presetUserJson = data;
|
|
310
310
|
}
|
|
311
311
|
"
|
|
@@ -336,10 +336,12 @@
|
|
|
336
336
|
<div
|
|
337
337
|
v-show="showNews"
|
|
338
338
|
style="
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
339
|
+
{
|
|
340
|
+
border: 1px solid #ccc;
|
|
341
|
+
padding: 5px;
|
|
342
|
+
border-radius: 5px;
|
|
343
|
+
font-size: 13px;
|
|
344
|
+
}
|
|
343
345
|
"
|
|
344
346
|
>
|
|
345
347
|
{{ nextNode.notificationMsg }}
|
|
@@ -373,7 +375,7 @@
|
|
|
373
375
|
:key="item.name"
|
|
374
376
|
:type="item.type"
|
|
375
377
|
:style="btnStyle"
|
|
376
|
-
@click="item.event === 'sub' ? subProcess() : saveInfo()"
|
|
378
|
+
@click="item.event === 'sub' ? subProcess() : saveInfo(false, item)"
|
|
377
379
|
>
|
|
378
380
|
{{ item.text }}
|
|
379
381
|
</el-button>
|
|
@@ -446,11 +448,7 @@
|
|
|
446
448
|
<!-- <FlowChart :nodeId="nodeInfo.nextNode" v-if="showFlowChart" /> -->
|
|
447
449
|
<img
|
|
448
450
|
style="width: 100%"
|
|
449
|
-
:src="
|
|
450
|
-
`${charUrl}/bpm/service/diagram/getpng.png?processDefinitionId=${
|
|
451
|
-
nodeInfo.nextNode
|
|
452
|
-
}`
|
|
453
|
-
"
|
|
451
|
+
:src="`${charUrl}/bpm/service/diagram/getpng.png?processDefinitionId=${nodeInfo.nextNode}`"
|
|
454
452
|
alt="加载失败"
|
|
455
453
|
/>
|
|
456
454
|
</es-dialog>
|
|
@@ -497,7 +495,7 @@
|
|
|
497
495
|
<FileList
|
|
498
496
|
:ownId="pendingId"
|
|
499
497
|
:code="attachedCode"
|
|
500
|
-
@changeFileNum="val => (fileNum = val)"
|
|
498
|
+
@changeFileNum="(val) => (fileNum = val)"
|
|
501
499
|
/>
|
|
502
500
|
</es-dialog>
|
|
503
501
|
<es-dialog
|
|
@@ -597,7 +595,7 @@ export default {
|
|
|
597
595
|
},
|
|
598
596
|
subFun: {
|
|
599
597
|
type: Function,
|
|
600
|
-
default: callBack => {
|
|
598
|
+
default: (callBack) => {
|
|
601
599
|
callBack();
|
|
602
600
|
}
|
|
603
601
|
},
|
|
@@ -837,7 +835,7 @@ export default {
|
|
|
837
835
|
};
|
|
838
836
|
util
|
|
839
837
|
.ajax(params)
|
|
840
|
-
.then(res => {
|
|
838
|
+
.then((res) => {
|
|
841
839
|
const { rCode, results, msg } = res;
|
|
842
840
|
if (rCode == 0) {
|
|
843
841
|
results && (this.fileNum = results.length);
|
|
@@ -845,7 +843,7 @@ export default {
|
|
|
845
843
|
this.$message.error(msg || '系统错误,请联系管理员!');
|
|
846
844
|
}
|
|
847
845
|
})
|
|
848
|
-
.catch(err => {
|
|
846
|
+
.catch((err) => {
|
|
849
847
|
if (err.message && err.message !== 'canceled') {
|
|
850
848
|
this.$message.error(err.message);
|
|
851
849
|
}
|
|
@@ -906,12 +904,8 @@ export default {
|
|
|
906
904
|
})
|
|
907
905
|
.then(() => {
|
|
908
906
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
909
|
-
const {
|
|
910
|
-
|
|
911
|
-
appId,
|
|
912
|
-
processDefinitionId,
|
|
913
|
-
pendingId
|
|
914
|
-
} = this.taskExamineInfo;
|
|
907
|
+
const { businessId, appId, processDefinitionId, pendingId } =
|
|
908
|
+
this.taskExamineInfo;
|
|
915
909
|
let params = {
|
|
916
910
|
businessId,
|
|
917
911
|
appId,
|
|
@@ -927,7 +921,7 @@ export default {
|
|
|
927
921
|
method: 'post',
|
|
928
922
|
data: params
|
|
929
923
|
})
|
|
930
|
-
.then(res => {
|
|
924
|
+
.then((res) => {
|
|
931
925
|
const { status, message } = res;
|
|
932
926
|
this.loading.close();
|
|
933
927
|
if (status === 'success') {
|
|
@@ -938,7 +932,7 @@ export default {
|
|
|
938
932
|
this.$emit('error');
|
|
939
933
|
}
|
|
940
934
|
})
|
|
941
|
-
.catch(err => {
|
|
935
|
+
.catch((err) => {
|
|
942
936
|
this.loading.close();
|
|
943
937
|
if (err.message && err.message !== 'canceled') {
|
|
944
938
|
this.$message.error(err.message);
|
|
@@ -954,7 +948,7 @@ export default {
|
|
|
954
948
|
url: toStartTaskReadIndex,
|
|
955
949
|
params: { pendingId: this.pendingId }
|
|
956
950
|
})
|
|
957
|
-
.then(res => {
|
|
951
|
+
.then((res) => {
|
|
958
952
|
const {
|
|
959
953
|
status,
|
|
960
954
|
message,
|
|
@@ -972,7 +966,7 @@ export default {
|
|
|
972
966
|
}
|
|
973
967
|
this.loading.close();
|
|
974
968
|
})
|
|
975
|
-
.catch(err => {
|
|
969
|
+
.catch((err) => {
|
|
976
970
|
this.loading.close();
|
|
977
971
|
if (err.message && err.message !== 'canceled') {
|
|
978
972
|
this.$message.error(err.message);
|
|
@@ -986,7 +980,7 @@ export default {
|
|
|
986
980
|
} else {
|
|
987
981
|
util
|
|
988
982
|
.ajax({ url: loginUserInfo })
|
|
989
|
-
.then(res => {
|
|
983
|
+
.then((res) => {
|
|
990
984
|
const { status, data } = res;
|
|
991
985
|
if (status == 'success') {
|
|
992
986
|
this.userModel = data;
|
|
@@ -995,7 +989,7 @@ export default {
|
|
|
995
989
|
this.$message.error(msg);
|
|
996
990
|
}
|
|
997
991
|
})
|
|
998
|
-
.catch(err => {
|
|
992
|
+
.catch((err) => {
|
|
999
993
|
if (err.message && err.message !== 'canceled') {
|
|
1000
994
|
this.$message.error(err.message);
|
|
1001
995
|
}
|
|
@@ -1020,13 +1014,13 @@ export default {
|
|
|
1020
1014
|
url: findCodeValues,
|
|
1021
1015
|
params: { ccCode: 'notification_type' }
|
|
1022
1016
|
})
|
|
1023
|
-
.then(res => {
|
|
1017
|
+
.then((res) => {
|
|
1024
1018
|
const { status, data } = res;
|
|
1025
1019
|
if (status === 'success') {
|
|
1026
1020
|
this.newsList = data;
|
|
1027
1021
|
}
|
|
1028
1022
|
})
|
|
1029
|
-
.catch(err => {
|
|
1023
|
+
.catch((err) => {
|
|
1030
1024
|
if (err.message && err.message !== 'canceled') {
|
|
1031
1025
|
this.$message.error(err.message);
|
|
1032
1026
|
}
|
|
@@ -1038,28 +1032,50 @@ export default {
|
|
|
1038
1032
|
* @author liufan
|
|
1039
1033
|
* @date 2022年9月9日
|
|
1040
1034
|
**/
|
|
1041
|
-
saveInfo(type) {
|
|
1035
|
+
saveInfo(type, btn) {
|
|
1042
1036
|
if (this.isFlow) {
|
|
1043
1037
|
if (!type) {
|
|
1044
|
-
if (
|
|
1045
|
-
|
|
1046
|
-
.
|
|
1038
|
+
if (btn.before) {
|
|
1039
|
+
btn
|
|
1040
|
+
.before(
|
|
1041
|
+
Object.prototype.hasOwnProperty.call(btn, 'code') ? btn.code : 1
|
|
1042
|
+
)
|
|
1043
|
+
.then((next) => {
|
|
1044
|
+
this.$emit('save', this.businessIds);
|
|
1045
|
+
})
|
|
1046
|
+
.catch((e) => {});
|
|
1047
|
+
} else if (this.beforeSubmit != undefined) {
|
|
1048
|
+
this.beforeSubmit(
|
|
1049
|
+
Object.prototype.hasOwnProperty.call(btn, 'code') ? btn.code : 1
|
|
1050
|
+
)
|
|
1051
|
+
.then((next) => {
|
|
1047
1052
|
this.$emit('save', this.businessIds);
|
|
1048
1053
|
})
|
|
1049
|
-
.catch(e => {});
|
|
1054
|
+
.catch((e) => {});
|
|
1050
1055
|
} else {
|
|
1051
1056
|
this.$emit('save', this.businessIds);
|
|
1052
1057
|
}
|
|
1053
1058
|
}
|
|
1054
1059
|
} else {
|
|
1055
|
-
if (
|
|
1060
|
+
if (btn.before && !type) {
|
|
1061
|
+
btn
|
|
1062
|
+
.before(
|
|
1063
|
+
Object.prototype.hasOwnProperty.call(btn, 'code') ? btn.code : 2
|
|
1064
|
+
)
|
|
1065
|
+
.then((next) => {
|
|
1066
|
+
this.saveFlowInfo();
|
|
1067
|
+
})
|
|
1068
|
+
.catch((e) => {});
|
|
1069
|
+
} else if (this.beforeSubmit == undefined && !type) {
|
|
1056
1070
|
this.subFun(this.saveFlowInfo);
|
|
1057
1071
|
} else if (!type && this.beforeSubmit != undefined) {
|
|
1058
|
-
this.beforeSubmit(
|
|
1059
|
-
.
|
|
1072
|
+
this.beforeSubmit(
|
|
1073
|
+
Object.prototype.hasOwnProperty.call(btn, 'code') ? btn.code : 2
|
|
1074
|
+
)
|
|
1075
|
+
.then((next) => {
|
|
1060
1076
|
this.saveFlowInfo();
|
|
1061
1077
|
})
|
|
1062
|
-
.catch(e => {});
|
|
1078
|
+
.catch((e) => {});
|
|
1063
1079
|
} else {
|
|
1064
1080
|
this.saveFlowInfo(type);
|
|
1065
1081
|
}
|
|
@@ -1073,7 +1089,7 @@ export default {
|
|
|
1073
1089
|
this.loading = util.loading(this.$loading, '保存中...');
|
|
1074
1090
|
util
|
|
1075
1091
|
.ajax({ url: tempSave, params })
|
|
1076
|
-
.then(res => {
|
|
1092
|
+
.then((res) => {
|
|
1077
1093
|
const { status, message } = res;
|
|
1078
1094
|
this.loading.close();
|
|
1079
1095
|
if (status == 'success') {
|
|
@@ -1083,7 +1099,7 @@ export default {
|
|
|
1083
1099
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1084
1100
|
}
|
|
1085
1101
|
})
|
|
1086
|
-
.catch(err => {
|
|
1102
|
+
.catch((err) => {
|
|
1087
1103
|
this.loading.close();
|
|
1088
1104
|
if (err.message && err.message !== 'canceled') {
|
|
1089
1105
|
this.$message.error(err.message);
|
|
@@ -1126,13 +1142,13 @@ export default {
|
|
|
1126
1142
|
.ajax({
|
|
1127
1143
|
url: findSysCodes
|
|
1128
1144
|
})
|
|
1129
|
-
.then(res => {
|
|
1145
|
+
.then((res) => {
|
|
1130
1146
|
const { status, message } = res;
|
|
1131
1147
|
if (status === 'success') {
|
|
1132
1148
|
this.nextNode.notificationType = message.split(',');
|
|
1133
1149
|
}
|
|
1134
1150
|
})
|
|
1135
|
-
.catch(err => {
|
|
1151
|
+
.catch((err) => {
|
|
1136
1152
|
if (err.message && err.message !== 'canceled') {
|
|
1137
1153
|
this.$message.error(err.message);
|
|
1138
1154
|
}
|
|
@@ -1170,7 +1186,7 @@ export default {
|
|
|
1170
1186
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
1171
1187
|
util
|
|
1172
1188
|
.ajax(params)
|
|
1173
|
-
.then(res => {
|
|
1189
|
+
.then((res) => {
|
|
1174
1190
|
const { status, message } = res;
|
|
1175
1191
|
this.loading.close();
|
|
1176
1192
|
if (status === 'success') {
|
|
@@ -1181,14 +1197,14 @@ export default {
|
|
|
1181
1197
|
this.$emit('error');
|
|
1182
1198
|
}
|
|
1183
1199
|
})
|
|
1184
|
-
.catch(err => {
|
|
1200
|
+
.catch((err) => {
|
|
1185
1201
|
this.loading.close();
|
|
1186
1202
|
if (err.message && err.message !== 'canceled') {
|
|
1187
1203
|
this.$message.error(err.message);
|
|
1188
1204
|
}
|
|
1189
1205
|
});
|
|
1190
1206
|
})
|
|
1191
|
-
.catch(e => {});
|
|
1207
|
+
.catch((e) => {});
|
|
1192
1208
|
},
|
|
1193
1209
|
/**
|
|
1194
1210
|
* goView
|
|
@@ -1289,7 +1305,7 @@ export default {
|
|
|
1289
1305
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
1290
1306
|
util
|
|
1291
1307
|
.ajax(params)
|
|
1292
|
-
.then(res => {
|
|
1308
|
+
.then((res) => {
|
|
1293
1309
|
const { message } = res;
|
|
1294
1310
|
this.loading.close();
|
|
1295
1311
|
if (message == 'success') {
|
|
@@ -1298,7 +1314,7 @@ export default {
|
|
|
1298
1314
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1299
1315
|
}
|
|
1300
1316
|
})
|
|
1301
|
-
.catch(err => {
|
|
1317
|
+
.catch((err) => {
|
|
1302
1318
|
this.loading.close();
|
|
1303
1319
|
if (err.message && err.message !== 'canceled') {
|
|
1304
1320
|
this.$message.error(err.message);
|
|
@@ -1359,7 +1375,7 @@ export default {
|
|
|
1359
1375
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
1360
1376
|
util
|
|
1361
1377
|
.ajax(params)
|
|
1362
|
-
.then(res => {
|
|
1378
|
+
.then((res) => {
|
|
1363
1379
|
const { status, message } = res;
|
|
1364
1380
|
this.loading.close();
|
|
1365
1381
|
if (status === 'success') {
|
|
@@ -1370,7 +1386,7 @@ export default {
|
|
|
1370
1386
|
this.$emit('error');
|
|
1371
1387
|
}
|
|
1372
1388
|
})
|
|
1373
|
-
.catch(err => {
|
|
1389
|
+
.catch((err) => {
|
|
1374
1390
|
this.loading.close();
|
|
1375
1391
|
if (err.message && err.message !== 'canceled') {
|
|
1376
1392
|
this.$message.error(err.message);
|
|
@@ -1410,7 +1426,7 @@ export default {
|
|
|
1410
1426
|
};
|
|
1411
1427
|
util
|
|
1412
1428
|
.ajax({ url: getNodeInfo, params })
|
|
1413
|
-
.then(res => {
|
|
1429
|
+
.then((res) => {
|
|
1414
1430
|
const { status, message, data } = res;
|
|
1415
1431
|
this.loading.close();
|
|
1416
1432
|
if (status === 'success') {
|
|
@@ -1450,7 +1466,7 @@ export default {
|
|
|
1450
1466
|
data.nodeExtAttr.isDefSelectedObj == 1 &&
|
|
1451
1467
|
data.nextUserList !== undefined
|
|
1452
1468
|
) {
|
|
1453
|
-
data.nextUserList.map(item => {
|
|
1469
|
+
data.nextUserList.map((item) => {
|
|
1454
1470
|
this.nextNode.nextUserId.push(item.userId);
|
|
1455
1471
|
this.selectUserList.push({
|
|
1456
1472
|
showname: item.username,
|
|
@@ -1458,7 +1474,7 @@ export default {
|
|
|
1458
1474
|
});
|
|
1459
1475
|
});
|
|
1460
1476
|
}
|
|
1461
|
-
data.nextUserList.map(item => {
|
|
1477
|
+
data.nextUserList.map((item) => {
|
|
1462
1478
|
this.options.push({
|
|
1463
1479
|
showname: item.username,
|
|
1464
1480
|
showid: item.userId
|
|
@@ -1496,7 +1512,7 @@ export default {
|
|
|
1496
1512
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1497
1513
|
}
|
|
1498
1514
|
})
|
|
1499
|
-
.catch(err => {
|
|
1515
|
+
.catch((err) => {
|
|
1500
1516
|
this.loading.close();
|
|
1501
1517
|
if (err.message && err.message !== 'canceled') {
|
|
1502
1518
|
this.$message.error(err.message);
|
|
@@ -1523,7 +1539,7 @@ export default {
|
|
|
1523
1539
|
|
|
1524
1540
|
if (type) {
|
|
1525
1541
|
this.nodeInfos = [];
|
|
1526
|
-
this.operationList.map(item => {
|
|
1542
|
+
this.operationList.map((item) => {
|
|
1527
1543
|
if (item.key === val) {
|
|
1528
1544
|
if (!item.taskNodeList) {
|
|
1529
1545
|
this.nodeInfos = [];
|
|
@@ -1534,7 +1550,7 @@ export default {
|
|
|
1534
1550
|
});
|
|
1535
1551
|
if (this.defaultNextNode) {
|
|
1536
1552
|
let defaultNode = this.nodeInfos.filter(
|
|
1537
|
-
item => item.nodeId == this.defaultNextNode
|
|
1553
|
+
(item) => item.nodeId == this.defaultNextNode
|
|
1538
1554
|
);
|
|
1539
1555
|
if (this.nodeInfos.length > 0 && defaultNode.length == 0) {
|
|
1540
1556
|
this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
|
|
@@ -1610,7 +1626,7 @@ export default {
|
|
|
1610
1626
|
};
|
|
1611
1627
|
util
|
|
1612
1628
|
.ajax({ url: getHandleInfoHtml, params })
|
|
1613
|
-
.then(res => {
|
|
1629
|
+
.then((res) => {
|
|
1614
1630
|
//pc返回数据
|
|
1615
1631
|
const {
|
|
1616
1632
|
status,
|
|
@@ -1650,12 +1666,10 @@ export default {
|
|
|
1650
1666
|
this.canPresetRead = canPresetRead;
|
|
1651
1667
|
this.isCdjxjTaskHandle = isCdjxjTaskHandle;
|
|
1652
1668
|
if (canPresetRead) {
|
|
1653
|
-
let ids =
|
|
1654
|
-
','
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
','
|
|
1658
|
-
);
|
|
1669
|
+
let ids =
|
|
1670
|
+
nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
|
|
1671
|
+
let names =
|
|
1672
|
+
nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(',');
|
|
1659
1673
|
ids.map((item, index) => {
|
|
1660
1674
|
this.presetReadUserId.push({
|
|
1661
1675
|
showid: item,
|
|
@@ -1675,7 +1689,7 @@ export default {
|
|
|
1675
1689
|
if (canRemoveSignUserList && canRemoveSignUserList.length != 0)
|
|
1676
1690
|
this.removeUsers = canRemoveSignUserList;
|
|
1677
1691
|
if (taskOperations && taskOperations.length != 0) {
|
|
1678
|
-
taskOperations.map(item => {
|
|
1692
|
+
taskOperations.map((item) => {
|
|
1679
1693
|
if (item.key === 9) this.isReject = true;
|
|
1680
1694
|
if (item.isSelected) {
|
|
1681
1695
|
this.nodeInfos = [];
|
|
@@ -1705,7 +1719,8 @@ export default {
|
|
|
1705
1719
|
this.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
|
|
1706
1720
|
if (nodeInfoMap.nodeExtAttr.defaultNextNode) {
|
|
1707
1721
|
let defaultNode = this.nodeInfos.filter(
|
|
1708
|
-
item =>
|
|
1722
|
+
(item) =>
|
|
1723
|
+
item.nodeId == nodeInfoMap.nodeExtAttr.defaultNextNode
|
|
1709
1724
|
);
|
|
1710
1725
|
if (this.nodeInfos.length > 0 && defaultNode.length == 0) {
|
|
1711
1726
|
this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
|
|
@@ -1776,7 +1791,7 @@ export default {
|
|
|
1776
1791
|
this.nextNode.notificationMsg = defaultNotificationMessage;
|
|
1777
1792
|
this.moreList = [];
|
|
1778
1793
|
if (taskButtonList && taskButtonList.length != 0) {
|
|
1779
|
-
taskButtonList.map(item => {
|
|
1794
|
+
taskButtonList.map((item) => {
|
|
1780
1795
|
if (item.fun === 'reject()') {
|
|
1781
1796
|
this.rejectObj = item;
|
|
1782
1797
|
} else if (item.fun === 'toStartTaskRead()') {
|
|
@@ -1802,7 +1817,7 @@ export default {
|
|
|
1802
1817
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1803
1818
|
}
|
|
1804
1819
|
})
|
|
1805
|
-
.catch(err => {
|
|
1820
|
+
.catch((err) => {
|
|
1806
1821
|
this.loading.close();
|
|
1807
1822
|
if (err.message && err.message !== 'canceled') {
|
|
1808
1823
|
this.$message.error(err.message);
|
|
@@ -1867,13 +1882,13 @@ export default {
|
|
|
1867
1882
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
1868
1883
|
util
|
|
1869
1884
|
.ajax({ url: getProcessDefList, params })
|
|
1870
|
-
.then(res => {
|
|
1885
|
+
.then((res) => {
|
|
1871
1886
|
const { status, message, data } = res;
|
|
1872
1887
|
this.loading.close();
|
|
1873
1888
|
if (status === 'success') {
|
|
1874
1889
|
this.nodeInfo.option = data.definitionList;
|
|
1875
1890
|
this.nodeInfo.nextNode = data.definitionList.filter(
|
|
1876
|
-
item => item.processDefKey == this.defaultProcessKey
|
|
1891
|
+
(item) => item.processDefKey == this.defaultProcessKey
|
|
1877
1892
|
);
|
|
1878
1893
|
if (this.nodeInfo.nextNode.length) {
|
|
1879
1894
|
this.nodeInfo.nextNode = this.nodeInfo.nextNode[0].processDefId;
|
|
@@ -1888,7 +1903,7 @@ export default {
|
|
|
1888
1903
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1889
1904
|
}
|
|
1890
1905
|
})
|
|
1891
|
-
.catch(err => {
|
|
1906
|
+
.catch((err) => {
|
|
1892
1907
|
this.loading.close();
|
|
1893
1908
|
if (err.message && err.message !== 'canceled') {
|
|
1894
1909
|
this.$message.error(err.message);
|
|
@@ -1909,7 +1924,7 @@ export default {
|
|
|
1909
1924
|
};
|
|
1910
1925
|
util
|
|
1911
1926
|
.ajax({ url: pendedhistoryList, data: params, method: 'post' })
|
|
1912
|
-
.then(res => {
|
|
1927
|
+
.then((res) => {
|
|
1913
1928
|
const { rCode, msg, results } = res;
|
|
1914
1929
|
if (!rCode) {
|
|
1915
1930
|
this.nextNode.nextUserId = [];
|
|
@@ -1921,7 +1936,7 @@ export default {
|
|
|
1921
1936
|
this.$message.error(msg || '系统错误,请联系管理员!');
|
|
1922
1937
|
}
|
|
1923
1938
|
})
|
|
1924
|
-
.catch(err => {
|
|
1939
|
+
.catch((err) => {
|
|
1925
1940
|
if (err.message && err.message !== 'canceled') {
|
|
1926
1941
|
this.$message.error(err.message);
|
|
1927
1942
|
}
|
|
@@ -1936,7 +1951,7 @@ export default {
|
|
|
1936
1951
|
* @date 2022年5月25日
|
|
1937
1952
|
**/
|
|
1938
1953
|
subProcess(val) {
|
|
1939
|
-
this.$refs['nextNode'].validate(valid => {
|
|
1954
|
+
this.$refs['nextNode'].validate((valid) => {
|
|
1940
1955
|
if (valid) {
|
|
1941
1956
|
if (this.isSubmitButtonShowAgreeAndDisagree == 1) {
|
|
1942
1957
|
this.value = this.value.replace(RegExp('不同意。', 'g'), '');
|
|
@@ -1947,16 +1962,16 @@ export default {
|
|
|
1947
1962
|
this.subFun(this.sendData);
|
|
1948
1963
|
} else {
|
|
1949
1964
|
this.beforeSubmit(1)
|
|
1950
|
-
.then(next => {
|
|
1965
|
+
.then((next) => {
|
|
1951
1966
|
this.sendData();
|
|
1952
1967
|
})
|
|
1953
|
-
.catch(e => {});
|
|
1968
|
+
.catch((e) => {});
|
|
1954
1969
|
}
|
|
1955
1970
|
}
|
|
1956
1971
|
});
|
|
1957
1972
|
},
|
|
1958
1973
|
sendData() {
|
|
1959
|
-
this.$refs['nextNode'].validate(async valid => {
|
|
1974
|
+
this.$refs['nextNode'].validate(async (valid) => {
|
|
1960
1975
|
if (valid) {
|
|
1961
1976
|
await this.saveInfo('subMit');
|
|
1962
1977
|
if (this.isFlow) return (this.handleVisible = true);
|
|
@@ -1990,7 +2005,7 @@ export default {
|
|
|
1990
2005
|
let nextUserId = [];
|
|
1991
2006
|
if (this.multiple) {
|
|
1992
2007
|
this.nextNode.nextUserId &&
|
|
1993
|
-
this.nextNode.nextUserId.map(item => nextUserId.push(item));
|
|
2008
|
+
this.nextNode.nextUserId.map((item) => nextUserId.push(item));
|
|
1994
2009
|
}
|
|
1995
2010
|
if (
|
|
1996
2011
|
this.nextNode.isAddSign == '1' &&
|
|
@@ -2004,13 +2019,13 @@ export default {
|
|
|
2004
2019
|
return this.$message.warning('请选择减签办理人');
|
|
2005
2020
|
let addSignUserId = [];
|
|
2006
2021
|
if (this.isCanAddSign && this.nextNode.isAddSign == '1') {
|
|
2007
|
-
this.nextNode.addSignUserId.map(item => {
|
|
2022
|
+
this.nextNode.addSignUserId.map((item) => {
|
|
2008
2023
|
addSignUserId.push(item);
|
|
2009
2024
|
});
|
|
2010
2025
|
}
|
|
2011
2026
|
let removeSignUserId = [];
|
|
2012
2027
|
if (this.isCanRemoveSign && this.nextNode.isRemoveSign == '1') {
|
|
2013
|
-
this.nextNode.removeSignUserId.map(item => {
|
|
2028
|
+
this.nextNode.removeSignUserId.map((item) => {
|
|
2014
2029
|
removeSignUserId.push(item);
|
|
2015
2030
|
});
|
|
2016
2031
|
}
|
|
@@ -2032,7 +2047,8 @@ export default {
|
|
|
2032
2047
|
}
|
|
2033
2048
|
if (this.nextNode.nextOperate === 9) {
|
|
2034
2049
|
this.nextNode.isReturnRejectNode = 1;
|
|
2035
|
-
this.nextNode.processDefinitionId =
|
|
2050
|
+
this.nextNode.processDefinitionId =
|
|
2051
|
+
this.processObj.taskExamine.processDefinitionId;
|
|
2036
2052
|
}
|
|
2037
2053
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
2038
2054
|
|
|
@@ -2079,7 +2095,7 @@ export default {
|
|
|
2079
2095
|
this.loading = util.loading(this.$loading, '提交中...');
|
|
2080
2096
|
util
|
|
2081
2097
|
.ajax({ url: taskHandleHtml, method: 'post', data: params })
|
|
2082
|
-
.then(res => {
|
|
2098
|
+
.then((res) => {
|
|
2083
2099
|
const { status, message } = res;
|
|
2084
2100
|
this.loading.close();
|
|
2085
2101
|
if (status === 'success') {
|
|
@@ -2090,7 +2106,7 @@ export default {
|
|
|
2090
2106
|
this.$emit('error');
|
|
2091
2107
|
}
|
|
2092
2108
|
})
|
|
2093
|
-
.catch(err => {
|
|
2109
|
+
.catch((err) => {
|
|
2094
2110
|
this.loading.close();
|
|
2095
2111
|
if (err.message && err.message !== 'canceled') {
|
|
2096
2112
|
this.$message.error(err.message);
|