bug 修复
This commit is contained in:
parent
300ff032e5
commit
0f2e4db709
|
|
@ -119,7 +119,9 @@
|
|||
style="display: flex; align-items: center; margin-bottom: 10px"
|
||||
>
|
||||
<uni-col :span="8">
|
||||
<view class="addBtn" @click="submitNum">{{ id ? '确认修改' : '减免申请' }}</view>
|
||||
<view class="addBtn" @click="submitNum">{{
|
||||
id ? '确认修改' : '减免申请'
|
||||
}}</view>
|
||||
</uni-col>
|
||||
<uni-col :span="8">
|
||||
<view class="addBtn" @click="handleClean" v-if="num1 > 0">一键去除</view>
|
||||
|
|
@ -521,13 +523,19 @@ const selectMaCode = (e) => {
|
|||
getDirefList(obj)
|
||||
.then((res) => {
|
||||
const paramList = res.data
|
||||
const existingIds = new Set(typeList.value.map((e) => e.id))
|
||||
paramList.forEach((item) => {
|
||||
item.reduceNum = item.num
|
||||
item.reduceDays = 0
|
||||
item.reduceLeaseMoney = 0
|
||||
item.reduceStartTime = null
|
||||
item.reduceEndTime = null
|
||||
typeList.value.push(item)
|
||||
// typeList.value.push(item)
|
||||
|
||||
if (!existingIds.has(item.id)) {
|
||||
typeList.value.push(item)
|
||||
existingIds.add(item.id)
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue