bug
This commit is contained in:
@@ -25,7 +25,7 @@ Vue.prototype.$http = axios;
|
||||
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
|
||||
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
|
||||
App.mpType = 'app';
|
||||
process.env.NODE_ENV == 'development' && new VConsole();
|
||||
// process.env.NODE_ENV == 'development' && new VConsole();
|
||||
const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
|
||||
@@ -173,9 +173,9 @@
|
||||
class="ai-area"
|
||||
:value="form.arriveAreaId"
|
||||
:fullName.sync="form.arriveAreaName"
|
||||
:areaId="areaId"
|
||||
mode="custom"
|
||||
@select="(v) => (form.arriveAreaId = v)"
|
||||
all
|
||||
>
|
||||
<div class="ai-area__wrapper">
|
||||
<span class="label" v-if="form.arriveAreaName">{{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<span class="label">网格选择</span>
|
||||
<div class="grid-select__right" @click="toChoose">
|
||||
<span>{{ form.girdName || '请选择' }}</span>
|
||||
<u-icon name="arrow-right" color="#cccccc" size="14"></u-icon>
|
||||
<u-icon name="arrow-right" color="#cccccc" size="26" style="margin-left:4px;"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="map-content">
|
||||
@@ -156,6 +156,7 @@ export default {
|
||||
},
|
||||
|
||||
renderGridMap(paths, count = 0) {
|
||||
console.log(paths)
|
||||
let {map, lib: TMap, $refs: {AiTMap: {fitBounds}}} = this
|
||||
if (TMap) {
|
||||
const colors = ["#A194F4", "#7CBDF3", "#F3A57D", "#62D063", "#58DBDA", "#F7D151"]
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
<div v-if="treeList.length > 0">
|
||||
<div class="cards" v-for="(item, index) in treeList" :key="index" @click="itemClick(item)">
|
||||
<div class="imges">
|
||||
<span>
|
||||
<span v-if="isFormMap == 1 && item.girdLevel != 0">
|
||||
<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>
|
||||
<span v-if="isFormMap != 1">
|
||||
<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>
|
||||
@@ -25,7 +29,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div style="padding-bottom: 70px;"></div> -->
|
||||
<div class="subBtn" @click="submit">
|
||||
<div v-if="isFormMap == 1">
|
||||
<div class="subBtn" @click="submit" v-if="treeList.length && treeList[0].girdLevel != 0">
|
||||
<div>确定选择</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="subBtn" @click="submit" v-else>
|
||||
<div>确定选择</div>
|
||||
</div>
|
||||
|
||||
@@ -44,10 +53,14 @@ export default {
|
||||
userGird: {},
|
||||
userList: [],
|
||||
girdLevel: 0,
|
||||
parentGirdId: ''
|
||||
parentGirdId: '',
|
||||
isFormMap: 0, //1为网格地图 一级不允许选中
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(option) {
|
||||
if(option.isFormMap) {
|
||||
this.isFormMap = option.isFormMap
|
||||
}
|
||||
this.isGirdUser()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length" :noPermit="true" />
|
||||
<div class="footer-btn" @click="toAddList">我添加的</div>
|
||||
<AiFixedBtn>
|
||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="gotoAdd()"/>
|
||||
</AiFixedBtn>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -79,6 +82,9 @@ export default {
|
||||
// })
|
||||
uni.navigateTo({url: `./myAddList`})
|
||||
},
|
||||
gotoAdd() {
|
||||
uni.navigateTo({ url: './add' })
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
@@ -178,5 +184,18 @@ export default {
|
||||
::v-deep .u-search{
|
||||
margin-bottom: 0!important;
|
||||
}
|
||||
.addBtn {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
flex-shrink: 0;
|
||||
background: $uni-color-primary;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
||||
font-size: 48px;
|
||||
color: #fff;
|
||||
border-radius: 50%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
src/saas/AppMailList/img/add-icon.png
Normal file
BIN
src/saas/AppMailList/img/add-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
@@ -36,7 +36,7 @@
|
||||
<div class="border">
|
||||
<span class="label">姓名</span>
|
||||
<span class="value">
|
||||
<input type="text" placeholder="请输入" v-model="form.name" maxlength="10" :disabled="this.form.id">
|
||||
<input type="text" placeholder="请输入" v-model="form.name" maxlength="10" :disabled="this.form.id ? true : false">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -45,7 +45,7 @@
|
||||
<div class="border">
|
||||
<span class="label">身份证号</span>
|
||||
<span class="value">
|
||||
<input type="idcard" placeholder="请输入" v-model="form.idNumber" maxlength="18" @input="changeIdNumber" :disabled="this.form.id">
|
||||
<input type="idcard" placeholder="请输入" v-model="form.idNumber" maxlength="18" @input="changeIdNumber" :disabled="this.form.id ? true : false">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@
|
||||
<div class="border">
|
||||
<span class="label">现住址</span>
|
||||
<span class="value">
|
||||
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" :value="form.currentAreaId" :areaId="$areaId || ''" mode="custom" all @select="onCurrentAreaChange">
|
||||
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" :value="form.currentAreaId" mode="custom" all @select="onCurrentAreaChange">
|
||||
<div class="aiArea">
|
||||
<span class="label" v-if="form.currentAreaName">{{ form.currentAreaName }}</span>
|
||||
<span v-else class="color-999">请选择</span>
|
||||
@@ -108,7 +108,7 @@
|
||||
<div class="border">
|
||||
<span class="label">户籍地址</span>
|
||||
<span class="value">
|
||||
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.householdAreaName" :value="form.householdAreaId" :areaId="$areaId" mode="custom" all @select="onHouseAreaChange">
|
||||
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.householdAreaName" :value="form.householdAreaId" mode="custom" all @select="onHouseAreaChange">
|
||||
<div class="aiArea">
|
||||
<span class="label" v-if="form.householdAreaName">{{ form.householdAreaName }}</span>
|
||||
<span v-else class="color-999">请选择</span>
|
||||
|
||||
@@ -43,7 +43,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty class="emptyWrap" v-else :noPermit="true" description="暂无居民<br/>信息点击按钮新增居民信息,也可在管理系统批量导入"></AiEmpty>
|
||||
<!-- <AiEmpty class="emptyWrap" v-else :noPermit="true" description="暂无居民<br/>信息点击按钮新增居民信息,也可在管理系统批量导入"></AiEmpty> -->
|
||||
<div class="empty" v-else>
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
|
||||
<p>暂无居民信息<br/>点击<span @click="edit('')">新增按钮</span>新增居民信息,也可在管理系统批量导入</p>
|
||||
</div>
|
||||
<div class="pad-b112"></div>
|
||||
<div class="add-btn" @click="edit('')">
|
||||
<div>新增居民</div>
|
||||
@@ -291,5 +295,23 @@ uni-page-body {
|
||||
::v-deep .u-tab-bar{
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
.empty{
|
||||
height: 100%;
|
||||
img{
|
||||
width: 282px;
|
||||
height: 306px;
|
||||
margin: 168px 0 0 234px;
|
||||
}
|
||||
p{
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #999;
|
||||
line-height: 44px;
|
||||
span{
|
||||
color: #467DFE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user