改造上架版网格完成

This commit is contained in:
2022-05-04 19:50:50 +08:00
parent e36d0e43b0
commit a5a41268c3
4 changed files with 37 additions and 164 deletions

View File

@@ -16,9 +16,8 @@
<img src="./components/img/xz.png" alt="" class="imgselect" v-else @click.stop="girdClick(item, index)"/>
<img src="./components/img/gird--select-icon.png" alt="" class="avatras"/>
</div>
<div class="rightes">
<div class="applicationNames">{{ item.girdName }}</div>
<u-icon v-if="item.hasChildren" @click="itemClick(item)" name="arrow-right" color="#ddd"/>
<div class="rightes fill">
<div class="applicationNames fill">{{ item.girdName }}</div>
</div>
</div>
</div>
@@ -93,12 +92,14 @@ export default {
},
itemClick(row) {
let obj = {
girdName: row.girdName,
id: row.id,
if (row.hasChildren) {
let obj = {
girdName: row.girdName,
id: row.id,
}
this.slectList.push(obj)
this.getGridsByGridMemberAndParent(row)
}
this.slectList.push(obj)
this.getGridsByGridMemberAndParent(row)
},
getGridsByGridMemberAndParent(row) {
@@ -140,26 +141,25 @@ export default {
submit() {
if (this.SelectGird.id != null) {
uni.$emit('goback', this.SelectGird)
uni.navigateBack({})
uni.navigateBack({
success: () => {
uni.$emit("pagePicker:custom", [this.SelectGird])
}
})
} else {
return this.$u.toast('请选择网格')
}
},
}
}
}
</script>
<style scoped lang="scss">
.SelectGird {
height: 100%;
min-height: 100vh;
background: #fff;
padding-bottom: 140px;
.header-top {
background: #fff;
padding: 20px 32px;
}
box-sizing: border-box;
.header-middle {
.hint {
@@ -172,11 +172,6 @@ export default {
}
.showTypes {
.empty-div {
height: 16px;
background: #f5f5f5;
}
.cards {
display: flex;
align-items: center;
@@ -210,80 +205,24 @@ export default {
}
.rightes {
width: calc(100% - 188px);
display: flex;
justify-content: space-between;
align-items: center;
margin-left: 32px;
border-bottom: 1px solid #e4e5e6;
padding: 0 16px;
.applicationNames {
width: calc(100% - 56px);
display: inline-block;
font-size: 36px;
font-weight: 500;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.imgs {
width: 40px;
height: 40px;
vertical-align: middle;
vertical-align: bottom;
}
}
}
}
.showUsers {
.cards {
display: flex;
align-items: center;
height: 120px;
line-height: 120px;
// background: pink;
padding: 0 0 0 32px;
.imges {
display: flex;
align-items: center;
width: 200px;
.imgselect {
width: 48px;
height: 48px;
}
.avatras {
width: 74px;
height: 74px;
border-radius: 8px;
margin-left: 36px;
}
}
.rights {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-left: 32px;
border-bottom: 1px solid #e4e5e6;
padding-right: 40px;
.applicationNames {
font-size: 36px;
font-weight: 500;
color: #333333;
}
.idNumbers {
color: #666;
}
}
}
}
}
.subBtn {