27620
This commit is contained in:
@@ -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: {
|
||||||
@@ -109,6 +110,10 @@ export default {
|
|||||||
.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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user