This commit is contained in:
liuye
2022-01-13 14:41:10 +08:00
parent 8b55ce8193
commit 64b816b648
4 changed files with 468 additions and 135 deletions

View File

@@ -4,12 +4,11 @@
<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>
</div>
<div class="showTypes" v-if="!userList.length">
<div v-if="treeList.length > 0">
<div class="cards" v-for="(item, index) in treeList" :key="index" @click="itemClick(item)">
<div class="imges">
<span v-if="item.girdLevel == 2">
<span>
<img src="./components/img/xzh.png" alt="" class="imgselect" v-if="item.isChecked" @click.stop="girdClick(item, index)" />
<img src="./components/img/xz.png" alt="" class="imgselect" v-else @click.stop="girdClick(item, index)" />
</span>
@@ -24,59 +23,11 @@
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
<div class="showUsers" v-else>
<div v-if="userList.length > 0">
<div class="cards" v-for="(e, index) in userList" :key="index">
<div class="imges">
<img src="./components/img/xzh.png" alt="" class="imgselect" v-if="e.isChecked" @click="userClick(e, index)" />
<img src="./components/img/xz.png" alt="" class="imgselect" v-else @click="userClick(e, index)" />
<img src="./components/img/tx@2x.png" alt="" class="avatras" />
</div>
<div class="rights">
<div class="applicationNames">{{ e.name }}</div>
<div class="idNumbers">{{ e.phone }}</div>
</div>
</div>
</div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
</div>
<div class="subBtn" @click="submit">
<div>确定选择</div>
</div>
<u-popup v-model="show" mode="bottom" border-radius="14">
<div class="popup">
<div class="bg"></div>
<div class="title">{{ form.girdName }}</div>
<div class="info-flex">
<span class="label">网格类型</span>
<span class="value">{{ }}</span>
</div>
<div class="info-flex">
<span class="label">网格层级</span>
<span class="value">{{ }}</span>
</div>
<div class="info-flex">
<span class="label">网格负责人</span>
<span class="value">{{ }}</span>
</div>
<div class="info-flex border-b0">
<span class="label">网格员</span>
<span class="value">{{ }}<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone('110')" class="phone-icon"></span>
</div>
<div class="btn">
<span class="del">删除网格</span>
<span class="edit">编辑网格</span>
</div>
</div>
</u-popup>
</div>
</template>
@@ -90,9 +41,6 @@ export default {
treeList: [],
slectList: [],
userList: [],
show: true,
form: {}
}
},
onLoad() {
@@ -363,82 +311,5 @@ export default {
}
}
.popup {
padding: 0 32px 16px;
.bg {
width: 64px;
height: 10px;
background: #CCC;
border-radius: 6px;
margin: 32px 0 32px 344px;
}
.title {
font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333;
line-height: 50px;
margin-bottom: 24px;
}
.info-flex {
padding: 26px 0 30px 0;
width: 100%;
border-bottom: 1px solid #D8DDE6;
line-height: 40px;
font-size: 28px;
.label {
display: inline-block;
width: 160px;
font-weight: 800;
color: #333;
}
.value {
color: #666;
font-size: 26px;
.phone-icon {
width: 40px;
height: 40px;
vertical-align: sub;
margin-left: 16px;
}
}
}
.border-b0{
border-bottom: 0;
}
.btn{
padding: 32px 0;
background-color: #fff;
display: flex;
span{
display: inline-block;
height: 92px;
line-height: 90px;
border-radius: 8px;
font-size: 34px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
box-sizing: border-box;
text-align: center;
}
.del{
color: #f46;
border: 1px solid #f46;
flex: 1;
margin-right: 32px;
}
.edit{
background-color: #3671EE;
color: #fff;
flex: 2;
}
}
}
}
</style>