默认企微网格员只能添加监测对象

This commit is contained in:
shijingjing
2022-07-05 10:13:43 +08:00
parent 6c4ae2521f
commit c37b69637f
2 changed files with 31 additions and 16 deletions

View File

@@ -2,18 +2,13 @@
<div class="AppMonitoringObject">
<div v-if="isAdmin">
<AiTopFixed>
<!-- <div class="area">
<i>可选范围</i>
<span class="separat">/</span>
<AiAreaPicker ref="area" class="aiArea" :value="areaId" :areaId="user.areaId" :name.sync="areaName" mode="custom"
@select="seachObj">
<span class="label" v-if="areaName">{{ areaName }}</span>
<i v-else>请选择</i>
</AiAreaPicker>
</div>
<div class="line"></div> -->
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bar-width="150" @change="change"></u-tabs>
<div class="seach-obj">
<div class="search-obj">
<div class="selectBox" @click="showType = true" v-if="currentTabs == 0">
<span v-if="!status">全部类型</span>
<span v-else>{{ $dict.getLabel('fpPrtpStatus', status)}}</span>
<u-icon name="arrow-down"></u-icon>
</div>
<u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名/身份证号" :show-action="false" bg-color="#F5F5F5"
search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear">
</u-search>
@@ -38,6 +33,10 @@
</div>
</div>
<AiEmpty class="emptyWrap" v-else></AiEmpty>
<u-select v-model="showType" :list="typelist" label-name="dictName" value-name="dictValue"
@confirm="confirmTypeSelect"/>
<AiFixedBtn v-if="checkType == 1">
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd" v-if="$permissions('app_apppreventionreturntopoverty_edit')"></div>
</AiFixedBtn>
@@ -73,7 +72,10 @@ export default {
areaId: '',
areaName: '',
isAdmin: false,
checkType: ''
checkType: '',
showType: false,
typelist: [],
status: ''
}
},
computed: {
@@ -85,7 +87,10 @@ export default {
this.areaName = this.user.areaName
this.$dict.load('fpPrtpStatus').then(() => {
this.isGirdUser()
this.typelist = this.$dict.getDict('fpPrtpStatus').filter((e) => e.dictValue != 5)
this.typelist.unshift({ dictName: '全部类型', dictValue: ''})
})
uni.$on('reload', () => {
this.getListInit()
})
@@ -104,6 +109,10 @@ export default {
})
},
confirmTypeSelect(val) {
console.log(val);
},
getListInit() {
this.current = 1
this.list = []
@@ -201,11 +210,17 @@ export default {
background: #f5f5f5;
}
.seach-obj {
.search-obj {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #f5f5f5;
border-top: 2px solid #f5f5f5;
padding: 20px 32px;
background: #fff;
.selectBox {
margin-right: 30px;
}
}
::v-deep .u-form {