27620
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user