This commit is contained in:
shijingjing
2022-02-22 17:28:23 +08:00
parent 178a6084e3
commit ca1a4d878b
4 changed files with 14 additions and 19 deletions

View File

@@ -245,8 +245,8 @@ export default {
} }
} }
.upLoadPic { .upLoadPic {
width: 220px; width: 204px;
height:220px; height:204px;
margin-right: 8px; margin-right: 8px;
} }
.upLoadPic:nth-child(3n) { .upLoadPic:nth-child(3n) {

View File

@@ -28,7 +28,7 @@
</div> </div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
<u-select v-model="showType" :list="$dict.getDict('villagerCircleTopic')" label-name="dictName" value-name="dictValue" <u-select v-model="showType" :list="list" label-name="dictName" value-name="dictValue"
@confirm="confirmTypeSelect"/> @confirm="confirmTypeSelect"/>
</div> </div>
</div> </div>
@@ -47,28 +47,20 @@ export default {
current: 1, current: 1,
topic: '', topic: '',
topicType: '', topicType: '',
data: {} data: {},
list:[]
} }
}, },
created() { created() {
// let all = [{
// dictName:'全部',
// dictValue:'',
// dictColor:null
// }]
// let list = [...all,...this.$dict.getDict('villagerCircleTopic')]
// console.log(list,111);
// this.$dict.getDict('villagerCircleTopic').unshift(b)
// console.log(this.$dict.getDict('villagerCircleTopic'));
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{ this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
this.getList() this.getList()
uni.$on('update',()=>{ uni.$on('update',()=>{
this.current = 1 this.current = 1
this.getList() this.getList()
}) })
}) })
let all = [{ dictName: '全部', dictValue: '6', dictColor: null }]
this.list = [...all, ...this.$dict.getDict('villagerCircleTopic')]
}, },
methods: { methods: {
tabClick(index) { tabClick(index) {

View File

@@ -148,6 +148,7 @@ export default {
background: #FFFFFF; background: #FFFFFF;
padding-bottom: 40px; padding-bottom: 40px;
} }
.address { .address {
background: #FFFFFF; background: #FFFFFF;
padding: 20px 32px; padding: 20px 32px;
@@ -220,8 +221,8 @@ export default {
} }
} }
.upLoadPic { .upLoadPic {
width: 220px; width: 204px;
height:220px; height:204px;
margin-right: 8px; margin-right: 8px;
} }
.upLoadPic:nth-child(3n) { .upLoadPic:nth-child(3n) {

View File

@@ -26,7 +26,7 @@
</div> </div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
<u-select v-model="showType" :list="$dict.getDict('villagerCircleTopic')" label-name="dictName" value-name="dictValue" <u-select v-model="showType" :list="list" label-name="dictName" value-name="dictValue"
@confirm="confirmTypeSelect"/> @confirm="confirmTypeSelect"/>
</div> </div>
</div> </div>
@@ -46,6 +46,7 @@ export default {
current: 1, current: 1,
topic: '', topic: '',
topicType: '', topicType: '',
list: [],
} }
}, },
onLoad() { onLoad() {
@@ -54,8 +55,9 @@ export default {
this.current = 1 this.current = 1
this.getList() this.getList()
}) })
}) })
let all = [{ dictName: '全部', dictValue: '6', dictColor: null }]
this.list = [...all, ...this.$dict.getDict('villagerCircleTopic')]
}, },
methods: { methods: {
tabClick(index) { tabClick(index) {