Browse Source

ss

shibei_master
dai 4 years ago
parent
commit
1d2ae2573d
  1. 6
      src/views/modules/visual/basicinfo/basicInfoCommunity.vue
  2. 3
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  3. 26
      src/views/modules/visual/basicinfo/cpts/people-more.vue
  4. 3
      src/views/modules/visual/basicinfo/people.vue

6
src/views/modules/visual/basicinfo/basicInfoCommunity.vue

@ -53,7 +53,7 @@
<div v-for="(userItem,userIndex) in userArray" <div v-for="(userItem,userIndex) in userArray"
:key="userIndex" :key="userIndex"
class="user_item" class="user_item"
@click.stop="handleClickUser(userIndex)"> @click.stop="handleClickUser(userItem.userId)">
<div class="user_item_content"> <div class="user_item_content">
<div class="name">{{userItem.name}}</div> <div class="name">{{userItem.name}}</div>
@ -430,8 +430,8 @@ export default {
}, },
// //
handleClickUser (index) { handleClickUser (userId) {
this.$emit('toSubAgency', 'people', userId, "")
}, },
//infolist //infolist
async loadList () { async loadList () {

3
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -18,13 +18,14 @@
@toSubAgency="toSubAgency" @toSubAgency="toSubAgency"
ref="ref_search"></people-search> ref="ref_search"></people-search>
<people v-if="orgLevel==='people'" <people v-if="orgLevel==='people'"
:userId="selUserId" :uid="selUserId"
ref="ref_people"></people> ref="ref_people"></people>
<div v-show="orgLevel!=='people' && orgLevel!=='search'" <div v-show="orgLevel!=='people' && orgLevel!=='search'"
class="div_content"> class="div_content">
<basic-info-community v-show="orgLevel==='neighborHood'" <basic-info-community v-show="orgLevel==='neighborHood'"
@toSubAgency="toSubAgency"
ref="ref_community" ref="ref_community"
@refreshInfoList="refreshInfoList"></basic-info-community> @refreshInfoList="refreshInfoList"></basic-info-community>

26
src/views/modules/visual/basicinfo/cpts/people-more.vue

@ -54,19 +54,20 @@
</div> </div>
<div class="tabs"> <div class="tabs">
<div class="tab-btn" @click="groupIndex -= 1"> <div class="tab-btn" @click="subStartGroupIndex" v-if="groupList.length>9">
<img src="@/assets/img/shuju/people/arrow-double-left.png" /> <img src="@/assets/img/shuju/people/arrow-double-left.png" />
</div> </div>
<div <div
v-show="index >= startGroupIndex && index < startGroupIndex+9"
class="tab" class="tab"
:class="groupIndex % groupList.length == index ? 'z-on' : ''" :class="groupIndex % groupList.length == index ? 'z-on' : ''"
:key="'tab' + index" :key="'tab' + index"
@click="groupIndex = groupList.length * 100 + index" @click="groupIndex = index"
v-for="(item, index) in groupList" v-for="(item, index) in groupList"
> >
{{ item.label }} {{ item.label }}
</div> </div>
<div class="tab-btn" @click="groupIndex += 1"> <div class="tab-btn" @click="addStartGroupIndex" v-if="groupList.length>9">
<img src="@/assets/img/shuju/people/arrow-double-right.png" /> <img src="@/assets/img/shuju/people/arrow-double-right.png" />
</div> </div>
</div> </div>
@ -124,6 +125,7 @@ export default {
fieldList: [], fieldList: [],
groupList: [], groupList: [],
groupIndex: 0, groupIndex: 0,
startGroupIndex: 0,
info: {}, info: {},
xiaoquList: [], xiaoquList: [],
@ -212,6 +214,22 @@ export default {
}, },
methods: { methods: {
addStartGroupIndex() {
const { startGroupIndex, groupList } = this;
if (startGroupIndex < groupList.length - 9) {
this.startGroupIndex = startGroupIndex + 1;
} else {
this.startGroupIndex = groupList.length - 9;
}
},
subStartGroupIndex() {
const { startGroupIndex, groupList } = this;
if (startGroupIndex > 0) {
this.startGroupIndex = startGroupIndex - 1;
} else {
this.startGroupIndex = 0;
}
},
handleClose() { handleClose() {
this.$emit("close"); this.$emit("close");
}, },
@ -280,8 +298,6 @@ export default {
} }
}); });
}); });
this.groupIndex = this.groupList.length * 100;
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }

3
src/views/modules/visual/basicinfo/people.vue

@ -335,7 +335,8 @@ export default {
props: { props: {
uid: { uid: {
type: String, type: String,
default: "8ada68cb6f1e4b9a8333348a39ef3aee", default: "",
// default: "8ada68cb6f1e4b9a8333348a39ef3aee",
}, },
}, },

Loading…
Cancel
Save