默认企微网格员只能添加监测对象
This commit is contained in:
@@ -2,18 +2,13 @@
|
|||||||
<div class="AppMonitoringObject">
|
<div class="AppMonitoringObject">
|
||||||
<div v-if="isAdmin">
|
<div v-if="isAdmin">
|
||||||
<AiTopFixed>
|
<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>
|
<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"
|
<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">
|
search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear">
|
||||||
</u-search>
|
</u-search>
|
||||||
@@ -38,6 +33,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty class="emptyWrap" v-else></AiEmpty>
|
<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">
|
<AiFixedBtn v-if="checkType == 1">
|
||||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd" v-if="$permissions('app_apppreventionreturntopoverty_edit')"></div>
|
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd" v-if="$permissions('app_apppreventionreturntopoverty_edit')"></div>
|
||||||
</AiFixedBtn>
|
</AiFixedBtn>
|
||||||
@@ -73,7 +72,10 @@ export default {
|
|||||||
areaId: '',
|
areaId: '',
|
||||||
areaName: '',
|
areaName: '',
|
||||||
isAdmin: false,
|
isAdmin: false,
|
||||||
checkType: ''
|
checkType: '',
|
||||||
|
showType: false,
|
||||||
|
typelist: [],
|
||||||
|
status: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -85,7 +87,10 @@ export default {
|
|||||||
this.areaName = this.user.areaName
|
this.areaName = this.user.areaName
|
||||||
this.$dict.load('fpPrtpStatus').then(() => {
|
this.$dict.load('fpPrtpStatus').then(() => {
|
||||||
this.isGirdUser()
|
this.isGirdUser()
|
||||||
|
this.typelist = this.$dict.getDict('fpPrtpStatus').filter((e) => e.dictValue != 5)
|
||||||
|
this.typelist.unshift({ dictName: '全部类型', dictValue: ''})
|
||||||
})
|
})
|
||||||
|
|
||||||
uni.$on('reload', () => {
|
uni.$on('reload', () => {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
})
|
})
|
||||||
@@ -104,6 +109,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
confirmTypeSelect(val) {
|
||||||
|
console.log(val);
|
||||||
|
},
|
||||||
|
|
||||||
getListInit() {
|
getListInit() {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
@@ -201,11 +210,17 @@ export default {
|
|||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.seach-obj {
|
.search-obj {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
border-bottom: 2px solid #f5f5f5;
|
border-bottom: 2px solid #f5f5f5;
|
||||||
border-top: 2px solid #f5f5f5;
|
border-top: 2px solid #f5f5f5;
|
||||||
padding: 20px 32px;
|
padding: 20px 32px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
.selectBox {
|
||||||
|
margin-right: 30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .u-form {
|
::v-deep .u-form {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="add">
|
<div class="add">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<p>生活条件</p>
|
<p>生活条件</p>
|
||||||
<div class="form-item">
|
<!-- <div class="form-item">
|
||||||
<div class="form-item__wrapper">
|
<div class="form-item__wrapper">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<i></i>
|
<i></i>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<AiSelect dict="fpHouseType" v-model="form.houseType"></AiSelect>
|
<AiSelect dict="fpHouseType" v-model="form.houseType"></AiSelect>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
<div class="form-item__wrapper">
|
<div class="form-item__wrapper">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
@@ -280,7 +280,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
houseType: '',
|
houseType: '1',
|
||||||
dilapidatedHousehold: '',
|
dilapidatedHousehold: '',
|
||||||
drinkingWaterSafety: '',
|
drinkingWaterSafety: '',
|
||||||
move: '',
|
move: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user