eoss-ui 0.4.33 → 0.4.34
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/checkbox-group.js +1 -1
- package/lib/data-table-form.js +1 -1
- package/lib/data-table.js +1 -1
- package/lib/date-picker.js +1 -1
- package/lib/dialog.js +1 -1
- package/lib/eoss-ui.common.js +106 -97
- package/lib/flow-group.js +1 -1
- package/lib/flow-list.js +1 -1
- package/lib/flow.js +65 -56
- package/lib/form.js +1 -1
- package/lib/handle-user.js +4 -4
- package/lib/handler.js +4 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +1 -1
- package/lib/input.js +2 -2
- package/lib/login.js +1 -1
- package/lib/main.js +5 -5
- package/lib/mainComp.js +5 -5
- package/lib/nav.js +1 -1
- package/lib/page.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/select-ganged.js +1 -1
- package/lib/select.js +1 -1
- 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 +2 -2
- package/packages/flow/src/component/taskUnionExamine.vue +30 -25
- package/packages/flow/src/main.vue +25 -18
- package/packages/handle-user/src/main.vue +4 -4
- package/packages/handler/src/main.vue +2 -1
- package/packages/input/src/main.vue +12 -5
- package/packages/main/src/main.vue +3 -2
- package/packages/mainComp/src/main.vue +3 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -1
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
>暂存</el-button
|
|
369
369
|
>
|
|
370
370
|
</div>
|
|
371
|
-
<div class="es-user-defined">
|
|
371
|
+
<div class="es-user-defined" v-if="nodeInfo.option.length > 0">
|
|
372
372
|
<el-button
|
|
373
373
|
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
374
374
|
v-for="item of btnList"
|
|
@@ -1098,7 +1098,7 @@ export default {
|
|
|
1098
1098
|
.ajax({ url: tempSave, params })
|
|
1099
1099
|
.then((res) => {
|
|
1100
1100
|
const { status, message } = res;
|
|
1101
|
-
|
|
1101
|
+
if (!isSave) this.loading.close();
|
|
1102
1102
|
if (status == 'success') {
|
|
1103
1103
|
// this.$message.success('暂存成功');
|
|
1104
1104
|
!isSave && this.$emit('save', this.businessIds);
|
|
@@ -1107,7 +1107,7 @@ export default {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
})
|
|
1109
1109
|
.catch((err) => {
|
|
1110
|
-
if(!isSave) this.loading.close();
|
|
1110
|
+
if (!isSave) this.loading.close();
|
|
1111
1111
|
if (err.message && err.message !== 'canceled') {
|
|
1112
1112
|
this.$message.error(err.message);
|
|
1113
1113
|
}
|
|
@@ -1262,6 +1262,7 @@ export default {
|
|
|
1262
1262
|
this.flowMultiple = true;
|
|
1263
1263
|
this.flowDisabled = false;
|
|
1264
1264
|
this.flowTitle = res.value;
|
|
1265
|
+
|
|
1265
1266
|
this.toTakeAdvice(res);
|
|
1266
1267
|
} else if (res.fun === 'toUnionExamine()') {
|
|
1267
1268
|
//联合审核
|
|
@@ -1300,13 +1301,14 @@ export default {
|
|
|
1300
1301
|
* @date 2022年9月29日
|
|
1301
1302
|
**/
|
|
1302
1303
|
toTakeAdvice(res) {
|
|
1304
|
+
console.log(res,this.taskExamineInfo,'this.taskExamineInfo')
|
|
1303
1305
|
let params = {
|
|
1304
1306
|
url: isCanStartSubFlow,
|
|
1305
|
-
|
|
1307
|
+
data: {
|
|
1306
1308
|
appId: this.taskExamineInfo.appId,
|
|
1307
1309
|
inevitableNode: res.inevitableNode
|
|
1308
1310
|
},
|
|
1309
|
-
method: '
|
|
1311
|
+
method: 'post',
|
|
1310
1312
|
headers: { Accept: 'application/json,text/plain' }
|
|
1311
1313
|
};
|
|
1312
1314
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
@@ -1373,7 +1375,7 @@ export default {
|
|
|
1373
1375
|
url: rejectAndEnd,
|
|
1374
1376
|
headers: { Accept: 'application/json,text/plain' },
|
|
1375
1377
|
method: 'post',
|
|
1376
|
-
|
|
1378
|
+
data: {
|
|
1377
1379
|
opinion: this.value,
|
|
1378
1380
|
pendingId: this.pendingId,
|
|
1379
1381
|
isSinglePage: false
|
|
@@ -1890,17 +1892,24 @@ export default {
|
|
|
1890
1892
|
const { status, message, data } = res;
|
|
1891
1893
|
this.loading.close();
|
|
1892
1894
|
if (status === 'success') {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
(
|
|
1896
|
-
)
|
|
1897
|
-
|
|
1898
|
-
this.nodeInfo.nextNode = this.nodeInfo.nextNode[0].processDefId;
|
|
1895
|
+
if (
|
|
1896
|
+
!Object.keys(data).length ||
|
|
1897
|
+
(data.definitionList && !data.definitionList.length)
|
|
1898
|
+
) {
|
|
1899
|
+
this.$message.error('流程不存在或未关联对应流程!');
|
|
1899
1900
|
} else {
|
|
1900
|
-
|
|
1901
|
-
|
|
1901
|
+
this.nodeInfo.option = data.definitionList;
|
|
1902
|
+
this.nodeInfo.nextNode = data.definitionList.filter(
|
|
1903
|
+
(item) => item.processDefKey == this.defaultProcessKey
|
|
1904
|
+
);
|
|
1905
|
+
if (this.nodeInfo.nextNode.length) {
|
|
1906
|
+
this.nodeInfo.nextNode = this.nodeInfo.nextNode[0].processDefId;
|
|
1902
1907
|
} else {
|
|
1903
|
-
|
|
1908
|
+
if (data.definitionList.length == 1) {
|
|
1909
|
+
this.nodeInfo.nextNode = data.definitionList[0].processDefId;
|
|
1910
|
+
} else {
|
|
1911
|
+
this.nodeInfo.nextNode = '';
|
|
1912
|
+
}
|
|
1904
1913
|
}
|
|
1905
1914
|
}
|
|
1906
1915
|
} else {
|
|
@@ -1974,9 +1983,7 @@ export default {
|
|
|
1974
1983
|
}
|
|
1975
1984
|
});
|
|
1976
1985
|
},
|
|
1977
|
-
validInfo(){
|
|
1978
|
-
|
|
1979
|
-
},
|
|
1986
|
+
validInfo() {},
|
|
1980
1987
|
sendData() {
|
|
1981
1988
|
this.$refs['nextNode'].validate(async (valid) => {
|
|
1982
1989
|
if (valid) {
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
64
64
|
deep: true,
|
|
65
65
|
handler(val) {
|
|
66
66
|
if (val) {
|
|
67
|
-
this.job = val.identityList.filter(item => {
|
|
67
|
+
this.job = val.identityList.filter((item) => {
|
|
68
68
|
return item.id === val.identityId;
|
|
69
69
|
})[0];
|
|
70
70
|
}
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
this.job = item;
|
|
86
86
|
util
|
|
87
87
|
.ajax({ url: switchUserTo, params: { userId: item.value } })
|
|
88
|
-
.then(res => {
|
|
88
|
+
.then((res) => {
|
|
89
89
|
if (res.rCode == 0) {
|
|
90
90
|
util.setStorage({
|
|
91
91
|
type: this.storage,
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
type: 'success',
|
|
98
98
|
duration: 500,
|
|
99
99
|
onClose: () => {
|
|
100
|
-
util.removeStorage('mainConfig');
|
|
100
|
+
util.removeStorage(['mainConfig', 'jump']);
|
|
101
101
|
util.win.top.location.reload();
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
})
|
|
112
|
-
.catch(err => {
|
|
112
|
+
.catch((err) => {
|
|
113
113
|
if (err.message && err.message !== 'canceled') {
|
|
114
114
|
this.$message.error(err.message);
|
|
115
115
|
}
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
rule() {
|
|
82
82
|
if (this.rules) {
|
|
83
83
|
if (Array.isArray(this.rules)) {
|
|
84
|
-
return this.rules.map(item => {
|
|
84
|
+
return this.rules.map((item) => {
|
|
85
85
|
if (rules[item.type]) {
|
|
86
86
|
return {
|
|
87
87
|
pattern: rules[item.type]['pattern'],
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
127
127
|
data: this.param,
|
|
128
128
|
params: this.param
|
|
129
129
|
})
|
|
130
|
-
.then(res => {
|
|
130
|
+
.then((res) => {
|
|
131
131
|
if (res.rCode === 0) {
|
|
132
132
|
this.results = JSON.parse(JSON.stringify(res.results));
|
|
133
133
|
let results = query
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
callback(results);
|
|
137
137
|
}
|
|
138
138
|
})
|
|
139
|
-
.catch(err => {
|
|
139
|
+
.catch((err) => {
|
|
140
140
|
if (err.message && err.message !== 'canceled') {
|
|
141
141
|
this.$message.error(err.message);
|
|
142
142
|
}
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
searchFilter(query) {
|
|
152
|
-
return state => {
|
|
152
|
+
return (state) => {
|
|
153
153
|
return state.value.toLowerCase().indexOf(query.toLowerCase()) === 0;
|
|
154
154
|
};
|
|
155
155
|
},
|
|
@@ -226,7 +226,14 @@ export default {
|
|
|
226
226
|
{ 'es-plain': this.plain }
|
|
227
227
|
]
|
|
228
228
|
},
|
|
229
|
-
[
|
|
229
|
+
[
|
|
230
|
+
this.model == '' ||
|
|
231
|
+
this.model == null ||
|
|
232
|
+
this.model == undefined ||
|
|
233
|
+
this.model == NaN
|
|
234
|
+
? this.text
|
|
235
|
+
: this.model
|
|
236
|
+
]
|
|
230
237
|
);
|
|
231
238
|
}
|
|
232
239
|
if (this.$slots.prefix) {
|
|
@@ -1524,7 +1524,7 @@ export default {
|
|
|
1524
1524
|
this.page = util.handlerUrl(page);
|
|
1525
1525
|
} else {
|
|
1526
1526
|
this.method = 'wujie';
|
|
1527
|
-
this.wjName = res.appCode ? res.appCode : 'application';
|
|
1527
|
+
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
1528
1528
|
this.page = this.host + page;
|
|
1529
1529
|
this.$nextTick(() => {
|
|
1530
1530
|
this.refresh = true;
|
|
@@ -1681,7 +1681,8 @@ export default {
|
|
|
1681
1681
|
'deviceUnique',
|
|
1682
1682
|
'menus',
|
|
1683
1683
|
'useCaseCodes',
|
|
1684
|
-
'mainConfig'
|
|
1684
|
+
'mainConfig',
|
|
1685
|
+
'jump'
|
|
1685
1686
|
]);
|
|
1686
1687
|
if (util.win.top.location.href.indexOf('main.html') > -1) {
|
|
1687
1688
|
util.win.top.location.href = './login.html';
|
|
@@ -1719,7 +1719,7 @@ export default {
|
|
|
1719
1719
|
this.page = util.handlerUrl(page);
|
|
1720
1720
|
} else {
|
|
1721
1721
|
this.method = 'wujie';
|
|
1722
|
-
this.wjName = res.appCode ? res.appCode : 'application';
|
|
1722
|
+
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
1723
1723
|
this.page = page;
|
|
1724
1724
|
this.$nextTick(() => {
|
|
1725
1725
|
this.refresh = true;
|
|
@@ -1873,7 +1873,8 @@ export default {
|
|
|
1873
1873
|
'deviceUnique',
|
|
1874
1874
|
'menus',
|
|
1875
1875
|
'useCaseCodes',
|
|
1876
|
-
'mainConfig'
|
|
1876
|
+
'mainConfig',
|
|
1877
|
+
'jump'
|
|
1877
1878
|
]);
|
|
1878
1879
|
if (util.win.top.location.href.indexOf('main.html') > -1) {
|
|
1879
1880
|
util.win.top.location.href = './login.html';
|
package/src/index.js
CHANGED