eoss-ui 0.6.91 → 0.6.92
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/eoss-ui.common.js +65 -42
- package/lib/flow.js +31 -16
- package/lib/index.js +1 -1
- package/lib/selector.js +11 -3
- package/lib/upload.js +10 -10
- package/package.json +1 -1
- package/packages/flow/src/main.vue +4 -4
- package/packages/flow/src/selectUser.vue +8 -3
- package/packages/selector/src/main.vue +10 -2
- package/packages/upload/src/main.vue +5 -5
- package/src/index.js +1 -1
package/lib/selector.js
CHANGED
|
@@ -4157,7 +4157,7 @@ module.exports = require("axios");
|
|
|
4157
4157
|
// ESM COMPAT FLAG
|
|
4158
4158
|
__webpack_require__.r(__webpack_exports__);
|
|
4159
4159
|
|
|
4160
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=
|
|
4160
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=6cd08dd8&
|
|
4161
4161
|
var render = function () {
|
|
4162
4162
|
var _vm = this
|
|
4163
4163
|
var _h = _vm.$createElement
|
|
@@ -4754,7 +4754,7 @@ var staticRenderFns = []
|
|
|
4754
4754
|
render._withStripped = true
|
|
4755
4755
|
|
|
4756
4756
|
|
|
4757
|
-
// CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=
|
|
4757
|
+
// CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=6cd08dd8&
|
|
4758
4758
|
|
|
4759
4759
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
4760
4760
|
var util = __webpack_require__(0);
|
|
@@ -5003,6 +5003,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
|
5003
5003
|
//
|
|
5004
5004
|
//
|
|
5005
5005
|
//
|
|
5006
|
+
//
|
|
5007
|
+
//
|
|
5006
5008
|
|
|
5007
5009
|
|
|
5008
5010
|
|
|
@@ -5123,7 +5125,13 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
|
5123
5125
|
};
|
|
5124
5126
|
}
|
|
5125
5127
|
},
|
|
5128
|
+
//混选
|
|
5126
5129
|
mix: Boolean,
|
|
5130
|
+
//混选时是否分类显示
|
|
5131
|
+
classify: {
|
|
5132
|
+
type: Boolean,
|
|
5133
|
+
default: true
|
|
5134
|
+
},
|
|
5127
5135
|
noMatchText: {
|
|
5128
5136
|
type: String,
|
|
5129
5137
|
default: '无匹配数据'
|
|
@@ -5476,7 +5484,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
|
5476
5484
|
getLabel: function getLabel(res) {
|
|
5477
5485
|
var tag = '';
|
|
5478
5486
|
if (this.mix) {
|
|
5479
|
-
tag = util["a" /* default */].getTypeName(res.stype);
|
|
5487
|
+
tag = this.classify ? util["a" /* default */].getTypeName(res.stype) : '';
|
|
5480
5488
|
} else if (this.showFilterListDep) {
|
|
5481
5489
|
tag = this.getDep(res);
|
|
5482
5490
|
}
|
package/lib/upload.js
CHANGED
|
@@ -4351,8 +4351,8 @@ module.exports = require("js-base64");
|
|
|
4351
4351
|
// ESM COMPAT FLAG
|
|
4352
4352
|
__webpack_require__.r(__webpack_exports__);
|
|
4353
4353
|
|
|
4354
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
4355
|
-
var
|
|
4354
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=02b1ced8&
|
|
4355
|
+
var mainvue_type_template_id_02b1ced8_render = function () {
|
|
4356
4356
|
var _vm = this
|
|
4357
4357
|
var _h = _vm.$createElement
|
|
4358
4358
|
var _c = _vm._self._c || _h
|
|
@@ -4733,10 +4733,10 @@ var mainvue_type_template_id_8bdc905c_render = function () {
|
|
|
4733
4733
|
: _vm._e()
|
|
4734
4734
|
}
|
|
4735
4735
|
var staticRenderFns = []
|
|
4736
|
-
|
|
4736
|
+
mainvue_type_template_id_02b1ced8_render._withStripped = true
|
|
4737
4737
|
|
|
4738
4738
|
|
|
4739
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
4739
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=02b1ced8&
|
|
4740
4740
|
|
|
4741
4741
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4742
4742
|
var api = __webpack_require__(1);
|
|
@@ -5566,7 +5566,7 @@ var _props;
|
|
|
5566
5566
|
} else {
|
|
5567
5567
|
var file = res.response ? res.response : res;
|
|
5568
5568
|
var url = typeof this.preview === 'string' ? this.preview : typeof this.preview === 'function' ? this.preview(file) : null;
|
|
5569
|
-
if (res.status === 'success') {
|
|
5569
|
+
if (res.status === 'success' || res.status == 0) {
|
|
5570
5570
|
var suffix = file.suffix;
|
|
5571
5571
|
suffix = suffix.toLowerCase();
|
|
5572
5572
|
if (this.dochubConfig.previewDocumentUrl) {
|
|
@@ -5711,7 +5711,7 @@ var _props;
|
|
|
5711
5711
|
handleBeforeRemove: function handleBeforeRemove(file, fileList) {
|
|
5712
5712
|
var _this7 = this;
|
|
5713
5713
|
|
|
5714
|
-
if (file && file.status === 'success') {
|
|
5714
|
+
if (file && (file.status === 'success' || file.status == 0)) {
|
|
5715
5715
|
return this.$confirm('确定删除文件吗?', '提示', {
|
|
5716
5716
|
confirmButtonText: '确定',
|
|
5717
5717
|
cancelButtonText: '取消',
|
|
@@ -5719,7 +5719,7 @@ var _props;
|
|
|
5719
5719
|
}).then(function () {
|
|
5720
5720
|
if (_this7.beforeRemove) {
|
|
5721
5721
|
return _this7.beforeRemove(file, fileList);
|
|
5722
|
-
} else if (file.status === 'success') {
|
|
5722
|
+
} else if (file.status === 'success' || file.status == 0) {
|
|
5723
5723
|
var userName = file.userName || file.response && file.response.userName || util["a" /* default */].getStorage('userName');
|
|
5724
5724
|
// eslint-disable-next-line no-undef
|
|
5725
5725
|
return new Promise(function (resolve, reject) {
|
|
@@ -5766,7 +5766,7 @@ var _props;
|
|
|
5766
5766
|
util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : '') + '&businessId=' + this.ownId + '&fileName=文档.zip' + '&bucketCode=' + this.code);
|
|
5767
5767
|
},
|
|
5768
5768
|
handleDownload: function handleDownload(file) {
|
|
5769
|
-
if (file.status === 'success') {
|
|
5769
|
+
if (file.status === 'success' || file.status == 0) {
|
|
5770
5770
|
var url = typeof this.download === 'string' ? this.download : this.dochubConfig.downloadDocumentUrl || api["v" /* downloadByAdjunctId */];
|
|
5771
5771
|
util["a" /* default */].win.open(this.host + url + '?adjunctId=' + (file.adjunctId || file.response.adjunctId) + '&documentId=' + (file.adjunctId || file.response.adjunctId));
|
|
5772
5772
|
} else {
|
|
@@ -5795,7 +5795,7 @@ var _props;
|
|
|
5795
5795
|
this.onSort(files);
|
|
5796
5796
|
} else {
|
|
5797
5797
|
var ids = files.map(function (item) {
|
|
5798
|
-
if (item.status === 'success') {
|
|
5798
|
+
if (item.status === 'success' || item.status == 0) {
|
|
5799
5799
|
return item.adjunctId || item.response.adjunctId;
|
|
5800
5800
|
}
|
|
5801
5801
|
});
|
|
@@ -5914,7 +5914,7 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5914
5914
|
|
|
5915
5915
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5916
5916
|
src_mainvue_type_script_lang_js_,
|
|
5917
|
-
|
|
5917
|
+
mainvue_type_template_id_02b1ced8_render,
|
|
5918
5918
|
staticRenderFns,
|
|
5919
5919
|
false,
|
|
5920
5920
|
null,
|
package/package.json
CHANGED
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
</el-form-item>
|
|
503
503
|
|
|
504
504
|
<el-form-item
|
|
505
|
-
v-if="isHideCurrentOrg"
|
|
505
|
+
v-if="isHideCurrentOrg && nextNode.isReturnSubmitter != 1"
|
|
506
506
|
prop="nextCurrentOrgObj"
|
|
507
507
|
:label="currentOrgName ? currentOrgName : '本单位'"
|
|
508
508
|
>
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
/>
|
|
518
518
|
</el-form-item>
|
|
519
519
|
<el-form-item
|
|
520
|
-
v-if="isHideOtherOrg"
|
|
520
|
+
v-if="isHideOtherOrg && nextNode.isReturnSubmitter != 1"
|
|
521
521
|
prop="nextOtherOrgObj"
|
|
522
522
|
:label="otherOrgName ? otherOrgName : '外单位'"
|
|
523
523
|
>
|
|
@@ -1997,7 +1997,7 @@ export default {
|
|
|
1997
1997
|
};
|
|
1998
1998
|
this.loading = util.loading(this.$loading, '保存中...');
|
|
1999
1999
|
util
|
|
2000
|
-
.ajax({ url: tempSave, params })
|
|
2000
|
+
.ajax({ url: tempSave, data:params,method: 'post' })
|
|
2001
2001
|
.then((res) => {
|
|
2002
2002
|
const { status, message } = res;
|
|
2003
2003
|
if (!isSave) this.loading.close();
|
|
@@ -3399,7 +3399,7 @@ export default {
|
|
|
3399
3399
|
(this.currentNodeIsCircularReadNode ||
|
|
3400
3400
|
(this.isHideOtherOrg && this.isHideCurrentOrg)) &&
|
|
3401
3401
|
this.nextNode.nextCurrentOrgObj.length == 0 &&
|
|
3402
|
-
this.nextNode.nextOtherOrgObj.length == 0
|
|
3402
|
+
this.nextNode.nextOtherOrgObj.length == 0 && this.nextNode.isReturnSubmitter != 1
|
|
3403
3403
|
) {
|
|
3404
3404
|
this.$message.warning(`请选择下步办理对象!`);
|
|
3405
3405
|
return false;
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
:types="types"
|
|
67
67
|
:tabs="tabs"
|
|
68
68
|
:title="title"
|
|
69
|
-
:
|
|
69
|
+
:classify="classify"
|
|
70
|
+
:collapse-tags="2"
|
|
70
71
|
:mix="mix"
|
|
71
72
|
:min="isUnionSeal ? 1 : 0"
|
|
72
73
|
:disabled="!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1"
|
|
@@ -79,11 +80,11 @@
|
|
|
79
80
|
: 'no-icon'
|
|
80
81
|
"
|
|
81
82
|
:select="isUnionSeal == false"
|
|
82
|
-
:where="newWhere"
|
|
83
|
+
:where="{ ...newWhere, info: classify ? '' : 'no' }"
|
|
83
84
|
:multiple="newMultiple"
|
|
84
85
|
@cancel="cancelSelectUser"
|
|
85
86
|
@change="getSelectUser"
|
|
86
|
-
:param="{ ...newParams, info: 'no' }"
|
|
87
|
+
:param="{ ...newParams, info: classify ? '' : 'no' }"
|
|
87
88
|
:disableds="disableds"
|
|
88
89
|
><i class="es-icon-user"></i
|
|
89
90
|
></es-selector>
|
|
@@ -177,6 +178,7 @@ export default {
|
|
|
177
178
|
return {
|
|
178
179
|
searchLoading: false,
|
|
179
180
|
newNextUser: [],
|
|
181
|
+
classify:true,
|
|
180
182
|
newOptions: [],
|
|
181
183
|
newSelectUserList: [],
|
|
182
184
|
url: handleInfo,
|
|
@@ -266,6 +268,9 @@ export default {
|
|
|
266
268
|
immediate: true
|
|
267
269
|
}
|
|
268
270
|
},
|
|
271
|
+
mounted() {
|
|
272
|
+
this.classify = util.getStorage('classify')!= undefined ? util.getStorage('classify') : true;
|
|
273
|
+
},
|
|
269
274
|
|
|
270
275
|
methods: {
|
|
271
276
|
changeInfo(data) {
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
collapseTags === true ? 1 : collapseTags
|
|
39
39
|
)"
|
|
40
40
|
:key="getValueKey(item)"
|
|
41
|
-
:closable="
|
|
41
|
+
:closable="
|
|
42
|
+
!selectorDisabled && !readonly && selected.length > min
|
|
43
|
+
"
|
|
42
44
|
type="info"
|
|
43
45
|
disable-transitions
|
|
44
46
|
@close="deleteTag($event, item, index)"
|
|
@@ -354,7 +356,13 @@ export default {
|
|
|
354
356
|
};
|
|
355
357
|
}
|
|
356
358
|
},
|
|
359
|
+
//混选
|
|
357
360
|
mix: Boolean,
|
|
361
|
+
//混选时是否分类显示
|
|
362
|
+
classify: {
|
|
363
|
+
type: Boolean,
|
|
364
|
+
default: true
|
|
365
|
+
},
|
|
358
366
|
noMatchText: {
|
|
359
367
|
type: String,
|
|
360
368
|
default: '无匹配数据'
|
|
@@ -727,7 +735,7 @@ export default {
|
|
|
727
735
|
getLabel(res) {
|
|
728
736
|
let tag = '';
|
|
729
737
|
if (this.mix) {
|
|
730
|
-
tag = util.getTypeName(res.stype);
|
|
738
|
+
tag = this.classify?util.getTypeName(res.stype) : '';
|
|
731
739
|
} else if (this.showFilterListDep) {
|
|
732
740
|
tag = this.getDep(res);
|
|
733
741
|
}
|
|
@@ -904,7 +904,7 @@ export default {
|
|
|
904
904
|
: typeof this.preview === 'function'
|
|
905
905
|
? this.preview(file)
|
|
906
906
|
: null;
|
|
907
|
-
if (res.status === 'success') {
|
|
907
|
+
if (res.status === 'success' || res.status == 0) {
|
|
908
908
|
let suffix = file.suffix;
|
|
909
909
|
suffix = suffix.toLowerCase();
|
|
910
910
|
if (this.dochubConfig.previewDocumentUrl) {
|
|
@@ -1108,7 +1108,7 @@ export default {
|
|
|
1108
1108
|
return flag;
|
|
1109
1109
|
},
|
|
1110
1110
|
handleBeforeRemove(file, fileList) {
|
|
1111
|
-
if (file && file.status === 'success') {
|
|
1111
|
+
if (file && (file.status === 'success' || file.status == 0)) {
|
|
1112
1112
|
return this.$confirm('确定删除文件吗?', '提示', {
|
|
1113
1113
|
confirmButtonText: '确定',
|
|
1114
1114
|
cancelButtonText: '取消',
|
|
@@ -1117,7 +1117,7 @@ export default {
|
|
|
1117
1117
|
.then(() => {
|
|
1118
1118
|
if (this.beforeRemove) {
|
|
1119
1119
|
return this.beforeRemove(file, fileList);
|
|
1120
|
-
} else if (file.status === 'success') {
|
|
1120
|
+
} else if (file.status === 'success' || file.status == 0) {
|
|
1121
1121
|
let userName =
|
|
1122
1122
|
file.userName ||
|
|
1123
1123
|
(file.response && file.response.userName) ||
|
|
@@ -1194,7 +1194,7 @@ export default {
|
|
|
1194
1194
|
);
|
|
1195
1195
|
},
|
|
1196
1196
|
handleDownload(file) {
|
|
1197
|
-
if (file.status === 'success') {
|
|
1197
|
+
if (file.status === 'success' || file.status == 0) {
|
|
1198
1198
|
let url =
|
|
1199
1199
|
typeof this.download === 'string'
|
|
1200
1200
|
? this.download
|
|
@@ -1231,7 +1231,7 @@ export default {
|
|
|
1231
1231
|
this.onSort(files);
|
|
1232
1232
|
} else {
|
|
1233
1233
|
let ids = files.map((item) => {
|
|
1234
|
-
if (item.status === 'success') {
|
|
1234
|
+
if (item.status === 'success' || item.status == 0) {
|
|
1235
1235
|
return item.adjunctId || item.response.adjunctId;
|
|
1236
1236
|
}
|
|
1237
1237
|
});
|