Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2022-02-25 11:12:53 +08:00
2 changed files with 13 additions and 9 deletions

View File

@@ -42,7 +42,7 @@
<div class="fixedBtn" @click="toAdd(1)">我要申请</div> <div class="fixedBtn" @click="toAdd(1)">我要申请</div>
<u-select v-model="showType" :list="$dict.getDict('atWillReportType')" value-name="dictValue" label-name="dictName" @confirm="confirm"></u-select> <u-select v-model="showType" :list="newList" value-name="dictValue" label-name="dictName" @confirm="confirm"></u-select>
</div> </div>
</template> </template>
@@ -76,6 +76,7 @@ export default {
searchObj: '', searchObj: '',
data: [], data: [],
current: 1, current: 1,
newList: [],
} }
}, },
computed: { computed: {
@@ -103,12 +104,16 @@ export default {
residentId: this.user.residentId, residentId: this.user.residentId,
description: this.searchObj, description: this.searchObj,
applyIntegralType: this.value, applyIntegralType: this.value,
auditType: this.currentTab == '0' ? '' : this.currentTab == '1' ? '0' : this.currentTab == 2 ? '1|2' : '', auditType: this.currentTab == '0' ? '' : this.currentTab == '1' ? '0' : this.currentTab == 2 ? '1' : '',
}, },
}) })
.then((res) => { .then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
const oldList = this.$dict.getDict('atWillReportType')
const addList = [{ dictName: '全部', dictValue: '', dictColor: null }]
this.newList = [...addList, ...oldList]
} }
}) })
.finally(() => { .finally(() => {
@@ -133,9 +138,7 @@ export default {
change(index) { change(index) {
this.currentTab = index this.currentTab = index
this.data = [] this.init()
this.current = 1
this.getList()
}, },
confirm(e) { confirm(e) {
@@ -246,7 +249,7 @@ export default {
text-align: center; text-align: center;
border-radius: 16px; border-radius: 16px;
font-size: 34px; font-size: 34px;
font-weight: 600; font-weight: 500;
color: #ffffff; color: #ffffff;
z-index: 999; z-index: 999;
} }

View File

@@ -303,11 +303,12 @@ export default {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 112px; box-sizing: border-box;
line-height: 112px;
background: #1365dd; background: #1365dd;
padding: 20px 0;
text-align: center; text-align: center;
font-size: 32px; border-radius: 16px;
font-size: 34px;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
z-index: 999; z-index: 999;