eoss-mobiles 0.3.21 → 0.3.23
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 +115 -82
- package/lib/index.js +1 -1
- package/lib/selector.js +114 -81
- package/lib/theme-chalk/flow-list.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/selector/src/selector-tree.vue +9 -13
- package/packages/selector/src/tree.vue +4 -4
- package/packages/theme-chalk/lib/flow-list.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow-list.scss +1 -0
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -617,10 +617,10 @@ export default {
|
|
|
617
617
|
// });
|
|
618
618
|
},
|
|
619
619
|
methods: {
|
|
620
|
-
handleClick(index) {
|
|
620
|
+
async handleClick(index) {
|
|
621
621
|
this.selectIndex = index;
|
|
622
|
+
await this.getContent();
|
|
622
623
|
this.inputSearch = false;
|
|
623
|
-
this.getContent();
|
|
624
624
|
},
|
|
625
625
|
getNodeList(isSearch) {
|
|
626
626
|
this.personnel = JSON.parse(JSON.stringify(this.nodeList));
|
|
@@ -710,14 +710,14 @@ export default {
|
|
|
710
710
|
if (this.timer != null) {
|
|
711
711
|
clearTimeout(this.timer);
|
|
712
712
|
}
|
|
713
|
-
this.timer = setTimeout(() => {
|
|
713
|
+
this.timer = setTimeout( async() => {
|
|
714
714
|
if (this.$listeners.search) {
|
|
715
715
|
this.oldIsSearch = this.isSearch;
|
|
716
716
|
this.isSearch = !this.isSearch;
|
|
717
717
|
this.$emit('search', this.namelike);
|
|
718
718
|
} else {
|
|
719
|
-
|
|
720
|
-
this.
|
|
719
|
+
await this.getContent();
|
|
720
|
+
this.inputSearch = !!this.namelike.trim();
|
|
721
721
|
}
|
|
722
722
|
}, 1000);
|
|
723
723
|
},
|
|
@@ -752,7 +752,7 @@ export default {
|
|
|
752
752
|
}
|
|
753
753
|
delete this.newParam.department
|
|
754
754
|
delete this.newParam.myemployee
|
|
755
|
-
request({
|
|
755
|
+
return request({
|
|
756
756
|
url: this.url
|
|
757
757
|
? this.url
|
|
758
758
|
: this.baseUrl
|
|
@@ -769,11 +769,6 @@ export default {
|
|
|
769
769
|
this.$toast.clear();
|
|
770
770
|
const { rCode, msg } = res;
|
|
771
771
|
if (rCode == 0) {
|
|
772
|
-
if (this.inputSearch && !this.namelike) {
|
|
773
|
-
this.inputSearch = false;
|
|
774
|
-
} else if (this.namelike.trim()) {
|
|
775
|
-
this.inputSearch = true;
|
|
776
|
-
}
|
|
777
772
|
if (typeof this.selectList == 'string') {
|
|
778
773
|
this.selectData = [];
|
|
779
774
|
this.list = this.getSelectData(
|
|
@@ -1040,7 +1035,7 @@ export default {
|
|
|
1040
1035
|
if (res.obj.isAllCheck) {
|
|
1041
1036
|
let selectData = [];
|
|
1042
1037
|
model.map((x) => {
|
|
1043
|
-
if(!x.disabled && !x.nocheck && !x.isAllCheck){
|
|
1038
|
+
if(!x.disabled && !x.nocheck && !x.isAllCheck && x.selecttype == this.newParam.selecttype){
|
|
1044
1039
|
this.$set(x, 'checked', true);
|
|
1045
1040
|
selectData.push(x);
|
|
1046
1041
|
}
|
|
@@ -1063,7 +1058,8 @@ export default {
|
|
|
1063
1058
|
obj[next.showid] ? '' : (obj[next.showid] = true && item.push(next));
|
|
1064
1059
|
return item;
|
|
1065
1060
|
}, []);
|
|
1066
|
-
|
|
1061
|
+
let newArr = model.filter((x) => !x.disabled&&!x.nocheck&& x.selecttype == this.newParam.selecttype);
|
|
1062
|
+
if (newArr.length === checkList.length) {
|
|
1067
1063
|
model.map((x) => {
|
|
1068
1064
|
if (!x.disabled) {
|
|
1069
1065
|
this.$set(model[0], 'checked', true);
|
|
@@ -184,12 +184,12 @@
|
|
|
184
184
|
? item[labelKey].slice(0, 12) + '...'
|
|
185
185
|
: item[labelKey] -->
|
|
186
186
|
<slot name="tree-icon" :value="item"></slot>
|
|
187
|
+
<!-- (selectType == departmentValueKey &&
|
|
188
|
+
item[departmentLabelKey] == departmentValueKey)
|
|
189
|
+
(!item.nocheck ||
|
|
190
|
+
enterprise) && -->
|
|
187
191
|
{{
|
|
188
192
|
item.attr &&
|
|
189
|
-
(!item.nocheck ||
|
|
190
|
-
enterprise ||
|
|
191
|
-
(selectType == departmentValueKey &&
|
|
192
|
-
item[departmentLabelKey] == departmentValueKey)) &&
|
|
193
193
|
!showTree &&
|
|
194
194
|
inputSearch &&
|
|
195
195
|
selectType === 'employee'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.em-flow-list{width:100%;height:100%}.em-flow-list .list{padding:32px 16px 0}.em-flow-list .list .item{position:relative;border-left:1px solid #eee;padding:10px 0;margin:10px 0}.em-flow-list .list .item .icon-gou{position:absolute;top:-15px;left:-8px;color:#12278B}.em-flow-list .list .item .process-pending{position:absolute;top:-15px;left:-8.5px;width:16px;height:16px;border-radius:50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.em-flow-list .list .item .process-pending .process-pending-yuan{display:inline-block;width:6px;height:6px;border-radius:50%;background:#12278B}.em-flow-list .list .item:last-child{border-left-color:transparent;height:auto}.em-flow-list .list .item .icon-finish{width:16px;height:auto;position:relative;left:-8px}.em-flow-list .list .item .icon-ing{width:34px;height:auto;position:relative;left:-14px}.em-flow-list .list .item .item-box{padding-left:29px;width:100%}.em-flow-list .list .item .item-box .one{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:-18px}.em-flow-list .list .item .item-box .one .label{font-size:14px;font-family:PingFang SC;font-weight:400;color:#666}.em-flow-list .list .item .item-box .one .time{font-size:12px;font-family:PingFang SC;font-weight:400;color:#999}.em-flow-list .list .item .item-box .two{font-size:16px;font-family:PingFang SC;font-weight:400;color:#333;padding-bottom:10px;border-bottom:1px solid #eee}.em-flow-list .list .item .item-box .tree{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:12px;font-family:PingFang SC;color:#999;line-height:16px;margin-bottom:16px;margin-top:10px}.em-flow-list .list .item .time{text-align:right;color:#333;font-size:13px;padding-top:10px;height:16px;line-height:15px}.em-flow-list .list .success-icon{border-left-color:#12278B}.em-flow-list .more{color:#12278B}.em-flow-list .custom-image .van-empty__image{width:90px;height:90px}
|
|
1
|
+
@charset "UTF-8";.process-page{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.process-page .main{padding:20px 12px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.process-page .box{background:#fff;border-radius:8px;height:auto}.process-page .box .title{font-size:16px;color:#3a3211;padding:16px;border-bottom:1px solid #f0f0f0}.process-page .box .title .check-btn{float:right}.process-page .box .list-area{padding:0 12px}.process-page .box .list-area .van-checkbox__label{-webkit-box-flex:1;-ms-flex:1;flex:1;border-bottom:1px solid #f0f0f0;padding:14px 0 14px 4px}.process-page .box .list-area .list-item .name-area{font-size:12px;color:#222;display:-webkit-box;display:-ms-flexbox;display:flex}.process-page .box .list-area .list-item .name-area span{display:inline-block}.process-page .box .list-area .list-item .name-area .user-name,.process-page .box .list-area .list-item .name-area .user-name-flow{display:inline-block;margin-right:8px;border-right:1px solid #f0f0f0;width:36px}.process-page .box .list-area .list-item .name-area .handle-name,.process-page .box .list-area .list-item .name-area .handle-name-flow{-webkit-box-flex:1;-ms-flex:1;flex:1;padding-right:8px}.process-page .box .list-area .list-item .name-area .handle-name-flow{-webkit-box-flex:unset;-ms-flex:unset;flex:unset}.process-page .box .list-area .list-item .name-area .user-name-flow{border:unset;-webkit-box-flex:1;-ms-flex:1;flex:1;width:unset}.process-page .box .list-area .list-item .name-area .handle-status{width:44px;height:22px;float:right;border-radius:4px;background:rgba(232,35,52,.1);color:#e82334;font-size:12px;text-align:center;line-height:22px}.process-page .box .list-area .list-item .name-area .handle-status.success{background:rgba(41,225,41,.1);color:#29e129}.process-page .box .list-area .list-item .time{font-size:12px;color:#999;margin-top:12px}.process-page .box .list-area .list-item.list-item2{border-bottom:1px solid #f0f0f0;padding:14px 0}.btn-area{width:100%;height:90px;background:#fff;padding:12px 16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.btn-area .btn{width:calc(50% - 10px);color:#12278B;border:1px solid #12278B;font-size:16px}.btn-area .btn:last-child{color:#fff}.no-data{text-align:center;padding:20px 0;color:#999}.em-flow-list{width:100%;height:100%}.em-flow-list .list{padding:32px 16px 0}.em-flow-list .list .item{position:relative;border-left:1px solid #eee;padding:10px 0;margin:10px 0}.em-flow-list .list .item .icon-gou{position:absolute;top:-15px;left:-8px;color:#12278B}.em-flow-list .list .item .process-pending{position:absolute;top:-15px;left:-8.5px;width:16px;height:16px;border-radius:50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.em-flow-list .list .item .process-pending .process-pending-yuan{display:inline-block;width:6px;height:6px;border-radius:50%;background:#12278B}.em-flow-list .list .item:last-child{border-left-color:transparent;height:auto}.em-flow-list .list .item .icon-finish{width:16px;height:auto;position:relative;left:-8px}.em-flow-list .list .item .icon-ing{width:34px;height:auto;position:relative;left:-14px}.em-flow-list .list .item .item-box{padding-left:29px;width:100%}.em-flow-list .list .item .item-box .one{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:-18px}.em-flow-list .list .item .item-box .one .label{font-size:14px;font-family:PingFang SC;font-weight:400;color:#666}.em-flow-list .list .item .item-box .one .time{font-size:12px;font-family:PingFang SC;font-weight:400;color:#999}.em-flow-list .list .item .item-box .two{font-size:16px;font-family:PingFang SC;font-weight:400;color:#333;padding-bottom:10px;border-bottom:1px solid #eee}.em-flow-list .list .item .item-box .tree{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:12px;font-family:PingFang SC;color:#999;line-height:16px;margin-bottom:16px;margin-top:10px}.em-flow-list .list .item .time{text-align:right;color:#333;font-size:13px;padding-top:10px;height:16px;line-height:15px}.em-flow-list .list .success-icon{border-left-color:#12278B}.em-flow-list .more{color:#12278B}.em-flow-list .custom-image .van-empty__image{width:90px;height:90px}
|