|
@@ -6,11 +6,11 @@
|
|
|
<view
|
|
|
v-for="item in currentData"
|
|
|
class="box-list-item"
|
|
|
- :class="[item.children && item.children.length ? 'box-list-item-department-icon' : 'box-list-item-user']"
|
|
|
+ :class="[item.children && item.children.length >= 0 ? 'box-list-item-department-icon' : 'box-list-item-user']"
|
|
|
:key="item.id"
|
|
|
@click="handelClickItem(item)"
|
|
|
>
|
|
|
- <view class="box-list-item-department-pic" v-if="item.children && item.children.length"><image src="@/static/department-icon.png"></image></view>
|
|
|
+ <view class="box-list-item-department-pic" v-if="item.children && item.children.length >= 0"><image src="@/static/department-icon.png"></image></view>
|
|
|
<view class="box-list-item-user-pic flex" v-else>
|
|
|
<u-checkbox class="box-list-item-user-pic-checkbox mr9" :name="item.id"> </u-checkbox>
|
|
|
<u-avatar
|
|
@@ -93,11 +93,13 @@ export default {
|
|
|
this.currentData = this.dataList;
|
|
|
|
|
|
var userList = storageSystem.get("project").userList;
|
|
|
- userList.forEach((e) => {
|
|
|
- this.checkboxList.push(e.id);
|
|
|
- this.checkboxUserData.push(e);
|
|
|
- this.checkboxUserList.push(e.label);
|
|
|
- });
|
|
|
+ if (userList) {
|
|
|
+ userList.forEach((e) => {
|
|
|
+ this.checkboxList.push(e.id);
|
|
|
+ this.checkboxUserData.push(e);
|
|
|
+ this.checkboxUserList.push(e.label);
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
tabChange(obj) {
|
|
|
this.getCurrentData(obj.id, this.dataList);
|
|
@@ -114,6 +116,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$modal.msg("该部门下暂无可选择人员!");
|
|
|
}
|
|
|
// this.$emit("change", item);
|
|
|
},
|