This commit is contained in:
花有清香月有阴
2022-02-25 09:09:19 +08:00
parent 282b41a11f
commit 11247a161a

View File

@@ -42,7 +42,7 @@
<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>
</template>
@@ -76,6 +76,7 @@ export default {
searchObj: '',
data: [],
current: 1,
newList: [],
}
},
computed: {
@@ -109,6 +110,10 @@ export default {
.then((res) => {
if (res.code == 0) {
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(() => {