eoss-mobiles 0.3.28 → 0.3.29
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-mobile.common.js +39 -28
- package/lib/flow.js +11 -9
- package/lib/index.js +1 -1
- package/lib/picker.js +22 -13
- package/package.json +1 -1
- package/packages/flow/src/components/TaskRead.vue +4 -2
- package/packages/picker/src/main.vue +12 -2
- package/src/index.js +1 -1
package/lib/picker.js
CHANGED
|
@@ -2137,7 +2137,7 @@ module.exports = require("sm-crypto");
|
|
|
2137
2137
|
// ESM COMPAT FLAG
|
|
2138
2138
|
__webpack_require__.r(__webpack_exports__);
|
|
2139
2139
|
|
|
2140
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=
|
|
2140
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=7613ff16
|
|
2141
2141
|
var render = function () {
|
|
2142
2142
|
var _vm = this
|
|
2143
2143
|
var _h = _vm.$createElement
|
|
@@ -2308,7 +2308,7 @@ var render = function () {
|
|
|
2308
2308
|
[
|
|
2309
2309
|
_c("em-search", {
|
|
2310
2310
|
attrs: { placeholder: "请输入搜索关键词" },
|
|
2311
|
-
on: {
|
|
2311
|
+
on: { input: _vm.handleSearch },
|
|
2312
2312
|
model: {
|
|
2313
2313
|
value: _vm.keyWord,
|
|
2314
2314
|
callback: function ($$v) {
|
|
@@ -2361,7 +2361,7 @@ var render = function () {
|
|
|
2361
2361
|
[
|
|
2362
2362
|
_c("em-search", {
|
|
2363
2363
|
attrs: { placeholder: "请输入搜索关键词" },
|
|
2364
|
-
on: {
|
|
2364
|
+
on: { input: _vm.handleSearch },
|
|
2365
2365
|
model: {
|
|
2366
2366
|
value: _vm.keyWord,
|
|
2367
2367
|
callback: function ($$v) {
|
|
@@ -2460,7 +2460,7 @@ var staticRenderFns = []
|
|
|
2460
2460
|
render._withStripped = true
|
|
2461
2461
|
|
|
2462
2462
|
|
|
2463
|
-
// CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=
|
|
2463
|
+
// CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=7613ff16
|
|
2464
2464
|
|
|
2465
2465
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
2466
2466
|
var api = __webpack_require__(2);
|
|
@@ -2615,6 +2615,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2615
2615
|
//
|
|
2616
2616
|
//
|
|
2617
2617
|
//
|
|
2618
|
+
//
|
|
2619
|
+
//
|
|
2618
2620
|
|
|
2619
2621
|
|
|
2620
2622
|
|
|
@@ -2632,6 +2634,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2632
2634
|
listFinished: false,
|
|
2633
2635
|
newColumns: [],
|
|
2634
2636
|
checkList: [],
|
|
2637
|
+
timer: null,
|
|
2635
2638
|
newDefaultIndex: 0,
|
|
2636
2639
|
pageIndex: 1,
|
|
2637
2640
|
total: -1
|
|
@@ -2844,18 +2847,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2844
2847
|
handleSearch: function handleSearch() {
|
|
2845
2848
|
var _this3 = this;
|
|
2846
2849
|
|
|
2847
|
-
|
|
2850
|
+
if (this.timer != null) {
|
|
2851
|
+
clearTimeout(this.timer);
|
|
2852
|
+
}
|
|
2853
|
+
this.timer = setTimeout(function () {
|
|
2854
|
+
|
|
2855
|
+
_this3.$emit('search', _this3.keyWord);
|
|
2848
2856
|
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2857
|
+
if (_this3.columns.length > 0) {
|
|
2858
|
+
_this3.newColumns = _this3.columns.filter(function (x) {
|
|
2859
|
+
return x[_this3.labelKey].indexOf(_this3.keyWord) != -1;
|
|
2860
|
+
});
|
|
2861
|
+
if (!_this3.keyWord) {
|
|
2862
|
+
_this3.newColumns = _this3.columns;
|
|
2863
|
+
}
|
|
2855
2864
|
}
|
|
2856
|
-
}
|
|
2857
2865
|
|
|
2858
|
-
|
|
2866
|
+
if (_this3.columns && _this3.columns.length == 0 || !_this3.columns) _this3.getSysCode();
|
|
2867
|
+
}, 700);
|
|
2859
2868
|
},
|
|
2860
2869
|
handleClick: function handleClick(val) {
|
|
2861
2870
|
if (this.linkTag) {
|
package/package.json
CHANGED
|
@@ -416,10 +416,12 @@ export default {
|
|
|
416
416
|
this.params.pid = 'root';
|
|
417
417
|
} else if (this.selectPersonValue == 5) {
|
|
418
418
|
this.multiple = false;
|
|
419
|
-
this.params.pid = '';
|
|
419
|
+
this.params.pid = 'root';
|
|
420
420
|
} else if (this.selectPersonValue == 6) {
|
|
421
421
|
this.multiple = true;
|
|
422
|
-
this.params.pid = '';
|
|
422
|
+
this.params.pid = 'root';
|
|
423
|
+
}else{
|
|
424
|
+
this.params.pid = 'root';
|
|
423
425
|
}
|
|
424
426
|
},
|
|
425
427
|
// 通知消息回调
|
|
@@ -79,9 +79,10 @@
|
|
|
79
79
|
@confirm="onConfirm($event, true)"
|
|
80
80
|
>
|
|
81
81
|
<template slot="columns-top" v-if="isSearch">
|
|
82
|
+
<!-- @search="handleSearch" -->
|
|
82
83
|
<em-search
|
|
83
84
|
v-model="keyWord"
|
|
84
|
-
@
|
|
85
|
+
@input="handleSearch"
|
|
85
86
|
placeholder="请输入搜索关键词"
|
|
86
87
|
/>
|
|
87
88
|
</template>
|
|
@@ -102,10 +103,11 @@
|
|
|
102
103
|
@cancel="onConfirm"
|
|
103
104
|
@confirm="onConfirm($event, true)"
|
|
104
105
|
>
|
|
106
|
+
<!-- @search="handleSearch" -->
|
|
105
107
|
<template slot="columns-top" v-if="isSearch">
|
|
106
108
|
<em-search
|
|
107
109
|
v-model="keyWord"
|
|
108
|
-
@
|
|
110
|
+
@input="handleSearch"
|
|
109
111
|
placeholder="请输入搜索关键词"
|
|
110
112
|
/>
|
|
111
113
|
</template>
|
|
@@ -157,6 +159,7 @@ export default {
|
|
|
157
159
|
listFinished: false,
|
|
158
160
|
newColumns: [],
|
|
159
161
|
checkList: [],
|
|
162
|
+
timer:null,
|
|
160
163
|
newDefaultIndex: 0,
|
|
161
164
|
pageIndex: 1,
|
|
162
165
|
total: -1
|
|
@@ -361,6 +364,12 @@ export default {
|
|
|
361
364
|
},
|
|
362
365
|
methods: {
|
|
363
366
|
handleSearch() {
|
|
367
|
+
|
|
368
|
+
if (this.timer != null) {
|
|
369
|
+
clearTimeout(this.timer);
|
|
370
|
+
}
|
|
371
|
+
this.timer = setTimeout( () => {
|
|
372
|
+
|
|
364
373
|
this.$emit('search', this.keyWord);
|
|
365
374
|
|
|
366
375
|
if (this.columns.length > 0) {
|
|
@@ -374,6 +383,7 @@ export default {
|
|
|
374
383
|
|
|
375
384
|
if ((this.columns && this.columns.length == 0) || !this.columns)
|
|
376
385
|
this.getSysCode();
|
|
386
|
+
}, 700);
|
|
377
387
|
},
|
|
378
388
|
handleClick(val) {
|
|
379
389
|
if (this.linkTag) {
|