| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <template>
- <view class="">
- <view class="search-box">
- <My_search background="#fff" @onSearch="onSearch" />
- </view>
- <view class="head">
- <text>
- 人员
- </text>
- <text>
- 共{{ total }}个
- </text>
- </view>
- <My_listbox ref="List" @getlist="getList" bottomHeight="70">
- <user-list :list="list" @onClick="onClick" />
- </My_listbox>
- <view class="footer">
- <navigator class="insert" url="">
- 新增人员
- </navigator>
- <navigator class="invite" url="/team/team/InviteUser">
- 邀请人员
- </navigator>
- </view>
- </view>
- </template>
- <script>
- import userList from "../../userCenter/modules/userList.vue"
- export default {
- components: { userList },
- data() {
- return {
- "content": {
- "where": {
- "condition": ""
- }
- },
- total: 0,
- list: []
- }
- },
- created() {
- this.init()
- },
- methods: {
- init() {
- this.getList(true)
- },
- getList(init = false) {
- if (this.paging(this.content, init)) return;
- this.$Http.basic({
- "id": "20240410161802",
- content: this.content
- }).then(res => {
- console.log("人员列表", res)
- this.$refs.List.RefreshToComplete()
- if (this.cutoff(res.msg)) return;
- /* res.data = res.data.map(v => {
- v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "sa_fad") || v.attinfos[0]) : uni.getStorageSync("site").logo || ''
- return v
- }) */
- this.total = res.total;
- this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data), this.colors;
- this.content = this.$refs.List.paging(this.content, res)
- })
- },
- onClick(item) {
- uni.navigateTo({
- url: '/team/userCenter/personal?id=' + item.sys_enterprise_hrid
- });
- },
- onSearch(condition) {
- this.content.where.condition = condition;
- this.getList(true)
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- .search-box {
- margin-top: 10px;
- padding: 0 10px;
- box-sizing: border-box;
- }
- .head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 37px;
- padding: 0 10px;
- box-sizing: border-box;
- font-family: Source Han Sans SC, Source Han Sans SC;
- font-size: 12px;
- color: #666666;
- }
- .footer {
- position: fixed;
- bottom: 0;
- display: flex;
- justify-content: space-between;
- width: 100vw;
- height: 65px;
- background: #FFFFFF;
- box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
- padding: 5px 10px;
- box-sizing: border-box;
- .insert {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 168px;
- height: 45px;
- background: #FFFFFF;
- border-radius: 5px;
- border: 1px solid #999999;
- font-family: PingFang SC, PingFang SC;
- font-size: 16px;
- color: #666666;
- box-sizing: border-box;
- }
- .invite {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 177px;
- height: 45px;
- background: #C30D23;
- border-radius: 5px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 16px;
- color: #FFFFFF;
- }
- }
- </style>
|