Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_cp/dv_cp_wechat_app into dev
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="title">网格人员</div>
|
<div class="title">网格人员</div>
|
||||||
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
|
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
|
||||||
<img src="./components/img/big-user.png" alt="">
|
<img :src="item.photo" alt="" v-if="item.photo">
|
||||||
|
<img src="./components/img/big-user.png" alt="" v-else>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="name">{{item.name}}</div>
|
<div class="name">{{item.name}}</div>
|
||||||
<div class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</div>
|
<div class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</div>
|
||||||
@@ -18,7 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="user-content user-item" v-for="(item, index) in dataInfo.girdMembers" :key="index">
|
<div class="user-content user-item" v-for="(item, index) in dataInfo.girdMembers" :key="index">
|
||||||
<img src="./components/img/user-img.png" alt="">
|
<img :src="item.photo" alt="" v-if="item.photo">
|
||||||
|
<img src="./components/img/user-img.png" alt="" v-else>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="name">{{item.name}}
|
<div class="name">{{item.name}}
|
||||||
<span class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</span>
|
<span class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</span>
|
||||||
@@ -27,6 +29,7 @@
|
|||||||
<p>{{item.girdName}} </p>
|
<p>{{item.girdName}} </p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="hint">
|
<div class="hint">
|
||||||
<span v-for="(item, index) in slectList" :key="index"><span v-if="index" style="margin:0 4px;">/</span><span style="color:#3F8DF5" @click="girdNameClick(item, index)">{{item.girdName}}</span></span>
|
<span v-for="(item, index) in slectList" :key="index"><span v-if="index" style="margin:0 4px;">/</span><span style="color:#3F8DF5" @click="girdNameClick(item, index)">{{item.girdName}}</span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="showTypes" v-if="!userList.length">
|
<div class="showTypes">
|
||||||
<div v-if="treeList.length > 0">
|
<div v-if="treeList.length > 0">
|
||||||
<div class="cards" v-for="(item, index) in treeList" :key="index" @click="itemClick(item)">
|
<div class="cards" v-for="(item, index) in treeList" :key="index" @click="itemClick(item)">
|
||||||
<div class="imges">
|
<div class="imges">
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="rightes">
|
<div class="rightes">
|
||||||
<div class="applicationNames">{{ item.girdName }}</div>
|
<div class="applicationNames">{{ item.girdName }}</div>
|
||||||
<img src="./components/img/right-icon.png" alt="" class="imgs" />
|
<img src="./components/img/right-icon.png" alt="" class="imgs" v-if="item.girdLevel != 2"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,9 +41,12 @@ export default {
|
|||||||
treeList: [],
|
treeList: [],
|
||||||
slectList: [],
|
slectList: [],
|
||||||
userList: [],
|
userList: [],
|
||||||
|
|
||||||
|
type: 0, //0统计 1组织
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(option) {
|
||||||
|
this.type = option.type
|
||||||
this.getTree()
|
this.getTree()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -75,7 +78,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
itemClick(row) {
|
itemClick(row) {
|
||||||
console.log(row)
|
if(row.girdLevel == 2) return
|
||||||
var obj = {
|
var obj = {
|
||||||
girdName: row.girdName,
|
girdName: row.girdName,
|
||||||
id: row.id,
|
id: row.id,
|
||||||
@@ -86,22 +89,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
searckGird(row) {
|
searckGird(row) {
|
||||||
if(row.girdLevel != 2) { //查网格
|
if(row.girdLevel == 2) return
|
||||||
this.$http.post(`/app/appgirdinfo/list?parentGirdId=${row.id}&size=999`).then((res) => {
|
this.$http.post(`/app/appgirdinfo/list?parentGirdId=${row.id}&size=999`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.treeList = res.data.records
|
this.treeList = res.data.records
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else { //查网格员
|
|
||||||
this.$http.post(`/app/appgirdmemberinfo/listByGirdIdByThree?girdId=${row.id}`).then((res) => {
|
|
||||||
if (res?.data) {
|
|
||||||
this.userList = res.data
|
|
||||||
this.userList.map((item) => {
|
|
||||||
item.isChecked = false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
girdNameClick(row, index) {
|
girdNameClick(row, index) {
|
||||||
@@ -136,26 +129,13 @@ export default {
|
|||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
|
|
||||||
userClick(row, index) {
|
|
||||||
if (this.userList[index].isChecked) {//取消
|
|
||||||
this.userList[index].isChecked = false
|
|
||||||
this.SelectGird = {}
|
|
||||||
} else {
|
|
||||||
this.userList.map((item) => {
|
|
||||||
item.isChecked = false
|
|
||||||
})
|
|
||||||
this.userList[index].isChecked = true
|
|
||||||
this.SelectGird = row
|
|
||||||
}
|
|
||||||
this.$forceUpdate()
|
|
||||||
},
|
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if (this.SelectGird.id != null) {
|
if (this.SelectGird.id != null) {
|
||||||
uni.$emit('goback', this.SelectGird)
|
uni.$emit('goback', this.SelectGird)
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
} else {
|
} else {
|
||||||
return this.$u.toast('请选择网格或网格员')
|
return this.$u.toast('请选择网格')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user