身份证js工具类增加
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<div class="popup">
|
<div class="popup">
|
||||||
<div class="bg"></div>
|
<div class="bg"></div>
|
||||||
<div class="title">{{ form.girdName }}</div>
|
<div class="title">{{ form.girdName }}</div>
|
||||||
<scroll-view scroll-y="true" class="grid-info">
|
<scroll-view scroll-y="true" class="grid-info">
|
||||||
<div class="info-flex">
|
<div class="info-flex">
|
||||||
<span class="label">网格类型</span>
|
<span class="label">网格类型</span>
|
||||||
<span class="value">{{ $dict.getLabel('girdType', form.girdType) }}</span>
|
<span class="value">{{ $dict.getLabel('girdType', form.girdType) }}</span>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<span class="label">网格长</span>
|
<span class="label">网格长</span>
|
||||||
<span class="value">{{ item.name }} {{ item.phone }}
|
<span class="value">{{ item.name }} {{ item.phone }}
|
||||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
||||||
v-if="item.phone">
|
v-if="item.phone">
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -37,11 +37,11 @@
|
|||||||
<span class="label">网格管理员</span>
|
<span class="label">网格管理员</span>
|
||||||
<span class="value">{{ item.name }} {{ item.phone }}
|
<span class="value">{{ item.name }} {{ item.phone }}
|
||||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
||||||
v-if="item.phone">
|
v-if="item.phone">
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</div>
|
</div>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
</div>
|
</div>
|
||||||
@@ -86,7 +86,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
toChoose () {
|
toChoose() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: './SelectGird?isFormMap=1'
|
url: './SelectGird?isFormMap=1'
|
||||||
})
|
})
|
||||||
@@ -101,7 +101,7 @@ export default {
|
|||||||
id: e.id,
|
id: e.id,
|
||||||
girdName: e.girdName,
|
girdName: e.girdName,
|
||||||
points: e.points.map(p => [p.lng, p.lat])
|
points: e.points.map(p => [p.lng, p.lat])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
arr.length > 0 && this.renderGridMap(arr)
|
arr.length > 0 && this.renderGridMap(arr)
|
||||||
@@ -109,7 +109,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getGridList (id) {
|
getGridList(id) {
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$http.post(`/app/appgirdinfo/queryChildGirdInfoByGirdId?girdId=${id}`).then((res) => {
|
this.$http.post(`/app/appgirdinfo/queryChildGirdInfoByGirdId?girdId=${id}`).then((res) => {
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
@@ -129,20 +129,20 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getGridInfo (id, flag) {
|
getGridInfo(id, flag) {
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
|
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
|
|
||||||
if (res.data.points && flag) {
|
if (res.data.points.length > 0 && flag) {
|
||||||
const arr = [{
|
const arr = [{
|
||||||
id: res.data.id,
|
id: res.data.id,
|
||||||
girdName: res.data.girdName,
|
girdName: res.data.girdName,
|
||||||
points: res.data.points.map(p => [p.lng, p.lat])
|
points: res.data.points.map(p => [p.lng, p.lat])
|
||||||
}]
|
}]
|
||||||
|
|
||||||
this.renderGridMap(arr)
|
this.renderGridMap(arr)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ export default {
|
|||||||
data: path.id,
|
data: path.id,
|
||||||
map: map,
|
map: map,
|
||||||
styles: {
|
styles: {
|
||||||
building: new TMap.LabelStyle({
|
building: new TMap.LabelStyle({
|
||||||
color: '#3777FF',
|
color: '#3777FF',
|
||||||
size: 20,
|
size: 20,
|
||||||
alignment: 'center',
|
alignment: 'center',
|
||||||
@@ -273,6 +273,7 @@ ai-tree-picker {
|
|||||||
|
|
||||||
.detail {
|
.detail {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.grid-select {
|
.grid-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 34px 32px;
|
padding: 34px 32px;
|
||||||
|
|||||||
Reference in New Issue
Block a user