调整特殊人群选择网格
This commit is contained in:
@@ -34,12 +34,12 @@ const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
});
|
||||
// app.$mount();
|
||||
app.$mount();
|
||||
store.dispatch("agentSign").then(config => {
|
||||
const init = (c = 0) => {
|
||||
if (config) {
|
||||
store.commit("getConfig", {...config, latlng: [config.lat, config.lng]})
|
||||
app.$mount();
|
||||
// app.$mount();
|
||||
} else {
|
||||
if (c < 5) {
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -68,12 +68,11 @@
|
||||
|
||||
<div class="item">
|
||||
<span class="label"><span class="tips"></span>所属网格</span>
|
||||
<div class="value" @click="showGird=true">
|
||||
<span
|
||||
:class="form.girdName === '' ? 'color-999' : ''">{{
|
||||
$dict.getLabel('appSpecialTypeFive', form.girdName) || '请选择'
|
||||
}}</span>
|
||||
<u-icon name="arrow-right" color="#cccccc" size="24" style="margin-left:4px;"/>
|
||||
<div class="value">
|
||||
<AiPagePicker type="custom" v-model="form.girdId" @select="handleSelectGrid"
|
||||
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<AiMore v-model="form.girdName"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="this.form.userType != ''">
|
||||
@@ -138,8 +137,6 @@
|
||||
</u-picker>
|
||||
<u-select v-model="showSelect" :list="selectList" label-name="dictName" value-name="dictValue"
|
||||
@confirm="confirmSelect"/>
|
||||
<u-select v-model="showGird" :list="girdlist" label-name="dictName" value-name="dictValue"
|
||||
@confirm="confirmGirdSelect"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -386,21 +383,17 @@ export default {
|
||||
selectList: [],
|
||||
id: "",
|
||||
index: "",
|
||||
showGird: false,
|
||||
girdlist: [],
|
||||
isEdit: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
|
||||
},
|
||||
onLoad(o) {
|
||||
this.$dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
||||
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive', 'isReflection', 'yesOrNo').then(() => {
|
||||
}),
|
||||
this.gridName()
|
||||
})
|
||||
if (o) {
|
||||
this.isEdit = true
|
||||
this.id = o.id
|
||||
@@ -441,21 +434,8 @@ export default {
|
||||
this.form.gender = people.gender
|
||||
},
|
||||
|
||||
confirmGirdSelect(e) {
|
||||
this.form.girdId = e[0].value
|
||||
this.form.girdName = e[0].label
|
||||
},
|
||||
|
||||
gridName() {
|
||||
this.$http.post('app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser').then(res => {
|
||||
if (res.code == 0) {
|
||||
var list = []
|
||||
res.data.map((e, index) => {
|
||||
list.push({dictName: e.girdName, dictValue: index})
|
||||
})
|
||||
this.girdlist = list
|
||||
}
|
||||
})
|
||||
handleSelectGrid(v) {
|
||||
this.form.girdName = v?.[0]?.girdName || ""
|
||||
},
|
||||
|
||||
submit() {
|
||||
|
||||
Reference in New Issue
Block a user